:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-muted: #ece8df;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #d8d2c5;
  --navy: #17324d;
  --navy-strong: #0e2236;
  --brass: #b89b5e;
  --steel: #6b7886;
  --radius: 8px;
  --container: min(100% - 48px, 1240px);
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid rgba(216, 210, 197, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(23, 50, 77, 0.28);
  background: var(--navy);
  color: var(--surface);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: var(--steel);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 50, 77, 0.24);
  border-radius: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100svh - 116px));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(246, 244, 239, 0.98) 0%, rgba(246, 244, 239, 0.94) 30%, rgba(246, 244, 239, 0.48) 57%, rgba(246, 244, 239, 0.06) 100%),
    url("../images/hero-port.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: rgba(14, 34, 54, 0.08);
  pointer-events: none;
}

.hero-content {
  width: var(--container);
  margin-inline: auto;
  padding: 74px 0 86px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--brass);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.split-heading h2,
.routes-copy h2,
.advantages-layout h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy-strong);
  font-weight: 760;
  line-height: 1.03;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3rem, 6vw, 5.15rem);
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #334155;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--surface);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(23, 50, 77, 0.32);
  color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface);
  border-color: var(--navy);
}

.identity-strip {
  padding: 26px 0;
  background: var(--navy-strong);
  color: var(--surface);
}

.identity-grid {
  display: grid;
  grid-template-columns: 0.75fr 0.55fr 1.7fr;
  gap: 24px;
}

.identity-grid div {
  min-width: 0;
  padding-inline: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.identity-grid span,
.identity-grid strong {
  display: block;
}

.identity-grid span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.identity-grid strong {
  font-size: 15px;
  font-weight: 700;
}

.section {
  padding: 112px 0;
  scroll-margin-top: 96px;
}

.section-intro {
  background: var(--bg);
}

.split-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.75fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.split-heading .section-kicker {
  margin-top: 8px;
}

.split-heading h2,
.routes-copy h2,
.advantages-layout h2,
.contact-copy h2 {
  max-width: 660px;
  font-size: clamp(2rem, 2.75vw, 3rem);
  line-height: 1.08;
}

.split-heading p:not(.section-kicker),
.routes-copy p,
.contact-copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.service-stack {
  display: grid;
  gap: 22px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-row-reverse .service-media {
  order: 2;
}

.service-media {
  min-height: 360px;
  background: var(--surface-muted);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.service-number {
  color: var(--brass);
  font-weight: 800;
}

.service-copy h3 {
  margin: 20px 0 0;
  color: var(--navy-strong);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.service-copy p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.service-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.service-copy li {
  position: relative;
  padding-left: 22px;
  color: #293443;
}

.service-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--brass);
}

.routes-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.routes-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.22fr);
  gap: 64px;
  align-items: center;
}

.route-list {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  border-block: 1px solid var(--line);
}

.route-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.route-list div:first-child {
  border-top: 0;
}

.route-list dt {
  color: var(--navy);
  font-weight: 800;
}

.route-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.route-map {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(184, 155, 94, 0.28);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    #0e2236;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(14, 34, 54, 0.2);
}

.route-map::before,
.route-map::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.route-map::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.route-map::after {
  left: 22px;
  right: 22px;
  top: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 155, 94, 0.54), transparent);
}

.map-meta,
.map-code {
  position: absolute;
  z-index: 2;
  top: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-meta {
  left: 24px;
  display: grid;
  gap: 2px;
}

.map-meta strong {
  color: #f5eee0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.map-code {
  right: 24px;
}

.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-frame {
  fill: transparent;
}

.map-graticule {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.map-land {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.18));
}

.map-land-europe,
.map-land-africa,
.map-land-asia {
  fill: rgba(255, 255, 255, 0.105);
}

.map-route {
  fill: none;
  stroke: rgba(228, 236, 242, 0.68);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 8px rgba(228, 236, 242, 0.18));
}

.route-eu,
.route-ukraine {
  stroke: rgba(184, 155, 94, 0.95);
  filter: drop-shadow(0 0 8px rgba(184, 155, 94, 0.22));
}

.map-point {
  fill: var(--brass);
  stroke: #0e2236;
  stroke-width: 4;
}

.map-point-hub {
  fill: #f5eee0;
  stroke: var(--brass);
  stroke-width: 4;
}

