:root {
  --cream: #fff5ed;
  --navy: #213472;
  --orange: #c34b13;
  --ink: #213472;
  --line: rgba(33, 52, 114, 0.35);
  --max: 1080px;
  --header: 168px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 0.4em;
}
p { margin: 0 0 0.8em; }

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
}
.topbar img { width: 22px; height: 22px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 28px 18px;
}
.logo img { width: 188px; height: auto; background: #fff; }
.nav-toggle {
  display: none;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  width: 46px;
  height: 42px;
  border-radius: 4px;
  font-size: 22px;
  cursor: pointer;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  font-size: 17px;
  color: var(--navy);
  padding: 4px 0;
}
.menu a[aria-current="page"] { color: var(--orange); }

.hero { width: 100%; max-height: 640px; overflow: hidden; background: #d9e6f2; }
.hero img { width: 100%; height: min(62vw, 640px); object-fit: cover; object-position: center 40%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 54px 24px 70px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 6px;
  margin-bottom: 18px;
}
h2.section-title { font-size: 35px; text-align: center; margin-bottom: 8px; }
.subhead {
  text-align: center;
  font-size: 16px;
  margin: 0 0 28px;
}
.subhead a { border-bottom: 1px solid transparent; }
.subhead a:hover { border-bottom-color: var(--navy); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.card { text-align: center; }
.card .icon, .card .icon-img {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.card h3 { font-size: 24px; }
.card p { font-size: 17px; line-height: 1.45; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}
.split img.photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}
.split .copy { text-align: center; padding: 10px 12px; }
.split .copy p { font-size: 18px; line-height: 1.6; }

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover { background: var(--navy); color: #fff; }

.quotes {
  position: relative;
  margin-top: 10px;
  padding: 70px 70px 80px;
  background: var(--cream) url("../images/serit.png") center / cover no-repeat;
  overflow: hidden;
}
.quote { display: none; text-align: center; max-width: 820px; margin: 0 auto; }
.quote.active { display: block; }
.quote h2 { font-size: 34px; }
.quote .text { font-family: Georgia, "Palatino Linotype", serif; font-size: 22px; line-height: 1.45; }
.quote .who { letter-spacing: 0.05em; font-size: 18px; margin-bottom: 0; }
.quote .role { letter-spacing: 0.05em; font-size: 18px; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  background: rgba(255, 245, 237, 0.85);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.site-footer {
  border-top: 1px solid var(--navy);
  background: var(--cream);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-inner p { margin: 0; font-size: 16px; line-height: 1.45; }
.social { display: flex; gap: 12px; }
.social a { display: block; }
.social img { width: 28px; height: 28px; }

.page-title { text-align: center; padding-top: 10px; }
.blocks { display: grid; gap: 42px; }
.block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}
.block:nth-child(even) { grid-template-columns: 1fr 280px; }
.block:nth-child(even) .block-photo { order: 2; }
.block-photo { width: 100%; height: 340px; object-fit: cover; }
.block-copy { text-align: center; }
.block-copy .icon { width: 64px; height: 64px; margin: 0 auto 8px; }

.grid-3, .grid-2 {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 320px; object-fit: cover; }
.gallery.square img { height: 240px; aspect-ratio: 1; }

.hours, .visit { text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
form.contact { display: grid; gap: 12px; text-align: left; }
label { font-size: 15px; display: grid; gap: 4px; }
input, textarea {
  font: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.map {
  margin-top: 28px;
  height: 360px;
  border: 0;
  width: 100%;
}
.icon-row { display: flex; justify-content: center; margin-bottom: 8px; }
.icon-row img { width: 54px; height: 54px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 40, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 88vh; object-fit: contain; }
.lightbox .close, .lightbox .nav {
  position: absolute;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 34px;
  cursor: pointer;
}
.lightbox .close { top: 12px; right: 18px; }
.lightbox .nav.prev { left: 12px; }
.lightbox .nav.next { right: 12px; }

@media (max-width: 980px) {
  .cards, .gallery, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .block, .block:nth-child(even), .contact-grid { grid-template-columns: 1fr; }
  .block:nth-child(even) .block-photo { order: 0; }
  .split img.photo, .block-photo { height: 280px; }
  .site-header { align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    right: 16px;
    top: 118px;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 12px 16px;
    flex-direction: column;
    z-index: 5;
  }
  .menu.open { display: flex; }
  .site-header { position: relative; }
  .cards, .gallery, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .quotes { padding: 48px 48px 56px; }
  .quote .text { font-size: 18px; }
  h2.section-title, .quote h2 { font-size: 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .logo img { width: 140px; }
}
