@charset "utf-8";

/* ==========================================================================
   UNIPIL — Przedsiębiorstwo Usług Morskich Sp. z o.o.
   Design system for the static site. Self-hosted Inter, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — Inter variable, latin + latin-ext (Polish diacritics). SIL OFL,
   see assets/fonts/Inter-OFL.txt
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Brand — navy sampled from the UNIPIL mark, gold from the heritage band */
  --navy-900: #08152e;
  --navy-800: #0d1f42;
  --navy-700: #142c5c;
  --navy-600: #1d3d7a;
  --navy-500: #2a539c;
  --blue-500: #2a5fc4;
  --blue-400: #4f86e8;
  --blue-100: #dde8fb;
  --gold-600: #a8760f;
  --gold-500: #c8901a;
  --gold-400: #e6b043;

  /* Neutrals */
  --ink:      #131c31;
  --ink-2:    #47536e;
  --ink-3:    #6b7794;
  --line:     #dde4f0;
  --line-2:   #eaeff8;
  --surface:  #ffffff;
  --surface-2:#f5f8fd;
  --surface-3:#eaf0fa;

  --ok:   #0f7a52;
  --warn: #8a5a00;
  --warn-bg: #fdf4e3;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md:   1rem;
  --fs-lg:   clamp(1.05rem, 1rem + 0.25vw, 1.1875rem);
  --fs-xl:   clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem);
  --fs-2xl:  clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --fs-3xl:  clamp(1.8rem, 1.35rem + 2vw, 2.75rem);
  --fs-4xl:  clamp(2.1rem, 1.4rem + 3.1vw, 3.75rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;

  --section-y: clamp(3rem, 1.5rem + 6vw, 6rem);
  --gutter:    clamp(1.1rem, 0.5rem + 2.5vw, 2.5rem);
  --maxw:      1180px;
  --measure:   68ch;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;

  --sh-1: 0 1px 2px rgba(12, 26, 56, 0.06), 0 1px 3px rgba(12, 26, 56, 0.05);
  --sh-2: 0 4px 12px rgba(12, 26, 56, 0.07), 0 2px 4px rgba(12, 26, 56, 0.04);
  --sh-3: 0 14px 38px rgba(9, 22, 50, 0.13), 0 4px 10px rgba(9, 22, 50, 0.06);
  --sh-4: 0 28px 68px rgba(7, 18, 44, 0.24);

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
}

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

a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--navy-800);
  text-wrap: balance;
}

p, ul, ol, dl, table, figure, blockquote { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--blue-100); color: var(--navy-800); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  padding: 0.85rem 1.4rem;
  background: var(--navy-800); color: #fff;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { transform: none; color: #fff; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 3.5rem); }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line-2); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Section heading block */
.sec-head { max-width: 62ch; margin-bottom: var(--s-6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue-500);
}
.eyebrow::before {
  content: ''; width: 18px; height: 2px; border-radius: 2px;
  background: var(--gold-500);
}
.eyebrow--light { color: var(--gold-400); }
.sec-head h2 { font-size: var(--fs-2xl); }
.sec-head p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-lg); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
@supports not (backdrop-filter: blur(4px)) { .header { background: #fff; } }

.header__bar {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; flex: 0 0 auto;
}
.brand__mark { width: auto; height: 38px; }
.brand__text {
  display: none;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
  font-size: 0.6875rem; font-weight: 600; line-height: 1.25;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2);
}
@media (min-width: 560px) { .brand__text { display: block; } }

.header__spacer { flex: 1 1 auto; }

/* Primary navigation — desktop */
.nav { display: none; }
@media (min-width: 1000px) { .nav { display: block; } }

.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-base); font-weight: 550;
  color: var(--ink); text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__link:hover { background: var(--surface-3); color: var(--navy-700); }
.nav__link[aria-current="page"] { color: var(--blue-500); }

.nav__caret {
  width: 9px; height: 9px; flex: none;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
  transition: transform 0.18s var(--ease);
}

.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 232px; padding: 0.4rem;
  list-style: none; margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .nav__caret { transform: translateY(1px) rotate(225deg); }

