:root {
  --navy: #143b52;
  --navy2: #1d5473;
  --accent: #30b1e3;
  --accent2: #66c7ec;
  --ink: #23333d;
  --muted: #5b6b73;
  --bg: #f5fafd;
  --card: #ffffff;
  --line: #dfeaf1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f5fafd 0%, #e9f3fb 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- header ---------- */
.top {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(20,59,82,0.05);
}
.top-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand img { height: 72px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: color .18s ease;
}
.nav a:hover { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 16px; }
.phone { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; }
.phone:hover { color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs a {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s ease;
}
.langs a:hover { border-color: var(--accent); color: var(--accent); }
.langs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #d7eef9;
  color: var(--navy);
  min-height: 600px;
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
:root {
  --hero-img: url('assets/photos/hero_desktop.jpg');
}
@media (max-width: 1024px) {
  :root { --hero-img: url('assets/photos/hero_tablet.jpg'); }
}
@media (max-width: 768px) {
  :root { --hero-img: url('assets/photos/hero_mobile.jpg'); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-img) center bottom / cover no-repeat;
  filter: blur(30px);
  transform: scale(1.2);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 2100px);
  background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
              var(--hero-img) center bottom / cover no-repeat;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(27px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-sub { color: #3a5a6e; font-size: clamp(15px, 1.8vw, 19px); max-width: 680px; margin: 0 auto 30px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 34px;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(48,177,227,0.3);
  transition: background .18s ease, transform .18s ease;
}
.cta:hover { background: #239fd1; transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 60px 22px; }
.section.alt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 52px 44px;
  margin: 32px auto;
  max-width: 1180px;
  box-shadow: 0 12px 34px rgba(20,59,82,0.07);
}
.section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.section .lead { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 36px; }

/* ---------- services ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  border-top: 3px solid var(--accent);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,59,82,0.10); }
.card-icon {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: rgba(48,177,227,0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- fleet carousel ---------- */
.fleet-carousel { position: relative; margin-top: 8px; }
.fleet-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.fleet-track::-webkit-scrollbar { display: none; }
.vessel {
  flex: 0 0 400px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 22px;
}
.vessel-photo {
  height: 210px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}
.vessel h3 { color: var(--navy); font-size: 21px; font-weight: 800; margin-bottom: 2px; }
.vessel .vtype { color: var(--accent); font-size: 13px; font-weight: 700; }
.v-dwt {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 10px;
}
.vessel dl { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 14.5px; }
.vessel dt { color: var(--muted); }
.vessel dd { color: var(--ink); font-weight: 700; text-align: right; }
.fc-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,59,82,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.fc-nav:hover { background: var(--accent); color: #fff; }
.fc-nav.prev { left: -8px; }
.fc-nav.next { right: -8px; }

/* ---------- gallery (triangles) ---------- */
.gallery-wrap { position: relative; margin-top: 8px; }
.gallery {
  display: flex;
  gap: 3px;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery a {
  flex: 0 0 calc(25% - 2px);
  height: 320px;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, filter .28s ease;
  filter: drop-shadow(0 12px 22px rgba(20,59,82,0.30)) saturate(1.05);
}
.gallery a:nth-child(odd) { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.gallery a:nth-child(even) { clip-path: polygon(0% 0%, 100% 0%, 50% 100%); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.34) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.gallery a:hover { transform: scale(1.04); filter: drop-shadow(0 18px 28px rgba(20,59,82,0.38)) saturate(1.2) brightness(1.04); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,59,82,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-nav:hover { background: var(--accent); color: #fff; }
.g-nav.prev { left: -8px; }
.g-nav.next { right: -8px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,20,28,0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
#lbImg {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}
.lb-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  justify-content: center;
}
.lb-thumbs img {
  flex: 0 0 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
}
.lb-thumbs img.on { opacity: 1; border-color: var(--accent); }
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-count {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.about-grid h2 { text-align: left; }
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.checks { list-style: none; }
.checks li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info p { margin-bottom: 12px; }
.contact-info a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 18px; }
.contact-info .legal { color: var(--muted); font-size: 14px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  margin-bottom: 12px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(48,177,227,0.15); }
.form textarea { resize: vertical; min-height: 110px; }
.form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 13px 32px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.form button:hover { background: #239fd1; }
.form-status { margin-top: 12px; font-weight: 600; font-size: 14px; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #c0392b; }

/* ---------- footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .nav { display: none; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .top-inner { gap: 12px; }
  .brand img { height: 56px; }
  .vessel { flex-basis: 280px; }
  .gallery a { flex-basis: 240px; height: 230px; }
  .section.alt { margin: 18px 12px; padding: 34px 18px; }
}
