:root {
  --navy: #031f49;
  --navy-deep: #001a3e;
  --blue: #0754a6;
  --gold: #f2b525;
  --gold-light: #ffd465;
  --white: #fff;
  --ink: #051b42;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Aptos, Calibri, Helvetica, Arial, sans-serif; color: var(--white); background: var(--navy-deep); }
button, input, textarea { font: inherit; }

.site-header {
  min-height: 140px;
  height: 140px;
  padding: 4px clamp(24px, 6vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: relative;
  z-index: 5;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 17% 0 33%;
  opacity: .12;
  background-image: radial-gradient(circle at 50% 45%, #0c6bc0 0 1.2px, transparent 1.3px);
  background-size: 9px 9px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.brand { display: block; position: relative; z-index: 1; }
.brand img { width: min(525px, 57vw); height: 132px; object-fit: contain; object-position: left center; display: block; }
.language-selector { display: flex; gap: 18px; position: relative; z-index: 1; }
.language { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 8px 3px 10px; cursor: pointer; line-height: 1; transition: transform .2s, border-color .2s; }
.language img { display: block; width: 42px; height: 28px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.22); }
.language:hover, .language:focus-visible { transform: translateY(-2px); outline: none; }
.language.active { border-color: var(--gold); }

.hero { min-height: calc(100vh - 230px); position: relative; background: center/cover no-repeat url("assets/port-hero.png"); overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,26,62,.9) 0%, rgba(1,30,66,.56) 43%, rgba(2,25,55,.12) 68%, rgba(0,18,43,.2) 100%); }
.network-map { position: absolute; top: 0; left: 36%; width: 42%; height: 43%; opacity: .32; background: radial-gradient(circle at 46% 48%, rgba(255,204,64,.95) 0 2px, transparent 3px), radial-gradient(circle at 67% 22%, rgba(255,204,64,.95) 0 2px, transparent 3px), radial-gradient(circle at 78% 67%, rgba(255,204,64,.95) 0 2px, transparent 3px); }
.network-map::after { content: ""; position: absolute; inset: 8% 3%; border: 1px solid rgba(255,202,56,.55); border-radius: 50%; transform: rotate(-13deg); }
.hero-content { position: relative; z-index: 2; width: min(1450px, 100%); margin: auto; padding: 36px clamp(24px, 3.7vw, 72px) 38px; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(390px, .95fr); gap: clamp(30px, 4vw, 66px); align-items: stretch; }
.story { padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; }
h1 { margin: 0; text-transform: uppercase; font-size: clamp(38px, 4.2vw, 68px); line-height: .98; letter-spacing: -1.8px; text-shadow: 0 3px 14px rgba(0,0,0,.35); }
h1 span, h1 strong { display: block; }
h1 span { color: #fff; font-weight: 800; }
h1 strong { color: var(--gold-light); font-weight: 850; margin-top: 7px; }
.gold-rule { width: 72px; height: 5px; background: var(--gold); margin: 24px 0 17px; border-radius: 3px; }
.lead { font-weight: 600; font-size: clamp(19px, 1.7vw, 26px); margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.products { margin-top: auto; padding-top: 54px; display: grid; grid-template-columns: repeat(2, 180px); gap: 10px; width: 370px; max-width: 100%; align-self: flex-start; }
.product-card { overflow: hidden; background: var(--navy); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.product-card img { display: block; width: 100%; height: 102px; object-fit: cover; }
.product-card h2 { margin: 0; padding: 9px 5px 10px; color: #fff; font-size: clamp(13px, 1vw, 17px); text-align: center; white-space: nowrap; }

.lead-form-card { color: var(--ink); background: rgba(255,255,255,.97); border: 4px solid var(--navy-deep); border-radius: 18px; padding: clamp(22px, 2.4vw, 36px); box-shadow: 0 18px 45px rgba(0,0,0,.32); }
.lead-form-card h2 { margin: 0; font-size: clamp(28px, 2.4vw, 40px); text-transform: uppercase; letter-spacing: -.6px; }
.form-rule { height: 2px; background: #d79500; margin: 18px 0 20px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 800; font-size: 16px; }
input, textarea { width: 100%; color: #132c54; background: #fff; border: 1px solid #aec0d6; border-radius: 5px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,84,166,.13); }
textarea { resize: vertical; min-height: 72px; }
.submit { margin-top: 2px; border: 0; border-radius: 7px; padding: 15px 24px; display: flex; align-items: center; justify-content: center; gap: 24px; color: #071b3c; background: linear-gradient(180deg, #ffd968, #e8a800); font-weight: 900; text-transform: uppercase; font-size: 20px; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.7); }
.submit:hover { filter: brightness(1.05); }
.submit:disabled { cursor: wait; opacity: .72; }
.form-status { min-height: 20px; margin: 0; font-size: 14px; font-weight: 700; text-align: center; }
.form-status.success { color: #08763c; }
.form-status.error { color: #a21b22; }
.privacy { margin: 0; font-size: 14px; text-align: center; color: #18325c; }

.site-footer { min-height: 88px; padding: 14px clamp(24px, 3vw, 48px); background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.75); display: grid; grid-template-columns: 1.35fr 1.3fr 1fr 1.9fr .95fr; align-items: center; gap: 0; color: #fff; }
.site-footer > * { min-height: 42px; display: flex; justify-content: center; align-items: center; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.8); }
.site-footer > :first-child { border-left: 0; padding-left: 0; align-items: flex-start; justify-content: center; flex-direction: column; }
.company strong { font-size: 17px; }
.company span { font-size: 14px; margin-top: 3px; }
.footer-link { color: #fff; text-decoration: none; gap: 10px; font-size: 14px; white-space: nowrap; }
.footer-link:hover { color: var(--gold-light); }
.globe-icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.copyright { margin: 0; font-size: 13px; white-space: nowrap; }
.developer { color: rgba(255,255,255,.72); text-decoration: none; flex-direction: column; gap: 2px; text-align: center; opacity: .76; transition: opacity .2s; }
.developer:hover { opacity: 1; }
.developer span { font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.developer strong { font-size: 12px; font-style: normal; font-weight: 600; }
.developer em { color: #6bbcff; font-style: normal; }
.toast { position: fixed; right: 24px; top: 125px; z-index: 20; color: var(--ink); background: #fff; border-left: 4px solid var(--gold); border-radius: 6px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero-content { grid-template-columns: 1fr 420px; }
  .products { grid-template-columns: repeat(2, 180px); margin-top: auto; max-width: 370px; }
  .site-footer { grid-template-columns: 1.2fr 1.2fr 1fr; }
  .copyright, .developer { border-top: 1px solid rgba(255,255,255,.22); margin-top: 10px; padding-top: 10px; }
  .copyright { grid-column: 1 / 3; border-left: 0; justify-content: flex-start; }
}

@media (max-width: 820px) {
  .site-header { min-height: 102px; height: 102px; padding: 3px 20px; }
  .brand img { width: min(350px, 60vw); height: 96px; }
  .language-selector { gap: 9px; }
  .language img { width: 34px; height: 23px; }
  .hero-content { grid-template-columns: 1fr; padding: 34px 20px 42px; }
  .story { display: block; }
  .hero-shade { background: linear-gradient(180deg, rgba(1,26,62,.87), rgba(1,24,55,.52)); }
  .products { margin-top: 210px; padding-top: 0; width: 370px; max-width: 100%; }
  .lead-form-card { max-width: 620px; width: 100%; margin: auto; }
  .site-footer { grid-template-columns: 1fr; padding: 18px 24px; }
  .site-footer > * { border: 0; border-top: 1px solid rgba(255,255,255,.18); min-height: 50px; padding: 10px 0; justify-content: flex-start; }
  .site-footer > :first-child { border-top: 0; }
  .copyright { grid-column: auto; margin: 0; }
  .developer { align-items: flex-start; text-align: left; margin: 0; }
}

@media (max-width: 520px) {
  .site-header { align-items: center; }
  .brand img { width: min(265px, 59vw); height: 94px; }
  .language { padding-inline: 0; }
  .language img { width: 30px; height: 20px; }
  h1 { font-size: 38px; }
  .lead { font-size: 18px; }
  .products { margin-top: 170px; grid-template-columns: repeat(2, minmax(0, 180px)); }
  .product-card img { height: 90px; }
  .lead-form-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
