:root {
  --blue: #0155a3;
  --ink: #151718;
  --muted: #626970;
  --paper: #fbfaf3;
  --white: #ffffff;
  --earth: #b7892d;
  --clay: #be5b3d;
  --line: #d8d3c7;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 243, 0.94);
}

.site-header img {
  width: clamp(150px, 17vw, 225px);
  height: auto;
}

.site-header a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.hero,
.services,
.signup {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 48px);
}

.hero > *,
.services > *,
.signup > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56vw, 760px);
  background: url("assets/abstract-content-field.svg") center right / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.92;
}

h2 {
  max-width: 850px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.12;
}

.lede {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.button.secondary {
  background: transparent;
}

.services {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.service-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-grid article:nth-child(2) {
  background: #eef5f6;
}

.service-grid article:nth-child(3) {
  background: #f5ecd9;
}

.service-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 900;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.signup > * {
  margin-left: 0;
  margin-right: 0;
}

.signup .kicker {
  color: var(--earth);
}

.signup p {
  color: rgba(255, 255, 255, 0.82);
}

.signup .button.primary {
  margin-top: 14px;
  color: var(--ink);
  border-color: var(--earth);
  background: var(--earth);
}

.small {
  max-width: 520px;
  margin-top: 18px;
  font-size: 13px;
}

.ad-section {
  padding: 0 clamp(18px, 4vw, 48px) clamp(30px, 5vw, 56px);
  background: var(--paper);
}

.ad-wrap {
  max-width: var(--max);
  min-height: 118px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.ad-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.adsbygoogle {
  width: 100%;
}

.policy-content {
  max-width: 900px;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 48px);
}

.policy-content h1 {
  font-size: clamp(44px, 7vw, 84px);
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

.policy-content p {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 48px) 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 23, 24, 0.55);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dialog h2 {
  margin-bottom: 18px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form[hidden],
.form-success[hidden] {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-success {
  display: grid;
  gap: 14px;
}

.form-success h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.version-badge {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 20;
  padding: 4px 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

@media (max-width: 820px) {
  .site-header,
  .signup {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .hero::after {
    width: 100%;
    opacity: 0.1;
    background-position: center bottom;
  }
}
