:root {
  color-scheme: dark;
  --text: #f7f4eb;
  --muted: #d7d0c0;
  --line: rgba(255, 255, 255, .22);
  --panel: rgba(10, 12, 16, .56);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
}

body {
  --bg-mobile: url("assets/background-mobile.webp");
  --bg-desktop: url("assets/background-desktop.webp");
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #11151b var(--bg-mobile) center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .22));
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  overflow: visible;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-content: stretch;
  padding: 32px 18px;
}

.content {
  width: min(760px, 100%);
  margin: 0 auto;
  align-self: center;
}

.brand {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 10vw, 92px);
  line-height: .96;
  letter-spacing: 0;
}

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

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

.bottom-bar {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 34px auto 0;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.button:first-child {
  background: #f1c96d;
  color: #16120a;
  border-color: transparent;
}

.partner-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  opacity: .78;
}

.partner-note a {
  color: inherit;
  text-decoration: none;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.seo {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.seo h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.seo p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.keywords li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
}

.plain-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: #11151b;
}

.plain-page::before {
  display: none;
}

.keyword-page {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 18px;
}

.keyword-page h1 {
  max-width: none;
  margin-top: 26px;
  font-size: clamp(34px, 7vw, 68px);
}

.keyword-page p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 800px) {
  body {
    background-image: var(--bg-desktop);
  }

  .page {
    padding: 60px 8vw;
  }

  .content,
  .bottom-bar,
  .seo {
    margin: 0;
  }

  .seo {
    margin-top: 42px;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 24px 18px max(18px, env(safe-area-inset-bottom));
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .bottom-bar {
    margin-top: 22px;
  }

  .actions {
    gap: 8px;
  }

  .button {
    min-height: 44px;
  }

  .partner-note {
    font-size: 11px;
    text-align: center;
  }

  .bottom-bar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
