/* ============================================================================
   HQClouds — Domain Search UX (session 0017).
   Табы + skeleton-shimmer + карточки состояний (available/taken/premium/unknown)
   + TLD-фильтры + альтернативы. Строится ПОВЕРХ токенов hqclouds-landing.css:
   бренд-цвет НЕ хардкодим (var(--brand)/var(--brand-rgb) — их меняет рантайм-палитра).
   Семантические статус-цвета — те же, что уже используются в лендинге (#12a05f/#e0568e).
   ========================================================================== */

.hq-ds {
  /* Локальные СТАТУС-токены (не бренд): доступно/занято/premium/неизвестно. */
  --ds-ok: #12a05f;    --ds-ok-bg: #e8f7ef;    --ds-ok-bd: #bfe8d2;
  --ds-taken: #e0568e; --ds-taken-bg: #fdecf2; --ds-taken-bd: #f6cfe0;
  --ds-prem: #b7791f;  --ds-prem-bg: #fdf3e0;  --ds-prem-bd: #f0dcae;
  --ds-unk: #6b7280;   --ds-unk-bg: #f1f3f7;   --ds-unk-bd: #e2e6ef;
  margin-top: 26px;
}

/* ---------- tabs ---------- */
.hq-ds__tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; }
.hq-ds__tab { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--muted); font-family: var(--fui); font-weight: 600; font-size: .9rem; padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; }
.hq-ds__tab:hover { color: var(--ink); }
.hq-ds__tab.is-active { color: #fff; background: var(--brand); box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), .6); }
.hq-ds__tab-ico { font-size: .95em; line-height: 1; }

/* ---------- hint ---------- */
.hq-ds__hint { color: var(--muted); font-size: .88rem; margin: 14px 4px 0; }
.hq-ds__hint code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); font-size: .85em; }
.hq-ds__hint--error { color: var(--ds-taken); }

/* ---------- TLD strip (quick filters + price) ---------- */
.hq-ds__tlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.hq-ds-tld { display: inline-flex; align-items: baseline; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-xs); transition: border-color .15s, transform .15s; cursor: pointer; }
.hq-ds-tld:hover { border-color: var(--brand); transform: translateY(-2px); }
.hq-ds-tld.is-active { border-color: var(--brand); background: var(--soft); }
.hq-ds-tld__zone { font-weight: 700; color: var(--ink); font-size: .9rem; }
.hq-ds-tld__price { color: var(--brand-ink); font-size: .8rem; font-weight: 600; }
.hq-ds-tld__price--soon { color: var(--muted); }

/* ---------- results mount ---------- */
.hq-ds__results { max-width: 820px; margin: 26px auto 0; text-align: left; }
.hq-ds__results:empty { display: none; }
.hq-ds--static { margin-top: 0; }


/* ---------- state badge ---------- */
.hq-ds-badge { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .82rem; padding: .32rem .72rem; border-radius: 999px; white-space: nowrap; }
.hq-ds-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hq-ds-badge--available { color: var(--ds-ok); background: var(--ds-ok-bg); }
.hq-ds-badge--taken { color: var(--ds-taken); background: var(--ds-taken-bg); }
.hq-ds-badge--premium { color: var(--ds-prem); background: var(--ds-prem-bg); }
.hq-ds-badge--unknown { color: var(--ds-unk); background: var(--ds-unk-bg); }
.hq-ds-badge--unsupported_tld { color: var(--ds-unk); background: var(--ds-unk-bg); }
.hq-ds-badge--sm { font-size: .72rem; padding: .22rem .55rem; }

/* ============================================================================
   Результаты в стиле крупных регистраторов (0017.2): крупная строка точного
   совпадения + список строк «иконка зоны · домен · бейдж … цена · кнопка».
   ========================================================================== */

