@charset "UTF-8";
:root {
  /* цвета */
  --bg: #f6f6f6;
  --white: #fff;
  --ink: #2f2f2f;
  --ink-soft: #444141;
  --muted: #8d8d8d;
  --muted-2: #b4b4b4;
  --line: #e6e8ec;
  --lime: #c4f449;
  --lime-dark: #b2e336;
  --violet: #8942fe;
  --red: #e64949;
  --green: #4d7c0f; /* «свободно», «готово» — текст на белом, контраст 4.9:1 */
  /* радиусы */
  --r-xs: 10px;
  --r-sm: 15px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;
  --r-pill: 100px;
  /* тени */
  --shadow: 0 10px 40px rgba(47, 47, 47, 0.08);
  --shadow-soft: 0 4px 20px rgba(47, 47, 47, 0.06);
  /* шрифт */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Manrope — свои копии вместо Google Fonts (внешний домен, который из России грузится медленно и блокирует отрисовку).
   Один вариативный файл на набор символов: веса 200–800. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-ext.28f2a82ccec8.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.8fc0aa17e129.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: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.623714ac1d99.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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.101877a7a906.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;
}
/* ---------- сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media screen and (max-width: 767.98px) {
  body {
    font-size: 15px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

/* ---------- типографика ---------- */
.title {
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
@media screen and (max-width: 767.98px) {
  .title {
    font-size: 22px;
  }
}

.lead {
  margin-top: 10px;
  color: var(--ink-soft);
}

.hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: 0.3s ease-in-out;
}
.link:hover {
  color: var(--ink-soft);
}

/* ---------- кнопки — как в event (_base.scss) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: 0.3s ease-in-out;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  background: var(--lime-dark);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: #1f1f1f;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  background: var(--bg);
}
.btn--sm {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- формы — как в event (_forms.scss) ---------- */
.form {
  margin-top: 28px;
}
.form .btn {
  margin-top: 8px;
}

.field {
  margin-bottom: 12px;
}
.field > label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid transparent;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease-in-out;
}
.field input:focus {
  border-color: var(--ink);
  background: var(--white);
}
.field input[aria-invalid=true] {
  border-color: var(--red);
}
.field input::-moz-placeholder {
  color: var(--muted-2);
}
.field input::placeholder {
  color: var(--muted-2);
}
.field--code input {
  height: 64px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.4em;
}
.field__hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.field__hint li + li {
  margin-top: 2px;
}
.field__control {
  position: relative;
}
.field--nickname .field__control::before {
  content: "@";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}
.field--nickname input {
  padding-left: 36px;
  padding-right: 48px;
}
.field.is-checking .field__control::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: field-spin 0.7s linear infinite;
}
.field.is-ok .field__control::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 6px;
  height: 12px;
  margin-top: -8px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field__status {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--green);
}

@keyframes field-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .field.is-checking .field__control::after {
    animation-duration: 2s;
  }
}
.errorlist {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--red);
}

.form__errors:not(:empty) {
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(230, 73, 73, 0.08);
}
.form__errors:not(:empty) .errorlist {
  margin: 0;
}

