/* HK (2026-11-14): страницы аккаунта - регистрация (пакет 28, ТЗ docs/16). Брендбук - как оформление заказа (hk-checkout.css).
   Всё под .hk-acc-page: на другие страницы не влияет. Без !important. Подключается контроллером account/register. */

/* Onest - текст (как в оформлении заказа; файлы уже на сервере: stylesheet/fonts/, пакет 12). Unbounded подключён в stylesheet.css. */
@font-face { font-family: 'HK Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'HK Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/onest-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; }

.hk-acc-page {
  --hk-basalt: #363636;
  --hk-basalt-deep: #1F1F1F;
  --hk-tangerine: #F58F1F;
  --hk-tangerine-hover: #F7A04A;
  --hk-leaf: #457534;
  --hk-chalk: #F4F1EC;
  --hk-sec: #FBFAF7;
  --hk-line: #E4DED5;
  --hk-fline: #CFC8BD;
  --hk-muted: #6E6A66;
  --hk-error: #A8433D;
  --hk-error-bg: #FBF1EF;
  --hk-font-display: 'HK Unbounded', 'Unbounded', 'Arial Black', sans-serif;
  --hk-font-body: 'HK Onest', 'Onest', Arial, sans-serif;
  font-family: var(--hk-font-body);
  color: var(--hk-basalt);
  font-size: 16px;
  line-height: 1.5;
}
.hk-acc-page *, .hk-acc-page *::before, .hk-acc-page *::after { box-sizing: border-box; }
.hk-acc-page .breadcrumb { background: transparent; padding: 8px 0; margin: 0 0 8px; font-size: 13px; }
.hk-acc-page [hidden] { display: none; }
.hk-acc-page a { color: var(--hk-leaf); text-decoration: underline; text-underline-offset: 2px; }
.hk-acc-page a:hover { color: #365c29; }
.hk-acc-page a:focus-visible { outline: 2px solid var(--hk-tangerine); outline-offset: 2px; border-radius: 4px; }

/* телефон: у контейнера темы нет боковых отступов - без них подписи и поля прилипали к краю экрана */
@media (max-width: 767px) {
  .container.hk-acc-page { padding-left: 16px; padding-right: 16px; }
}

/* раскладка: телефон - одна колонка; ПК - форма + «Зачем регистрироваться» */
.hk-acc { display: flex; flex-direction: column; gap: 24px; margin: 0 0 40px; }
.hk-acc-card { min-width: 0; }
.hk-acc-h1, .hk-acc-page h1.hk-acc-h1 { margin: 0 0 6px; padding: 0; font: 800 22px/1.15 var(--hk-font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--hk-basalt-deep); text-align: left; }
.hk-acc-sub { margin: 0 0 20px; font-size: 15px; color: var(--hk-muted); }

/* сводка ошибок после отправки */
.hk-acc-summary { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--hk-error); border-left-width: 4px; border-radius: 12px; background: var(--hk-error-bg); }
.hk-acc-summary:focus { outline: none; }
.hk-acc-summary:focus-visible { outline: 2px solid var(--hk-error); outline-offset: 2px; }
.hk-acc-summary-title { margin: 0; font-weight: 700; color: var(--hk-error); }
.hk-acc-summary-list { margin: 6px 0 0; padding-left: 20px; }
.hk-acc-summary-list:empty { display: none; }
.hk-acc-summary-list a { color: var(--hk-error); }