.nav__panel a {
  display: block; padding: 0.55rem 0.7rem;
  font-size: var(--fs-base); color: var(--ink); text-decoration: none;
  border-radius: var(--r-sm);
}
.nav__panel a:hover { background: var(--surface-2); color: var(--navy-700); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.lang {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.lang:hover { background: var(--surface-2); color: var(--navy-700); }
.lang img { width: 18px; height: auto; border-radius: 2px; }

.header .btn--sm { display: none; }
@media (min-width: 720px) { .header .btn--sm { display: inline-flex; } }

/* Mobile menu button */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: var(--surface-2); color: var(--navy-800);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger:hover { background: var(--surface-3); }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -5.5px; }
.burger span::after  { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: none;
  padding: var(--s-5) var(--gutter) var(--s-8);
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { display: block; }
@media (min-width: 1000px) { .drawer, .drawer.is-open { display: none; } }

.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__group + .drawer__group { border-top: 1px solid var(--line-2); }

.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.95rem 0;
  font-family: inherit; font-size: 1.0625rem; font-weight: 650;
  color: var(--navy-800); text-align: left; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.drawer__top .nav__caret { opacity: 0.5; }
.drawer__group.is-open .drawer__top .nav__caret { transform: translateY(1px) rotate(225deg); }

.drawer__sub { list-style: none; margin: 0 0 0.9rem; padding: 0; display: none; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a {
  display: block; padding: 0.5rem 0 0.5rem 0.95rem;
  font-size: var(--fs-md); color: var(--ink-2); text-decoration: none;
  border-left: 2px solid var(--line);
}
.drawer__sub a:hover { color: var(--blue-500); border-left-color: var(--blue-400); }

.drawer__cta { margin-top: var(--s-5); display: grid; gap: var(--s-3); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit; font-size: var(--fs-base); font-weight: 650; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: transform 0.12s var(--ease), background 0.16s var(--ease),
              box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.5rem 0.85rem; font-size: var(--fs-sm); }
.btn--lg { padding: 0.9rem 1.5rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue-500); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--navy-600); color: #fff; box-shadow: var(--sh-2); }

.btn--gold { background: var(--gold-500); color: #21160a; }
.btn--gold:hover { background: var(--gold-400); color: #21160a; }

.btn--outline { border-color: var(--line); background: var(--surface); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--blue-400); background: var(--surface-2); color: var(--navy-700); }

.btn--onDark { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: #fff; }
.btn--onDark:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); color: #fff; }

.btn__icon { width: 1em; height: 1em; flex: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #eaf0fb;
  background:
    radial-gradient(90rem 40rem at 78% -12%, rgba(79, 134, 232, 0.42), transparent 62%),
    radial-gradient(60rem 34rem at 8% 108%, rgba(200, 144, 26, 0.20), transparent 60%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 72%);
}

/* faint depth-sounding grid */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 62% at 50% 34%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 34%, #000 30%, transparent 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem);
}
@media (min-width: 940px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.032em;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--gold-400), #f2d08a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: var(--s-5);
  max-width: 46ch;
  font-size: var(--fs-lg);
  color: rgba(228, 236, 250, 0.82);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-4);
  border: 1px solid rgba(255,255,255,0.14);
  background: #06101f;
  aspect-ratio: 4 / 3;
}
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 0.85rem;
  font-size: var(--fs-sm); color: rgba(255,255,255,0.9);
  background: linear-gradient(transparent, rgba(4, 12, 28, 0.82));
}

/* Wave divider that closes the navy band — echoes the old masthead lobe */
.wave { display: block; width: 100%; height: clamp(28px, 4vw, 58px); }
.wave path { fill: var(--surface); }
.wave--alt path { fill: var(--surface-2); }

