/* ITS Marine Hub — public site. ITS charcoal + gold, light sea-sand background. */
:root { --g: #C9AC44; --g2: #8a6f1e; --gl: #f6f1e1; --ch: #161616; --ink: #1d1d1d; --mut: #6f6a5c; --line: #e9e4d6; --bg: #f7f5ef; --sea: #0f3b4c; --sea2: #1d6d84; --ok: #22744a; --bad: #b23a2c; --r: 18px; --sh: 0 1px 2px rgba(30,25,10,.04), 0 10px 30px rgba(30,25,10,.07); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--g2); }
img { max-width: 100%; }
.mh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mut); } .small { font-size: .84rem; } .pre { white-space: pre-wrap; }
.hp { position: absolute; left: -9999px; }

/* header */
.mh-top { position: sticky; top: 0; z-index: 30; background: rgba(20,20,20,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201,172,68,.25); }
.mh-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mh-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; } .mh-brand img { height: 42px; }
.mh-brand span { color: #e5d394; font-weight: 800; letter-spacing: .02em; border-left: 1px solid rgba(229,211,148,.35); padding-left: .7rem; font-size: 1.05rem; }
.mh-nav { display: flex; align-items: center; gap: .3rem; }
.mh-nav a { color: #e9e3cf; text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.mh-nav a:hover, .mh-nav a.on { background: rgba(255,255,255,.08); color: #fff; }
.mh-nav .mh-pill { background: linear-gradient(90deg, #8a6f1e, #C9AC44); color: #fff; font-weight: 700; margin-left: .3rem; }
.mh-nav .mh-ghost { border: 1px solid rgba(255,255,255,.2); }
.mh-burger { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; border-radius: 10px; padding: .3rem .7rem; }

/* buttons */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.2rem; border-radius: 12px; border: 0; background: linear-gradient(90deg, #8a6f1e, #C9AC44); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(138,111,30,.25); }
.mh-btn:hover { filter: brightness(1.05); } .mh-btn-dark { background: var(--ch); box-shadow: none; } .mh-btn-sm { padding: .45rem .75rem; font-size: .82rem; border-radius: 9px; box-shadow: none; }
.mh-btn-ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: none; }
.mh-btn-ghost-l { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.mh-flash { margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; background: var(--gl); color: #5a4a14; } .mh-flash-ok { background: #e3f3e9; color: var(--ok); } .mh-flash-warn { background: #fde9e4; color: var(--bad); }

/* hero */
.mh-hero { position: relative; color: #fff; overflow: hidden; padding: 84px 0 120px;
  background: radial-gradient(circle at 85% 10%, rgba(201,172,68,.38), transparent 40%), radial-gradient(circle at 10% 90%, rgba(29,109,132,.55), transparent 45%), linear-gradient(135deg, #0d1f27, #12303c 45%, #1b1b1b); }
.mh-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.mh-hero-in { position: relative; }
.mh-kicker { margin: 0 0 .6rem; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--g); }
.mh-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; } .mh-hero h1 span { color: #e5d394; }
.mh-lead { max-width: 620px; font-size: 1.12rem; color: #d7e2e6; margin: 1.1rem 0 1.6rem; }
.mh-search { display: flex; gap: .5rem; max-width: 640px; background: #fff; padding: 6px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.mh-search input { flex: 1; border: 0; font: inherit; font-size: 1rem; padding: .7rem .9rem; outline: none; min-width: 0; background: transparent; }
.mh-search button { border: 0; border-radius: 12px; padding: 0 1.3rem; font: inherit; font-weight: 700; background: var(--ch); color: #e5d394; cursor: pointer; }
.mh-stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; } .mh-stats b { display: block; font-size: 1.8rem; color: #fff; letter-spacing: -.02em; } .mh-stats span { color: #a9bcc3; font-size: .85rem; }
.mh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.mh-band { background: linear-gradient(135deg, #0d1f27, #12303c 55%, #1b1b1b); color: #fff; padding: 52px 0 46px; }
.mh-band h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; } .mh-band p { color: #cfdbe0; max-width: 680px; margin: 0 0 1rem; }

/* sections */
.mh-sec { padding: 34px 20px; } .mh-sec.narrow { max-width: 760px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; } .sec-h h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; } .sec-h a { font-weight: 600; text-decoration: none; }
.mh-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: -70px; position: relative; z-index: 2; }
.door { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem; background: #fff; border-radius: var(--r); box-shadow: var(--sh); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.door:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,25,10,.12); }
.door-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--gl); color: var(--g2); }
.door b { font-size: 1.08rem; line-height: 1.25; } .door p { margin: 0; color: var(--mut); font-size: .92rem; flex: 1; } .door em { font-style: normal; font-weight: 700; color: var(--g2); }
.door-gold { background: linear-gradient(135deg, #8a6f1e, #C9AC44); color: #fff; border: 0; } .door-gold p, .door-gold em { color: #fff8e0; } .door-gold .door-ic { background: rgba(255,255,255,.18); color: #fff; }
.door-dark { background: var(--ch); color: #fff; border: 0; } .door-dark p { color: #bdb59c; } .door-dark em { color: #e5d394; } .door-dark .door-ic { background: rgba(229,211,148,.12); color: #e5d394; }

/* crew cards */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.cv-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); text-decoration: none; color: var(--ink); transition: transform .15s; }
.cv-card:hover { transform: translateY(-3px); border-color: #e2d6ad; }
.cv-top { display: flex; gap: .8rem; align-items: center; } .cv-top > div { display: flex; flex-direction: column; min-width: 0; } .cv-top small { color: var(--mut); font-size: .82rem; }
.cv-ph { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; flex: none; }
.cv-in { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #12303c, #1d6d84); font-size: 1.1rem; }
.cv-tags { display: flex; flex-wrap: wrap; gap: .3rem; } .cv-tags span { font-size: .74rem; font-weight: 600; padding: .18rem .55rem; border-radius: 7px; background: #f2efe6; color: #5d574a; }
.cv-tags.big span { font-size: .85rem; padding: .3rem .7rem; }
.av-st { align-self: flex-start; font-size: .76rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; }
.av-now { background: #e3f3e9; color: var(--ok); } .av-soon { background: var(--gl); color: var(--g2); } .av-emp { background: #eef1f4; color: #4d5866; }
.ok-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sea2); color: #fff; font-size: .7rem; vertical-align: middle; }

/* suppliers & products */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.sp-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.sp-card:hover { border-color: #e2d6ad; } .sp-card p { margin: 0; color: var(--mut); font-size: .9rem; flex: 1; }
.sp-top { display: flex; gap: .8rem; align-items: center; } .sp-top img, .sp-in { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.sp-in { display: grid; place-items: center; font-weight: 800; background: var(--ch); color: #e5d394; border: 0; }
.sp-top > div { flex: 1; display: flex; flex-direction: column; } .sp-top small { color: var(--mut); }
.sp-feat { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--g2); background: var(--gl); padding: .2rem .5rem; border-radius: 6px; }
.sp-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px dashed var(--line); padding-top: .6rem; font-size: .85rem; font-weight: 600; }
.code-chip { display: inline-block; font-size: .74rem; font-weight: 800; padding: .25rem .6rem; border-radius: 8px; background: var(--ch); color: #e5d394; letter-spacing: .02em; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pr-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.pr-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f3efe4, #e9e3d1); display: grid; place-items: center; } .pr-img img { width: 100%; height: 100%; object-fit: cover; } .pr-img span { font-size: 2.4rem; color: #c8bd98; }
.pr-body { padding: .9rem 1rem .4rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; } .pr-body b { line-height: 1.3; } .pr-sup { color: var(--g2); font-weight: 600; font-size: .78rem; }
.pr-price { font-weight: 800; font-size: 1.05rem; margin-top: .3rem; }
.pr-acts { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem 1rem 1rem; }
.pr-card .code-chip { position: absolute; top: 10px; right: 10px; }
.sup-band { padding: 40px 0; } .sup-head { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; } .sup-head > div:nth-child(2) { flex: 1; min-width: 260px; }
.sup-logo { width: 96px; height: 96px; border-radius: 24px; background: #fff; object-fit: contain; padding: 8px; display: grid; place-items: center; font-size: 1.6rem; }
.sup-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.code-big { text-align: center; padding: 1rem 1.4rem; border-radius: 18px; border: 1px dashed rgba(229,211,148,.6); background: rgba(255,255,255,.05); }
.code-big small { display: block; color: #cfdbe0; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; } .code-big b { display: block; font-size: 2.4rem; color: #e5d394; letter-spacing: .06em; } .code-big span { font-size: .82rem; color: #cfdbe0; }
.sup-desc { max-width: 820px; color: #3a362d; font-size: 1.02rem; }
.code-band, .req-band { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: 2rem; border-radius: 24px; }
.code-band { background: var(--ch); color: #fff; } .code-band h2 { margin: 0 0 .4rem; font-size: 1.8rem; } .code-band h2 span { color: #e5d394; } .code-band p { color: #bdb59c; max-width: 640px; margin: 0; }
.req-band { background: linear-gradient(135deg, #f6f1e1, #ecdfb4); flex-direction: column; align-items: flex-start; } .req-band h2 { margin: 0; } .req-band p { margin: 0; max-width: 640px; color: #5a4a14; }

/* academy */
.co-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.course { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.course small { color: var(--mut); } .course em { font-style: normal; font-weight: 800; color: var(--g2); margin-top: .3rem; }
.course-cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sea2); }
.course-list { display: grid; gap: 1rem; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.4rem; padding: 1.4rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); }
.course-row h2 { margin: .2rem 0; font-size: 1.3rem; } .cr-side { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; } .cr-price { font-size: 1.5rem; letter-spacing: -.02em; }
.cr-side summary { list-style: none; } .cr-side summary::-webkit-details-marker { display: none; }

/* profile */
.prof { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.prof-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); }
.prof-ph { width: 128px; height: 128px; border-radius: 30px; object-fit: cover; font-size: 2.2rem; }
.prof-side h1 { margin: .3rem 0 0; font-size: 1.6rem; letter-spacing: -.02em; } .prof-rank { margin: 0; color: var(--g2); font-weight: 700; }
.facts { margin: 0; display: grid; gap: .45rem; } .facts div { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px solid #f1ede2; padding-bottom: .35rem; } .facts dt { color: var(--mut); font-size: .85rem; } .facts dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }
.prof-contact { display: flex; gap: .4rem; flex-wrap: wrap; } .prof-main { display: grid; gap: 1rem; }
.card-m { background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); padding: 1.4rem; margin-bottom: 1rem; } .card-m h2 { margin: 0 0 .7rem; font-size: 1.15rem; }
.card-m > summary { cursor: pointer; font-weight: 600; }
.lic { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; } .lic li { color: #2d4a2f; }

/* forms */
.mform { display: grid; gap: .8rem; } .mform label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.mform input, .mform select, .mform textarea, .filters input, .filters select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #ddd5bf; border-radius: 11px; background: #fff; font-weight: 400; }
.mform input:focus, .mform select:focus, .mform textarea:focus { outline: 2px solid #C9AC4466; border-color: var(--g); }
.mform label.chk, label.chk { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; } label.chk input { width: auto; margin-top: .25rem; }
.two-m { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.tick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .8rem; }
.kind-pick { display: flex; flex-wrap: wrap; gap: .4rem; } .kind-pick label { display: block; } .kind-pick input { display: none; }
.kind-pick span { display: inline-block; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.kind-pick input:checked + span { background: var(--ch); color: #e5d394; border-color: var(--ch); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; } .filters input { flex: 1; min-width: 220px; } .filters select { width: auto; } .filters button { padding: 0 1.2rem; border: 0; border-radius: 11px; background: var(--ch); color: #e5d394; font: inherit; font-weight: 700; cursor: pointer; } .filters .chk { align-items: center; font-size: .9rem; }
.chips-m { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; } .chips-m a { padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 500; } .chips-m a.on { background: var(--ch); color: #e5d394; border-color: var(--ch); }
.empty-m { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--r); border: 1px dashed #ddd5bf; } .empty-m b { font-size: 1.1rem; }
.pager { display: flex; gap: .3rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; } .pager a { padding: .4rem .75rem; border-radius: 9px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); } .pager a.on { background: var(--ch); color: #e5d394; }

/* my profile */
.me-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; } .me-head h1 { margin: 0; font-size: 2rem; } .me-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.st-m { font-weight: 700; } .st-approved { color: var(--ok); } .st-pending { color: var(--g2); } .st-hidden { color: var(--bad); }
.meter { height: 10px; border-radius: 10px; background: #ece6d4; overflow: hidden; margin: 1rem 0 .3rem; } .meter span { display: block; height: 100%; background: linear-gradient(90deg, #8a6f1e, #C9AC44); border-radius: 10px; }
.msg-m { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #f1ede2; } .msg-m.unread { border-left: 3px solid var(--g); padding-left: .8rem; } .msg-m p { margin: .3rem 0; }
.drop { display: block; padding: .8rem; border: 1px dashed #d8cfb2; border-radius: 11px; background: #fbf9f3; cursor: pointer; font-weight: 500; font-size: .88rem; color: var(--mut); } .drop input { display: none; } .drop.has { border-color: var(--ok); color: var(--ok); }

/* footer */
.mh-foot { background: var(--ch); color: #bdb59c; margin-top: 3rem; padding: 2.6rem 0 1.4rem; font-size: .9rem; }
.mh-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.6rem; } .mh-foot-grid > div { display: flex; flex-direction: column; gap: .4rem; } .mh-foot b { color: #fff; } .mh-foot a { color: #e5d394; text-decoration: none; } .mh-foot .mh-staff { color: #8c8573; font-size: .82rem; margin-top: .4rem; }
.mh-copy { border-top: 1px solid #2c2c2c; margin-top: 1.6rem; padding-top: 1rem; font-size: .78rem; color: #8c8573; }

@media (max-width: 960px) {
  .mh-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .co-grid3 { grid-template-columns: 1fr; } .prof { grid-template-columns: 1fr; } .prof-side { position: static; }
  .course-row { grid-template-columns: 1fr; } .mh-foot-grid { grid-template-columns: 1fr 1fr; }
  .mh-burger { display: block; } .mh-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #141414; padding: .8rem; border-bottom: 1px solid #2c2c2c; }
  body.nav-open .mh-nav { display: flex; } .mh-nav a { padding: .8rem 1rem; } .mh-nav .mh-pill { margin: .3rem 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .mh-doors { grid-template-columns: 1fr; margin-top: -60px; } .two-m { grid-template-columns: 1fr; } .mh-stats { gap: 1.2rem; } .mh-stats b { font-size: 1.4rem; } .mh-hero { padding: 54px 0 110px; }
  .mh-brand span { display: none; } .mh-foot-grid { grid-template-columns: 1fr; } .code-big { width: 100%; }
}
.pr-catl .pr-img { aspect-ratio: auto; height: 58px; background: linear-gradient(135deg, #12303c, #1d6d84); } .pr-catl .pr-img span { font-size: 1.4rem; color: #fff; }
.pr-catl .code-chip { top: 14px; }
/* product families: one card, models in a dropdown */
.pr-varl { display: block; margin: .45rem 0 .3rem; } .pr-varl span { display: block; font-size: .74rem; font-weight: 600; color: #8a6d14; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.pr-var { width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf6; font: inherit; font-size: .9rem; }
.pr-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: .2rem; }
.pr-img { overflow: hidden; } .pr-img img { aspect-ratio: 4 / 3; display: block; }
.pr-img img[src^="/marine-img/"] { object-fit: contain; background: #fff; padding: 6px; }
.pr-loading .pr-img img { opacity: .5; transition: opacity .2s; }
