:root {
  --background: #fafafa;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --muted: #71717a;
  --muted-soft: #f4f4f5;
  --border: #e4e4e7;
  --ring: rgba(37, 99, 235, 0.22);
  /* --primary: #244a86; */
  --primary: #2F5496;
  --primary-dark: #193766;
  --primary-foreground: #ffffff;
  /* --accent: #244a86; */
  --accent: #2F5496;
  --accent-soft: #eff6ff;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(24, 24, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 52%, var(--background) 100%);
  font-family: Georgia, "Times New Roman", Times, serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 72px) 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0 2px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  display: block;
  width: min(100%, 560px);
  height: auto;
  background: transparent;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.service-line {
  max-width: 650px;
  margin: 0;
  color: #3f3f46;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  text-align: center;
}

.disclaimer-panel h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.eyebrow,
.disclaimer-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-item,
.address-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
}

.contact-item {
  min-height: 42px;
  padding: 0 14px;
  /* border: 1px solid var(--border); */
  /* border-radius: 999px; */
  background: var(--card);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2F5496;
  line-height: 1;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.address-line {
  max-width: 780px;
  margin: 0;
  justify-content: center;
  color: #27272a;
  font-style: normal;
  text-align: center;
}

.contact-item:hover,
.map-link:hover,
.disclaimer-copy a:hover {
  color: var(--accent);
}

.map-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.map-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1.75 / 1;
  min-height: 350px;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(24, 24, 27, 0.22);
  overflow: hidden;
}

.map-place-card {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: min(380px, calc(100% - 28px));
  min-height: 126px;
  padding: 17px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.2);
}

.map-place-title {
  margin: 0;
  color: #202124;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.map-place-address {
  margin: 6px 0 0;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.42;
}

.map-place-action {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 22px;
  text-decoration: none;
}

.map-place-action:hover {
  color: var(--primary);
  background: #e8f0fe;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(0.9) brightness(1.08);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: var(--primary);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(12px);
}

.disclaimer-overlay.is-waiting {
  display: none;
}

.disclaimer-overlay.is-hidden {
  display: none;
}

.disclaimer-panel {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(22px, 4vw, 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dialog-header {
  margin: calc(clamp(22px, 4vw, 32px) * -1) calc(clamp(22px, 4vw, 32px) * -1) 0;
  padding: 24px clamp(22px, 4vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius) var(--radius) 0 0;
}

.disclaimer-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
}

.dialog-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

.disclaimer-title1 {
  display: flex;
  justify-content: center;
}

.disclaimer-copy {
  padding: 20px 0 4px;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.disclaimer-copy p {
  margin: 0 0 18px;
  text-align: justify;
  text-justify: inter-word;
}

.disclaimer-list {
  margin: 0 0 18px;
  padding: 0 0 0 22px;
  list-style: disc;
}

.disclaimer-list li {
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.disclaimer-list li:last-child {
  margin-bottom: 0;
}

.disclaimer-copy a {
  color: var(--accent);
  font-weight: 600;
}

.agree-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid var(--primary);
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.07);
}

.agree-button:hover {
  background: var(--primary-dark);
}

.agree-button:focus-visible,
.map-link:focus-visible,
.contact-item:focus-visible,
.map-place-action:focus-visible,
.disclaimer-copy a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

body.disclaimer-open,
body.splash-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, 640px);
    padding: 28px 0;
  }

  .contact-section {
    gap: 18px;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 300px;
  }

  .map-panel {
    aspect-ratio: 1.25 / 1;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 22px, 440px);
  }

  .brand-logo {
    width: min(100%, 380px);
  }

  .service-line {
    font-size: 14px;
  }

  .contact-strip {
    flex-direction: column;
    width: 100%;
  }

  .contact-item {
    width: 100%;
    justify-content: center;
  }

  .address-line {
    align-items: flex-start;
    font-size: 15px;
  }

  .map-place-card {
    top: 10px;
    left: 10px;
    min-height: auto;
    padding: 14px;
  }

  .map-place-title {
    font-size: 16px;
  }

  .map-place-address {
    font-size: 13px;
  }

  .disclaimer-overlay {
    padding: 14px;
  }

  .disclaimer-panel {
    max-height: calc(100vh - 28px);
    padding: 20px;
  }

  .disclaimer-copy {
    font-size: 14px;
    line-height: 1.72;
  }
}