/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0b0d;
  --bg-alt: #101216;
  --graphite: #16181d;
  --graphite-2: #1c1f24;
  --border: rgba(255,255,255,0.08);
  --text: #f4f5f6;
  --muted: #9aa0a6;
  --accent: #7ea1bf;
  --accent-dim: rgba(126,161,191,0.15);
  --radius: 14px;
  --transition: 0.4s cubic-bezier(.19,1,.22,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 28px;
  text-transform: uppercase;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .05s; }
.reveal-delay-2.in-view { transition-delay: .15s; }
.reveal-delay-3.in-view { transition-delay: .25s; }
.reveal-delay-4.in-view { transition-delay: .35s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-radius: 999px;
  transition: all 0.35s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: #0a0b0d;
  transform: translateY(-2px);
}
.btn--outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}
.nav__menu {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav__toggle span {
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,11,13,0.98);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--transition), opacity 0.5s ease, visibility 0.5s;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu__close {
  position: absolute;
  top: 26px; right: 26px;
  font-size: 2.2rem;
  color: var(--text);
}
.mobile-link {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
}
.mobile-link:hover { color: var(--accent); opacity: 1; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #1a1e24 0%, #0a0b0d 65%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(126,161,191,0.14) 0%, transparent 70%);
  filter: blur(10px);
}
.hero__waves {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 220px;
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 14px 0 24px;
}
.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 44px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero__scroll span {
  width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollDown 1.8s infinite;
}
.hero__scroll p {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}
@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.3); transform-origin: bottom; }
}

/* ===== ABOUT ===== */
.about { padding: 140px 0 100px; }
.about__text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 70px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--border);
  padding-top: 50px;
}
.stat__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat__label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ===== SPLIT SECTIONS ===== */
.split { padding: 100px 0; border-top: 1px solid var(--border); }
.split--seafarers { background: var(--bg-alt); }
.split--shipowners { background: var(--bg); }
.split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split__inner--reverse { direction: rtl; }
.split__inner--reverse > * { direction: ltr; }
.split__text {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.visual-card {
  background: linear-gradient(145deg, var(--graphite-2), var(--graphite));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.visual-card__icon { font-size: 3rem; margin-bottom: 20px; }
.visual-card p { color: var(--muted); }

.benefits {
  background: linear-gradient(145deg, var(--graphite-2), var(--graphite));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.benefits__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 18px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.benefits__item:last-child { border-bottom: none; }
.benefits__item span {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== VACANCIES ===== */
.vacancies { padding: 120px 0; border-top: 1px solid var(--border); }
.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.filter-select {
  background: var(--graphite);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.vacancy-card {
  background: linear-gradient(160deg, var(--graphite-2), var(--graphite));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.4s var(--transition), border-color 0.4s ease;
  opacity: 0;
  transform: translateY(28px);
}
.vacancy-card.in-view { opacity: 1; transform: translateY(0); }
.vacancy-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126,161,191,0.4);
}
.vacancy-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.vacancy-card .vessel-type {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.vacancy-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.vacancy-card__meta div { font-size: 0.85rem; color: var(--muted); }
.vacancy-card__meta strong { display: block; color: var(--text); font-weight: 500; }
.vacancy-card .btn { width: 100%; padding: 13px; }

/* ===== CONTACTS ===== */
.contacts { padding: 120px 0; border-top: 1px solid var(--border); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-list { margin-top: 26px; color: var(--muted); }
.contact-list li { margin-bottom: 10px; }
.contact-list a:hover { color: var(--accent); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-form input, .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--accent); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
}
.footer__logo { font-weight: 700; letter-spacing: 0.1em; }
.footer__tagline { color: var(--muted); font-size: 0.8rem; margin-top: 6px; letter-spacing: 0.1em; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 16px; }
.footer__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color .3s ease, color .3s ease;
}
.footer__social svg { width: 16px; height: 16px; fill: var(--muted); }
.footer__social a:hover { border-color: var(--accent); }
.footer__social a:hover svg { fill: var(--accent); }
.footer__copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  padding: 20px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  background: var(--graphite-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(20px);
  transition: transform .35s var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}
.modal.open .modal__box { transform: translateY(0); }
.modal__box h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.modal__close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.6rem;
  color: var(--muted);
}
.modal__close:hover { color: var(--text); }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form input, .modal__form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.modal__form input:focus, .modal__form textarea:focus { outline: 1px solid var(--accent); }
.cv-upload { color: var(--muted); font-size: 0.85rem; }
.cv-upload input { display: block; width: 100%; margin-top: 8px; }
.modal__form button:disabled { opacity: 0.65; cursor: wait; }
.job-modal__body { color: var(--muted); margin-bottom: 26px; }
.job-modal__body div { margin-bottom: 8px; }
.job-modal__body strong { color: var(--text); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .split__inner, .contacts__inner { grid-template-columns: 1fr; }
  .split__inner--reverse { direction: ltr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 2.6rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about, .split, .vacancies, .contacts { padding: 80px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  body { font-size: 0.95rem; }
}