/* поля */
.hk-acc-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.hk-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hk-f-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--hk-basalt-deep); }
.hk-acc-page .hk-f-input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
  border: 1px solid var(--hk-fline); border-radius: 12px; background: #fff; box-shadow: none;
  font: 400 16px/1.2 var(--hk-font-body); color: var(--hk-basalt-deep);
  scroll-margin: 96px 0 160px;
  transition: border-color .15s, box-shadow .15s;
}
.hk-acc-page textarea.hk-f-input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.hk-acc-page .hk-f-input::placeholder { color: #A39E98; opacity: 1; }
.hk-acc-page .hk-f-input:hover { border-color: #B5AEA3; }
.hk-acc-page .hk-f-input:focus { outline: none; border-color: var(--hk-tangerine); box-shadow: 0 0 0 3px rgba(245, 143, 31, .25); }
.hk-f.is-err .hk-f-input, .hk-acc-page .hk-f-input[aria-invalid="true"] { border-color: var(--hk-error); background: var(--hk-error-bg); }
.hk-f.is-err .hk-f-input:focus { box-shadow: 0 0 0 3px rgba(168, 67, 61, .2); }
.hk-f-hint { margin: 0; font-size: 13px; color: var(--hk-muted); }
.hk-f-err { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.4; color: var(--hk-error); }
.hk-f-err::before { content: "!"; flex: 0 0 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--hk-error); color: #fff; font: 700 11px/16px var(--hk-font-body); text-align: center; }
.hk-f-err[hidden] { display: none; }
.hk-f-err a { color: var(--hk-error); font-weight: 700; }

/* пароль + «глаз» */
.hk-f-pass { position: relative; }
.hk-acc-page .hk-f-pass .hk-f-input { padding-right: 52px; }
.hk-acc-page .hk-f-eye {
  position: absolute; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--hk-muted); cursor: pointer;
}
.hk-acc-page .hk-f-eye:hover { color: var(--hk-basalt-deep); }
.hk-acc-page .hk-f-eye:focus-visible { outline: 2px solid var(--hk-tangerine); outline-offset: -2px; }
.hk-f-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hk-f-eye .hk-eye-off, .hk-f-eye[aria-pressed="true"] .hk-eye-on { display: none; }
.hk-f-eye[aria-pressed="true"] .hk-eye-off { display: block; }

/* галочки */
.hk-acc-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.hk-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; }
.hk-acc-page .hk-check input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--hk-tangerine); cursor: pointer; }
.hk-acc-page .hk-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--hk-tangerine); outline-offset: 2px; }
.hk-check label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--hk-basalt); cursor: pointer; }
.hk-check .hk-f-err { grid-column: 2; }
.hk-check.is-err input[type="checkbox"] { outline: 2px solid var(--hk-error); outline-offset: 2px; }

/* кнопка - как «Оформить» в оформлении заказа */
.hk-acc-page .hk-acc-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 8px 0 0; padding: 12px 24px;
  border: 0; border-radius: 40px; background: var(--hk-tangerine); color: var(--hk-basalt-deep);
  font: 800 14px/1.2 var(--hk-font-display); text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background-color .15s;
}
.hk-acc-page .hk-acc-btn:hover, .hk-acc-page .hk-acc-btn:focus { background: var(--hk-tangerine-hover); color: var(--hk-basalt-deep); }
.hk-acc-page .hk-acc-btn:focus-visible { outline: 2px solid var(--hk-basalt-deep); outline-offset: 3px; }
.hk-acc-page .hk-acc-btn:active { transform: translateY(1px); }
.hk-acc-page .hk-acc-btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.hk-acc-note { margin: 4px 0 0; font-size: 13px; color: var(--hk-muted); text-align: center; }

/* ловушка для ботов: вне экрана, недоступна с клавиатуры */
.hk-acc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* «Зачем регистрироваться» */
.hk-acc-why { min-width: 0; padding: 20px; border-radius: 16px; background: var(--hk-sec); border: 1px solid var(--hk-line); }
.hk-acc-why-title, .hk-acc-page h2.hk-acc-why-title { margin: 0 0 14px; font: 800 14px/1.25 var(--hk-font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--hk-basalt-deep); }
.hk-acc-why-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.hk-acc-why-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.45; color: var(--hk-basalt); }
.hk-acc-why-list svg { width: 24px; height: 24px; fill: none; stroke: var(--hk-tangerine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hk-acc-why-list b { color: var(--hk-basalt-deep); }

/* ПК: карточка формы и колонка выгод по центру */
@media (min-width: 768px) {
  .hk-acc { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 320px); gap: 32px; justify-content: center; align-items: start; margin: 8px 0 56px; }
  .hk-acc-card { padding: 32px; border: 1px solid var(--hk-line); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(31, 31, 31, .06); }
  .hk-acc-h1, .hk-acc-page h1.hk-acc-h1 { font-size: 26px; }
  .hk-acc-why { position: sticky; top: 24px; padding: 28px; }
}
@media (min-width: 992px) {
  .hk-acc { grid-template-columns: minmax(0, 500px) minmax(0, 360px); gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk-acc-page .hk-f-input, .hk-acc-page .hk-acc-btn { transition: none; }
}