/* ---------- галочка (согласие на обработку персональных данных) — как в event ---------- */
.field--checkbox {
  margin-top: 4px;
}
.field--checkbox .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.field--checkbox input[type=checkbox] {
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.field--checkbox input[type=checkbox][aria-invalid=true] {
  outline: 1px solid var(--red);
  outline-offset: 3px;
}
.field--checkbox .errorlist {
  margin-left: 28px;
}

/* ---------- раскладка страниц аккаунта ---------- */
.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 16px;
}
@media screen and (max-width: 767.98px) {
  .auth {
    gap: 24px;
    padding: 24px 16px;
  }
}
.auth__card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
@media screen and (max-width: 767.98px) {
  .auth__card {
    padding: 28px 20px;
    border-radius: var(--r-md);
  }
}
.auth__card--wide {
  max-width: 760px;
}
.auth__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  max-width: 460px;
  font-size: 13px;
  text-align: center;
}
.auth__footer .link {
  color: var(--muted);
}
.auth__footer .link:hover {
  color: var(--ink);
}
.auth__secondary {
  margin-top: 12px;
}
.auth__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.auth__actions .btn {
  margin-top: 0;
  padding-inline: 16px;
  white-space: normal;
  text-align: center;
}
.auth {
  /* шаги заполнения профиля: полоски + «Шаг 1 из 2» */
}
.auth__steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}
.auth__steps span {
  width: 28px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
}
.auth__steps span.is-active {
  background: var(--ink);
}
.auth__steps p {
  margin-left: 6px;
}
.auth__alt {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.auth {
  /* главная: аватар + имя + @ник */
}
.auth__person {
  display: flex;
  align-items: center;
  gap: 18px;
}
.auth__person > div {
  min-width: 0;
}
.auth__person .title,
.auth__person .lead {
  overflow-wrap: break-word;
}
@media screen and (max-width: 767.98px) {
  .auth__person {
    gap: 14px;
  }
}
.auth__avatar {
  display: block;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 40px;
  transition: opacity 0.3s ease-in-out;
}
.auth__avatar:hover {
  opacity: 0.85;
}
@media screen and (max-width: 767.98px) {
  .auth__avatar {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
.auth__id {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.auth__id b {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- логотип — как в event (_header.scss) ---------- */
.logo {
  --logo-letters-height: 25px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  width: 104px;
  height: auto;
}
.logo__suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--logo-letters-height);
  padding: 0 8px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- шаг «Фото профиля»: выбор файла и рамка обрезки ---------- */
.field > .avatar__pick {
  display: flex;
  margin: 0;
  color: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.field > .avatar__pick:hover, .field > .avatar__pick.is-over {
  border-color: var(--ink);
  background: var(--white);
}
@media screen and (max-width: 767.98px) {
  .field > .avatar__pick {
    min-height: 160px;
  }
}
.avatar__pick-title {
  font-size: 16px;
  font-weight: 600;
}
.avatar__pick-hint {
  font-size: 13px;
  color: var(--muted);
}
.avatar__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.field > .avatar__pick[hidden], .avatar__stage[hidden] {
  display: none;
}
.avatar__crop {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--bg);
  touch-action: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}
.avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.avatar__frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 9999px rgba(47, 47, 47, 0.55);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.avatar__frame.is-dragging {
  cursor: grabbing;
}
.avatar__frame[aria-disabled=true] {
  cursor: default;
}
.avatar__frame:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -6px;
}
.avatar__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.avatar__change {
  margin-top: 8px;
  font-size: 14px;
  cursor: pointer;
}

.field:has(input[type=file]:focus-visible) .avatar__pick {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- аватар пользователя или заглушка (includes/avatar_image.html) ----------
   Заполняет родителя: размер задаёт обёртка (например, .auth__avatar), букве — её font-size. */
.avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--bg);
}
.avatar-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ---------- юридические страницы: политика конфиденциальности, согласие ---------- */
.legal {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.legal .title {
  margin-bottom: 8px;
  color: var(--ink);
}
.legal h2 {
  margin: 32px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}
.legal h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.legal p,
.legal ul {
  margin: 0 0 10px;
}
.legal ul {
  padding-left: 20px;
  list-style: disc;
}
.legal li + li {
  margin-top: 4px;
}
.legal b {
  font-weight: 600;
  color: var(--ink);
}
.legal a {
  overflow-wrap: anywhere;
}
.legal__signature {
  margin-top: 32px !important;
  font-size: 13px;
  color: var(--muted);
}
@media screen and (max-width: 767.98px) {
  .legal {
    font-size: 14px;
  }
  .legal h2 {
    font-size: 17px;
  }
}

/* ---------- список сервисов PALER на главной ---------- */
.services {
  margin-top: 24px;
}
.services__title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.services__list {
  border-top: 1px solid var(--line);
}
.services__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition: 0.3s ease-in-out;
}
.services__item:hover .services__arrow {
  transform: translate(2px, -2px);
  stroke: var(--ink);
}
.services__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.services__domain {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.services__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: 0.3s ease-in-out;
}

/* ---------- всплывающие сообщения — как в event (_toast.scss),
   но в стопке: их может быть несколько ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: -moz-max-content;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
@media screen and (max-width: 767.98px) {
  .toasts {
    bottom: 20px;
  }
}

.toast {
  padding: 16px 28px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}
.toast--success {
  background: var(--lime);
  color: var(--ink);
}
.toast--error {
  background: var(--red);
  color: var(--white);
}
@media screen and (max-width: 767.98px) {
  .toast {
    border-radius: var(--r-md);
  }
}