:root {
  color-scheme: light;
  --navy: #10234d;
  --blue: #234677;
  --muted: #455670;
  --pale: #f0f4fa;
  --line: #dbe3ef;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #b55b23; outline-offset: 4px; }
img { display: block; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .brand, nav, .actions, .footer-inner {
  display: flex;
  align-items: center;
}
.top-inner { min-height: 82px; justify-content: space-between; gap: 16px; }
.brand { gap: 12px; font-weight: 750; text-decoration: none; }
nav { gap: clamp(14px, 3vw, 32px); }
nav a { text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { background: radial-gradient(ellipse at 85% 35%, #274675, #10234d 65%); color: #fff; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 8vw, 110px);
}
.eyebrow { font-weight: 650; color: #d7e3f8; margin-bottom: 12px; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 7vw, 6rem); line-height: .98; }
.next-service {
  display: grid;
  gap: 3px;
  width: fit-content;
  margin-top: 20px;
  padding: 9px 15px;
  border-left: 3px solid #bdcfea;
  background: #ffffff15;
}
.next-label { color: #d7e3f8; font-size: .875rem; font-weight: 650; }
#next-service { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 700; }
.intro { margin-block: 22px 28px; max-width: 49ch; line-height: 1.65; color: #ecf2fc; font-size: 1.125rem; }
.actions { gap: 10px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.primary { background: var(--navy); color: #fff; }
.primary:hover { background: var(--blue); }
.light { background: #fff; color: var(--navy); border-color: #a9b8cf; }
.light:hover { background: #e1ebfb; }
.hero .primary { background: #fff; color: var(--navy); }
.hero .primary:hover { background: #e1ebfb; }
.hero .light { background: transparent; color: #fff; border-color: #a9b8cf; }
.hero .light:hover { background: #254574; }
.emblem {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 40px);
  background: #fff;
  border-radius: 48% 48% 18px 18px / 35% 35% 18px 18px;
  box-shadow: 0 20px 54px #06132c70;
}
.emblem img { width: min(100%, 321px); height: auto; }
.section { padding-block: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; }
.schedule { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.schedule article { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 10px; padding: 20px 16px; }
h3 { font-size: 1rem; }
.hour { font-size: clamp(1.65rem, 4vw, 2.6rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.schedule article p:last-child, .contact p, address { color: var(--muted); }
.location { background: var(--pale); }
.location-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 32px; }
address { font-style: normal; line-height: 1.65; margin-block: 16px 22px; }
iframe { width: 100%; height: 330px; display: block; border: 1px solid #a9b8cf; border-radius: 12px; background: #e4ebf4; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.contact p { margin-top: 12px; line-height: 1.55; }
footer { border-top: 1px solid var(--line); }
.footer-inner { gap: 12px; min-height: 82px; }
.footer-inner p { font-weight: 650; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-inner > div:first-child { animation: arrive 650ms cubic-bezier(.2,.75,.25,1) both; }
  .emblem { animation: arrive 780ms cubic-bezier(.2,.75,.25,1) 75ms both; }
  .appear { animation: arrive 580ms cubic-bezier(.2,.75,.25,1) both; }
  .button { transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
  .button:active { transform: translateY(1px); }

  @keyframes arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(1px); }
}

@media (max-width: 740px) {
  .hero-inner, .location-inner { grid-template-columns: 1fr; }
  .emblem { width: min(100%, 280px); }
  .schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  iframe { height: 285px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { align-items: flex-start; flex-direction: column; padding-block: 10px 15px; gap: 10px; }
  .schedule { gap: 10px; }
  .schedule article { padding-inline: 12px; }
}
