:root {
  --text: #292f33;
  --muted: #555d63;
  --background: #f2f4f5;
  --border: #dce1e4;
  --accent: #6324ca;
  --accent-hover: #511ca9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: #552294;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #805000;
  outline-offset: 4px;
}

.page {
  width: 792px;
  max-width: 100%;
  margin: 24px auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 20px rgb(32 47 58 / 6%);
}

.picture {
  position: relative;
  width: 100%;
  height: 396px;
  border-radius: 10px 10px 0 0;
  background-image: url("assets/sakhalin-lighthouse.jpg");
  background-position: center;
  background-size: cover;
}

.photo-phone {
  position: absolute;
  bottom: 18px;
  left: 20px;
  max-width: calc(100% - 40px);
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 6px;
  background: #243a46;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.photo-phone:hover {
  background: #182b35;
}

.content {
  padding: 28px 32px 8px;
  overflow-wrap: break-word;
}

.content p {
  margin: 0 0 24px;
}

h1 {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.35;
}

h2 {
  margin: 36px 0 16px;
  font-size: 23px;
  line-height: 1.4;
}

.greeting {
  font-weight: 700;
}

.red {
  color: #ff1d25;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 32px 0;
  background: var(--border);
}

.plain-phone {
  font-size: 20px;
  font-weight: 700;
}

.call-button,
.max-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.call-button {
  flex-wrap: wrap;
  column-gap: 0.35em;
  background: #292f33;
}

.button-phone {
  white-space: nowrap;
}

.call-button:hover {
  background: #151a1d;
}

.max-button {
  background: var(--accent);
}

.max-button:hover {
  background: var(--accent-hover);
}

.help-list {
  margin: 0 0 24px;
  padding-left: 24px;
}

.help-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Keep the familiar contact block and its full-width buttons. */
#contact {
  margin: 36px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f6f7f8;
}

#contact h2 {
  margin-top: 0;
}

#contact .call-button {
  margin-bottom: 0;
}

.faq {
  margin-top: 36px;
}

.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

/* Retain the native disclosure arrow and keyboard behavior. */
.faq summary {
  min-height: 60px;
  padding: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.faq summary:hover,
.faq details[open] summary {
  background: #f6f7f8;
}

.faq details[open] summary {
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--border);
}

.faq p {
  margin: 0;
  padding: 16px;
}

.taplink-like-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.taplink-like-footer p {
  margin: 0 0 8px;
}

.taplink-like-footer p:last-child {
  margin-bottom: 0;
}

.footer-brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.footer-support a {
  text-decoration: underline;
}

@media (max-width: 840px) {
  .page {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .picture {
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: 0;
  }

  .content {
    padding: 24px 20px 8px;
  }

  .taplink-like-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  .photo-phone {
    bottom: 12px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    font-size: 18px;
  }

  #contact {
    padding: 20px 16px;
  }

  .faq summary,
  .faq p {
    padding: 16px 14px;
  }
}
