/* Baltic Marine Crew Solutions — 2026 */
:root {
  --sea: #0e2436;        /* глубокая вода: шапка, форма, подвал */
  --navy: #1f4a6e;       /* цвет логотипа: заголовки, кнопки */
  --fog: #e9eef1;        /* балтийский туман: фон страницы */
  --white: #ffffff;
  --steel: #566b7c;      /* второстепенный текст */
  --line: #cfd8de;
  --signal: #f2b632;     /* сигнальный жёлтый: только главные действия */
  --signal-dark: #d99a12;
  --ink: #12222f;
  --wide: "wdth" 118;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--fog); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-variation-settings: var(--wide); font-weight: 750; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 4px; font: 650 1rem/1 var(--font); font-variation-settings: "wdth" 108; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--signal { background: var(--signal); color: var(--sea); }
.btn--signal:hover { background: var(--signal-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--sea); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--sea); }
.btn--wide { width: 100%; }

/* ---------- верхняя панель ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .2s, box-shadow .2s; }
.topbar.is-solid, .topbar.is-open { background: var(--sea); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: .78rem; line-height: 1.15; font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: .02em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--white); text-decoration: none; font-weight: 500; }
.menu a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.menu__phone { font-variant-numeric: tabular-nums; opacity: .9; }
.menu__cta { min-height: 42px; padding: 0 18px; }
.menu .menu__cta { color: var(--sea); }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 24px; height: 2px; margin: 0 auto; background: var(--white); position: relative; transition: transform .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; } .menu-btn__bars::after { top: 7px; }
.topbar.is-open .menu-btn__bars { background: transparent; }
.topbar.is-open .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--sea); }
  .topbar.is-open .menu { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
  .menu__cta { margin-top: 16px; min-height: 48px; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--sea); isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,36,54,.55) 0%, rgba(14,36,54,.05) 30%, rgba(14,36,54,.25) 55%, rgba(14,36,54,.88) 100%); }
.hero__text { padding-top: 120px; padding-bottom: 168px; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem); max-width: 15ch; font-variation-settings: "wdth" 122; font-weight: 780; text-wrap: balance; }
.hero p { max-width: 46ch; margin: 20px 0 30px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- доска вакансий ---------- */
.board { position: relative; margin-top: -120px; z-index: 2; }
.board__panel { background: var(--white); border-radius: 6px; box-shadow: 0 24px 60px -24px rgba(14,36,54,.45); padding: 28px 16px 24px; border-top: 6px solid var(--signal); }
@media (min-width: 720px) { .board__panel { padding: 40px 40px 32px; } }
.board__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter__btn { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 20px; font: 500 .95rem var(--font); cursor: pointer; }
.filter__btn:hover { border-color: var(--navy); }
.filter__btn.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.vac { display: grid; }
.vac__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .9fr) 108px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vac__row--head { padding: 0 0 10px; border-bottom: 2px solid var(--ink); color: var(--steel); font-size: .85rem; font-weight: 600; }
.vac__row[hidden] { display: none; }
.vac .num { text-align: right; font-variant-numeric: tabular-nums; }
.vac .rank { font-weight: 700; font-variation-settings: "wdth" 112; font-size: 1.08rem; }
.vac .wage { font-weight: 700; font-size: 1.1rem; }
.apply { justify-self: end; min-height: 40px; padding: 0 16px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 4px; font: 650 .95rem var(--font); cursor: pointer; }
.apply:hover { background: var(--navy); color: var(--white); }
.board__foot { margin: 22px 0 0; color: var(--steel); }
.board__foot a { font-weight: 600; }
@media (max-width: 720px) {
  .vac__row--head { display: none; }
  .vac__row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "rank wage apply" "vessel contract apply"; gap: 2px 12px; padding: 12px 0; }
  .vac__row > :nth-child(1) { grid-area: rank; } .vac__row > :nth-child(2) { grid-area: vessel; color: var(--steel); }
  .vac__row > :nth-child(3) { grid-area: wage; } .vac__row > :nth-child(4) { grid-area: contract; color: var(--steel); font-size: .92rem; }
  .vac__row > :nth-child(5) { grid-area: apply; }
  .vac .wage::before { content: "$"; }
  .apply { min-height: 44px; padding: 0 12px; }
}

/* ---------- судовладельцам ---------- */
.owners { padding: 96px 0; }
.owners__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .owners__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.owners .lead { font-size: 1.15rem; max-width: 58ch; margin: 18px 0 32px; }
.services { margin: 0 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.services div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.services dt { font-weight: 700; font-variation-settings: "wdth" 110; color: var(--navy); }
.services dd { margin: 4px 0 0; color: var(--steel); font-size: .97rem; }
.owners__photo { margin: 0; border-radius: 6px; overflow: hidden; background: var(--sea); }
.owners__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 959px) { .owners__photo img { aspect-ratio: 16 / 10; } }

/* ---------- форма и контакты ---------- */
.contact { background: var(--sea); color: var(--white); padding: 88px 0 96px; scroll-margin-top: 40px; }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; } }
.formbox { scroll-margin-top: 88px; }
.formbox h2 { margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.role { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 6px; padding: 4px; border: 0; background: rgba(255,255,255,.08); border-radius: 6px; }
.role label { position: relative; }
.role input { position: absolute; opacity: 0; inset: 0; }
.role span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 8px; border-radius: 4px; font-weight: 600; text-align: center; cursor: pointer; color: rgba(255,255,255,.75); }
.role input:checked + span { background: var(--white); color: var(--sea); }
.role input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field-pair { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.85); }
.req { color: var(--signal); }
.hint { color: rgba(255,255,255,.55); font-weight: 400; margin-left: 6px; }
.field input:not([type=file]), .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(255,255,255,.06); color: var(--white); font: 400 1rem var(--font); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: rgba(255,255,255,.1); }
.field.is-bad input { border-color: #ff8a7a; }
.file input { width: 100%; padding: 10px; border: 1px dashed rgba(255,255,255,.35); border-radius: 4px; color: rgba(255,255,255,.8); font: inherit; font-size: .95rem; }
.file input::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 3px; background: var(--white); color: var(--sea); font: 600 .9rem var(--font); cursor: pointer; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 12px 14px; border-left: 4px solid #ff8a7a; background: rgba(255,138,122,.12); }
.form__note { margin: 0; font-size: .88rem; color: rgba(255,255,255,.6); }
.form button[disabled] { opacity: .7; cursor: wait; }
.form__done { padding: 32px; border-radius: 6px; background: rgba(255,255,255,.08); border-left: 6px solid var(--signal); }
.form__done h3 { font-size: 1.8rem; margin-bottom: 8px; }
.form__done p { margin: 0; }

.office__title { font-size: 1.5rem; margin: 6px 0 20px; }
.office__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.office__list li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.office__list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.office__list a { color: var(--white); }
.map { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255,255,255,.06); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ---------- подвал ---------- */
.footer { background: #0a1b29; color: rgba(255,255,255,.6); padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: 16px; }
.footer img { width: 44px; height: 44px; object-fit: contain; opacity: .8; }
.footer p { margin: 0; }
