:root {
  --ink: #111111;
  --body: #444444;
  --soft: #555555;
  --muted: #666666;
  --line: #EAEAEA;
  --edge: #D4D4D4;
  --card-edge: #E2E2E2;
  --hover: #F5F5F5;
  --panel: #F7F7F7;
  --bg: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, figure, blockquote { margin: 0; }

a {
  color: var(--ink);
  text-decoration-color: #C4C4C4;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* Header */

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
}

.me { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.me strong { display: block; font-weight: 600; }
.me span { display: block; color: var(--muted); font-size: 14px; }

.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--ink); }

/* Buttons */

.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.btn:hover { background: #000000; }
.btn img { width: 22px; height: 22px; }

.btn--ghost { padding: 0 22px; background: var(--bg); color: var(--ink); border-color: var(--edge); }
.btn--ghost:hover { background: var(--hover); }

.btn--icon { width: 52px; padding: 0; }
.btn--icon img { width: 26px; height: 26px; }

/* Hero */

.hero {
  /* 100vh minus the header */
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vh, 72px);
  padding-block: clamp(40px, 8vh, 96px);
  text-align: center;
}

.hero-text { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 28px; }

h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede { max-width: 760px; font-size: 19px; line-height: 1.55; color: var(--body); text-wrap: balance; }

.hero .buttons { justify-content: center; padding-top: 4px; }

.quote {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 40px;
  background: var(--panel);
  border-radius: 12px;
  text-align: left;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--soft);
}
.quote figcaption > a { color: var(--soft); }

.quote-who { display: inline-flex; align-items: center; gap: 8px; }
.quote-who img { width: 20px; height: 16px; object-fit: contain; }
.quote-who strong { font-weight: 600; color: var(--ink); }

.quote blockquote { font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; }

/* Offers */

.offers .wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: clamp(64px, 10vh, 112px) clamp(56px, 8vh, 88px);
}

.offers-intro { max-width: 40em; display: flex; flex-direction: column; gap: 12px; }

h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.offers-intro p { font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.card:hover { border-color: var(--ink); }
.card:focus-visible { border-radius: 12px; }

.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.card-tag { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.card-desc { flex: 1; line-height: 1.55; color: var(--soft); }
.card-price { padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }

.side {
  max-width: 48em;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Footer */

.foot { border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  font-size: 13px;
  color: var(--muted);
}
.foot .links { display: none; }

/* Phone */

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }

  .top { padding-block: 20px; }
  .top .links { display: none; }
  .me img { width: 36px; height: 36px; }
  .me span { font-size: 13px; }

  .hero { min-height: 0; gap: 40px; padding-block: 40px 56px; text-align: left; }
  .hero-text { width: 100%; align-items: stretch; gap: 20px; }
  h1 { font-size: min(30px, 8vw); line-height: 1.1; letter-spacing: -0.03em; }
  .lede { font-size: 17px; line-height: 1.5; }
  .hero .buttons { align-self: stretch; flex-direction: column; align-items: stretch; gap: 10px; }

  .quote { padding: 20px; gap: 14px; }
  .quote figcaption { gap: 4px 12px; }
  .quote figcaption > a { display: inline-flex; align-items: center; min-height: 44px; }
  .quote blockquote { font-size: 17px; }

  .offers .wrap { gap: 28px; padding-block: 48px 40px; }
  .offers-intro { gap: 10px; }
  h2 { font-size: 26px; }
  .offers-intro p { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { gap: 10px; padding: 22px; }
  .card-name { font-size: 19px; }
  .card-price { padding-top: 14px; }
  .offers .buttons { flex-wrap: nowrap; gap: 10px; }
  .offers .buttons .btn { flex: 1; padding: 0 16px; }
  .offers .buttons .btn--icon { flex: none; }
  .side { max-width: none; margin-top: 0; padding-top: 20px; }

  .foot .wrap { flex-direction: column; gap: 10px; padding-block: 16px 24px; }
  .foot .links { display: flex; gap: 0 20px; }
  .foot .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: underline; text-decoration-color: #C4C4C4; text-underline-offset: 3px; }
}
