/* rebonus.ru. Onest and JetBrains Mono are under the SIL Open Font License 1.1 (fonts/OFL-*.txt). */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f5f3ee;
  --paper-deep: #ebe7de;
  --white: #ffffff;
  --ink: #15171a;
  --ink-2: #44484f;
  --ink-3: #5c6168;
  --rule: #d6d1c6;
  /* A field's border: 3.3:1 on white, as a control's edge must be (WCAG 1.4.11). */
  --field-rule: #8a8f96;
  --accent: #0f766e;
  --accent-deep: #0b5d56;
  --accent-tint: #d7ece7;
  --night: #131517;
  --night-2: #1b1e21;
  --night-rule: #2e3236;
  --night-text: #eeece7;
  --night-muted: #a9adb3;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.night :focus-visible {
  outline-color: #2dd4bf;
}

.pilot-card :focus-visible {
  outline-color: var(--white);
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo: the "o" of rebonus is a point. */

.logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.625rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}

.logo-o {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.045em 0 0.05em;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link:hover {
  color: var(--accent-deep);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 68px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu[open] .menu-bars {
  background: transparent;
}

.menu[open] .menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu[open] .menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu-panel {
  position: absolute;
  right: -8px;
  top: calc(100% + 12px);
  display: grid;
  min-width: 248px;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(21, 23, 26, 0.35);
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.menu-panel a:hover {
  background: var(--paper);
}

.menu-panel .menu-cta {
  margin-top: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

.menu-panel .menu-cta:hover {
  background: var(--accent-deep);
}

/* Hero */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
  overflow: clip;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.5rem, 1.35rem + 4.1vw, 4.75rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  margin-top: 24px;
  max-width: 36em;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero .lead {
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}

/* The receipt and the member's card */

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 372px);
  padding-bottom: 116px;
}

.receipt-shadow {
  filter: drop-shadow(0 1px 1px rgba(21, 23, 26, 0.08)) drop-shadow(0 22px 28px rgba(21, 23, 26, 0.16));
  transform: rotate(-1.4deg);
}

.receipt {
  padding: 30px 26px 40px;
  background: var(--white);
  color: var(--ink);
  font: 400 0.8125rem/1.6 var(--mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

.r-shop {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

.r-meta {
  margin-top: 2px;
  color: var(--ink-3);
  text-align: center;
}

.r-rule {
  margin: 14px 0;
  border: 0;
  border-top: 1px dashed #b7b1a5;
}

.r-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.r-row > :last-child {
  white-space: nowrap;
  text-align: right;
}

.r-total {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.r-points {
  color: var(--accent);
  font-weight: 600;
}

.member-card {
  position: absolute;
  left: -44px;
  bottom: 0;
  width: 252px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 22px 36px -18px rgba(11, 61, 56, 0.55);
  transform: rotate(2.2deg);
}

.mc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.mc-tier {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 500;
}

.mc-label {
  margin-top: 22px;
  font-size: 0.8125rem;
  opacity: 0.92;
}

.mc-points {
  font-size: 2.125rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mc-points span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.mc-note {
  margin-top: 6px;
  font-size: 0.8125rem;
  opacity: 0.92;
}

/* Strip */

.strip {
  border-block: 1px solid var(--rule);
}

.strip dl {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 14px clamp(24px, 4vw, 48px);
  align-items: baseline;
  padding: 24px 0;
}

.strip dt,
.label {
  color: var(--ink-3);
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 6px 2px;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font: 500 0.6875rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.2em;
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-tint {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px clamp(24px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.section-head .label {
  padding-top: 0.55em;
  color: var(--ink);
}

.section-head h2 {
  max-width: 17em;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head .lead {
  max-width: 40em;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
}

.step {
  padding: 22px 24px 0 0;
  border-top: 1px solid var(--rule);
}

.step + .step {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.step-num {
  color: var(--accent);
  font: 500 0.875rem/1 var(--mono);
}

.step h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 12px clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
  padding: 28px clamp(20px, 3vw, 32px);
  border-radius: 14px;
  background: var(--white);
}

.note h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.note p {
  max-width: 44em;
  color: var(--ink-2);
}

.places {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px clamp(24px, 4vw, 48px);
  margin-top: clamp(56px, 7vw, 96px);
}

.places-title,
.col-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.place {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 6px clamp(20px, 3vw, 40px);
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
}

.place:last-child {
  border-bottom: 1px solid var(--rule);
}

.place dt {
  font-weight: 600;
}

.place dd {
  color: var(--ink-2);
}

/* Rules */

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
}

.rule {
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule);
}

.rule h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rule p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

/* Lists with a dash */

.ticks li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--rule);
}

.ticks li:last-child {
  border-bottom: 1px solid var(--rule);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(14px + 0.8em);
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.small {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* The member's card in a phone */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.phone {
  justify-self: center;
  width: min(100%, 312px);
  padding: 11px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(21, 23, 26, 0.55);
}

.phone-screen {
  padding: 16px 14px 20px;
  border-radius: 36px;
  background: #f3f4f6;
  color: #111827;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.ph-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 14px;
  font-weight: 600;
}

.ph-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
}

.ph-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
}

.ph-card + .ph-card {
  margin-top: 10px;
}

.ph-title {
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ph-hello {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ph-label {
  margin-top: 14px;
  color: #4b5563;
}

.ph-points {
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ph-points span {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ph-line {
  margin-top: 4px;
  color: #4b5563;
}

.ph-tier {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.ph-tier-name {
  font-weight: 600;
}

.ph-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 3px;
  background: #e5e7eb;
}

.ph-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.ph-code {
  text-align: center;
}

.ph-qr {
  width: 120px;
  height: 120px;
  margin: 10px auto 0;
  fill: #111827;
}

.ph-digits {
  margin-top: 10px;
  font: 600 1.125rem/1.2 var(--mono);
  letter-spacing: 0.08em;
}

/* Messages */

.messages {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}

.topic {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4px clamp(20px, 3vw, 32px);
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}

.topic:last-child {
  border-bottom: 1px solid var(--rule);
}

.topic dt {
  font-weight: 600;
}

.topic dd {
  color: var(--ink-2);
}

.section-tint .topic,
.section-tint .ticks li,
.section-tint .rule {
  border-color: #cfc9bc;
}

.sms-panel {
  padding: 22px 20px 26px;
  border-radius: 22px;
  background: var(--white);
}

.sms-from {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e7e3da;
  font-weight: 600;
}

.sms-from span:last-child {
  color: var(--ink-3);
  font: 500 0.75rem/1.9 var(--mono);
  letter-spacing: 0.06em;
}

.sms-label {
  margin: 0 0 6px 4px;
  color: var(--ink-3);
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sms {
  max-width: 290px;
  padding: 11px 15px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #ecebe6;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.sms + .sms-label {
  margin-top: 18px;
}

.sms-link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reports */

.reports {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.reports .topic {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.sheet {
  padding: 22px 24px 20px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 44px -30px rgba(21, 23, 26, 0.4);
}

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 18px;
}

.sheet-title {
  font-size: 1.0625rem;
  font-weight: 600;
}

.sheet-meta {
  color: var(--ink-3);
  font: 400 0.75rem/1.4 var(--mono);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.sheet th {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.sheet td {
  padding: 12px 0;
  border-bottom: 1px solid #ebe7df;
}

.sheet .num {
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 0.875rem;
  text-align: right;
  white-space: nowrap;
}

.sheet tfoot td {
  border-bottom: 0;
  font-weight: 600;
}

.sheet-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-weight: 500;
}

.sheet-foot .num {
  font: 600 0.9375rem/1.5 var(--mono);
}

/* Protection */

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}

.col-title {
  padding-bottom: 16px;
}

/* Partners and developers */

.night {
  background: var(--night);
  color: var(--night-text);
}

.night .section + .section {
  padding-top: 0;
}

.night .section-head {
  border-top-color: var(--night-text);
}

.night .section-head .label {
  color: var(--night-text);
}

.night .lead,
.night p {
  color: var(--night-muted);
}

.night .ticks li {
  border-color: var(--night-rule);
  color: var(--night-muted);
}

.night .ticks li strong {
  color: var(--night-text);
}

.night .ticks li::before {
  background: #2dd4bf;
}

.partner-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
}

.partner-points li {
  padding-top: 22px;
  border-top: 1px solid var(--night-rule);
}

.partner-points h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.partner-points p {
  margin-top: 8px;
}

.dev {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 72px);
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.night .link {
  color: var(--night-text);
}

.night .link:hover {
  color: #2dd4bf;
}

.code {
  min-width: 0;
  border: 1px solid var(--night-rule);
  border-radius: 16px;
  background: var(--night-2);
}

.code-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-muted);
  font: 500 0.75rem/1.5 var(--mono);
}

.code pre {
  margin: 0;
  padding: 20px 18px 22px;
  overflow-x: auto;
  color: #e7e4dd;
  font: 400 0.8125rem/1.75 var(--mono);
  tab-size: 4;
}

.t-k {
  color: #7fd3c6;
}

.t-s {
  color: #e3c48a;
}

.t-v {
  color: #f2f0eb;
}

.t-c {
  color: #8b9096;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}

.plan {
  display: grid;
  align-content: start;
  padding: 28px 26px 26px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--white);
}

.plan h3 {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Two lines for whom a plan is, side by side: the prices of the three stand on one line. */
.plan-for {
  min-height: 3.1em;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.plan-price {
  margin-top: 24px;
  color: var(--ink-2);
}

.plan-sum {
  color: var(--ink);
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.plan-limits,
.plan-terms {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.plan-limits li + li {
  margin-top: 6px;
}

.plan-terms {
  display: grid;
  gap: 12px;
}

.plan-terms dt {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.plan-terms dd {
  font-weight: 600;
}

.plan-terms dd span {
  display: block;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 400;
}

.plans-common {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px clamp(24px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 72px);
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}

.faq details {
  grid-column: 2;
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.45em;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 46em;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* Pilot */

.pilot {
  padding: 0 0 clamp(72px, 9vw, 128px);
}

.pilot-card {
  padding: clamp(32px, 6vw, 80px);
  border-radius: 24px;
  background: var(--accent);
  color: var(--white);
}

.pilot-card .label {
  color: rgba(255, 255, 255, 0.92);
}

.pilot-card h2 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.pilot-card .lead {
  max-width: 38em;
  color: rgba(255, 255, 255, 0.88);
}

.pilot-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 64px);
}

.pilot-steps li {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.pilot-steps .step-num {
  color: rgba(255, 255, 255, 0.92);
}

.pilot-steps h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

.pilot-steps p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

/* The pilot's request form: a white sheet on the card, so fields and mistakes read as on paper. */

.pilot-form,
.pilot-done {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
}

/* Inside the white sheet the ring is the accent; around the done block, on the card, it stays white. */
.pilot-form :focus-visible {
  outline-color: var(--accent);
}

.pilot-form h3,
.pilot-done h3 {
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.pilot-done p {
  margin-top: 8px;
  color: var(--ink-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(16px, 2.5vw, 28px);
  margin-top: 24px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-optional {
  color: var(--ink-3);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field-rule);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--field-rule);
  border-radius: 999px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--ink-3);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.choice:has(input[aria-invalid="true"]) {
  border-color: #b42318;
}

.choice input,
.consent input,
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.field-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 0.875rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.9375rem;
}

.consent input {
  flex: none;
  margin-top: 3px;
}

.consent a,
.pilot-alt a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent + .field-error {
  margin-left: 30px;
}

.pilot-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.pilot-form-actions button[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.pilot-form-status {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.pilot-alt {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
}

/* The field people do not see: a program that fills every field fills it too. */

.pilot-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* What the requests' server answers with: a list of mistakes, the team's page of a request. */

.mistakes {
  max-width: 38em;
  margin-top: 28px;
}

.mistakes li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.mistakes li:last-child {
  border-bottom: 1px solid var(--rule);
}

.lead-actions {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 32px;
}

.legal-group .lead-actions {
  margin-top: 0;
}

.lead-missing {
  margin-top: 32px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-quiet {
  border-color: var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.btn-quiet:hover {
  border-color: #b42318;
  color: #b42318;
}

button.btn {
  cursor: pointer;
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 32px clamp(24px, 4vw, 48px);
  align-items: start;
}

.footer-brand .logo {
  font-size: 1.375rem;
}

.footer-brand p {
  margin-top: 14px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 40px;
}

.footer-nav a,
.footer-brand a:not(.logo),
.footer-legal a {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.footer-nav a:hover,
.footer-brand a:not(.logo):hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.footer-contact a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-contact p {
  margin-top: 4px;
}

/* The bottom line: the year, the requisites' page and the entrepreneur's numbers. */

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* A page that is not here */

.not-found {
  /* The header and the footer of the page fit the screen with it. */
  min-height: calc(100vh - 69px - 204px);
  padding: clamp(72px, 12vw, 160px) 0;
}

.not-found h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.not-found .hero-actions {
  margin-top: 36px;
}

/* Requisites and contacts */

.legal {
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 128px);
}

.legal h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal-group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 12px clamp(24px, 4vw, 48px);
  align-items: baseline;
  margin-top: clamp(40px, 5vw, 64px);
}

.legal .lead + .legal-group {
  margin-top: clamp(48px, 6vw, 80px);
}

.legal-group .label {
  color: var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2px clamp(20px, 3vw, 40px);
  align-items: baseline;
  padding: 14px 0 16px;
  border-top: 1px solid var(--rule);
}

.fact:last-child {
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  color: var(--ink-3);
}

.fact a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.fact a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

.digits {
  font-family: var(--mono);
  font-size: 0.9375em;
  letter-spacing: 0.02em;
}

/* The policy and the consent: a document's plain text. */

.policy {
  max-width: 46em;
  margin-top: clamp(40px, 5vw, 64px);
}

.policy-edition {
  color: var(--ink-3);
}

.policy h2 {
  margin-top: clamp(36px, 4vw, 48px);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.policy p,
.policy ul,
.policy ol {
  margin-top: 14px;
}

.policy ul {
  padding-left: 1.25em;
  list-style: disc;
}

.policy ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.policy li + li {
  margin-top: 8px;
}

.policy a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.policy a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

/* Smaller screens */

@media (max-width: 1080px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: start;
    margin-left: 44px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .messages,
  .reports,
  .dev {
    grid-template-columns: minmax(0, 1fr);
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .plan-for {
    min-height: 0;
  }

  .sms-panel,
  .sheet {
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: block;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .section-head,
  .strip dl,
  .note,
  .places,
  .plans-common,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head .label {
    padding-top: 0;
  }

  .faq details {
    grid-column: 1;
  }

  .steps,
  .rules,
  .two,
  .partner-points,
  .pilot-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step,
  .step + .step {
    padding: 20px 0 0;
    border-left: 0;
  }

  .steps {
    row-gap: 32px;
  }

  .step h3 {
    margin-top: 16px;
  }

  .place,
  .topic,
  .reports .topic {
    grid-template-columns: minmax(0, 1fr);
  }

  .partner-points,
  .pilot-steps {
    row-gap: 28px;
  }

  .names {
    gap: 4px 24px;
    font-size: 1.0625rem;
  }

  .hero-visual {
    margin-left: 28px;
    width: min(100% - 28px, 340px);
  }

  .member-card {
    left: -28px;
    width: 228px;
  }

  .phone {
    justify-self: center;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .legal-group,
  .fact,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .receipt {
    padding-inline: 18px;
    font-size: 0.75rem;
  }

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

  .pilot-card {
    padding: 28px 22px 32px;
  }

  .sheet {
    padding-inline: 14px;
  }

  .sheet .num {
    padding-left: 8px;
    font-size: 0.8125rem;
  }

  .hero-actions {
    gap: 20px;
  }
}
