/* Theme "Horizon" (22.11.2026): big confident type, air, soft cards, light and dark.
   Also the layout base of Marine and Carbon: they load this file and change only the tokens below.
   System fonts only. Dark mode: [data-theme=dark] (the ◐ button, stored in localStorage) or the phone's setting.
   Contrast (light): text 16:1, muted 6:1, white on --accent 5.2:1, links 6.9:1. Dark: text 14:1, muted 7:1. */
:root {
  --navy: #0b3d63;
  --navy-dark: #062843;
  --accent: #c2410c;
  --accent-hi: #f76707;
  --on-accent: #ffffff;
  --btn-glow: rgba(194, 65, 12, .9);
  --hero-glow: color-mix(in srgb, #1b6fd1 18%, transparent);
  --focus: color-mix(in srgb, #1b6fd1 60%, transparent);
  --logo-tile: linear-gradient(140deg, #0b3d63, #1b6fd1);
  --footer-bg: radial-gradient(120% 140% at 0% 0%, #12406f 0%, #0a2540 55%, #061829 100%);
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #0d1b2a;
  --heading: #0a2540;
  --muted: #536476;
  --border: #e1e8f0;
  --link: #0b5cad;
  --chip: #e8f0fa;
  --chip-text: #1d4f8a;
  --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 12px 32px -20px rgba(11, 45, 90, .35);
  --shadow-hi: 0 2px 4px rgba(13, 27, 42, .06), 0 22px 44px -22px rgba(11, 45, 90, .5);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --logo-word: var(--accent-hi); /* orange text on the night background: 3.6:1 is too low, the lighter orange is 6:1 */
  --bg: #0a121d;
  --surface: #101b29;
  --surface-2: #162436;
  --text: #e3ebf4;
  --heading: #f3f7fc;
  --muted: #9cb0c5;
  --border: #213349;
  --link: #8cbcff;
  --chip: #18304d;
  --chip-text: #b9d4f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -18px rgba(0, 0, 0, .7);
  --shadow-hi: 0 2px 4px rgba(0, 0, 0, .5), 0 22px 44px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-word: var(--accent-hi);
    --bg: #0a121d; --surface: #101b29; --surface-2: #162436; --text: #e3ebf4; --heading: #f3f7fc; --muted: #9cb0c5;
    --border: #213349; --link: #8cbcff; --chip: #18304d; --chip-text: #b9d4f7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -18px rgba(0, 0, 0, .7);
    --shadow-hi: 0 2px 4px rgba(0, 0, 0, .5), 0 22px 44px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

body { font-size: 1.0625rem; line-height: 1.6; background: var(--bg); color: var(--text); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
h1, h2, h3, .section h2, .page-head h1 { color: var(--heading); letter-spacing: -.02em; }
h1 { font-weight: 850; }
h2 { font-weight: 800; }
.lead { color: var(--muted); }

/* Top strip and header: quiet strip, glass header that stays on top */
.topbar { background: var(--navy-dark); color: #cfe0f2; font-size: .8rem; letter-spacing: .02em; }
.topbar a { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); color: var(--text); }
.site-header .topbar { position: static; }
.header-inner { min-height: 66px; }
.logo, .logo:hover { color: var(--heading); font-weight: 800; letter-spacing: -.01em; }
.logo strong { color: var(--logo-word, var(--accent)); font-weight: 850; }
.logo-mark { width: 36px; height: 36px; padding: 7px; border-radius: 11px; color: #fff; background: var(--logo-tile); box-shadow: 0 6px 16px -8px var(--btn-glow); }
.site-nav a { color: var(--muted); font-weight: 650; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--heading); background: var(--surface-2); }
.lang-switch a { color: var(--muted); background: var(--surface-2); border-radius: 8px; font-size: .75rem; }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--navy); }
.icon-btn { border-color: var(--border); color: var(--muted); background: var(--surface); }
.icon-btn:hover { color: var(--heading); border-color: var(--muted); }

/* Buttons */
.btn { border-radius: 12px; font-weight: 750; padding: 12px 20px; box-shadow: 0 10px 22px -14px var(--btn-glow); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px var(--btn-glow); }
.btn-small { padding: 7px 14px; border-radius: 10px; box-shadow: none; }
.btn-outline { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px var(--border); }
.btn-outline:hover { color: var(--heading); box-shadow: inset 0 0 0 2px var(--muted); }
/* The hero is light here: "light" buttons made for a dark hero would vanish (white on white). */
.hero .btn-light, .hero .btn-light:hover { background: var(--accent); color: var(--on-accent); }
.hero .btn-outline-light, .hero .btn-outline-light:hover { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px var(--border); }
.hero .btn-outline-light:hover { box-shadow: inset 0 0 0 2px var(--muted); }

/* Hero: huge headline, search as a floating card, big counters */
.hero { position: relative; overflow: hidden; color: var(--text); padding: 56px 0 48px;
  background: radial-gradient(60% 80% at 85% 10%, var(--hero-glow) 0%, transparent 60%),
              linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.02; font-weight: 880; letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; color: var(--heading); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 40em; color: var(--muted); opacity: 1; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-hi); }
.filters label, .filters .field > span { color: var(--muted); }
.filters input, .filters select { border-radius: 12px; background: var(--surface-2); border-color: var(--border); color: var(--text); }
.hero-cta { margin-top: 18px; }
.hero-stats { gap: 10px 34px; margin-top: 26px; opacity: 1; font-size: .9rem; color: var(--muted); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 850; line-height: 1.05; color: var(--heading); letter-spacing: -.02em; }

/* Sections */
.section { padding: 44px 0; }
.section h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.section-alt { background: var(--surface); border-color: var(--border); }
.section-head a { font-weight: 650; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }

/* Cards: soft, lifted, one family for everything */
.job-card, .door, .feature, .company-grid a, .auth-card, .cabinet-card, .check-card, .guide-card, .job-apply, .join-box, .notice-box, .pricing-card, .company-list > li, .report-facts p, .tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
}
.job-card { padding: 18px 20px; transition: transform .15s, box-shadow .15s; }
.job-card:hover, .company-grid a:hover, .door:hover, .guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.job-card-title { font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
.job-card-title a { color: var(--heading); text-decoration: none; }
.job-card-title a:hover { color: var(--link); }
.job-card-company { color: var(--muted); }
.job-card-logo, .co-mini { border-radius: 12px; }
.job-facts li { background: var(--chip); color: var(--chip-text); border: 0; border-radius: 999px; padding: 3px 10px; font-weight: 650; }
.job-facts .job-salary { background: #dcfce7; color: #14532d; font-weight: 800; }
.chips a { border-radius: 999px; background: var(--chip); color: var(--chip-text); border-color: transparent; font-weight: 650; padding: 7px 14px; }
.chips a:hover { background: var(--navy); color: #fff; }
.chips a span { opacity: .7; }
.door strong { color: var(--heading); font-weight: 800; font-size: 1.1rem; }
.door-check { box-shadow: inset 0 4px 0 #16a34a, var(--shadow); }
.how-steps li { background: var(--surface-2); border-radius: var(--radius); border: 0; }
.badge-new { border-radius: 999px; }

/* Job page: the facts seafarers look for, big; apply card follows the reader */
.job-header h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.06; font-weight: 880; letter-spacing: -.03em; }
.job-company { font-size: 1.1rem; }
.job-dates { color: var(--muted); }
.job-keyfacts { gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; margin: 6px 0 22px; }
.job-keyfacts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.job-keyfacts { grid-template-columns: 1fr 1fr; }
@media (min-width: 1100px) { .job-keyfacts { grid-template-columns: repeat(4, 1fr); } }
.job-keyfacts dd { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--heading); letter-spacing: -.01em; }
.job-keyfacts dt { margin-top: 4px; color: var(--muted); font-weight: 650; }
.job-facts-table { background: var(--surface); border-radius: var(--radius); border-color: var(--border); box-shadow: var(--shadow); }
.job-facts-table div { border-color: var(--border); }
.job-text { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
@media (min-width: 900px) { .job-apply { position: sticky; top: 86px; align-self: start; } }
.job-apply { padding: 20px; }
.scam-note { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); color: var(--text); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.job-apply-bar { border-radius: 14px; }

/* Forms anywhere: surfaces follow the theme */
input, select, textarea { background: var(--surface); color: var(--text); border-color: var(--border); }
.af-row-main, .pw-row input, .co-form input { background: var(--surface); }

/* Footer: deep sea */
.site-footer { background: var(--footer-bg); color: #b6c7da; border-top: 0; }
.site-footer a, .footer-nav a, .footer-brand strong { color: #fff; }
.footer-inner { border-top-color: rgba(255, 255, 255, .14); }
.footer-free { color: #d6e4f2; }

/* Search window */
.search-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.search-dialog input { background: var(--surface-2); color: var(--text); border-color: var(--border); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .job-card, .btn { transition: none; } .job-card:hover, .btn:hover { transform: none; } }
@media (max-width: 640px) { .hero { padding: 36px 0 32px; } .hero-stats { gap: 10px 22px; } }
/* The navy "404" would be too dark on the night background. */
.error-code { color: var(--heading); }

/* Button colour («Цвет кнопок» in Admin → Дизайн, 23.11.2026): data-accent on <html> recolours the buttons, the logo's
   second word and link hovers of Horizon and the themes built on it. The selectors outrank the themes' own :root
   (0,2,0) and dark blocks (0,3,0), so the choice wins over any theme. Text on the button: at least 4.5:1 in both modes
   (blue 6.7, teal 5.5, green 5.0, violet 7.1 / 5.7 dark, graphite 19, orange 5.2). */
:root[data-accent="blue"] { --accent: #1d4ed8; --accent-hi: #1e40af; --on-accent: #ffffff; --btn-glow: rgba(29, 78, 216, .8); --focus: color-mix(in srgb, #3b82f6 60%, transparent); --logo-word: #1d4ed8; }
:root[data-accent="blue"][data-theme="dark"] { --accent: #2563eb; --accent-hi: #93c5fd; --on-accent: #ffffff; --btn-glow: rgba(29, 78, 216, .6); --focus: color-mix(in srgb, #3b82f6 60%, transparent); --logo-word: #93c5fd; }
@media (prefers-color-scheme: dark) { :root[data-accent="blue"]:not([data-theme="light"]) { --accent: #2563eb; --accent-hi: #93c5fd; --on-accent: #ffffff; --btn-glow: rgba(29, 78, 216, .6); --focus: color-mix(in srgb, #3b82f6 60%, transparent); --logo-word: #93c5fd; } }
:root[data-accent="teal"] { --accent: #0f766e; --accent-hi: #115e59; --on-accent: #ffffff; --btn-glow: rgba(15, 118, 110, .8); --focus: color-mix(in srgb, #14b8a6 60%, transparent); --logo-word: #0f766e; }
:root[data-accent="teal"][data-theme="dark"] { --accent: #0f766e; --accent-hi: #5eead4; --on-accent: #ffffff; --btn-glow: rgba(15, 118, 110, .6); --focus: color-mix(in srgb, #14b8a6 60%, transparent); --logo-word: #5eead4; }
@media (prefers-color-scheme: dark) { :root[data-accent="teal"]:not([data-theme="light"]) { --accent: #0f766e; --accent-hi: #5eead4; --on-accent: #ffffff; --btn-glow: rgba(15, 118, 110, .6); --focus: color-mix(in srgb, #14b8a6 60%, transparent); --logo-word: #5eead4; } }
:root[data-accent="green"] { --accent: #15803d; --accent-hi: #166534; --on-accent: #ffffff; --btn-glow: rgba(21, 128, 61, .8); --focus: color-mix(in srgb, #22c55e 60%, transparent); --logo-word: #15803d; }
:root[data-accent="green"][data-theme="dark"] { --accent: #15803d; --accent-hi: #86efac; --on-accent: #ffffff; --btn-glow: rgba(21, 128, 61, .6); --focus: color-mix(in srgb, #22c55e 60%, transparent); --logo-word: #86efac; }
@media (prefers-color-scheme: dark) { :root[data-accent="green"]:not([data-theme="light"]) { --accent: #15803d; --accent-hi: #86efac; --on-accent: #ffffff; --btn-glow: rgba(21, 128, 61, .6); --focus: color-mix(in srgb, #22c55e 60%, transparent); --logo-word: #86efac; } }
:root[data-accent="violet"] { --accent: #6d28d9; --accent-hi: #5b21b6; --on-accent: #ffffff; --btn-glow: rgba(109, 40, 217, .8); --focus: color-mix(in srgb, #8b5cf6 60%, transparent); --logo-word: #6d28d9; }
:root[data-accent="violet"][data-theme="dark"] { --accent: #7c3aed; --accent-hi: #c4b5fd; --on-accent: #ffffff; --btn-glow: rgba(109, 40, 217, .6); --focus: color-mix(in srgb, #8b5cf6 60%, transparent); --logo-word: #c4b5fd; }
@media (prefers-color-scheme: dark) { :root[data-accent="violet"]:not([data-theme="light"]) { --accent: #7c3aed; --accent-hi: #c4b5fd; --on-accent: #ffffff; --btn-glow: rgba(109, 40, 217, .6); --focus: color-mix(in srgb, #8b5cf6 60%, transparent); --logo-word: #c4b5fd; } }
:root[data-accent="graphite"] { --accent: #0d0d0d; --accent-hi: #000000; --on-accent: #ffffff; --btn-glow: rgba(0, 0, 0, .35); --focus: color-mix(in srgb, #525252 60%, transparent); --logo-word: #0d0d0d; }
:root[data-accent="graphite"][data-theme="dark"] { --accent: #ececec; --accent-hi: #ffffff; --on-accent: #0d0d0d; --btn-glow: rgba(0, 0, 0, .6); --focus: color-mix(in srgb, #525252 60%, transparent); --logo-word: #ffffff; }
@media (prefers-color-scheme: dark) { :root[data-accent="graphite"]:not([data-theme="light"]) { --accent: #ececec; --accent-hi: #ffffff; --on-accent: #0d0d0d; --btn-glow: rgba(0, 0, 0, .6); --focus: color-mix(in srgb, #525252 60%, transparent); --logo-word: #ffffff; } }
:root[data-accent="orange"] { --accent: #c2410c; --accent-hi: #9a3412; --on-accent: #ffffff; --btn-glow: rgba(194, 65, 12, .8); --focus: color-mix(in srgb, #f97316 60%, transparent); --logo-word: #c2410c; }
:root[data-accent="orange"][data-theme="dark"] { --accent: #c2410c; --accent-hi: #fb923c; --on-accent: #ffffff; --btn-glow: rgba(194, 65, 12, .6); --focus: color-mix(in srgb, #f97316 60%, transparent); --logo-word: #fb923c; }
@media (prefers-color-scheme: dark) { :root[data-accent="orange"]:not([data-theme="light"]) { --accent: #c2410c; --accent-hi: #fb923c; --on-accent: #ffffff; --btn-glow: rgba(194, 65, 12, .6); --focus: color-mix(in srgb, #f97316 60%, transparent); --logo-word: #fb923c; } }
/* With a chosen colour the chips and the active language follow it too (not the theme's navy). */
:root[data-accent] .chips a:hover, :root[data-accent] .lang-switch a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
