:root {
  --ink: #17202a;
  --muted: #66717f;
  --line: #dce3ea;
  --paper: #f6f8fb;
  --white: #ffffff;
  --red: #b42832;
  --red-dark: #8d1d27;
  --blue: #294760;
  --steel: #82919f;
  --shadow: 0 20px 50px rgba(23, 32, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.is-modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-solid {
  background: rgba(18, 26, 34, 0.94);
  box-shadow: 0 12px 30px rgba(12, 18, 24, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.header-phone {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #17202a;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 7, 10, 0.96), rgba(8, 12, 16, 0.88) 24%, rgba(16, 22, 28, 0.34) 56%, rgba(16, 22, 28, 0.08) 82%),
    linear-gradient(0deg, rgba(12, 16, 20, 0.7), rgba(12, 16, 20, 0.08) 52%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 8vh, 88px) clamp(18px, 5vw, 72px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #ffccd0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-registration {
  position: relative;
  max-width: 100%;
  margin: 2px 0 0;
  padding-left: 31px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-registration::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #ffccd0;
  font-size: 13px;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  margin: 34px 0 0;
}

.hero-metrics div {
  min-width: 140px;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.calculator-section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background: #edf2f6;
}

.calculator-heading {
  align-items: start;
}

.calculator-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.calculator-form,
.calculation-result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.calculator-grid {
  display: grid;
  gap: 16px;
}

.calculator-grid-route,
.calculator-grid-cargo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fbfcfe;
  outline: 0;
}

.calculator-field input:focus,
.calculator-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 71, 96, 0.14);
}

.calculator-field.is-invalid input,
.calculator-field.is-invalid select {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 40, 50, 0.12);
}

.calculator-field em,
.calculator-field small {
  min-height: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.calculator-field em {
  color: var(--red);
}

.calculator-field small {
  color: var(--steel);
}

.city-suggestions {
  position: absolute;
  z-index: 6;
  top: calc(100% - 22px);
  left: 0;
  right: 0;
  display: grid;
  gap: 1px;
  max-height: 300px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.16);
}

.city-suggestions button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.city-suggestions button:hover,
.city-suggestions button:focus {
  background: #edf3f8;
}

.city-suggestions span,
.city-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.city-empty {
  padding: 12px;
}

.weight-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weight-presets button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #edf3f8;
  cursor: pointer;
  font-weight: 800;
}

.additional-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.additional-options legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.additional-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.option-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.calculator-actions {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  align-items: center;
}

.calculator-actions .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.calculator-error {
  margin: 0;
  color: var(--red);
  font-weight: 800;
  line-height: 1.45;
}

.calculation-result {
  animation: result-in 220ms ease both;
}

.calculation-result-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.calculation-result-route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.calculation-breakdown {
  display: grid;
  gap: 10px;
  margin: 0;
}

.calculation-breakdown div {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(160px, 1.1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calculation-breakdown dt {
  color: var(--muted);
  font-weight: 800;
}

.calculation-breakdown dd {
  margin: 0;
  font-weight: 800;
}

.calculation-total {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: #edf3f8;
}

.calculation-total span {
  color: var(--muted);
  font-weight: 800;
}

.calculation-total strong {
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.calculation-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.split-section,
.fleet-band,
.request-section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.3fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

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

.service-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.05);
}

.service-icon {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--red);
  font-weight: 800;
}

.service-card p,
.split-section p,
.fleet-copy p,
.request-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(34px, 7vw, 86px);
  background: var(--white);
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  grid-row: span 2;
  color: var(--red);
  font-weight: 800;
}

.timeline strong {
  font-size: 20px;
}

.timeline p {
  margin: 0;
}

.fleet-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: center;
  background: #1c2a36;
  color: var(--white);
}

.fleet-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
}

.fleet-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.fleet-list span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.request-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fbfcfe;
  outline: 0;
}

.request-form textarea {
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 71, 96, 0.14);
}

.request-form button,
.estimate,
.form-wide {
  grid-column: span 2;
}

.estimate {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #edf3f8;
  color: var(--blue);
  font-weight: 800;
}

.request-cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-height: 260px;
  padding: 28px;
  border-left: 4px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.request-cta strong {
  max-width: 560px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.request-cta span {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.request-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 18, 0.74);
  backdrop-filter: blur(10px);
}

.request-modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-heading {
  max-width: 620px;
  margin-bottom: 22px;
  padding-right: 54px;
}

.modal-heading h2 {
  margin-bottom: 12px;
}

.modal-heading p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.request-modal .request-form {
  box-shadow: none;
  padding: 0;
}

.site-footer {
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 72px) 28px;
  background: #101820;
  color: var(--white);
}

.footer-topline,
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-topline {
  justify-content: space-between;
  margin-bottom: 28px;
}

.company-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(38, 166, 91, 0.35);
  border-radius: 6px;
  color: #7ee39b;
  background: rgba(38, 166, 91, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.company-status::before {
  content: "";
  width: 9px;
  height: 15px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.footer-legal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(22px, 4vw, 54px);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-panel {
  min-height: 100%;
  padding: 0;
}

.footer-panel h2 {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.25;
}

.legal-list {
  display: grid;
  gap: 11px;
  margin: 0;
}

.legal-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.legal-list-wide div {
  grid-template-columns: 1fr;
  gap: 4px;
}

.legal-list dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  max-width: 760px;
  margin: 0 auto 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-contacts a {
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 6px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(18, 26, 34, 0.97);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-image {
    object-position: 38% center;
  }

  .hero-content {
    width: calc(100% - 36px);
  }

  .trust-strip,
  .section-heading,
  .split-section,
  .fleet-band,
  .request-section,
  .calculator-layout,
  .calculator-grid-route {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-legal-grid {
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 13px 16px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    min-width: 42px;
    height: 32px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-image {
    object-position: 30% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 7, 10, 0.9), rgba(8, 12, 16, 0.74) 44%, rgba(16, 22, 28, 0.18)),
      linear-gradient(0deg, rgba(12, 16, 20, 0.82), rgba(12, 16, 20, 0.14) 54%);
  }

  h1 {
    font-size: 50px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics div {
    flex: 1 1 100%;
  }

  .trust-strip,
  .service-grid,
  .request-form,
  .fleet-list,
  .calculator-grid-cargo,
  .additional-options-grid,
  .calculator-actions,
  .calculation-breakdown div {
    grid-template-columns: 1fr;
  }

  .calculator-actions .button,
  .weight-presets button {
    width: 100%;
  }

  .request-form button,
  .estimate {
    grid-column: span 1;
  }

  .request-cta {
    min-height: auto;
  }

  .request-modal {
    padding: 12px;
  }

  .request-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .modal-heading {
    padding-right: 46px;
  }

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

  .footer-topline,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal-grid {
    grid-template-columns: 1fr;
  }
}