/* ---------- exact-match hero row ---------- */
.hq-ds-hero-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.hq-ds-hero-row--available { border-color: var(--ds-ok-bd); background: linear-gradient(160deg, var(--ds-ok-bg), var(--surface)); }
.hq-ds-hero-row--premium { border-color: var(--ds-prem-bd); background: linear-gradient(160deg, var(--ds-prem-bg), var(--surface)); }
.hq-ds-hero-row__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hq-ds-hero-row__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; color: var(--ds-unk); background: var(--ds-unk-bg); }
.hq-ds-hero-row--available .hq-ds-hero-row__icon { color: var(--ds-ok); background: var(--ds-ok-bg); }
.hq-ds-hero-row--taken .hq-ds-hero-row__icon { color: var(--ds-taken); background: var(--ds-taken-bg); }
.hq-ds-hero-row--premium .hq-ds-hero-row__icon { color: var(--ds-prem); background: var(--ds-prem-bg); }
.hq-ds-hero-row__text { min-width: 0; }
.hq-ds-hero-row__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-ds-hero-row__name { font-family: var(--fdisp); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.55rem); color: var(--ink); word-break: break-all; line-height: 1.1; }
.hq-ds-hero-row__note { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.hq-ds-hero-row__side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hq-ds-hero-row__price { font-family: var(--fdisp); font-weight: 600; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.hq-ds-hero-row__price-unit { color: var(--muted); font-size: .8rem; font-weight: 500; }
.hq-ds-hero-row__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- suggested rows list ---------- */
.hq-ds-alts { margin-top: 26px; }
.hq-ds-alts__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.hq-ds-alts__title { font-family: var(--fdisp); font-weight: 600; font-size: 1.05rem; margin: 0; color: var(--ink); }
.hq-ds-list { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.hq-ds-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--border); transition: background .14s; }
.hq-ds-row:first-child { border-top: 0; }
.hq-ds-row:hover { background: var(--bg-2); }
.hq-ds-row__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hq-ds-row__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; background: var(--bg-3); }
.hq-ds-row__name { font-family: var(--fdisp); font-weight: 600; color: var(--ink); word-break: break-all; }
.hq-ds-row__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hq-ds-row__price { color: var(--brand-ink); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.hq-ds-row__cta { padding: .5rem 1.15rem; font-size: .9rem; color: #fff; background: var(--ink); border-color: var(--ink); }
.hq-ds-row__cta:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-1px); }

