/* Вход и регистрация, профиль, документы, «О нас» */

.page-title { font-size: var(--fs-xl); }

/* ---------- Вход, регистрация, сброс пароля ---------- */
.auth { max-width: 460px; margin: var(--s-4) auto var(--s-6); border-top: 4px solid var(--accent); }
@media (min-width: 768px) { .auth { margin-top: var(--s-6); } }
.auth .h2 { font-size: var(--fs-xl); }
.auth__sub { margin: var(--s-2) 0 var(--s-5); color: var(--ink-2); }
.auth__pair { display: grid; gap: 0 var(--s-3); }
@media (min-width: 480px) { .auth__pair { grid-template-columns: 1fr 1fr; } }
.auth__pair .field + .field { margin-top: var(--s-4); }
@media (min-width: 480px) { .auth__pair .field + .field { margin-top: 0; } }
.auth__pair, .auth form > .field + .auth__pair, .auth form > .auth__pair + .field { margin-top: var(--s-4); }
.auth__links { margin: var(--s-4) 0 0; text-align: center; }
.auth__alt { margin: var(--s-3) 0 0; text-align: center; color: var(--ink-2); }
.auth__links a, .auth__alt a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }

/* Показ пароля: глаз перечёркивается, когда пароль виден */
.input-group__btn .eye--off { display: none; }
.input-group__btn[aria-pressed="true"] .eye--on { display: none; }
.input-group__btn[aria-pressed="true"] .eye--off { display: block; }

/* ---------- Профиль ---------- */
.settings { max-width: 720px; margin-inline: auto; }
.settings__sec { margin-bottom: var(--s-4); }
.settings__sec .h3 { margin-bottom: var(--s-3); }
.settings__danger { border-color: var(--st-fail-bd); }
.settings__danger .h3 { color: var(--danger); }
.settings__danger p { margin-top: 0; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); margin-bottom: var(--s-4); border-radius: var(--r-card); background: var(--st-work-bg); color: var(--st-work-fg); border: 1px solid var(--st-work-bd); }
.notice svg { flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: var(--s-1); }
.notice__title { font-weight: 700; }

/* ---------- Документы ---------- */
.docs { max-width: 760px; margin-inline: auto; }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.docs__item { display: flex; gap: var(--s-4); align-items: flex-start; }
.docs__icon { flex: none; color: var(--accent-text); margin-top: 2px; }
.docs__text { min-width: 0; flex: 1; }
.docs__text .h3 { margin-bottom: var(--s-3); }

.doc { max-width: 760px; margin-inline: auto; }
.doc__title { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.doc__body p { margin: 0; }
.doc__body p + p { margin-top: var(--s-4); }
.doc__body .btn { white-space: normal; text-align: left; }

/* ---------- О нас ---------- */
.about-hero { background: var(--steel-900); color: #fff; padding-block: var(--s-7); border-bottom: 4px solid var(--accent); }
@media (min-width: 900px) { .about-hero { padding-block: var(--s-8); } }
.about-hero__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); line-height: .95; color: #fff; }
.about-hero__lead { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-md); color: #C3CFDA; }
.about-hero__tags { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.about-hero__tags li { padding: .35rem .85rem; border: 1.5px solid var(--steel-700); border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--brass-300); }
.about-hero__text { max-width: 56ch; color: #C3CFDA; margin: 0 0 var(--s-5); }

.about-sec { padding-block: var(--s-7); }
.about-sec > .h2 { margin-bottom: var(--s-5); }
.about-grid { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid .h3 { margin-bottom: var(--s-2); }
.about-grid p { margin: 0; color: var(--ink-2); }

.about-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: var(--s-7); }
.about-band .h2 { margin-bottom: var(--s-5); }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .pros { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pros { grid-template-columns: repeat(4, 1fr); } }
.pros svg { color: var(--accent-text); margin-bottom: var(--s-2); }
.pros p { margin: var(--s-1) 0 0; color: var(--ink-2); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.steps li { position: relative; padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-4) + 56px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 900px) { .steps li { padding: 72px var(--s-4) var(--s-4); } }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: var(--s-4); top: var(--s-4); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.steps p { margin: var(--s-1) 0 0; color: var(--ink-2); }

.about-outro { padding-block: var(--s-5); }
.about-outro__text { margin: 0; max-width: 70ch; font-style: italic; color: var(--ink-2); border-left: 4px solid var(--accent); padding-left: var(--s-4); }

.contacts { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.contacts li { display: flex; align-items: center; gap: var(--s-3); }
.contacts img, .contacts svg { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; padding: 4px; }
.contacts svg { color: var(--steel-900); }
.contacts a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Страницы ошибок ---------- */
.errpage { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-7) var(--s-8); }
.errpage > :not(svg) { max-width: 760px; margin-inline: 0; }
.errpage__reticle { position: absolute; z-index: -1; right: 0; top: 50%; translate: 0 -50%; width: min(78vw, 440px); aspect-ratio: 1; color: var(--accent-text); opacity: .14; pointer-events: none; }
.errpage__code { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(6.5rem, 30vw, 13rem); line-height: .8; letter-spacing: -.01em; color: var(--accent); }
.errpage__title { margin-top: var(--s-4); font-size: var(--fs-xl); }
.errpage .lead { margin: var(--s-3) 0 0; }
.errpage__actions { margin-top: var(--s-5); }
@media (max-width: 480px) { .errpage__actions .btn { width: 100%; } }
