:root {
  --navy: #173054;
  --ink: #173054;
  --muted: #4c5d73;
  --paper: #fafafa;
  --white: #ffffff;
  --line: #e3e7ee;
  --shadow: 0 18px 50px rgba(23, 48, 84, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.section, .hero { scroll-margin-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.slide :focus-visible { outline-color: white; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 12px 40px;
  background: rgba(250, 250, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 240px;
}
.brand, .slide h1 { perspective: 700px; }
.brand img { width: 62px; height: 62px; }
.brand img, .slide h1 img {
  animation: coin-spin 1.35s cubic-bezier(.45, .05, .2, 1) both;
  transform-style: preserve-3d;
}
@keyframes coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(720deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand img, .slide h1 img { animation: none; }
}
.brand strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.brand span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-contact {
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 84px);
  background: #24384f;
  color: white;
}
.slide {
  grid-area: 1 / 1;
  min-height: calc(100vh - 84px);
  background-size: cover;
  background-position: center;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 36, 62, 0.92) 0%, rgba(18, 36, 62, 0.84) 46%, rgba(18, 36, 62, 0.5) 74%, rgba(18, 36, 62, 0.12) 100%);
}
.slide-inner {
  position: relative;
  max-width: none;
  padding: 9vh 6vw 156px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
}
.slide h1 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(34px, 4.4vw, 58px);
  color: white;
}
.slide h1 img { width: 64px; height: 64px; margin-top: 6px; filter: brightness(0) invert(1); flex: none; }
.slide .lead { max-width: 62ch; font-size: 18px; margin: 22px 0 18px; }
.slide .question { margin: 0 0 22px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: white;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
}
.btn.navy { background: var(--navy); color: white; border: 0; cursor: pointer; }
.btn:hover { background: #eef2f7; }
.btn.navy:hover { background: #122644; }

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}
.hero-controls > button {
  width: 36px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 20px;
}
.dots { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.hero-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c5ceda;
  cursor: pointer;
}
.hero-controls .dot.is-active { background: var(--navy); }

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.service-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.service-card b {
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.service-card span {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.service-card em {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.page-hero img {
  width: 100%;
  height: min(46vh, 460px);
  object-fit: cover;
}
.page-body { padding-top: 56px; }
.page-body h1 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0 22px; }
.page-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}
.side-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
.side-card .btn { justify-content: center; }
.page-points {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
}
.page-points li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.page-points li:last-child { border-bottom: 1px solid var(--line); }
.back-link { font-weight: 700; }

.wrap { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section h2 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0 22px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 16px; }
.photo-stack { display: grid; gap: 16px; }
.photo-stack img, .gallery img { width: 100%; height: 280px; object-fit: cover; border-radius: 2px; }

.services { display: grid; gap: 0; margin-top: 12px; }
.services article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.services article:last-child { border-bottom: 1px solid var(--line); }
.band { padding-bottom: 24px; }
.qual {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
.services b { color: var(--navy); font-size: 14px; letter-spacing: 0.08em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
address { font-style: normal; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form label.wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  border: 1px solid #cfd6e0;
  background: white;
  color: var(--ink);
  border-radius: 2px;
  padding: 12px 12px;
  font-weight: 500;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); outline: none; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-error, .form-ok, .form-note { grid-column: 1 / -1; }
.form-error, .form-ok { font-weight: 700; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }
.form-error { color: #8d2b2b; }
.form-ok { color: var(--navy); }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hint { color: var(--muted); font-size: 14px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 40px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--navy); }
.legal { width: min(860px, calc(100% - 80px)); margin: 48px auto 72px; }
.legal h1 { font-size: 42px; margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }

@media (max-width: 1180px) {
  .site-header { padding: 10px 20px; gap: 12px; }
  .brand { min-width: 0; }
  .nav-toggle {
    position: relative;
    display: block;
    margin: 0 0 0 auto;
    padding: 0;
    flex: none;
    font-size: 0;
    line-height: 0;
  }
  .nav-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 -6px 0 white, 0 6px 0 white;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); }
  .header-contact { white-space: normal; line-height: 1.35; }
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 16px;
    gap: 12px;
    min-height: 68px;
    align-items: center;
  }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; }
  .hero, .slide { min-height: 0; }
  .slide h1 {
    display: block;
    font-size: 32px;
    overflow-wrap: break-word;
  }
  .slide h1 img { display: block; width: 52px; height: 52px; margin: 0 0 14px; }
  .slide .lead, .slide .question { font-size: 16px; }
  .split, .contact-grid, .gallery, .contact-form, .service-cards, .page-grid { grid-template-columns: 1fr; }
  .page-hero img { height: 220px; }
  .page-body { padding-top: 36px; }
  .service-card { min-height: 0; padding: 18px 16px; }
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .section { padding: 48px 0; }
  .slide-inner { padding: 32px 20px 128px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .services article { grid-template-columns: 44px 1fr; }
  .site-footer { flex-direction: column; padding: 24px 16px 32px; }
  .photo-stack img, .gallery img { height: 210px; }
  .section, .hero { scroll-margin-top: 76px; }
  .legal { width: min(860px, calc(100% - 32px)); }
  .legal h1 { font-size: 32px; }
}
