/* ===================== VARIABLES ===================== */
:root {
  --navy: #0a2540;
  --navy-2: #0e3357;
  --blue: #1769c0;
  --blue-light: #2f8fe0;
  --cyan: #38bdf8;
  --gold: #f0b429;
  --ink: #122033;
  --gray: #5b6b7e;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 35px rgba(10, 37, 64, .08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { color: var(--gray); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--cyan); margin-bottom: 14px;
}
.eyebrow.dark { color: var(--blue); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(23,105,192,.35); }
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(10, 37, 64, .05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn { color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ===================== HERO ===================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(150deg, rgba(10,37,64,.92) 0%, rgba(14,51,87,.82) 50%, rgba(19,64,116,.70) 100%),
    url('port-quai.jpg') center 35% / cover no-repeat;
  padding: clamp(70px, 12vw, 150px) 0 clamp(60px, 10vw, 120px);
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.hero-content { position: relative; max-width: 820px; }
.hero h1 { color: #fff; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.12rem; margin-top: 20px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 54px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ===================== TRUST ===================== */
.trust { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px;
  padding: 22px 24px; color: rgba(255,255,255,.55);
}
.trust-row span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.trust-row em { font-style: normal; font-weight: 700; color: rgba(255,255,255,.82); font-size: .95rem; }

/* ===================== SECTIONS ===================== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { font-size: 1.08rem; margin-top: 14px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.grid-2 p { margin-top: 16px; }

.check-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

/* About media + card */
.about-media { display: grid; gap: 18px; }
.about-img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block;
}
.about-card { display: grid; gap: 18px; }
.about-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--blue);
}
.about-stat strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.about-stat p { margin: 0; font-size: .96rem; }

/* ===================== CARDS ===================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(23,105,192,.12), rgba(56,189,248,.12));
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: .96rem; }

/* ===================== FEATURES ===================== */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.section-alt .feature { background: #fff; }
.feature-num {
  display: inline-block; font-size: 1.4rem; font-weight: 800; color: var(--blue);
  background: rgba(23,105,192,.1); width: 46px; height: 46px; border-radius: 12px;
  text-align: center; line-height: 46px; margin-bottom: 16px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: .96rem; }

/* ===================== AGRÉMENT ===================== */
.agrement {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow); margin-bottom: 44px;
  border-top: 4px solid var(--gold);
}
.agrement-img {
  display: block; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.agrement-img img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.agrement-img:hover img { transform: scale(1.03); }
.agrement-tag {
  display: inline-block; background: rgba(26, 127, 55, .1); color: #1a7f37;
  font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
}
.agrement-info h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
.agrement-meta { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.agrement-meta li { font-size: .95rem; color: var(--gray); }
.agrement-meta strong { color: var(--navy); display: inline-block; min-width: 170px; }

/* ===================== BADGES ===================== */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.badge strong { display: block; font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; }
.badge span { font-size: .9rem; color: var(--gray); }

/* ===================== GALERIE ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px;
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  background: linear-gradient(transparent, rgba(10, 37, 64, .9));
}

/* ===================== CTA ===================== */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; text-align: center;
}
.cta-inner { padding: clamp(54px, 8vw, 84px) 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin: 14px auto 28px; max-width: 540px; }

/* ===================== CONTACT ===================== */
.contact-grid { align-items: start; }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list span { font-size: 1.3rem; line-height: 1.4; }
.contact-list strong { color: var(--navy); }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe;
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,192,.12); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: .9rem; text-align: center; }
.form-note.ok { color: #1a7f37; }
.form-note.err { color: #c0392b; }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.brand-footer { margin-bottom: 16px; display: inline-flex; }
.brand-logo-footer {
  height: 56px; background: #fff; padding: 10px 14px; border-radius: 10px;
}
.footer-desc { font-size: .92rem; color: rgba(255,255,255,.6); margin-top: 12px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); font-size: .94rem; margin-bottom: 10px; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .agrement { grid-template-columns: 1fr; gap: 28px; }
  .agrement-img { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px 24px 26px; gap: 6px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; }
  .nav-links a.btn { margin-top: 8px; text-align: center; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .cards, .badges, .features, .gallery-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 1.5rem; }
}

/* ===================== ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
