@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-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: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/playfair-display-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/playfair-display-700-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 {
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius-card: 24px;
  --radius-field: 16px;
  --control: 54px;
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font: 16px / 1.5 var(--font-ui);
  -webkit-text-size-adjust: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 20px;
}
.mark {
  width: 36px;
  height: 42px;
}
.brand-name {
  font: 700 26px / 1.1 var(--font-display);
}
.brand-caption {
  color: var(--ink2);
  font-size: 14px;
}

.card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.2;
}
h1 {
  font-size: 26px;
}
h2 {
  font-size: 20px;
}
p {
  margin: 0;
}
.lead,
.card p {
  color: var(--ink2);
}
.card p.free {
  color: var(--free);
  font-weight: 600;
}

.stack,
.org {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--sand);
  border-radius: var(--radius-field);
}

label {
  font-size: 14px;
  font-weight: 600;
}
input {
  width: 100%;
  height: var(--control);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control);
  padding: 0 20px;
  border-radius: 99px;
  border: 1px solid transparent;
  font: 700 16px / 1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: var(--accent-ink);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent-ink);
}
.button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}
form {
  margin: 0;
}

.foot {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: var(--ink3);
  font-size: 13px;
}
