:root {
  --bg: #f7f4ef;
  --surface: #fcfbf8;
  --text: #1f1d1a;
  --muted: #666057;
  --line: rgba(31, 29, 26, 0.12);
  --line-strong: rgba(31, 29, 26, 0.22);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(31, 29, 26, 0.04) calc(50% - 1px), rgba(31, 29, 26, 0.04) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(rgba(31, 29, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 29, 26, 0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  opacity: 0.28;
}

 a {
  color: inherit;
}

.page {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header,
.main,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.header {
  padding: 22px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.brand__text {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.main {
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.card {
  width: 100%;
  max-width: 760px;
  padding: 56px 40px;
  border: 1px solid var(--line);
  background: rgba(252, 251, 248, 0.9);
  text-align: center;
}

.card__visual {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.frame {
  width: min(100%, 260px);
  aspect-ratio: 9 / 10;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: #f9f7f2;
}

.frame__inner {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 29, 26, 0.02), rgba(31, 29, 26, 0.06)),
    radial-gradient(circle at 50% 32%, rgba(31, 29, 26, 0.08), transparent 35%);
}

.frame__inner img {
  width: 100%;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
}

.lead {
  max-width: 38ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: 0.95rem;
  background: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: rgba(31, 29, 26, 0.04);
  transform: translateY(-1px);
}

.footer {
  padding: 0 0 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .header {
    padding-top: 18px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  .brand__text {
    font-size: 0.9rem;
  }

  .main {
    padding: 28px 0 36px;
  }

  .card {
    padding: 36px 20px;
  }

  .card__visual {
    margin-bottom: 22px;
  }

  .frame {
    width: min(100%, 200px);
  }

  .lead {
    font-size: 0.96rem;
  }

  .button {
    width: 100%;
    padding-inline: 16px;
  }
}
