:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1d1d1d;
  --surface-2: #2a2a2a;
  --text: #f7f7f7;
  --muted: #b8b8b8;
  --gold: #f0b90b;
  --blue: #9cc4ff;
  --line: #363636;
}

* {
  box-sizing: border-box;
}

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

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 56px 0 36px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

h1 {
  font-size: 64px;
  line-height: 1;
  margin: 0 0 20px;
}

.lead {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  background: var(--gold);
  color: #17130a;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.phone-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #080808;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  padding: 22px;
  min-height: 680px;
}

.phone-top {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.last-expense {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.emoji {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
}

small, .muted {
  color: var(--muted);
}

.amount {
  font-size: 82px;
  line-height: 1;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  padding: 34px 0;
}

.category-grid,
.calc-grid {
  display: grid;
  gap: 10px;
}

.category-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.category-grid span,
.calc-grid span {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #9a7900, #5e4900);
  min-height: 78px;
  font-size: 30px;
}

.calc-grid {
  grid-template-columns: repeat(3, 1fr);
}

.calc-grid span {
  background: #020202;
  border: 1px solid #151515;
  font-size: 34px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0 72px;
}

article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

article p,
.text-page p,
.text-page li {
  color: var(--muted);
  line-height: 1.62;
}

.text-page {
  max-width: 880px;
  padding: 42px 0 80px;
}

.back-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.text-page h1 {
  font-size: 42px;
  margin-top: 24px;
}

.text-page section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    font-size: 48px;
  }

  .phone-card {
    width: min(100%, 380px);
    margin: 0 auto;
  }

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

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }

  .phone-card {
    min-height: 620px;
  }
}

