:root {
  --ink: #102033;
  --muted: #627085;
  --line: #d8e0e8;
  --paper: #ffffff;
  --paper-soft: #f5f8fb;
  --brand: #0b5f95;
  --brand-dark: #093a5c;
  --brand-light: #e6f4fb;
  --aqua: #1aa6a6;
  --signal: #f2b544;
  --shadow: 0 18px 48px rgba(16, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(216, 224, 232, 0.78);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 178px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #2f4257;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 10px 0;
}

.nav a:hover {
  color: var(--brand);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.lang-btn {
  min-width: 42px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--line);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--brand);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.header-action,
.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 28px rgba(11, 95, 149, 0.25);
}

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

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-port.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 25, 43, 0.9) 0%, rgba(5, 25, 43, 0.74) 42%, rgba(5, 25, 43, 0.24) 100%),
    linear-gradient(180deg, rgba(5, 25, 43, 0.35), rgba(5, 25, 43, 0.16));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding: 122px clamp(20px, 6vw, 76px) 44px;
}

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

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin: 26px 0 0;
}

.hero-stats div {
  border-left: 3px solid var(--signal);
  padding-left: 14px;
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: 86px clamp(20px, 5vw, 70px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section h3 {
  margin: 0;
  font-size: 21px;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: 44px;
  align-items: start;
  background: var(--paper);
}

.intro > p {
  margin: 8px 0 0;
  font-size: 19px;
}

.services,
.process,
.documents {
  background: var(--paper-soft);
}

.operations {
  background: linear-gradient(135deg, var(--brand-dark), #0d5f82);
  color: #fff;
}

.operations .section-head {
  max-width: 820px;
}

.operations .section-head p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

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

.operations-grid article {
  min-height: 218px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.operations-grid h3 {
  margin-top: 18px;
}

.operations-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.ops-code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(26, 166, 166, 0.64);
  border-radius: 6px;
  padding: 7px 10px;
  color: #d7fbfb;
  background: rgba(9, 58, 92, 0.72);
  font-size: 13px;
  font-weight: 900;
}

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

.service-grid article,
.timeline article,
.why-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 6px;
  color: var(--brand-dark);
  background: var(--brand-light);
  font-weight: 900;
}

.ports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.map-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 8.7;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #7faac1;
  background: #173b4c;
  box-shadow: var(--shadow);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(9, 58, 92, 0.12), rgba(9, 58, 92, 0.02) 45%, rgba(9, 58, 92, 0.08)),
    linear-gradient(180deg, rgba(10, 49, 77, 0.04), rgba(10, 49, 77, 0.08));
}

.coverage-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ports-copy {
  max-width: 560px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #34465a;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--aqua);
  border-bottom: 3px solid var(--aqua);
  transform: rotate(-45deg);
}

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

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

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

.why-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

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

.document-list article {
  border-left: 4px solid var(--aqua);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.document-list h3 {
  color: var(--brand-dark);
}

.contact {
  background: linear-gradient(135deg, var(--brand-dark), #0d5f82);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.7fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-link,
.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-link svg,
.messenger-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.messenger-link {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
}

.messenger-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(26, 166, 166, 0.17);
  border-color: var(--aqua);
}

.lead-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer img {
  width: 156px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

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

  .header-action {
    display: none;
  }

  .header-controls {
    justify-content: end;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-column: 1 / -1;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: grid;
    gap: 8px;
  }

  .service-grid,
  .operations-grid,
  .timeline,
  .why-grid,
  .document-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .ports-layout,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-panel {
    width: 100%;
    max-width: calc(100vw - 40px);
    min-height: 0 !important;
  }

  .map-port-label {
    min-height: 24px;
    border-width: 1px;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand img {
    width: 136px;
    height: 44px;
  }

  .header-controls {
    gap: 8px;
  }

  .language-switch {
    justify-self: end;
  }

  .lang-btn {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 8px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-content {
    padding: 112px 20px 52px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .hero-stats,
  .service-grid,
  .operations-grid,
  .timeline,
  .why-grid,
  .document-list {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    padding-left: 9px;
  }

  .hero-stats dt {
    font-size: 17px;
  }

  .hero-stats dd {
    font-size: 12px;
  }

  .section {
    padding: 62px 20px;
  }

  .map-panel {
    width: 100%;
    max-width: calc(100vw - 40px);
    min-height: 0 !important;
  }

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