/* zone icon tints (цветные иконки зон) */
.hq-ds-row__ico--sky { background: #e6f0fd; } .hq-ds-row__ico--indigo { background: #eae7fb; }
.hq-ds-row__ico--mint { background: #e6f7ef; } .hq-ds-row__ico--violet { background: #f0e9fb; }
.hq-ds-row__ico--coral { background: #fdece8; } .hq-ds-row__ico--amber { background: #fdf3e0; }
.hq-ds-row__ico--rose { background: #fdeaf1; } .hq-ds-row__ico--slate { background: #eef1f5; }

/* ---------- info note under results ---------- */
.hq-ds__foot { color: var(--muted); font-size: .82rem; margin-top: 16px; text-align: left; }

/* ============================================================================
   Skeleton (CSS-only shimmer). Единый источник разметки — views/domains/_skeleton.php.
   ========================================================================== */
.hq-ds-skel__primary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.hq-ds-skel__lines { flex: 1 1 auto; min-width: 0; }
.hq-ds-skel__list { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.hq-ds-skel__row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--border); }
.hq-ds-skel__row:first-child { border-top: 0; }

.hq-skel__bar, .hq-skel__btn, .hq-skel__ico { display: block; border-radius: 8px; background: var(--bg-3); }
.hq-skel__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.hq-ds-skel__primary .hq-skel__ico { width: 40px; height: 40px; border-radius: 12px; }
.hq-skel__bar { height: 16px; margin: 8px 0; }
.hq-skel__bar--lg { height: 24px; width: 55%; margin-top: 0; }
.hq-skel__bar--md { flex: 1 1 auto; height: 18px; width: 60%; margin: 0; }
.hq-skel__bar--sm { height: 13px; width: 38%; }
.hq-skel__btn { flex: none; height: 40px; width: 150px; border-radius: 12px; }
.hq-skel__btn--sm { width: 92px; height: 36px; margin-left: auto; }

/* shimmer sweep */
.hq-ds-skel .hq-skel__bar, .hq-ds-skel .hq-skel__btn, .hq-ds-skel .hq-skel__ico {
  background-image: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-2) 37%, var(--bg-3) 63%);
  background-size: 400% 100%;
  animation: hq-ds-shimmer 1.4s ease-in-out infinite;
}
@keyframes hq-ds-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- progressive reveal + checking state (0017.1) ---------- */
/* карточки «проявляются» по очереди (косметика; реальные состояния приходят одним bulk-запросом) */
.hq-ds-in { animation: hq-ds-fade .28s ease both; }
@keyframes hq-ds-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* пока идёт live-проверка availability — «пульс» на неизвестных бейджах */
.hq-ds__results.is-checking .hq-ds-badge--unknown::before { animation: hq-ds-pulse 1s ease-in-out infinite; }
@keyframes hq-ds-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .hq-ds__tabs { display: flex; width: 100%; }
  .hq-ds__tab { flex: 1 1 0; padding: .55rem .35rem; }
  /* hero-row: складываем; кнопки и цена на всю ширину */
  .hq-ds-hero-row { flex-direction: column; align-items: stretch; }
  .hq-ds-hero-row__side { margin-left: 0; justify-content: space-between; }
  .hq-ds-hero-row__actions { flex: 1 1 auto; }
  .hq-ds-hero-row__actions .hq-btn { flex: 1 1 auto; }
  /* строки: перенос правой части под левую */
  .hq-ds-row { flex-wrap: wrap; }
  .hq-ds-row__right { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ---------- a11y: motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hq-ds-skel .hq-skel__bar, .hq-ds-skel .hq-skel__btn { animation: none; }
  .hq-ds-row, .hq-ds-tld { transition: none; }
  .hq-ds-in { animation: none; }
  .hq-ds__results.is-checking .hq-ds-badge--unknown::before { animation: none; }
}

/* ============================================================================
   МУЛЬТИДОМЕННАЯ КОРЗИНА + CHECKOUT (session 0035).
   Единый компонент для лендинга и кабинета. Статус-токены (--ds-*) переобъявляем
   на корзине/чекауте, т.к. они живут ВНЕ .hq-ds (сиблинги в .hq-ds-layout).
   ========================================================================== */
.hq-cart, .hq-cart-bar, .hq-checkout, .hq-cart-page {
  --ds-ok: #12a05f;    --ds-ok-bg: #e8f7ef;    --ds-ok-bd: #bfe8d2;
  --ds-taken: #e0568e; --ds-taken-bg: #fdecf2; --ds-taken-bd: #f6cfe0;
  --ds-prem: #b7791f;  --ds-prem-bg: #fdf3e0;  --ds-prem-bd: #f0dcae;
  --ds-unk: #6b7280;   --ds-unk-bg: #f1f3f7;   --ds-unk-bd: #e2e6ef;
}

/* ---------- layout: search main + cart sidebar (устар. 0035; сайдбар убран в 0044) ---------- */
.hq-ds-layout { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; margin-top: 20px; }
.hq-ds-layout__main { min-width: 0; }
@media (min-width: 1000px) {
  .hq-ds-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
  .hq-ds-layout .hq-ds { margin-top: 0; }
}
.hq-ds-layout__main .hq-search { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }
.hq-ds-layout__main .hq-ds__results { max-width: none; margin-left: 0; margin-right: 0; }

/* ---------- 0044: поиск = только поиск (без заголовков/табов/чипов/сайдбара), на всю ширину ---------- */
.hq-hero--search { padding-top: 40px; padding-bottom: 40px; text-align: left; }
.hq-hero--search .hq-breadcrumbs { margin-bottom: 18px; }
.hq-ds--solo { margin-top: 8px; }
.hq-ds--solo .hq-search,
.hq-ds--solo .hq-ds__results { max-width: 860px; margin-left: 0; margin-right: 0; width: 100%; }
/* крупная строка поиска — растянута, симметрична результатам */
.hq-search--lg .hq-search__bar { min-height: 62px; }
.hq-search--lg .hq-search__input { font-size: 1.12rem; }
@media (max-width: 620px) { .hq-search--lg .hq-search__bar { min-height: 54px; } }

/* ---------- Add-to-cart control (кнопка «В корзину») ---------- */
.hq-ds-add { display: inline-flex; margin: 0; }
.hq-ds-add__btn { padding: .5rem 1.15rem; font-size: .9rem; white-space: nowrap; }
.hq-ds-add__btn--premium { background: var(--ds-prem); border-color: var(--ds-prem); color: #fff; }
.hq-ds-add__btn--premium:hover { background: #a06a12; border-color: #a06a12; color: #fff; }
/* 0057: в корзине — «✓ В корзине», кликабельно (второй клик убирает). Наведение → красный намёк «убрать». */
.hq-ds-add.is-added .hq-ds-add__btn { background: var(--ds-ok-bg); color: var(--ds-ok); border-color: var(--ds-ok-bd); box-shadow: none; }
.hq-ds-add.is-added .hq-ds-add__btn:hover { background: var(--ds-taken-bg); color: var(--ds-taken); border-color: var(--ds-taken-bd); transform: none; }
.hq-ds-add__btn:disabled { background: var(--ds-ok-bg); color: var(--ds-ok); border-color: var(--ds-ok-bd); cursor: default; box-shadow: none; transform: none; }

/* цена «уточняется»/premium в результатах */
.hq-ds-row__price--tbd, .hq-ds-hero-row__price--tbd { color: var(--muted); font-weight: 500; font-size: .85rem; }
.hq-ds-row__price--premium, .hq-ds-hero-row__price--premium { color: var(--ds-prem); }

/* ---------- cart sidebar / drawer ---------- */
.hq-cart { display: flex; flex-direction: column; border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
/* 0059: корзина — компактный dropdown ИЗ ШАПКИ (не полноэкранный сайдбар): всплывает под иконкой корзины
   справа сверху, скругление + тень, скролл внутри. Клик вне / Esc / крест — закрыть. */
.hq-cart--sidebar { position: fixed; top: 72px; right: 16px; bottom: auto; width: min(92vw, 384px);
  max-height: min(74vh, 640px); border-radius: 18px; box-shadow: 0 26px 64px -20px rgba(0, 0, 0, .42);
  transform: translateY(-8px) scale(.985); opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility .2s; z-index: 92; }
.hq-cart--sidebar.is-open { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 560px) { .hq-cart--sidebar { top: 64px; right: 8px; left: 8px; width: auto; } }
.hq-cart__head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.hq-cart__title { font-family: var(--fdisp); font-weight: 600; color: var(--ink); }
.hq-cart__count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; }
.hq-cart__close { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-flex; }
.hq-cart__empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: .9rem; }
.hq-cart__empty-emoji { font-size: 1.7rem; margin-bottom: 8px; }
/* items скроллятся внутри dropdown → любое число доменов (20/100) не ломает раскладку (Point 2). */
.hq-cart__items { overflow-y: auto; flex: 1 1 auto; max-height: 46vh; }
.hq-cart__foot { padding: 14px 18px 16px; border-top: 1px solid var(--border); background: var(--bg-2); }
.hq-cart__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.hq-cart__total-val { font-family: var(--fdisp); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.hq-cart__checkout { display: block; width: 100%; text-align: center; }
.hq-cart__checkout.is-disabled { opacity: .55; pointer-events: none; }
.hq-cart__continue { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.hq-cart__note { color: var(--muted); font-size: .76rem; margin: 10px 0 0; line-height: 1.4; }

/* ---------- cart item ---------- */
.hq-cart-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.hq-cart-item:first-child { border-top: 0; }
.hq-cart-item__main { min-width: 0; flex: 1 1 auto; }
.hq-cart-item__name { display: block; font-family: var(--fdisp); font-weight: 600; color: var(--ink); word-break: break-all; }
.hq-cart-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.hq-cart-item__note { color: var(--ds-prem); font-size: .74rem; }
.hq-cart-item.is-blocked .hq-cart-item__name { color: var(--muted); }
.hq-cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.hq-cart-item__price { font-family: var(--fdisp); font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.hq-cart-item__remove { margin: 0; }
.hq-cart-item__x { border: 0; background: transparent; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 6px; }
.hq-cart-item__x:hover { color: var(--ds-taken); }

/* small status badges reused inside cart (не зависят от .hq-ds) */
.hq-cart-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .72rem; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.hq-cart-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hq-cart-badge--available { color: var(--ds-ok); background: var(--ds-ok-bg); }
.hq-cart-badge--premium { color: var(--ds-prem); background: var(--ds-prem-bg); }
.hq-cart-badge--taken { color: var(--ds-taken); background: var(--ds-taken-bg); }
.hq-cart-badge--unknown { color: var(--ds-unk); background: var(--ds-unk-bg); }

/* ---------- 0057: плавающий нижний бар корзины (тёмная «пилюля», все ширины) ---------- */
.hq-cart-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 58;
  display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 20px; border-radius: 999px;
  background: #101014; color: #fff; box-shadow: 0 20px 48px -18px rgba(0, 0, 0, .55); max-width: min(94vw, 560px); }
.hq-cart-bar[hidden] { display: none; }
.hq-cart-bar__info { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; font-family: var(--fui); color: #fff; }
.hq-cart-bar__count { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff; color: #101014; font-size: .8rem; font-weight: 700; }
.hq-cart-bar__label { color: rgba(255, 255, 255, .66); font-size: .9rem; }
.hq-cart-bar__total { margin-left: auto; font-family: var(--fdisp); font-weight: 700; font-size: 1.05rem; }
.hq-cart-bar__go { flex: none; padding: .58rem 1.35rem; background: #fff; color: #101014; border-color: #fff; border-radius: 999px; }
.hq-cart-bar__go:hover { background: #ececec; border-color: #ececec; color: #000; transform: translateY(-1px); }
@media (max-width: 560px) {
  .hq-cart-bar { left: 12px; right: 12px; transform: none; max-width: none; border-radius: 18px; }
  .hq-cart-bar__go { padding: .58rem 1.05rem; }
}

/* 0059: dropdown-корзина — лёгкая полупрозрачная подложка (клик вне закрывает через JS), без скролл-лока.
   Раньше был тяжёлый off-canvas backdrop с dim + overflow:hidden; для dropdown из шапки это лишнее. */
html.hq-cart-open body::after { content: ""; position: fixed; inset: 0; background: transparent; z-index: 90; }

/* ---------- promo code (checkout, session 0048 → 0050 bulletproof) ---------- */
.hq-cpromo { margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--border); }
.hq-cpromo__label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.hq-cpromo__form { display: flex; gap: 8px; align-items: stretch; }
.hq-cpromo__input { flex: 1 1 auto; width: 100%; min-width: 0; box-sizing: border-box; margin: 0;
  border: 1px solid var(--border-2); border-radius: 10px; padding: .6rem .8rem; font-family: var(--fui);
  font-size: .9rem; background: var(--surface); color: var(--ink); -webkit-appearance: none; appearance: none; }
.hq-cpromo__input:focus { outline: none; border-color: var(--brand); }
.hq-cpromo__btn { flex: 0 0 auto; padding: .55rem 1rem; font-size: .88rem; }
.hq-cpromo__ok { color: var(--ds-ok, #12a05f); font-size: .84rem; margin: 8px 0 0; }
.hq-cpromo__err { color: var(--ds-taken, #e0568e); font-size: .84rem; margin: 8px 0 0; }
.hq-checkout__total--final { padding-top: 12px; border-top: 1px dashed var(--border); }
.hq-checkout__total--final .hq-checkout__total-val { color: var(--ds-ok, #12a05f); }

/* ---------- cart page (/domains/cart) — session 0050: симметрия (строка поиска и карточка = 640px, слева) ---------- */
.hq-cart-search { max-width: 640px; margin: 6px 0 18px; }   /* left-aligned 640 (совпадает с шириной карточки) */
.hq-cart-page { margin-top: 4px; }
.hq-cart--page { position: static; max-width: 640px; width: auto; margin: 0; transform: none; max-height: none; }
.hq-cart--page .hq-cart__close { display: none; }
.hq-cart-page__more { margin-top: 18px; }
.hq-h1 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--ink); margin: 12px 0 6px; }
.hq-lede { color: var(--muted); max-width: 620px; margin: 0 0 6px; }
.hq-back { display: inline-block; margin: 6px 0; color: var(--muted); font-size: .88rem; }
.hq-back:hover { color: var(--ink); }

/* ---------- checkout (/domains/checkout) ---------- */
.hq-checkout { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 20px; align-items: start; }
@media (min-width: 900px) { .hq-checkout { grid-template-columns: minmax(0, 1fr) 320px; } }
.hq-checkout__main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hq-checkout__items { border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.hq-checkout__items-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-family: var(--fdisp); font-weight: 600; color: var(--ink); font-size: .95rem; }
.hq-checkout__items-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: .78rem; font-weight: 700; }
.hq-checkout__reassure { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.hq-checkout__reassure-ico { flex: none; color: var(--ds-ok, #12a05f); display: inline-flex; }
.hq-checkout__side { border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 22px; position: sticky; top: 88px; }
.hq-checkout__total { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; color: var(--muted); }
.hq-checkout__total-val { font-family: var(--fdisp); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.hq-checkout__gate { color: var(--ink-2); font-size: .92rem; margin: 0 0 12px; }
.hq-checkout__balance { margin: 2px 0 14px; color: var(--muted); }
.hq-checkout__balance strong { color: var(--ink); }
.hq-checkout__cta { display: block; width: 100%; text-align: center; margin-bottom: 8px; }
.hq-checkout__cta[disabled] { opacity: .5; cursor: not-allowed; }
/* 0057: «Купить» — основная кнопка (крупная, на всю ширину) */
.hq-checkout__buy { margin: 4px 0 0; }
.hq-checkout__buy-btn { display: block; width: 100%; text-align: center; padding-top: .8rem; padding-bottom: .8rem; font-size: 1rem; }
.hq-checkout__hint { color: var(--muted); font-size: .84rem; margin: 12px 0 8px; line-height: 1.45; }
.hq-checkout__note { color: var(--muted); font-size: .78rem; margin: 12px 0 0; line-height: 1.45; }
.hq-checkout__back { display: inline-block; margin-top: 12px; color: var(--muted); font-size: .86rem; }
.hq-checkout__changed { margin: 8px 0 4px; padding-left: 18px; font-size: .88rem; }

/* ---------- flash banners (warn/ok/info) ---------- */
.hq-banner--warn { border-color: #f0dcae; background: #fdf6e7; color: #7a5a12; }
.hq-banner--ok { border-color: #bfe8d2; background: #eafaf1; color: #10794a; }
.hq-banner--info { border-color: var(--border-2); background: var(--bg-2); color: var(--ink-2); }

/* ---------- toast (feedback добавления) ---------- */
.hq-cart-toast { position: fixed; left: 50%; bottom: 94px; transform: translate(-50%, 18px); opacity: 0; z-index: 95; max-width: 90vw; padding: .7rem 1.1rem; border-radius: 12px; font-size: .9rem; font-weight: 500; color: #fff; background: var(--ink); box-shadow: var(--shadow-lg, 0 18px 40px -18px rgba(0,0,0,.5)); transition: opacity .25s, transform .25s; pointer-events: none; }
.hq-cart-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.hq-cart-toast--err { background: var(--ds-taken, #e0568e); }
.hq-cart-toast--ok { background: var(--ds-ok, #12a05f); }
@media (max-width: 560px) { .hq-cart-toast { bottom: 96px; } }

/* ---------- responsive: cart items stack ---------- */
@media (max-width: 480px) {
  .hq-cart-item { flex-wrap: wrap; }
  .hq-cart-item__side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hq-cart--sidebar { transition: none; }
  .hq-cart-toast { transition: none; }
}

/* ---------- 0066: loading state on checkout CTA (кнопка блокируется + спиннер) ---------- */
.hq-btn.is-loading { pointer-events: none; opacity: .92; cursor: default; }
.hq-spin { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hq-spin .6s linear infinite; }
@keyframes hq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hq-spin { animation: none; } }
