@font-face {
  font-family: Golos;
  src: url(/assets/golos-text-cyr-latin.woff2);
}
@font-face {
  font-family: Unbounded;
  font-weight: 500 800;
  src: url(/assets/unbounded-cyr.woff2);
  unicode-range: U+0400-052F;
}
@font-face {
  font-family: Unbounded;
  font-weight: 500 800;
  src: url(/assets/unbounded-latin.woff2);
  unicode-range: U+0000-024F;
}
:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #000;
  --edge: #d6d6d6;
  font:
    16px/1.5 Golos,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  padding-block: clamp(32px, 6vw, 78px);
}
.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: auto;
}
.bar {
  border-bottom: 1px solid var(--edge);
}
.line,
footer,
.head,
.actions,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.line {
  padding-block: 17px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font:
    bold 16px Unbounded,
    sans-serif;
  text-decoration: none;
  letter-spacing: -0.045em;
}
.brand img {
  border-radius: 10px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.support,
footer {
  font-size: 14px;
}
footer {
  padding-block: 24px;
  border-top: 1px solid var(--edge);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Unbounded, Golos, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}
h1 {
  font-size: clamp(32px, 4.6vw, 60px);
}
h2 {
  font-size: clamp(21px, 2.6vw, 32px);
}
h3 {
  font-size: 20px;
}
.auth {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 24px;
  overflow: hidden;
}
.art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  color: white;
  padding: clamp(24px, 4vw, 54px);
  background: var(--ink);
}
.art:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, #000000e6, transparent 78%),
    url(/assets/checkout-engraving.jpg) center/cover;
  filter: grayscale(1);
}
.art h1 {
  max-width: 9em;
}
.formpanel,
.card {
  padding: clamp(22px, 3.4vw, 44px);
}
.formpanel {
  align-self: center;
  display: grid;
  gap: 17px;
}
.formpanel form,
.stack {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input,
select,
button,
.button {
  font: inherit;
}
input,
select {
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #767676;
  border-radius: 9px;
  padding: 10px 13px;
  width: 100%;
  min-width: 0;
}
input::placeholder {
  color: var(--ink);
  opacity: 1;
}
button,
.button {
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: white;
  padding: 11px 17px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-height: 45px;
}
button:hover,
.button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--edge);
}
.text {
  color: var(--ink);
  background: none;
  border: 0;
  padding: 3px 0;
  justify-self: start;
}
.actions {
  justify-content: flex-start;
}
.head {
  margin-bottom: 28px;
}
.head p {
  margin-top: 8px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 18px;
  min-width: 0;
}
.subscription-actions {
  margin-top: 6px;
}
.subscription-actions > * {
  max-width: 100%;
}
.item {
  display: grid;
  gap: 12px;
}
.item + .item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}
.item.row {
  display: flex;
}
.row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 3px 8px;
}
.badge.wait {
  border-style: dashed;
}
.account {
  overflow-wrap: anywhere;
}
.hint {
  font-size: 14px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
}
.check input {
  width: 19px;
  min-height: 19px;
  flex: none;
}
#message:not(:empty) {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 750px) {
  .auth,
  .columns {
    grid-template-columns: 1fr;
  }
  .art {
    min-height: 200px;
  }
  .art h1 {
    max-width: 100%;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .brand {
    font-size: 14px;
  }
  .line {
    gap: 8px;
  }
  .head {
    align-items: flex-start;
  }
  .support {
    font-size: 13px;
  }
  .card {
    padding: 22px;
  }
  .auth {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth,
  .columns {
    animation: appear 0.23s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
  }
}

.setup-steps {
  margin: 0;
  padding-inline-start: 1.6em;
}
.setup-steps li + li, .setup-steps .button, details[open] > .stack {
  margin-top: 12px;
}
summary { cursor: pointer; }

.setup-steps p { white-space: pre-line; overflow-wrap: anywhere; }
.setup-steps .button { overflow-wrap: anywhere; }

.guide-actions { margin-top: 12px; }
.setup-steps .guide-actions .button { margin-top: 0; }
