/* Postellium Cards — базовый слой: токены, сброс, типографика, элементы форм.
   Подключается первым на всех страницах. */

@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Unbounded:wght@400;500;600&display=swap");

:root {
  /* Палитра: холодный «витринный» фон, белые плитки, фиолетовое действие,
     лаймовый стикер цены — как ценник на маркетплейсе. */
  --ink: #16152a;
  --ink-soft: #3a3752;
  --muted: #6e6b89;
  --canvas: #eceef3;
  --canvas-deep: #e2e4ec;
  --tile: #ffffff;
  --line: #d9dbe6;
  --line-soft: #e8eaf1;

  --brand: #4b2ee0;
  --brand-press: #3a21b8;
  --brand-wash: #eeeaff;
  --sticker: #e4ff4f;

  --ok: #0f7a52;
  --ok-wash: #e2f5ec;
  --warn: #b83a22;
  --warn-wash: #fceae5;

  --r-tile: 20px;
  --r-control: 12px;
  --r-chip: 999px;

  --sans: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Golos Text", "Segoe UI", system-ui, sans-serif;

  --page: 1180px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.12rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
  max-width: 64ch;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.page {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 24px;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

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

/* — Кнопки — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-press);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--tile);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
}

.btn-quiet {
  color: var(--ink-soft);
  padding-inline: 12px;
}

.btn-quiet:hover {
  color: var(--ink);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* — Поля — */
.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--tile);
  padding: 11px 14px;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}

.input[aria-invalid="true"] {
  border-color: var(--warn);
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.checkline input {
  margin: 3px 0 0;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex: none;
}

/* — Сообщения — */
.notice {
  border-radius: var(--r-control);
  padding: 11px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.notice-error {
  background: var(--warn-wash);
  border-color: #f0c4b8;
  color: var(--warn);
}

.notice-ok {
  background: var(--ok-wash);
  border-color: #b9e0cd;
  color: var(--ok);
}

.notice[hidden] {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-chip);
  padding: 4px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--brand-wash);
  color: var(--brand-press);
}

/* — Логотип — */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex: none;
}

.wordmark i::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: var(--sticker);
  border: 2px solid var(--canvas);
}

.wordmark span b {
  font-weight: 400;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
