/* INTER MARINE – site styles
   Palette: navy (hull), chart (sea-chart paper), signal yellow / red / blue (ICS flags), steel. */
@font-face { font-family: "Sofia Sans"; src: url(../fonts/sofia-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  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; }
@font-face { font-family: "Sofia Sans"; src: url(../fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Condensed"; src: url(../fonts/sofia-sans-condensed-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  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; }
@font-face { font-family: "Sofia Sans Condensed"; src: url(../fonts/sofia-sans-condensed-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --navy: #0F2740;
  --navy-2: #173A5E;
  --navy-3: #22496F;
  --chart: #EEF2F4;
  --paper: #FFFFFF;
  --signal: #F2B705;
  --signal-d: #D9A300;
  --red: #C8202F;
  --flag-blue: #1F4E9C;
  --steel: #5B6B7A;
  --line: #CBD5DD;
  --ink: #0F2740;
  --on-navy: #E7EEF4;
  --on-navy-2: #A9BCCD;

  --font: "Sofia Sans", "Segoe UI", Arial, sans-serif;
  --font-cond: "Sofia Sans Condensed", "Arial Narrow", "Sofia Sans", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 4px;

  --step--1: .875rem;
  --step-0: 1.125rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.6rem, 5.8vw, 4.7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--flag-blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-cond); line-height: 1.04; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); font-weight: 760; }
h2 { font-size: var(--step-3); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--navy); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  padding: .7em 1.4em; border-radius: var(--r); border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: var(--step--1); }
.btn-signal { background: var(--signal); color: var(--navy); }
.btn-signal:hover { background: var(--signal-d); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost-light { border-color: rgba(231,238,244,.5); color: var(--on-navy); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; flex: none; }
.brand-mark { display: flex; gap: 3px; flex: none; }
.brand-logo { width: 54px; height: auto; flex: none; }
.chat-logo { width: 34px; height: auto; flex: none; }
.brand-mark .flag { width: 27px; height: 18px; }
.brand-mark.small .flag { width: 21px; height: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: .09em; }
.brand-sub { white-space: nowrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 9px; color: var(--on-navy); text-decoration: none; font-size: .98rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: #fff; border-bottom-color: rgba(242,183,5,.6); }
.site-nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--signal); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(231,238,244,.35);
  border-radius: 50%; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: .85rem;
}
.lang-switch:hover { border-color: #fff; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: #fff; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 24px; gap: 16px; border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 76px); overflow: auto; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--signal); }
  .nav-actions { justify-content: space-between; }
  .brand-sub { display: none; }
}

/* ---------- Signal-flag hoist (signature element) ---------- */
.hoist { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; }
.hoist-flag { display: block; }
.hoist-flag .flag { width: 36px; height: 24px; }
.hoist-gap { width: 14px; }
.hoist-hero { margin-bottom: 30px; position: relative; padding-top: 10px; }
.hoist-hero::before { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 1px; background: rgba(231,238,244,.35); }
.hoist-hero .hoist-flag { position: relative; }
.hoist-hero .hoist-flag::before { content: ""; position: absolute; left: 50%; top: -10px; width: 1px; height: 10px; background: rgba(231,238,244,.35); }
@media (prefers-reduced-motion: no-preference) {
  .hoist-hero .hoist-flag { animation: hoist .55s cubic-bezier(.2,.8,.2,1) both; }
  .hoist-hero .hoist-flag:nth-child(1) { animation-delay: .05s; } .hoist-hero .hoist-flag:nth-child(2) { animation-delay: .1s; }
  .hoist-hero .hoist-flag:nth-child(3) { animation-delay: .15s; } .hoist-hero .hoist-flag:nth-child(4) { animation-delay: .2s; }
  .hoist-hero .hoist-flag:nth-child(5) { animation-delay: .25s; } .hoist-hero .hoist-flag:nth-child(7) { animation-delay: .35s; }
  .hoist-hero .hoist-flag:nth-child(8) { animation-delay: .4s; } .hoist-hero .hoist-flag:nth-child(9) { animation-delay: .45s; }
  .hoist-hero .hoist-flag:nth-child(10) { animation-delay: .5s; } .hoist-hero .hoist-flag:nth-child(11) { animation-delay: .55s; }
  .hoist-hero .hoist-flag:nth-child(12) { animation-delay: .6s; }
}
@keyframes hoist { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
.hoist-footer { margin-bottom: 36px; }
.hoist-footer .flag { width: 30px; height: 20px; }

/* ---------- Hero ---------- */
.hero, .page-banner {
  position: relative; background-color: var(--navy); color: var(--on-navy); overflow: hidden;
  background-image:
    linear-gradient(rgba(231,238,244,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,238,244,.045) 1px, transparent 1px);
  background-size: 96px 96px;
}
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 12vw, 150px); }
.hero h1, .page-banner h1 { color: #fff; max-width: 18ch; }
.hero .lead, .page-banner .lead, .section-navy .lead { font-size: var(--step-1); color: var(--on-navy); max-width: 54ch; line-height: 1.5; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-coords { margin-top: 40px; font-size: .8rem; color: var(--on-navy-2); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hero-sea { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; }
.hero-sea svg { width: 100%; height: 100%; }
.swell.s1 { fill: var(--navy-2); }
/* Photos (optional, uploaded from admin) */
.hero.has-photo, .page-banner.has-photo {
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(15,39,64,.95) 0%, rgba(15,39,64,.82) 42%, rgba(15,39,64,.45) 100%),
    linear-gradient(0deg, rgba(15,39,64,.7) 0%, rgba(15,39,64,0) 40%),
    var(--photo);
  background-size: cover; background-position: center;
}
.hero.has-photo .hero-ship, .hero.has-photo .hero-port { display: none; }
.hero.has-photo { padding-bottom: clamp(140px, 12vw, 190px); }
.photo-band {
  position: relative; min-height: clamp(300px, 46vw, 560px); display: flex; align-items: flex-end;
  background: linear-gradient(0deg, rgba(15,39,64,.85) 0%, rgba(15,39,64,0) 55%), var(--photo) center / cover no-repeat var(--navy);
  color: #fff; padding: 0 0 clamp(28px, 4vw, 52px);
}
.photo-band .wrap { width: 100%; }
.photo-band p { font-family: var(--font-cond); font-size: var(--step-2); font-weight: 700; line-height: 1.15; max-width: 26ch; margin: 0; padding-left: 16px; border-left: 4px solid var(--signal); }
@media (max-width: 960px) {
  .hero.has-photo, .page-banner.has-photo { background-image: linear-gradient(rgba(15,39,64,.86), rgba(15,39,64,.86)), var(--photo); }
}

/* Maritime banner: tanker on the swell, Burgas cranes on the horizon */
.hero { padding-bottom: clamp(190px, 20vw, 290px); }
.hero-sea { height: clamp(110px, 11vw, 160px); z-index: 2; }
.hero-ship { position: absolute; z-index: 1; left: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter) - 28px)); bottom: 45px; width: min(600px, 62vw); pointer-events: none; }
.hero-ship svg, .hero-port svg { width: 100%; height: auto; overflow: visible; }
.hero-port { position: absolute; z-index: 0; right: 0; bottom: clamp(48px, 5vw, 76px); width: min(420px, 40vw); opacity: .55; }
.port { fill: var(--navy-3); }
.ship .hull { fill: #2D5E8C; }
.ship .boot { fill: var(--red); }
.ship .fc { fill: #2D5E8C; }
.ship .deckline { stroke: rgba(231,238,244,.55); stroke-width: 1.5; fill: none; }
.ship .pipe { stroke: #8FA9C0; stroke-width: 2.5; fill: none; }
.ship .rig, .ship .rig path { stroke: #C9D6E2; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.ship .house { fill: #EEF2F4; }
.ship .glass, .ship .glass rect { fill: var(--navy); }
.ship .funnel { fill: #EEF2F4; }
.ship .band { fill: var(--signal); }
.ship .cap { fill: var(--navy); }
.ship .boat { fill: #E8742E; }
.ship .name { fill: rgba(231,238,244,.8); font: 700 9px/1 var(--font); letter-spacing: .14em; }
@media (prefers-reduced-motion: no-preference) {
  .ship { animation: ride 7s ease-in-out infinite; transform-origin: 340px 128px; transform-box: view-box; }
  .wake { animation: ride 7s ease-in-out infinite; transform-box: view-box; }
  .gulls { animation: glide 11s ease-in-out infinite; transform-box: view-box; }
}
@keyframes ride { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2.5px) rotate(-.35deg); } }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 5px); } }
@media (max-width: 960px) {
  .hero-ship { width: min(520px, 88vw); bottom: 46px; }
  .hero-port { width: 46vw; opacity: .4; }
}

.swell.s2 { fill: var(--chart); }

/* Crew board */
.board { background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(0,0,0,.55); overflow: hidden; }
.board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px 12px; border-top: 6px solid var(--signal); }
.board-top h2 { font-size: 1.7rem; margin: 0; }
.board-count { font-size: var(--step--1); color: var(--steel); white-space: nowrap; }
.board-note { padding: 0 24px; font-size: .92rem; color: var(--steel); margin: 0 0 8px; }
.board-body { padding: 4px 24px 8px; }
.board-fleet h3 { font-size: .86rem; color: var(--red); margin: 16px 0 4px; font-weight: 700; }
.board-fleet ul { list-style: none; margin: 0; padding: 0; }
.board-fleet a {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.board-fleet li:last-child a { border-bottom: 0; }
.board-fleet a:hover .rank { color: var(--flag-blue); text-decoration: underline; }
.rank { font-weight: 650; }
.qty { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.join { font-size: .85rem; color: var(--steel); }
.board-all { display: block; padding: 14px 24px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.board-all:hover { background: var(--navy-3); color: #fff; }

/* Facts */
.facts { background: var(--chart); padding: 8px 0 40px; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact { border-left: 3px solid var(--navy); padding: 4px 0 4px 18px; }
.fact-big { font-family: var(--font-cond); font-size: var(--step-2); font-weight: 760; margin: 0; line-height: 1.1; }
.fact-small { margin: 4px 0 0; color: var(--steel); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.lead-dark { font-size: var(--step-1); color: var(--steel); max-width: 56ch; line-height: 1.5; }
.section-chart {
  background-color: var(--chart);
  background-image: linear-gradient(rgba(15,39,64,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,39,64,.05) 1px, transparent 1px);
  background-size: 96px 96px;
}
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { grid-template-columns: 1.4fr 1fr; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin: 0; }
.services-1 { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.service { border-top: 2px solid var(--navy); padding-top: 16px; }
.service dt { font-family: var(--font-cond); font-weight: 700; font-size: var(--step-1); margin-bottom: 8px; line-height: 1.25; }
.service dd { margin: 0; color: var(--steel); }

.steps { list-style: none; margin: 32px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 72px; }
.step-n { font-family: var(--font-cond); position: absolute; top: 0; left: 0; font-size: 3.6rem; font-weight: 800; line-height: 1; color: var(--navy); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 52px; right: -16px; border-top: 2px dashed var(--line); }
.step p { color: var(--steel); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid rgba(231,238,244,.15); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 12px; background: linear-gradient(var(--signal) 0 0) 0 0 / 100% 100%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.ticks-dark li { border-bottom-color: var(--line); }
.ticks-big li { font-size: var(--step-1); font-weight: 600; }

/* ---------- Inner pages ---------- */
.page-banner { padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); }
.page-banner h1 { max-width: 20ch; }
.page-banner .btn { margin-top: 20px; margin-right: 8px; }
.banner-note { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--signal); color: #fff; max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.plate { background: var(--chart); padding: 28px; border-radius: var(--r); border-top: 6px solid var(--navy); }
.plate h2 { font-size: var(--step-2); }
.plate h3 { margin-top: 24px; }
.plate-no { font-family: var(--font-cond); font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }

.crewlist { margin-bottom: 48px; }
.crewlist h2 { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 0; }
.crewlist table { width: 100%; border-collapse: collapse; }
.crewlist th, .crewlist td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.crewlist thead th { font-size: .85rem; color: var(--steel); font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
.crewlist tbody th { font-weight: 700; font-size: 1.08rem; }
.crewlist td { color: var(--steel); }
.td-act { text-align: right !important; padding-right: 0 !important; width: 1%; white-space: nowrap; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px; background: var(--chart); border-radius: var(--r); }
.callout p { margin: 0; }
.empty { font-size: var(--step-1); color: var(--steel); }
@media (max-width: 720px) {
  .crewlist thead { display: none; }
  .crewlist tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .crewlist th, .crewlist td { border: 0; padding: 2px 0; }
  .crewlist tbody th { grid-column: 1 / -1; }
  .td-act { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
}

.training { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.training-nav { position: sticky; top: 100px; }
.training-nav ul { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--line); }
.training-nav a { display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; margin-left: -2px; border-left: 2px solid transparent; }
.training-nav a:hover { border-left-color: var(--signal); }
.course-group { margin-bottom: 44px; scroll-margin-top: 100px; }
.course-group h2 { font-size: var(--step-2); }
.course { border-bottom: 1px solid var(--line); }
.course:first-of-type { border-top: 2px solid var(--navy); }
.course summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 650; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--steel); }
.course[open] summary::after { content: "−"; }
.course-t { flex: 1; }
.course-d { color: var(--steel); font-weight: 400; font-size: .92rem; white-space: nowrap; }
.course p { color: var(--steel); max-width: 64ch; padding-bottom: 8px; }
.fine { font-size: .92rem; color: var(--steel); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 860px; }
.form { display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 11px 13px; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242,183,5,.55); outline-offset: 0; }
.field.file input { padding: 9px; background: var(--chart); }
.field-short { max-width: 320px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--steel); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .95rem; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.notice { padding: 16px 20px; border-radius: var(--r); margin-bottom: 20px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice p { margin: 0; }
.notice-error { background: #FBEAEC; border-left: 4px solid var(--red); }
.notice-ok { background: #E8F3EC; border-left: 4px solid #2F7D4F; font-size: var(--step-1); }
.form-title { font-size: var(--step-2); }

.split-contact { grid-template-columns: 1fr 1.1fr; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ci h2 { font-size: .95rem; color: var(--steel); font-weight: 600; margin-bottom: 6px; }
.big-links a { display: block; font-size: var(--step-1); font-weight: 700; color: var(--ink); text-decoration: none; }
.big-links a:hover { color: var(--flag-blue); text-decoration: underline; }
.map { grid-column: 1 / -1; }
.map iframe { width: 100%; height: 300px; border: 0; border-radius: var(--r); display: block; filter: saturate(.85); }
.map a { display: inline-block; margin-top: 8px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: var(--font-cond); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .03em; }
.footer-about { max-width: 34ch; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-base span { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-launch {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: var(--signal); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(15,39,64,.5);
}
.chat-launch svg { width: 22px; height: 22px; }
.chat-launch[aria-expanded="true"] { display: none; }
.chat-panel {
  width: min(370px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(15,39,64,.55);
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat-head > div { flex: 1; }
.chat-title { margin: 0; font-weight: 800; letter-spacing: .03em; }
.chat-sub { margin: 0; font-size: .8rem; color: var(--on-navy-2); line-height: 1.35; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; width: 36px; height: 36px; cursor: pointer; }
.chat-log { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; flex: 1; background: var(--chart); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: .95rem; line-height: 1.45; }
.msg-bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg a { display: inline-block; margin-top: 6px; font-weight: 700; }
.chat-options { padding: 12px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.chat-options button {
  font: inherit; font-size: .88rem; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: #fff; color: var(--navy); cursor: pointer; text-align: left;
}
.chat-options button:hover { background: var(--navy); color: #fff; }
.chat-options .human { background: var(--signal); border-color: var(--signal); }

/* ---------- Cookie bar ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 55; max-width: 440px; background: #fff; color: var(--ink);
  padding: 18px 20px; border-radius: 8px; box-shadow: 0 18px 40px -12px rgba(15,39,64,.45); border-top: 4px solid var(--signal);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: .92rem; margin-bottom: 12px; }
.cookie div { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .split-wide, .split-contact, .training { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .training-nav { position: static; }
  .training-nav ul { display: flex; flex-wrap: wrap; border: 0; gap: 6px; }
  .training-nav a { border: 1.5px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 12px; }
}
@media (max-width: 640px) {
  .facts-row, .services, .services-1, .steps, .grid2, .contact-info, .footer-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .hoist-flag .flag { width: 25px; height: 17px; }
  .hoist { gap: 3px; } .hoist-gap { width: 8px; }
  .hoist-footer .flag { width: 22px; height: 15px; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 0 15px; }
  .cookie { left: 12px; right: 12px; bottom: 84px; }
  .board-body { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
