:root {
  --ink: #0c1520;
  --ink-soft: #243447;
  --foam: #e7f3f7;
  --mist: #9bb6c5;
  --sea: #0a4d68;
  --sea-deep: #062536;
  --tide: #128cac;
  --accent: #f0a202;
  --accent-ink: #1a1200;
  --line: rgba(255, 255, 255, 0.14);
  --ok: #2db87a;
  --warn: #e2a33a;
  --glass: rgba(8, 28, 42, 0.55);
  --radius: 14px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--foam);
  background: var(--sea-deep);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1160px, 92vw); margin: 0 auto; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 37, 54, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 2rem; height: 2rem; border-radius: 8px;
  background:
    linear-gradient(145deg, #2aa7d4, #0a4d68 55%, #062536);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 55% 18% 18% 18%;
  border-radius: 999px 999px 4px 4px;
  background: rgba(240,162,2,.9);
}
.nav { display: flex; gap: 1.15rem; align-items: center; color: var(--mist); font-size: 0.94rem; }
.nav a:hover, .nav a.is-active { color: #fff; }
.btn-ghost.is-active { border-color: var(--accent); color: #fff; background: rgba(240,162,2,.12); }
.nav-cta {
  margin-left: 0.4rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.55rem 0.95rem; border-radius: 999px; font-weight: 700;
}
.burger {
  display: none; border: 1px solid var(--line); background: transparent; color: #fff;
  width: 2.5rem; height: 2.5rem; border-radius: 10px; cursor: pointer;
}

/* hero — one composition, full-bleed */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,37,54,.35) 0%, rgba(6,37,54,.72) 48%, rgba(6,37,54,.96) 100%),
    url("https://images.unsplash.com/photo-1494412574643-ff11b5a2ec91?auto=format&fit=crop&w=2200&q=80") center/cover no-repeat;
  transform: scale(1.04);
  animation: drift 28s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute; inset: auto auto -20% -10%; z-index: -1;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,140,170,.35), transparent 65%);
  animation: pulse 8s ease-in-out infinite;
}
.hero-inner { padding: 7.5rem 0 3.5rem; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 0.95; margin: 0 0 1.1rem;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 600; margin: 0 0 0.85rem; max-width: 18ch;
  color: #fff;
}
.hero-lead {
  max-width: 34rem; color: #c9dde7; font-size: 1.05rem; margin: 0 0 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; padding: 0.9rem 1.25rem;
  font-weight: 700; cursor: pointer; transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.btn-line {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 0.75rem 1.1rem; font-weight: 600; cursor: pointer;
}

section { padding: 4.2rem 0; }
.section-kicker {
  color: var(--accent); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 0.55rem;
}
.section-title {
  font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin: 0 0 0.7rem; letter-spacing: -0.02em; color: #fff;
}
.section-lead { color: var(--mist); max-width: 40rem; margin: 0 0 2rem; }

.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
}
.visual {
  min-height: 360px; border-radius: 22px; overflow: hidden; position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(10,77,104,.2), rgba(6,37,54,.55)),
    url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1400&q=80") center/cover;
}
.visual-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}

.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.service {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  min-height: 100%;
}
.service h3 {
  font-family: var(--display); margin: 0.35rem 0 0.5rem; font-size: 1.2rem; color: #fff;
}
.service p { margin: 0; color: var(--mist); font-size: 0.95rem; }
.service .ico {
  width: 2.4rem; height: 2.4rem; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(240,162,2,.14); color: var(--accent); font-weight: 800;
}

.routes {
  display: grid; gap: 0.7rem;
}
.route {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.route strong { color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.pill-ok { background: rgba(45,184,122,.15); color: #7de0b0; }
.pill-busy { background: rgba(226,163,58,.15); color: #f0c57a; }

.status-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.stat {
  border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
  background: rgba(0,0,0,.18);
}
.stat b { display: block; font-size: 1.45rem; color: #fff; font-family: var(--display); }
.stat span { color: var(--mist); font-size: 0.86rem; }

.faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem;
  background: rgba(255,255,255,.03); margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: #fff; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.65rem 0 0; color: var(--mist); }

.form-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 0.35rem; font-size: 0.86rem; color: var(--mist); }
input, select, textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25); color: #fff; padding: 0.75rem 0.85rem; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(240,162,2,.7); }
textarea { min-height: 110px; resize: vertical; }

.page-hero {
  padding: 4.5rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(10,77,104,.35), rgba(6,37,54,0)),
    radial-gradient(ellipse at top right, rgba(240,162,2,.12), transparent 45%);
}
.page-hero h1 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem; letter-spacing: -0.02em;
}
.breadcrumbs { color: var(--mist); font-size: 0.88rem; margin-bottom: 0.8rem; }
.breadcrumbs a:hover { color: #fff; }

.table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
}
.table th, .table td {
  text-align: left; padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--mist); font-weight: 600; }

footer {
  border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; margin-top: 1rem;
  color: var(--mist); font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.8rem;
}
.footer-grid h4 { margin: 0 0 0.7rem; color: #fff; font-family: var(--display); }
.footer-grid a { display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--line);
}

.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  background: #103247; border: 1px solid rgba(45,184,122,.45); color: #fff;
  padding: 0.9rem 1.05rem; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transform: translateY(120%); opacity: 0; transition: .28s ease; max-width: min(360px, 92vw);
}
.toast.show { transform: translateY(0); opacity: 1; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2, 12, 20, 0.72); z-index: 70;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(480px, 100%); background: #0b2a3c; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.25rem;
}
.modal h3 { margin: 0 0 0.5rem; font-family: var(--display); }
.modal p { color: var(--mist); margin: 0 0 1rem; }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

.calc-result {
  margin-top: 0.9rem; padding: 0.9rem 1rem; border-radius: 12px;
  background: rgba(240,162,2,.1); border: 1px solid rgba(240,162,2,.28);
  display: none;
}
.calc-result.show { display: block; }

@keyframes drift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: .55; transform: translate(0,0); }
  50% { opacity: .9; transform: translate(4%, -3%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .7s ease both; }
.reveal-delay { animation-delay: .15s; }

@media (max-width: 920px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 4vw; right: 4vw; top: 4.2rem;
    background: #0a3144; border: 1px solid var(--line); border-radius: 16px;
    padding: 1rem; gap: 0.75rem;
  }
  .burger { display: inline-grid; place-items: center; }
  .split, .services, .status-board, .form-grid, .footer-grid, .route {
    grid-template-columns: 1fr;
  }
  .hero-inner { padding-top: 5.5rem; }
}
