:root {
  --bg: #f4f8fc;
  --paper: #ffffff;
  --ink: #071848;
  --muted: #52617c;
  --line: #cbd7ea;
  --brand: #06227f;
  --brand-dark: #041550;
  --brand-soft: #eaf3ff;
  --accent: #e1142d;
  --accent-dark: #b80f24;
  --warm: #f7fbff;
  --shadow: 0 22px 58px rgba(6, 24, 72, 0.16);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 88px 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  line-height: 1.05;
  margin: 0;
  color: var(--brand);
  letter-spacing: 0;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(203, 215, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.brand strong {
  display: block;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 4px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 10px 30px rgba(6, 34, 127, 0.2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}
.nav-links a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(225, 20, 45, 0.24);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background:
    linear-gradient(176deg, transparent 0 70%, rgba(6,34,127,0.1) 70% 73%, transparent 73%),
    radial-gradient(circle at 86% 10%, rgba(6,34,127,0.18), transparent 31%),
    radial-gradient(circle at 7% 70%, rgba(225,20,45,0.13), transparent 34%),
    #fff;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.78fr);
  gap: 48px;
  align-items: center;
}
.hero-text {
  max-width: 660px;
  margin-top: 24px;
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 42px rgba(225,20,45,0.24);
}
.button.primary:hover { background: var(--accent-dark); }
.button.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}
.button.light {
  color: var(--brand);
  background: #fff;
}
.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.trust-strip span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  font-weight: 900;
}
.hero-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.hero-card-panel {
  margin-top: 14px;
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.hero-card-panel span { color: rgba(255,255,255,0.78); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.two-col p:last-child { font-size: 1.08rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(6, 24, 72, 0.08);
}
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}
.feature-card p { margin-top: 12px; }

.transport { background: #fff; }
.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.transport-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brand-soft);
  box-shadow: var(--shadow);
}
.transport-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.transport-copy p:not(.eyebrow) { margin-top: 20px; }
.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: #101936;
  font-weight: 800;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 0.75rem;
}

.section-heading {
  max-width: 780px;
  text-align: center;
}
.section-heading p:last-child {
  margin: 18px auto 0;
  max-width: 640px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.home-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 48px rgba(6,24,72,0.1);
}
.home-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--warm); }
.home-card-body { padding: 24px; }
.home-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-card-body p:not(.home-label) { margin-top: 12px; }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}
.text-button:hover { background: var(--accent); }

.application { padding-top: 20px; }
.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(225,20,45,0.96) 0 26%, transparent 26%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow);
}
.cta-panel .eyebrow, .cta-panel p { color: rgba(255,255,255,0.78); }
.cta-panel h2 { color: #fff; }
.cta-panel p { margin-top: 14px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 48px 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand strong { color: #fff; }
.site-footer p { max-width: 440px; margin-top: 14px; color: rgba(255,255,255,0.68); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255,255,255,0.78);
  font-weight: 900;
  text-transform: uppercase;
}
.footer-links a:hover { color: #fff; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 58, 0.72);
  backdrop-filter: blur(6px);
}
.modal-window {
  position: relative;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
}
.modal-content { padding: 24px; }
.modal-content img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 20px 0 12px;
  border-radius: var(--radius);
  background: var(--warm);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  cursor: pointer;
  font-size: 1.5rem;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
#photoCount {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .section { padding: 68px 0; }
  .hero-grid, .two-col, .transport-grid, .cta-panel { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .feature-grid, .home-grid { grid-template-columns: 1fr; }
  .home-card { display: grid; grid-template-columns: 0.92fr 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 740px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav { min-height: 68px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 13px 14px;
    border-radius: var(--radius);
  }
  .nav-cta { text-align: center; }
  .hero { padding-top: 46px; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
  .trust-strip span { width: 100%; }
  .home-card { display: block; }
  .cta-panel { padding: 28px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .gallery-controls { flex-direction: column; }
  .gallery-controls .button { width: 100%; }
}
