:root {
  color-scheme: light;
  --page-bg: #f4f1ec;
  --text: #1f2933;
  --muted: #64748b;
  --edge: #d7d0c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(244, 241, 236, 0.92);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(14px);
}

h1 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.phone-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: #1f2933;
  color: #ffffff;
  border: 1px solid #1f2933;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.phone-number:hover,
.phone-number:focus-visible {
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

main {
  display: grid;
  gap: 18px;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px) 48px;
}

.intro {
  padding: 18px 20px;
  background: #fffaf2;
  border: 1px solid var(--edge);
}

.intro ul {
  margin: 0;
  padding-left: 20px;
}

.intro h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.intro h2:not(:first-child) {
  margin-top: 24px;
}

.intro li {
  margin: 8px 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}

figure {
  margin: 0;
}

figcaption {
  margin: 8px 0 0;
  padding: 12px 16px;
  background: #1f2933;
  color: #ffffff;
  border: 1px solid #1f2933;
  border-bottom: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

img,
iframe {
  display: block;
  width: 100%;
  background: #e7e1d8;
  border: 1px solid var(--edge);
}

figcaption + img,
figcaption + iframe {
  border-top-color: #1f2933;
}

img {
  height: auto;
}

.map-frame iframe {
  height: min(62vh, 620px);
  min-height: 420px;
}

@media (max-width: 700px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
  }

  h1 {
    font-size: 16px;
  }

  .phone-number {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
    white-space: normal;
  }

  main {
    gap: 10px;
    padding: 10px 0 28px;
  }

  .intro {
    margin: 0 12px;
    padding: 14px 16px;
  }

  .intro li {
    font-size: 15px;
  }

  .intro h2 {
    font-size: 20px;
  }

  figcaption {
    margin: 8px 0 0;
    padding: 10px 12px;
    font-size: 20px;
  }

  img,
  iframe {
    border-right: 0;
    border-left: 0;
  }

  .map-frame iframe {
    height: 64vh;
    min-height: 320px;
  }
}