/* Stat strip */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat { padding: var(--s-5) var(--s-4); background: var(--navy-900); text-align: center; }
.stat__num {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 750; letter-spacing: -0.02em; color: var(--gold-400);
}
.stat__label {
  margin-top: 0.2rem;
  font-size: var(--fs-sm); font-weight: 500;
  color: rgba(226, 234, 250, 0.72);
}

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.pagehead {
  position: relative;
  color: #e9f0fb;
  background:
    radial-gradient(64rem 30rem at 82% -30%, rgba(79, 134, 232, 0.36), transparent 64%),
    linear-gradient(165deg, var(--navy-800), var(--navy-900));
}
.pagehead__inner { padding-block: clamp(2.25rem, 1.2rem + 4.5vw, 4rem); }
.pagehead h1 { font-size: var(--fs-3xl); color: #fff; }
.pagehead p {
  margin-top: var(--s-4); max-width: 62ch;
  font-size: var(--fs-lg); color: rgba(224, 233, 248, 0.8);
}
.pagehead__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-5);
}

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  font-size: var(--fs-sm); font-weight: 550;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(236, 242, 252, 0.94);
}
.chip--ink {
  background: var(--surface-3); border-color: transparent; color: var(--navy-700);
}

/* Breadcrumb */
.crumbs { font-size: var(--fs-sm); color: rgba(214, 226, 246, 0.7); margin-bottom: var(--s-4); }
.crumbs a { color: rgba(226, 236, 252, 0.9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { padding: 0 0.45rem; opacity: 0.5; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); font-size: var(--fs-md); color: var(--ink-2); }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.05em; }

.prose h2 { margin-top: 2.2em; font-size: var(--fs-xl); color: var(--navy-800); }
.prose h3 { margin-top: 1.9em; font-size: var(--fs-lg); color: var(--navy-800); }
.prose h4 { margin-top: 1.7em; font-size: var(--fs-md); color: var(--navy-800); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }

.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--blue-400); }
.prose a { font-weight: 550; }

.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }

.lead { font-size: var(--fs-lg); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Numbered legal clauses */
.legal { counter-reset: clause; list-style: none; padding-left: 0; max-width: var(--measure); }
.legal > li {
  counter-increment: clause;
  position: relative;
  padding-left: 3rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
}
.legal > li::before {
  content: counter(clause);
  position: absolute; left: 0; top: -0.1rem;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--navy-700); background: var(--surface-3);
  border-radius: var(--r-sm);
}
/* list-style-type inherits, so nested lists need it restored explicitly */
.legal ol { margin-top: 0.7em; padding-left: 1.3em; list-style: lower-alpha; }
.legal ul { margin-top: 0.7em; padding-left: 1.2em; list-style: disc; }
.legal ol li, .legal ul li { padding-left: 0; margin-top: 0; }
.legal ol li::before, .legal ul li::before { content: none; }
.legal li + li { margin-top: 0.45em; }
.legal ol li::marker, .legal ul li::marker { color: var(--blue-400); }

.formula {
  display: grid; place-items: center;
  margin: 1.2em 0; padding: 1rem 1.25rem;
  font-size: var(--fs-xl); font-weight: 700; letter-spacing: 0.02em;
  color: var(--navy-800);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.card--flat { box-shadow: none; }
.card--pad { padding: clamp(1.25rem, 0.8rem + 1.6vw, 2rem); }

a.card, .card--link {
  display: block; text-decoration: none; color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
a.card:hover, .card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: var(--blue-400);
}

.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: var(--s-4);
  color: var(--blue-500);
  background: var(--blue-100);
  border-radius: var(--r-md);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--fs-lg); }
.card p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-base); }

.card__more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: var(--s-4);
  font-size: var(--fs-base); font-weight: 650; color: var(--blue-500);
}
.card__more svg { width: 14px; height: 14px; transition: transform 0.18s var(--ease); }
a.card:hover .card__more svg { transform: translateX(3px); }

/* Contact / phone cards */
.contact-card {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.contact-card:hover { border-color: var(--blue-400); box-shadow: var(--sh-2); color: inherit; }
.contact-card__ico {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--surface-3); color: var(--navy-700);
}
.contact-card__ico svg { width: 18px; height: 18px; }
.contact-card > span:not(.contact-card__ico) { min-width: 0; }
.contact-card__label {
  display: block;
  font-size: var(--fs-sm); color: var(--ink-3);
}
.contact-card__value {
  display: block;
  font-size: var(--fs-lg); font-weight: 650; color: var(--navy-800);
  letter-spacing: -0.01em; overflow-wrap: anywhere;
}