.map-label {
  position: absolute;
  display: grid;
  min-width: 96px;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(9, 21, 34, 0.72);
  color: var(--surface);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.map-label strong {
  font-size: 13px;
  line-height: 1;
}

.map-label em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.map-label-hub {
  left: 47%;
  top: 43%;
  background: #f5eee0;
  color: var(--navy-strong);
  border-color: rgba(184, 155, 94, 0.72);
}

.map-label-hub em {
  color: rgba(23, 50, 77, 0.62);
}

.map-label-ua {
  left: 33%;
  top: 30%;
}

.map-label-eu {
  right: 23%;
  top: 19%;
}

.map-label-us {
  left: 11%;
  top: 29%;
}

.map-label-af {
  left: 42%;
  bottom: 17%;
}

.map-label-as {
  right: 6%;
  top: 23%;
}

.map-legend {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-legend i {
  display: block;
  width: 28px;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(228, 236, 242, 0.9) 45%, transparent 45%);
  background-size: 9px 2px;
}

.map-legend span:last-child i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
}

.process-section {
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid article {
  min-height: 260px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.process-grid span {
  color: var(--brass);
  font-weight: 800;
}

.process-grid h3 {
  margin: 46px 0 12px;
  color: var(--navy-strong);
  font-size: 24px;
}

.process-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.advantages-section {
  background: var(--navy-strong);
  color: var(--surface);
}

.advantages-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
  align-items: start;
}

.advantages-layout h2 {
  color: var(--surface);
}

.advantages-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.advantages-list article {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.advantages-list h3 {
  margin: 0 0 10px;
  color: var(--surface);
  font-size: 22px;
}

.advantages-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

address {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-style: normal;
}

address strong {
  color: var(--navy-strong);
}

.contact-form {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-form label span {
  color: var(--navy-strong);
  font-size: 14px;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfc7ba;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 50, 77, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: 2px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.form-status.is-success {
  color: #17623b;
}

.form-status.is-error {
  color: #9b1c1c;
}

.site-footer {
  padding: 38px 0;
  background: #0b1622;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid div {
  display: grid;
  gap: 5px;
}

.footer-grid strong {
  color: var(--surface);
}

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

  .site-nav {
    gap: 20px;
    font-size: 13px;
  }

  .header-cta {
    padding-inline: 14px;
    font-size: 13px;
  }

  .brand {
    min-width: 198px;
  }

  .split-heading {
    grid-template-columns: 0.45fr 1.45fr;
  }

  .split-heading p:not(.section-kicker) {
    grid-column: 2;
  }

  .routes-layout,
  .contact-layout,
  .advantages-layout {
    gap: 48px;
  }

  .routes-layout {
    grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.18fr);
  }

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

@media (max-width: 900px) {
  :root {
    --container: min(100% - 36px, 720px);
  }

  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    inset: 70px 18px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(246, 244, 239, 0.98) 0%, rgba(246, 244, 239, 0.92) 48%, rgba(246, 244, 239, 0.38) 100%),
      url("../images/hero-port.jpg");
    background-position: 58% center;
  }

  .hero-content {
    padding: 64px 0 138px;
  }

  .identity-grid,
  .routes-layout,
  .contact-layout,
  .advantages-layout,
  .service-row {
    grid-template-columns: 1fr;
  }

  .identity-grid {
    gap: 0;
  }

  .identity-grid div {
    padding: 14px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .identity-grid div:first-child {
    border-top: 0;
  }

  .section {
    padding: 78px 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 38px;
  }

  .split-heading p:not(.section-kicker) {
    grid-column: auto;
  }

  .service-row {
    min-height: 0;
  }

  .service-row-reverse .service-media {
    order: 0;
  }

  .service-media {
    min-height: 300px;
  }

  .routes-layout {
    gap: 34px;
  }

  .route-map {
    min-height: 410px;
  }

  .contact-copy {
    position: static;
  }

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

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 390px);
  }

  body {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.7rem);
  }

  .hero-content {
    padding: 44px 0 110px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .split-heading h2,
  .routes-copy h2,
  .advantages-layout h2,
  .contact-copy h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
    line-height: 1.12;
  }

  .service-copy {
    padding: 28px;
  }

  .service-media {
    min-height: 234px;
  }

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

  .route-map {
    min-height: 360px;
  }

  .map-label {
    min-width: 72px;
    padding: 7px 8px;
  }

  .map-label strong {
    font-size: 12px;
  }

  .map-label em {
    display: none;
  }

  .map-label-hub {
    left: 42%;
    top: 43%;
  }

  .map-label-ua {
    left: 25%;
    top: 28%;
  }

  .map-label-eu {
    right: 16%;
    top: 25%;
  }

  .map-label-us {
    left: 6%;
    top: 34%;
  }

  .map-label-af {
    left: 34%;
    bottom: 20%;
  }

  .map-label-as {
    right: 4%;
    top: 14%;
  }

  .map-legend {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 10px;
    font-size: 11px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: 210px;
    padding: 26px;
  }

  .process-grid h3 {
    margin-top: 34px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 22px;
    box-shadow: none;
  }
}
