html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.page {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  align-items: flex-start;
  padding: 18px;
}

.card {
  width: min(100%, 860px);
  max-width: 860px;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 22px clamp(16px, 4vw, 42px) calc(30px + env(safe-area-inset-bottom));
}

.top {
  max-width: 720px;
  margin-inline: auto;
}

.actions {
  width: min(100%, 540px);
  margin: 28px auto 0;
}

.bottom-note {
  display: block;
  font-size: 12px;
  margin-top: 12px;
}

.content-sections {
  border-top: 1px solid #e2eee7;
  margin-top: 28px;
  padding-top: 26px;
  text-align: left;
}

.content-sections h2 {
  color: var(--text);
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -.5px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.content-sections h3 {
  color: #143f29;
  font-size: 17px;
  margin: 0 0 7px;
}

.content-sections p,
.content-sections li {
  color: #4c6155;
  font-size: 14.5px;
  line-height: 1.58;
}

.content-intro {
  max-width: 720px;
  margin: 0 0 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.detail-card {
  background: #f7fcf9;
  border: 1px solid #dceee3;
  border-radius: 18px;
  padding: 16px;
}

.detail-card p {
  margin: 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 12px 0 24px;
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.faq-list details {
  background: #fff;
  border: 1px solid #deebe3;
  border-radius: 14px;
  padding: 13px 15px;
}

.faq-list summary {
  color: #153f2a;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 900;
}

.faq-list p {
  margin: 9px 0 0;
}

.site-footer {
  color: #63736a;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 26px;
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid #e4eee8;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
}

.btn:focus-visible,
.chip:focus-visible,
.content-sections a:focus-visible,
.consent-panel button:focus-visible,
.consent-panel a:focus-visible {
  outline: 3px solid rgba(11, 124, 255, .45);
  outline-offset: 3px;
}

.consent-panel {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 32px), 720px);
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid #dce8e0;
  border-radius: 17px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 54px rgba(11, 67, 36, .22);
}

.consent-panel p {
  color: #405249;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

.consent-panel a {
  color: #0b6c3a;
  font-weight: 850;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.consent-panel button {
  border: 1px solid #cfe1d5;
  border-radius: 10px;
  background: #fff;
  color: #19402b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 38px;
  padding: 7px 12px;
}

.consent-panel .consent-accept {
  background: #159c57;
  border-color: #159c57;
  color: #fff;
}

@media (max-width: 640px) {
  .page {
    padding: 8px;
  }

  .card {
    height: auto;
    max-height: none;
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
  }

  .detail-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .bottom-note {
    display: block;
  }

  .consent-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