/* Alert / notice */
.alert {
  display: grid; gap: var(--s-3);
  padding: clamp(1.15rem, 0.8rem + 1.4vw, 1.75rem);
  background: var(--warn-bg);
  border: 1px solid #f0dcb2;
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md);
  color: #4a3a1a;
}
.alert__title {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-md); font-weight: 700; color: #6b4c0d;
}
.alert__title svg { width: 18px; height: 18px; flex: none; }
.alert p { font-size: var(--fs-base); }
.alert a { color: #7a5410; font-weight: 600; }

/* Download list */
.downloads { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.dl {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.dl:hover { border-color: var(--blue-400); box-shadow: var(--sh-2); color: inherit; }
.dl__ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: var(--r-sm); background: #fdeaea; color: #b3261e; }
.dl__ico svg { width: 18px; height: 18px; }
.dl__name { font-weight: 600; color: var(--navy-800); }
.dl__meta { font-size: var(--fs-sm); color: var(--ink-3); }
.dl__arrow { margin-left: auto; color: var(--ink-3); }
.dl__arrow svg { width: 16px; height: 16px; }

/* Figures */
.figure { margin: 0; }
.figure img {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface-2);
}
.figure figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-3); }

.video-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: #06101f;
  box-shadow: var(--sh-2);
}
.video-frame video { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }

caption { padding: var(--s-4) var(--s-4) 0; text-align: left; font-weight: 650; color: var(--navy-800); }

thead th {
  position: sticky; top: 0;
  padding: 0.75rem 0.9rem;
  font-size: var(--fs-sm); font-weight: 650;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-3); text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td, tbody th {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: var(--surface-2); }

.t-num { text-align: right; font-variant-numeric: tabular-nums; }
.t-key { font-weight: 600; color: var(--navy-800); width: 45%; }
.t-strong { font-weight: 650; color: var(--ink); }

/* Vessel spec list */
.specs { list-style: none; padding: 0; margin: 0; }
.specs li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-2);
}
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--ink-2); }
.specs .v { font-weight: 650; color: var(--navy-800); font-variant-numeric: tabular-nums; text-align: right; }
.specs .v small { font-weight: 500; color: var(--ink-3); margin-left: 0.25rem; }

/* Stacked table cards on narrow screens */
@media (max-width: 640px) {
  .t-stack thead { display: none; }
  .t-stack, .t-stack tbody, .t-stack tr, .t-stack td, .t-stack th { display: block; }
  .t-stack tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .t-stack tr:last-child { border-bottom: 0; }
  .t-stack td, .t-stack th {
    display: flex; justify-content: space-between; gap: var(--s-4);
    padding: 0.3rem var(--s-4); border: 0; width: auto !important; text-align: right;
  }
  .t-stack td::before, .t-stack th::before {
    content: attr(data-label);
    flex: none; font-size: var(--fs-sm); font-weight: 600;
    color: var(--ink-3); text-align: left;
  }
  .t-stack td.is-empty { display: none; }
  .t-stack tr:hover td, .t-stack tr:hover th { background: none; }
}

/* --------------------------------------------------------------------------
   Fee calculator
   -------------------------------------------------------------------------- */

.calc {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.calc__head {
  padding: var(--s-5) clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  color: #fff;
}
.calc__head h2 { font-size: var(--fs-xl); color: #fff; }
.calc__head p { margin-top: var(--s-2); font-size: var(--fs-base); color: rgba(219, 230, 249, 0.78); }

.calc__body { padding: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem); }

.field-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.field { display: grid; gap: 0.35rem; }
.field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-800); }
.field input, .field select {
  width: 100%; padding: 0.62rem 0.75rem;
  font-family: inherit; font-size: var(--fs-md); color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder { color: #a6b0c6; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(79, 134, 232, 0.18);
}

.opts { margin-top: var(--s-5); }
.opts__title {
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: var(--s-3);
}
.opts__grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }

.check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  font-size: var(--fs-base); line-height: 1.45; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.check:hover { background: var(--surface-3); }
.check:has(input:checked) { background: var(--blue-100); border-color: var(--blue-400); color: var(--navy-800); }
.check input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0.16rem 0 0; accent-color: var(--blue-500); }
.check b { font-weight: 650; color: var(--navy-700); }

.calc__out {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5); padding: var(--s-5);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--r-md); color: #fff;
}
.calc__out-label { font-size: var(--fs-base); color: rgba(214, 227, 249, 0.82); }
.calc__out-value {
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.35rem);
  font-weight: 750; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.breakdown { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.breakdown li {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: 0.5rem 0;
  font-size: var(--fs-base);
  border-bottom: 1px dashed var(--line);
}
.breakdown li:last-child { border-bottom: 0; }
.breakdown .b-label { color: var(--ink-2); }
.breakdown .b-value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-800); white-space: nowrap; }
.breakdown li.is-minus .b-value { color: var(--ok); }

.calc__error {
  margin-top: var(--s-4); padding: 0.7rem 0.9rem;
  font-size: var(--fs-base); color: #8a2318;
  background: #fdeceb; border-left: 3px solid #d3453a; border-radius: var(--r-sm);
}
.calc__error[hidden] { display: none; }

.calc__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Vessel traffic
   -------------------------------------------------------------------------- */

.ruch__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-5);
}
.ruch__updated { font-size: var(--fs-sm); color: var(--ink-3); }

.ruch__search {
  position: relative; flex: 1 1 220px; max-width: 320px;
}
.ruch__search input {
  width: 100%; padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  font-family: inherit; font-size: var(--fs-base);
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface);
}
.ruch__search input:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(79, 134, 232, 0.16);
}
.ruch__search svg {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-3); pointer-events: none;
}

.day { margin-top: var(--s-6); }
.day:first-of-type { margin-top: 0; }
.day__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.day__title { font-size: var(--fs-lg); color: var(--navy-800); }
.day__count { font-size: var(--fs-sm); color: var(--ink-3); }

.ruch td.name { font-weight: 650; color: var(--navy-800); }
.ruch .code {
  display: inline-block; padding: 0.1rem 0.45rem;
  font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--navy-700); background: var(--surface-3); border-radius: var(--r-sm);
}
.ruch .time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }

.state {
  padding: var(--s-7) var(--s-5);
  text-align: center; color: var(--ink-3);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
.state p + p { margin-top: var(--s-3); }

.legend { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.legend div { display: flex; gap: var(--s-4); font-size: var(--fs-base); }
.legend dt, .legend .k { flex: 0 0 7.5rem; font-weight: 600; color: var(--navy-800); }
.legend dd, .legend .v { margin: 0; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: var(--s-8) var(--s-5);
  color: rgba(214, 226, 246, 0.72);
  background: var(--navy-900);
  font-size: var(--fs-base);
}
.footer__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
/* The mark is solid navy ink, so it needs knocking out to white on the dark
   footer — brightness(0) flattens it to black, invert(1) lifts it to white. */
.footer__brand .brand__mark {
  height: 42px;
  margin-bottom: var(--s-4);
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.footer h2 {
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer a { color: rgba(219, 230, 249, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.75; }
.footer__legal { font-size: var(--fs-sm); color: rgba(178, 193, 221, 0.6); margin-top: var(--s-4); }

.footer__badge {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-top: var(--s-5);
  font-size: var(--fs-sm); line-height: 1.4;
  color: rgba(206, 220, 244, 0.75);
  text-decoration: none;
}
.footer__badge img {
  width: auto; height: 58px; flex: none;
  padding: 5px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.94);
}
a.footer__badge:hover { color: #fff; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7); padding-top: var(--s-5);
  font-size: var(--fs-sm); color: rgba(170, 187, 217, 0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --------------------------------------------------------------------------
   Utilities / motion
   -------------------------------------------------------------------------- */

.body--locked { overflow: hidden; }

@media print {
  .header, .drawer, .footer, .hero__media, .burger, .skip-link { display: none !important; }
  body { color: #000; }
  .pagehead, .hero { background: none !important; color: #000; }
  .pagehead h1, .hero h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
