* { box-sizing: border-box; }

:root {
  --bg: #050608;
  --bg-soft: #11131a;
  /* Блоки главной после hero */
  --hs-home-after-bg: #07070c;
  --card: rgba(18, 20, 30, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f2ff;
  --muted: #b4b9ce;
  /* Шкала UI-текста: минимум +2px от прежних 10/11/12/13 */
  --hs-font-2xs: 12px;
  --hs-font-xs: 13px;
  --hs-font-sm: 14px;
  --hs-font-md: 15px;
  --hs-font-base: 16px;
  --primary: #6236ff;
  --primary-2: #4520c0;
  --success: #22c55e;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  /* Единая стилистика блоков: стекло без градиентов (полупрозрачность + blur) */
  --block-radius: 26px;
  --block-bg-dark: rgba(16, 18, 28, 0.44);
  --block-border-dark: rgba(255, 255, 255, 0.1);
  --block-border-dark-hover: rgba(255, 255, 255, 0.18);
  --block-shadow-dark: 0 16px 42px rgba(0, 0, 0, 0.28);
  --hs-glass-blur: blur(20px) saturate(145%);
  --surface-light: #f4f4f6;
  --text-on-light: #121218;
  --text-on-light-muted: #4a5168;
  --text-on-primary: #ffffff;
}

/* ===== Restored UI enhancements (without glass/background-variants) ===== */
.hs-footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 0;
  vertical-align: -2px;
  opacity: 0.45;
}

.hs-footer__grid p svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.45;
}

.hs-check-list--icons li::before {
  content: none;
}

.hs-check-list--icons li {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.hs-flow--connected {
  position: relative;
}

.hs-flow__step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(98, 54, 255, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hs-flow__item--step:hover .hs-flow__step-num {
  transform: scale(1.12);
  box-shadow: 0 0 32px rgba(98, 54, 255, 0.45);
}

.hs-flow__item--step {
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.hs-flow__item--step:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 54, 255, 0.3);
}

[data-hs-tooltip] {
  position: relative;
  cursor: help;
}

[data-hs-tooltip]::after {
  content: attr(data-hs-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(18, 20, 30, 0.96);
  border: 1px solid rgba(98, 54, 255, 0.25);
  color: #e6e6ff;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

[data-hs-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html.hs-tooltips-portal [data-hs-tooltip]::after {
  display: none !important;
}

.hs-tooltip-portal {
  position: fixed;
  z-index: 10050;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(18, 20, 30, 0.98);
  border: 1px solid rgba(98, 54, 255, 0.35);
  color: #e6e6ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hs-tooltip-portal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hs-tooltip-portal.is-below.is-visible {
  transform: translateY(0);
}

/* Диагональная стрелка «открыть» — ЛК (account.css уточняет позицию) и карточки тренеров */
.hs-lk-corner-arrow {
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hs-coach-card-v2 > .hs-lk-corner-arrow {
  top: 12px;
  right: 12px;
  z-index: 6;
}

.hs-coach-card-v2:hover > .hs-lk-corner-arrow,
.hs-coach-card-v2:focus-visible > .hs-lk-corner-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.hs-coach-card-v2 {
  display: grid;
  gap: 0;
  height: 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  border-radius: var(--block-radius);
  border: 1px solid var(--block-border-dark);
  background-color: var(--block-bg-dark);
  background-image: none;
  box-shadow: var(--block-shadow-dark);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
  overflow: hidden;
  text-decoration: none;
  color: #f5f5f7;
  transition: border-color 0.25s ease, box-shadow 0.32s ease;
  position: relative;
}

.hs-coach-card-v2:hover,
.hs-coach-card-v2:focus-visible {
  border-color: var(--block-border-dark-hover);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(186, 170, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .hs-coach-card-v2 {
    transition-duration: 0.01ms;
  }
}

.hs-coach-card-v2__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  background-color: #050508;
}

/* Слой 0: сетка как в hero — самый нижний декоративный слой */
.hs-coach-card-v2__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, #000 22%, transparent 78%);
  opacity: 0.52;
  pointer-events: none;
}

/* Слой 1: лёгкое свечение над сеткой, под фото */
.hs-coach-card-v2__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 38%, rgba(98, 54, 255, 0.14) 0%, transparent 48%);
  pointer-events: none;
}

.hs-coach-card-v2__visual img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.hs-coach-card-v2:hover .hs-coach-card-v2__visual img,
.hs-coach-card-v2:focus-visible .hs-coach-card-v2__visual img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.hs-coach-card-v2__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hs-coach-card-v2__featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(98, 54, 255, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 4;
}

.hs-coach-card-v2__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  min-height: 122px;
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.hs-coach-card-v2__info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.02) 0%, rgba(8, 9, 12, 0.68) 34%, rgba(8, 9, 12, 0.88) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  pointer-events: none;
}

.hs-coach-card-v2__info > * {
  position: relative;
  z-index: 1;
}

.hs-coach-card-v2__info h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
}
.hs-coach-card-v2__name-glass {
  position: absolute;
  top: 12px;
  left: 50%;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--block-border-dark);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: none;
}

.hs-coach-card-v2__name {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-coach-card-v2__role { margin: 0; color: rgba(219, 230, 255, 0.82); font-size: 14px; font-weight: 700; }
.hs-coach-card-v2__bio {
  margin: 0;
  color: rgba(219, 230, 255, 0.7);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hs-coach-card-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.hs-coach-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d5def5;
  font-size: var(--hs-font-2xs);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.98), rgba(5, 6, 8, 1)),
    var(--bg);

}

body {
  min-width: 320px;
  font-size: var(--hs-font-base);
  line-height: 1.55;
  animation: hs-page-enter 0.7s ease both;
}

body::selection {
  background: rgba(98, 54, 255, 0.35);
}

img {
  max-width: 100%;
}

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

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

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hs-body {
  position: relative;
  overflow-x: hidden;
}

.hs-skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.hs-skip-link:focus {
  top: 16px;
}

.hs-noise {
  display: none;
}

.hs-orb {
  display: none;
}

/* Хедер: как в мебельном лендинге — скрыт только при скролле вниз после ~120px; иначе всегда виден */
.hs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 15, 0.72);
  transform: translateY(0);
  transition:
    transform 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.hs-header.hs-header--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.hs-header.scrolled {
  background: rgba(7, 9, 15, 0.84);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.hs-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.hs-brand {
  display: inline-flex;
  align-items: center;
}

.hs-brand img {
  height: 34px;
  width: auto;
}

.hs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hs-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hs-nav a:hover,
.hs-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hs-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.hs-header__actions .hs-btn--small {
  min-width: 0;
  max-width: 100%;
}

.hs-header__btn-label--short {
  display: none;
}

@media (max-width: 420px) {
  .hs-header__btn-label--long {
    display: none;
  }

  .hs-header__btn-label--short {
    display: inline;
  }
}

.hs-header-support {
  position: relative;
  flex-shrink: 0;
}

.hs-header-support__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4ddf7;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hs-header-support__trigger:hover,
.hs-header-support__trigger:focus-visible,
.hs-header-support.is-open .hs-header-support__trigger {
  background: rgba(98, 54, 255, 0.14);
  border-color: rgba(98, 54, 255, 0.35);
  color: #fff;
}

.hs-header-support__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../img/icons/support.d02348b86087.svg") center / contain no-repeat;
  mask: url("../img/icons/support.d02348b86087.svg") center / contain no-repeat;
}

.hs-header-support__panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  height: 12px;
}

.hs-header-support__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: min(380px, calc(100vw - 24px));
  max-height: min(72vh, 320px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 20, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.hs-header-support:hover .hs-header-support__panel,
.hs-header-support:focus-within .hs-header-support__panel,
.hs-header-support.is-open .hs-header-support__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hs-header-support__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e9edff;
}

.hs-header-support__intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.hs-header-support__guides-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(98, 54, 255, 0.35);
  background: rgba(98, 54, 255, 0.16);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hs-header-support__guides-link:hover,
.hs-header-support__guides-link:focus-visible {
  background: rgba(98, 54, 255, 0.28);
  border-color: rgba(98, 54, 255, 0.5);
}

.hs-header-support__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hs-header-support__footer-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e9edff;
}

.hs-header-support__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-header-support__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  color: #d4ddf7;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-header-support__contact svg,
.hs-header-support__contact i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.hs-header-support__contact:hover,
.hs-header-support__contact:focus-visible {
  background: rgba(98, 54, 255, 0.12);
  border-color: rgba(98, 54, 255, 0.28);
  color: #fff;
}

.hs-header-support__contact--static {
  cursor: default;
}

.hs-header-notify {
  position: relative;
  flex-shrink: 0;
}

.hs-header-notify__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4ddf7;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hs-header-notify__trigger:hover,
.hs-header-notify__trigger:focus-visible,
.hs-header-notify.is-open .hs-header-notify__trigger {
  background: rgba(98, 54, 255, 0.14);
  border-color: rgba(98, 54, 255, 0.35);
  color: #fff;
}

.hs-header-notify__icon {
  width: 20px;
  height: 20px;
}

.hs-header-notify__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #7c3aed;
  border: 2px solid #0a0c14;
  font-size: var(--hs-font-2xs);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hs-header-notify__badge[hidden] {
  display: none;
}

.hs-header-notify__badge.is-pulse {
  animation: hs-notify-badge-pulse 0.55s ease-out;
}

@keyframes hs-notify-badge-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(98, 54, 255, 0.28); }
  100% { transform: scale(1); }
}

.hs-header-notify__item[data-notification-kind^="group_"] .hs-header-notify__item-title::before,
.hs-header-notify__item[data-notification-kind="support_chat_reply"] .hs-header-notify__item-title::before {
  content: "•";
  color: #9b7bff;
  margin-right: 6px;
}

.hs-header-notify__panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  height: 12px;
}

.hs-header-notify__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 125;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 12, 20, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.hs-header-notify:hover .hs-header-notify__panel,
.hs-header-notify:focus-within .hs-header-notify__panel,
.hs-header-notify.is-open .hs-header-notify__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hs-header-notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.hs-header-notify__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #e9edff;
}

.hs-header-notify__read-all {
  border: 0;
  background: transparent;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  cursor: pointer;
}

.hs-header-notify__read-all:hover,
.hs-header-notify__read-all:focus-visible {
  color: #fff;
}

.hs-header-notify__read-all[hidden] {
  display: none;
}

.hs-header-notify__read-all:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hs-header-notify__list {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.hs-header-notify__empty {
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.hs-header-notify__item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-header-notify__item + .hs-header-notify__item {
  margin-top: 6px;
}

.hs-header-notify__item:hover,
.hs-header-notify__item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.hs-header-notify__item.is-unread {
  background: rgba(98, 54, 255, 0.1);
  border-color: rgba(98, 54, 255, 0.22);
}

.hs-header-notify__item-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #e9edff;
}

.hs-header-notify__item-message {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.hs-header-notify__item-time {
  margin: 0;
  font-size: 13px;
  color: rgba(212, 221, 247, 0.55);
}

.hs-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}

.hs-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: #fff;
  border-radius: 1px;
}

.hs-mobile-nav {
  display: none;
  padding: 10px 0 calc(18px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.96);
}

.hs-header.hs-header--mobile-open .hs-mobile-nav {
  display: block;
}

.hs-mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: #e9edff;
}

.hs-mobile-nav a + a {
  margin-top: 4px;
}

.hs-mobile-nav a:hover,
.hs-mobile-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.hs-mobile-nav__logout-form {
  margin: 0;
  padding: 0;
}

.hs-mobile-nav a + .hs-mobile-nav__logout-form {
  margin-top: 4px;
}

.hs-mobile-nav__logout-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #e9edff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hs-mobile-nav__logout-btn:hover,
.hs-mobile-nav__logout-btn:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.hs-inline-logout-form {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.hs-main {
  padding-top: calc(84px + env(safe-area-inset-top, 0));
  padding-bottom: 96px;
  overflow-x: clip;
}

@media (max-width: 980px) {
  .hs-nav {
    display: none;
  }

  .hs-burger {
    display: inline-flex;
  }

  .hs-header__inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 72px;
  }

  .hs-main {
    padding-top: calc(72px + env(safe-area-inset-top, 0));
  }

  /* Панели поддержки/уведомлений — по центру экрана на тач-устройствах */
  .hs-header-support__panel,
  .hs-header-notify__panel {
    position: fixed;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0));
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    transform-origin: bottom center;
    width: min(380px, calc(100vw - 20px));
    max-height: min(62vh, 420px);
  }

  .hs-header-support:hover .hs-header-support__panel,
  .hs-header-support:focus-within .hs-header-support__panel,
  .hs-header-support.is-open .hs-header-support__panel,
  .hs-header-notify:hover .hs-header-notify__panel,
  .hs-header-notify:focus-within .hs-header-notify__panel,
  .hs-header-notify.is-open .hs-header-notify__panel {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.hs-section {
  padding-top: 72px;
}

.hs-screen {
  min-height: calc(100vh - 122px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.hs-screen--hero {
  min-height: calc(100vh - 122px);
}

/* Главная: блоки с карточками не центрируются на высоту экрана — сетка идёт сверху вниз */
.hs-screen--home-flow {
  min-height: auto;
  align-items: stretch;
}

.hs-screen--home-flow--lower {
  padding-top: clamp(48px, 10vh, 140px);
}


.hs-screen--image {
  position: relative;
  background-position: center;
  background-size: cover;
}

.hs-screen--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.7), rgba(6, 8, 13, 0.74)),
    radial-gradient(circle at 15% 20%, rgba(98, 54, 255, 0.18), transparent 26%);
}

.hs-screen--image .container {
  position: relative;
  z-index: 1;
}

.hs-kicker {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a890ff;
}

.hs-lead {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  font-size: 17px;
}

.hs-section__head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  justify-items: center;
  text-align: center;
}

.hs-section__head h1,
.hs-section__head h2,
.hs-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hs-section__head p:not(.hs-kicker) {
  color: var(--muted);
}

.hs-card p,
.hs-card li {
  color: rgba(245, 245, 247, 0.72);
}

.hs-hero h1 span {
  color: var(--primary);
}

.hs-grid {
  display: grid;
  gap: 22px;
}

.hs-grid > *,
.hs-hero > *,
.hs-card > *,
.hs-side-panel > *,
.hs-course-main > *,
.hs-card__top > * {
  min-width: 0;
}

.hs-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hs-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-grid--align-start {
  align-items: start;
}

.hs-col-span-2 {
  grid-column: span 2;
}

.hs-stack {
  display: grid;
  gap: 22px;
}

.hs-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  height: 100%;
  color: #f5f5f7;
  background-color: var(--block-bg-dark);
  background-image: none;
  border: 1px solid var(--block-border-dark);
  border-radius: var(--block-radius);
  box-shadow: var(--block-shadow-dark);
  padding: 28px 26px;
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Светлая панель: тёмный текст */
.hs-card--surface {
  color: var(--text-on-light);
  background-color: var(--surface-light);
  background-image: none;
  border: 1px solid rgba(18, 20, 30, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hs-card--surface::before {
  background: none;
  opacity: 0;
}

.hs-card--surface .hs-kicker {
  color: #6236ff;
}

.hs-card--surface h1,
.hs-card--surface h2,
.hs-card--surface h3,
.hs-card--surface h4 {
  color: var(--text-on-light);
}

.hs-card--surface p,
.hs-card--surface li {
  color: var(--text-on-light-muted);
}

.hs-card--surface .hs-lead,
.hs-card--surface .hs-muted {
  color: var(--text-on-light-muted);
}

.hs-card--surface a:not(.hs-btn):hover {
  color: #0d0d0d;
}

.hs-card--surface .hs-price {
  color: var(--text-on-light);
}

.hs-card--surface .hs-map-meta span,
.hs-card--surface .hs-tags span,
.hs-card--surface .hs-pills span,
.hs-card--surface .hs-product-card__meta span,
.hs-card--surface .hs-card__meta span {
  background: rgba(18, 20, 30, 0.04);
  border-color: rgba(18, 20, 30, 0.1);
  color: var(--text-on-light-muted);
}

.hs-card--surface .hs-btn--ghost {
  border-color: rgba(18, 20, 30, 0.14);
  color: var(--text-on-light);
  background: rgba(255, 255, 255, 0.65);
}

.hs-card--surface .hs-btn--ghost:hover,
.hs-card--surface .hs-btn--ghost:focus-visible {
  border-color: rgba(98, 54, 255, 0.45);
  background: rgba(98, 54, 255, 0.08);
}

.hs-card--surface .hs-form label,
.hs-card--surface .hs-form-label {
  color: var(--text-on-light-muted);
}

.hs-card--surface .hs-form input,
.hs-card--surface .hs-form textarea,
.hs-card--surface .hs-form select,
.hs-card--surface .hs-form-label input {
  border-color: rgba(18, 20, 30, 0.12);
  background: #fff;
  color: var(--text-on-light);
}

.hs-card--surface .hs-btn--primary,
.hs-card--surface .hs-btn--primary:visited {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(98, 54, 255, 0.32);
}

.hs-card--surface .hs-btn--primary:hover,
.hs-card--surface .hs-btn--primary:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(69, 32, 192, 0.38);
}

/* Фиолетовый блок: светлый текст; белые кнопки — чёрная типографика */
.hs-card--primary {
  color: var(--text-on-primary);
  background-color: rgba(98, 54, 255, 0.82);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(98, 54, 255, 0.38);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.hs-card--primary::before {
  opacity: 0;
}

.hs-card--primary .hs-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.hs-card--primary p,
.hs-card--primary li,
.hs-card--primary .hs-lead,
.hs-card--primary .hs-muted {
  color: rgba(255, 255, 255, 0.82);
}

.hs-card--primary a:not(.hs-btn):hover {
  color: #fff;
}

.hs-card--primary .hs-price {
  color: #fff;
}

.hs-card--primary .hs-map-meta span,
.hs-card--primary .hs-tags span,
.hs-card--primary .hs-pills span,
.hs-card--primary .hs-product-card__meta span,
.hs-card--primary .hs-card__meta span {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.hs-card--primary .hs-btn--primary {
  background: #fff;
  color: #0d0d0d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hs-card--primary .hs-btn--primary:hover,
.hs-card--primary .hs-btn--primary:focus-visible {
  background: #fafafa;
}

.hs-card--primary .hs-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.hs-card--primary .hs-btn--ghost:hover,
.hs-card--primary .hs-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hs-card--primary .hs-form label,
.hs-card--primary .hs-form-label {
  color: rgba(255, 255, 255, 0.88);
}

.hs-card--primary .hs-form input,
.hs-card--primary .hs-form textarea,
.hs-card--primary .hs-form select,
.hs-card--primary .hs-form-label input {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.hs-card--fixed {
  height: auto !important;
}

.hs-card:not(.hs-card--primary)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
}

.hs-card--interactive::after,
.hs-dashboard-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.055);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hs-card--interactive:hover::after,
.hs-dashboard-stat:hover::after {
  opacity: 1;
}

.hs-card > * {
  position: relative;
  z-index: 1;
}

.hs-card h1,
.hs-card h2,
.hs-card h3,
.hs-card h4 {
  margin: 0;
  color: #f5f5f7;
}

.hs-card--surface h1,
.hs-card--surface h2,
.hs-card--surface h3,
.hs-card--surface h4 {
  color: var(--text-on-light);
}

.hs-card--primary h1,
.hs-card--primary h2,
.hs-card--primary h3,
.hs-card--primary h4 {
  color: #fff;
}

.hs-card p {
  margin: 0;
  line-height: 1.68;
}

.hs-card:not(.hs-card--surface):not(.hs-card--primary) a:not(.hs-btn):hover {
  color: #fff;
}

a.hs-card:hover,
.hs-card--interactive:hover {
  transform: translateY(-1px);
  border-color: var(--block-border-dark-hover);
  box-shadow: var(--block-shadow-dark);
}

.hs-card--primary.hs-card--interactive:hover,
a.hs-card.hs-card--primary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 36px 88px rgba(98, 54, 255, 0.42);
}

.hs-card--surface.hs-card--interactive:hover,
a.hs-card.hs-card--surface:hover {
  border-color: rgba(98, 54, 255, 0.22);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.14);
}

.hs-card--no-hover:hover {
  transform: none;
}

.hs-card--overlay {
  max-width: 760px;
  backdrop-filter: blur(10px);
}

.hs-welcome {
  padding-top: 56px;
}

.hs-welcome__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 48px;
  text-align: center;
  display: grid;
  gap: 22px;
}

.hs-welcome__inner .hs-lead {
  margin: 0 auto;
}

.hs-welcome__inner h1 span {
  color: var(--primary);
}

.hs-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


.hs-card--map img,
.hs-map-cover {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  display: block;
}

.hs-map-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hs-map-meta,
.hs-tags,
.hs-pills,
.hs-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hs-map-meta span,
.hs-tags span,
.hs-pills span,
.hs-trust-list span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d5def5;
  font-size: 14px;
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-btn:hover,
.hs-btn:focus-visible {
  transform: translateY(-2px);
}

.hs-btn--small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 15px;
}

.hs-btn--primary,
.hs-btn--primary:visited {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(69, 32, 192, 0.3);
}

.hs-btn--primary:disabled,
.hs-btn--primary[disabled] {
  color: rgba(255, 255, 255, 0.55);
}

.hs-btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: #eef2ff;
}

/* Desktop: вертикальная заливка снизу вверх для всех .hs-btn */
@media (min-width: 981px) {
  .hs-btn:not(:disabled):not([disabled]) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
      transform 0.2s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      color 0.25s ease;
  }

  .hs-btn:not(:disabled):not([disabled])::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--hs-btn-vfill-bg, transparent);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }

  .hs-btn:not(:disabled):not([disabled]):hover::before,
  .hs-btn:not(:disabled):not([disabled]):focus-visible::before {
    transform: scaleY(1);
  }

  .hs-btn--primary:not(:disabled):not([disabled]),
  .hs-btn--primary:not(:disabled):not([disabled]):visited {
    background: rgba(98, 54, 255, 0.12);
    border-color: rgba(98, 54, 255, 0.45);
    color: #ebe4ff;
    box-shadow: none;
    --hs-btn-vfill-bg: linear-gradient(120deg, var(--primary), var(--primary-2));
  }

  .hs-btn--primary:not(:disabled):not([disabled]):hover,
  .hs-btn--primary:not(:disabled):not([disabled]):focus-visible {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(69, 32, 192, 0.3);
    background: rgba(98, 54, 255, 0.12);
  }

  .hs-btn--ghost:not(:disabled):not([disabled]) {
    --hs-btn-vfill-bg: rgba(255, 255, 255, 0.1);
  }

  .hs-btn--ghost:not(:disabled):not([disabled]):hover,
  .hs-btn--ghost:not(:disabled):not([disabled]):focus-visible {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .hs-btn:not(.hs-btn--primary):not(.hs-btn--ghost):not(:disabled):not([disabled]) {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line);
    color: #eef2ff;
    --hs-btn-vfill-bg: rgba(255, 255, 255, 0.1);
  }

  .hs-btn:not(.hs-btn--primary):not(.hs-btn--ghost):not(:disabled):not([disabled]):hover,
  .hs-btn:not(.hs-btn--primary):not(.hs-btn--ghost):not(:disabled):not([disabled]):focus-visible {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .hs-card--surface .hs-btn--ghost:not(:disabled):not([disabled]) {
    --hs-btn-vfill-bg: rgba(98, 54, 255, 0.14);
  }

  .hs-card--surface .hs-btn--ghost:not(:disabled):not([disabled]):hover,
  .hs-card--surface .hs-btn--ghost:not(:disabled):not([disabled]):focus-visible {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(98, 54, 255, 0.45);
    color: var(--text-on-light);
  }

  .hs-card--surface .hs-btn--primary:not(:disabled):not([disabled]),
  .hs-card--surface .hs-btn--primary:not(:disabled):not([disabled]):visited {
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(98, 54, 255, 0.32);
    --hs-btn-vfill-bg: linear-gradient(120deg, var(--primary-2), var(--primary));
  }

  .hs-card--surface .hs-btn--primary:not(:disabled):not([disabled]):hover,
  .hs-card--surface .hs-btn--primary:not(:disabled):not([disabled]):focus-visible {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 34px rgba(69, 32, 192, 0.4);
  }

  .hs-card--primary .hs-btn--primary:not(:disabled):not([disabled]) {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    box-shadow: none;
    --hs-btn-vfill-bg: #fff;
  }

  .hs-card--primary .hs-btn--primary:not(:disabled):not([disabled]):hover,
  .hs-card--primary .hs-btn--primary:not(:disabled):not([disabled]):focus-visible {
    color: #0d0d0d;
    border-color: transparent;
    background: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .hs-card--primary .hs-btn--ghost:not(:disabled):not([disabled]) {
    --hs-btn-vfill-bg: rgba(255, 255, 255, 0.14);
  }

  .hs-card--primary .hs-btn--ghost:not(:disabled):not([disabled]):hover,
  .hs-card--primary .hs-btn--ghost:not(:disabled):not([disabled]):focus-visible {
    background: transparent;
    border-color: #fff;
    color: #fff;
  }

  .hs-grenade-chart__periods .hs-btn.is-active:not(:disabled):not([disabled]) {
    background: rgba(98, 54, 255, 0.12);
    border-color: rgba(98, 54, 255, 0.7);
    color: #fff;
    box-shadow: none;
    --hs-btn-vfill-bg: rgba(98, 54, 255, 0.32);
  }

  .hs-grenade-chart__periods .hs-btn.is-active:not(:disabled):not([disabled])::before {
    transform: scaleY(1);
  }

  .hs-grenade-chart__periods .hs-btn.is-active:not(:disabled):not([disabled]):hover,
  .hs-grenade-chart__periods .hs-btn.is-active:not(:disabled):not([disabled]):focus-visible {
    background: rgba(98, 54, 255, 0.12);
    box-shadow: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .hs-btn:not(:disabled):not([disabled])::before {
      transition: none;
    }
  }
}

.hs-price {
  font-size: 30px;
  line-height: 1;
  margin: 0;
  color: #fff;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hs-actions--lesson {
  justify-content: flex-end;
}

.hs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #b6a0ff;
}

.hs-muted {
  color: var(--muted);
  font-size: var(--hs-font-sm);
  line-height: 1.5;
}

/* Статические подсказки под заголовками в личном кабинете (не hover) */
.hs-lk-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--hs-font-sm);
  line-height: 1.5;
}

.hs-success {
  color: var(--success);
}

.hs-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hs-hero__left {
  display: grid;
  align-content: center;
  gap: 20px;
}

.hs-hero__intro {
  display: grid;
  gap: 14px;
}

.hs-side-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hs-simple-list,
.hs-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-check-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #d9e1f8;
  font-size: 14px;
}

.hs-check-list li {
  grid-template-columns: 18px 1fr;
}

.hs-check-list li::before {
  content: "•";
  color: #b6a2ff;
}

.hs-hero__stats,
.hs-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hs-stat,
.hs-dashboard-stat {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--block-border-dark);
  background-color: var(--block-bg-dark);
  background-image: none;
  box-shadow: var(--block-shadow-dark);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
}

.hs-stat > *,
.hs-dashboard-stat > * {
  position: relative;
  z-index: 1;
}

.hs-stat strong,
.hs-dashboard-stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: #f5f5f7;
}
.hs-stat span,
.hs-dashboard-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.hs-feature-card,
.hs-flow__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--block-border-dark);
  border-radius: var(--block-radius);
  padding: 22px 20px;
  background-color: var(--block-bg-dark);
  background-image: none;
  box-shadow: var(--block-shadow-dark);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
  color: #f5f5f7;
}

.hs-feature-card p,
.hs-flow__item p {
  color: rgba(245, 245, 247, 0.72);
}

.hs-feature-grid,
.hs-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hs-flow--single {
  grid-template-columns: 1fr;
}

.hs-feature-card h3,
.hs-flow__item h3 {
  margin-bottom: 10px;
  color: #f5f5f7;
}

.hs-product-card h3 {
  margin-bottom: 10px;
}

.hs-faq {
  display: grid;
  gap: 10px;
}

.hs-faq__item {
  border: 1px solid var(--block-border-dark);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.hs-faq__q {
  width: 100%;
  text-align: left;
  border: 0;
  background-color: var(--block-bg-dark);
  background-image: radial-gradient(
    ellipse 120% 90% at 0% 0%,
    rgba(98, 54, 255, 0.18) 0%,
    transparent 55%
  );
  color: #f5f5f7;
  padding: 18px 20px;
}

.hs-faq__a {
  display: none;
  color: rgba(245, 245, 247, 0.65);
  padding: 0 20px 18px;
  background: rgba(5, 6, 8, 0.65);
}

.hs-faq__item.open .hs-faq__a {
  display: block;
}

.hs-form {
  display: grid;
  gap: 12px;
}

.hs-form label,
.hs-form-label {
  display: grid;
  gap: 8px;
  color: #dae3ff;
  font-size: 14px;
}

.hs-form input,
.hs-form textarea,
.hs-form select,
.hs-form-label input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(9, 12, 20, 0.78);
  color: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hs-form input:focus,
.hs-form textarea:focus,
.hs-form select:focus,
.hs-form-label input:focus {
  outline: none;
  border-color: rgba(98, 54, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(98, 54, 255, 0.16);
}

.hs-simple-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  color: #d4ddf7;
}

.hs-richtext {
  line-height: 1.7;
  color: #d6e0f8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {
  .hs-richtext {
    font-size: 15px;
    line-height: 1.65;
  }
}


.hs-product-card {
  display: grid;
  gap: 18px;
}

.hs-product-card__meta,
.hs-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs-product-card__meta span,
.hs-card__meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d9e1f8;
  font-size: 14px;
}

.hs-card__top {
  display: grid;
  gap: 10px;
}

.hs-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.hs-empty-state {
  text-align: center;
  padding: 36px 26px;
}

.hs-calendar-cell {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(2, 6, 18, 0.18);
  backdrop-filter: blur(10px);
}

.hs-btn--pulse-glow {
  position: relative;
  box-shadow:
    0 4px 20px rgba(98, 54, 255, 0.32),
    0 0 0 0 rgba(98, 54, 255, 0.4);
  animation: hs-btn-pulse-ring 2.8s ease-out infinite;
}

@keyframes hs-btn-pulse-ring {
  0% {
    box-shadow:
      0 4px 20px rgba(98, 54, 255, 0.32),
      0 0 0 0 rgba(98, 54, 255, 0.35);
  }
  70% {
    box-shadow:
      0 4px 24px rgba(98, 54, 255, 0.4),
      0 0 0 10px rgba(98, 54, 255, 0);
  }
  100% {
    box-shadow:
      0 4px 20px rgba(98, 54, 255, 0.32),
      0 0 0 0 rgba(98, 54, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-btn--pulse-glow {
    animation: none;
  }

  .hs-coach-photo-square--entrance {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hs-footer {
  width: 100%;
  margin-top: 72px;
  padding: 32px 0 calc(22px + env(safe-area-inset-bottom, 0));
  background: #020306;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hs-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 28px;
  border-radius: var(--block-radius);
  border: 1px solid var(--block-border-dark);
  background-color: var(--block-bg-dark);
  background-image: none;
  box-shadow: var(--block-shadow-dark);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
}

.hs-footer h4 {
  margin: 0 0 12px;
}

.hs-footer__grid a,
.hs-footer__text {
  display: block;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.7;
}

.hs-footer__grid p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.7;
}

.hs-footer__grid p a {
  display: inline;
  margin: 0;
}

.hs-footer__logo img {
  height: 30px;
}

.hs-footer__bottom {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.hs-footer__legal-line {
  margin: 0 0 6px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* .reveal.visible задаёт transform для появления; фиксируем 0, без подъёма на hover (ломал карусель). */
.hs-coach-card-v2.reveal.visible,
.hs-coach-card-v2.reveal.visible:hover,
.hs-coach-card-v2.reveal.visible:focus-visible {
  transform: translateY(0);
}

.hs-message {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 14, 22, 0.88);
}

.hs-message--success {
  border-color: rgba(42, 214, 168, 0.55);
}

.hs-message--error {
  border-color: rgba(255, 107, 107, 0.55);
}

/* Только opacity: transform на body ломает position:fixed у хедера (containing block). */
@keyframes hs-page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hs-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hs-hero,
  .hs-grid--3,
  .hs-grid--2,
  .hs-feature-grid,
  .hs-flow,
  .hs-footer__grid,
  .hs-hero__stats,
  .hs-dashboard-stats,
  .hs-coach-hero {
    grid-template-columns: 1fr;
  }

  .hs-welcome--with-3d .hs-welcome__inner {
    text-align: center;
  }

  .hs-welcome--with-3d .hs-welcome__inner .hs-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hs-welcome--with-3d .hs-welcome__actions {
    justify-content: center;
  }

  .hs-welcome--with-3d .hs-hero-3d {
    min-height: min(48vh, 440px);
    max-height: none;
    aspect-ratio: 1 / 1.08;
  }

  .hs-hero-3d {
    min-height: 240px;
    max-height: 400px;
  }

  .hs-col-span-2 {
    grid-column: auto;
  }

  .hs-card--sticky {
    position: static;
  }

  .hs-welcome__inner {
    max-width: 100%;
    padding: 34px 28px;
  }

  .hs-welcome__actions,
  .hs-trust-list,
  .hs-pills,
  .hs-map-meta,
  .hs-tags,
  .hs-product-card__meta,
  .hs-card__meta {
    justify-content: center;
  }

  .hs-card__foot {
    justify-content: center;
  }

  .hs-footer__grid,
  .hs-footer__bottom {
    text-align: center;
  }

  .hs-footer__logo {
    justify-content: center;
  }

  .hs-coach-hero__media {
    justify-content: center;
  }

  .hs-coach-hero__frame {
    max-width: 280px;
  }

  .hs-coach-hero__actions {
    justify-content: center;
  }

  .hs-coach-links {
    justify-content: center;
  }

  .hs-coach-hero__body {
    text-align: center;
  }

  .hs-coach-hero__tags {
    justify-content: center;
  }

}

@media (max-width: 720px) {
  /* iOS: не увеличивать страницу при фокусе на полях < 16px */
  .hs-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]),
  .hs-body textarea,
  .hs-body select {
    font-size: 16px;
  }

  .container {
    width: min(100%, calc(100% - 24px));
  }

  .hs-card,
  .hs-footer__grid {
    padding: 20px;
    border-radius: 22px;
  }

  .hs-welcome__inner {
    padding: 26px 20px;
  }

  .hs-welcome__inner h1,
  .hs-section__head h1,
  .hs-section__head h2,
  .hs-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.04;
  }

  .hs-lead {
    font-size: 15px;
    line-height: 1.6;
  }

  .hs-kicker {
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .hs-section {
    padding-top: 56px;
  }

  .hs-screen {
    min-height: auto;
    padding: 44px 0;
  }

  .hs-grid,
  .hs-feature-grid,
  .hs-flow,
  .hs-dashboard-stats {
    gap: 16px;
  }

  .hs-stat,
  .hs-dashboard-stat {
    padding: 16px;
  }

  .hs-map-meta span,
  .hs-tags span,
  .hs-pills span,
  .hs-trust-list span,
  .hs-product-card__meta span,
  .hs-card__meta span {
    width: 100%;
    text-align: center;
  }

  .hs-video video,
  .hs-video iframe {
    min-height: 240px;
  }

  .hs-actions,
  .hs-card__foot {
    align-items: stretch;
  }

  .hs-actions .hs-btn,
  .hs-card__foot .hs-btn,
  .hs-card__foot .hs-inline-note {
    width: 100%;
  }

  .hs-footer {
    margin-top: 56px;
    padding-top: 20px;
  }

  .hs-footer__grid {
    gap: 16px;
  }

  .hs-footer__grid {
    grid-template-columns: 1fr;
  }

  .hs-coach-hero__media {
    max-width: 180px;
  }

  .hs-coach-card-v2__name-glass {
    left: 14px;
    right: 14px;
    max-width: none;
    transform: none;
  }

  .hs-coach-card-v2__name {
    font-size: 17px;
  }

  .hs-coach-card-v2__info {
    min-height: 120px;
    padding: 14px 13px 13px;
  }

}

@media (max-width: 560px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .hs-card,
  .hs-footer__grid,
  .hs-welcome__inner {
    padding: 18px;
    border-radius: 18px;
  }

  .hs-btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  .hs-btn--small {
    min-height: 36px;
    padding: 8px 12px;
  }

  .hs-header__inner {
    gap: 8px;
    min-height: 64px;
  }

  .hs-brand img {
    height: 28px;
  }

  .hs-header__actions {
    gap: 6px;
  }

  .hs-header-support__trigger,
  .hs-header-notify__trigger,
  .hs-burger {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .hs-header__actions .hs-btn--small {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .hs-main {
    padding-top: calc(64px + env(safe-area-inset-top, 0));
    padding-bottom: 72px;
  }

  .hs-mobile-nav a,
  .hs-mobile-nav__logout-btn {
    padding: 16px 14px;
    font-size: 16px;
  }

  .hs-section__head h1,
  .hs-section__head h2,
  .hs-hero h1 {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .hs-lead {
    font-size: 15px;
  }

  .hs-screen {
    padding: 36px 0;
  }

  .hs-section {
    padding-top: 48px;
  }
}

@media (max-width: 380px) {
  .hs-header__actions .hs-btn--ghost:not(.hs-btn--primary) {
    display: none;
  }
}

/* Cookie consent banner */
.hs-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(12, 10, 22, 0) 0%, rgba(12, 10, 22, 0.92) 24%, rgba(12, 10, 22, 0.98) 100%);
  backdrop-filter: blur(10px);
}

.hs-cookie-banner[hidden] {
  display: none !important;
}

.hs-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 17, 38, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hs-cookie-banner__text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.hs-cookie-banner__text a {
  color: #fa5e00;
  text-decoration: underline;
}

.hs-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

/* Floating support chat */
.hs-support-chat-widget {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
}

.hs-support-chat-widget__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(98, 54, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(18, 14, 32, 0.98), rgba(11, 13, 23, 0.95));
  color: #f5f2ff;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(98, 54, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hs-support-chat-widget__fab:hover {
  transform: translateY(-1px);
  border-color: rgba(98, 54, 255, 0.75);
  box-shadow: 0 16px 40px rgba(98, 54, 255, 0.18), 0 14px 36px rgba(0, 0, 0, 0.42);
}

.hs-support-chat-widget.has-unread .hs-support-chat-widget__fab {
  border-color: rgba(98, 54, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(98, 54, 255, 0.35), 0 16px 40px rgba(98, 54, 255, 0.22);
}

.hs-support-chat-widget__fab-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #c4b5fd;
}

.hs-support-chat-widget__badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6236ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(10, 12, 20, 0.95);
}

.hs-support-chat-widget__badge[hidden] {
  display: none !important;
}

.hs-support-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(400px, calc(100vw - 24px));
  max-height: min(78vh, 680px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 12, 20, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(98, 54, 255, 0.06);
  display: none;
  grid-template-rows: auto auto 1fr auto;
  animation: hs-support-chat-in 0.22s ease;
}

@keyframes hs-support-chat-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hs-support-chat-panel--operator {
  width: min(720px, calc(100vw - 24px));
  max-height: min(82vh, 760px);
}

.hs-support-chat-panel__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hs-support-chat-panel__error {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.hs-support-chat-panel__error[hidden] {
  display: none !important;
}

.hs-support-chat-panel--operator .hs-support-chat-panel__body {
  display: flex;
  flex-direction: column;
  min-height: min(52vh, 480px);
  padding: 10px;
}

.hs-support-chat-operator-layout {
  display: grid;
  grid-template-columns: minmax(148px, 34%) minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.hs-support-chat-operator__sessions {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 54, 255, 0.3) transparent;
}

.hs-support-chat-operator__sessions .hs-support-chat-empty {
  margin: 8px 0;
  max-width: none;
  padding: 14px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.hs-support-chat-operator__chat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.hs-support-chat-panel--operator .hs-support-chat-operator__chat .hs-support-chat-scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
}

.hs-support-chat-panel--operator .hs-support-chat-operator__chat .hs-support-chat-messages {
  min-height: 0;
}

.hs-support-chat-session {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #e8edff;
  padding: 10px 11px;
  display: grid;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hs-support-chat-session:hover {
  border-color: rgba(98, 54, 255, 0.35);
  background: rgba(98, 54, 255, 0.06);
}

.hs-support-chat-session.is-active {
  border-color: rgba(98, 54, 255, 0.55);
  background: rgba(98, 54, 255, 0.14);
  box-shadow: inset 3px 0 0 #6236ff;
}

.hs-support-chat-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hs-support-chat-widget.is-open .hs-support-chat-panel {
  display: grid;
}

.hs-support-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(98, 54, 255, 0.1), transparent);
}

.hs-support-chat-panel__head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hs-support-chat-panel__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 54, 255, 0.22);
  border: 1px solid rgba(98, 54, 255, 0.4);
  color: #ddd6fe;
}

.hs-support-chat-panel__avatar svg {
  width: 20px;
  height: 20px;
}

.hs-support-chat-panel__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hs-support-chat-panel__status {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hs-support-chat-panel__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.hs-support-chat-panel__status-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.hs-support-chat-panel__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4ddf7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hs-support-chat-panel__close:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.hs-support-chat-panel__body {
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
  background: radial-gradient(ellipse at top, rgba(98, 54, 255, 0.04), transparent 55%);
}

.hs-support-chat-panel:not(.hs-support-chat-panel--operator) .hs-support-chat-panel__body {
  min-height: 260px;
}

.hs-support-chat-scroll {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: min(52vh, 520px);
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 54, 255, 0.35) transparent;
}

.hs-support-chat-panel:not(.hs-support-chat-panel--operator) .hs-support-chat-scroll {
  max-height: min(48vh, 480px);
}

.hs-support-chat-scroll::-webkit-scrollbar {
  width: 6px;
}

.hs-support-chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(98, 54, 255, 0.35);
  border-radius: 999px;
}

.hs-support-chat-scroll-down {
  position: sticky;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 1px solid rgba(98, 54, 255, 0.45);
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.92);
  color: #e9e5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.hs-support-chat-scroll-down[hidden] {
  display: none !important;
}

.hs-support-chat-scroll-down svg {
  width: 18px;
  height: 18px;
}

.hs-support-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  padding: 4px 2px 12px;
  min-height: 120px;
}

.hs-support-chat-empty {
  margin: 24px auto;
  max-width: 280px;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  border: 1px dashed rgba(98, 54, 255, 0.25);
  border-radius: 14px;
  background: rgba(98, 54, 255, 0.04);
}

.hs-support-chat-message {
  max-width: 88%;
  padding: 9px 12px 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  animation: hs-support-msg-in 0.18s ease;
}

@keyframes hs-support-msg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hs-support-chat-message.is-group-start {
  margin-top: 10px;
}

.hs-support-chat-message.is-group-start:first-child {
  margin-top: 0;
}

.hs-support-chat-message.is-compact-time .hs-support-chat-message__time {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.55;
}

.hs-support-chat-message.is-visitor {
  margin-left: auto;
  border-bottom-right-radius: 6px;
  background: linear-gradient(145deg, rgba(98, 54, 255, 0.32), rgba(98, 54, 255, 0.18));
  border-color: rgba(98, 54, 255, 0.45);
}

.hs-support-chat-message.is-visitor.is-group-start {
  border-top-right-radius: 16px;
}

.hs-support-chat-message.is-operator {
  margin-right: auto;
  border-bottom-left-radius: 6px;
}

.hs-support-chat-message.is-operator.is-group-start {
  border-top-left-radius: 16px;
}

.hs-support-chat-message__author {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.85);
}

.hs-support-chat-message__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: #edf1ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.hs-support-chat-message__time {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(212, 221, 247, 0.55);
  text-align: right;
}

.hs-support-chat-message.is-operator .hs-support-chat-message__time {
  text-align: left;
}

.hs-support-chat-panel__footer {
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  background: rgba(8, 10, 18, 0.65);
}

.hs-support-chat-form {
  display: grid;
  gap: 8px;
}

.hs-support-chat-composer__field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 12, 20, 0.92);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hs-support-chat-composer__field:focus-within {
  border-color: rgba(98, 54, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.12);
}

.hs-support-chat-composer__field textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

.hs-support-chat-composer__send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #7c4dff, #6236ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.hs-support-chat-composer__send:hover:not(:disabled) {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.hs-support-chat-composer__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hs-support-chat-composer__send.is-sending {
  opacity: 0.7;
  pointer-events: none;
}

.hs-support-chat-composer__send svg {
  width: 18px;
  height: 18px;
}

.hs-support-chat-composer__hint {
  margin: 0;
  font-size: 11px;
  color: rgba(212, 221, 247, 0.45);
  text-align: center;
}

.hs-support-chat-session__name {
  font-size: 13px;
  font-weight: 700;
}

.hs-support-chat-session__meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.hs-support-chat-session__text {
  font-size: 12px;
  color: rgba(212, 221, 247, 0.72);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Separate operator page */
.hs-operator-page {
  display: grid;
  gap: 16px;
}

.hs-operator-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hs-operator-page__head h1 {
  margin: 0;
}

.hs-operator-page__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.hs-operator-list.hs-card {
  height: auto;
  align-self: stretch;
  min-height: min(72vh, 760px);
  max-height: min(85vh, 900px);
  padding: 20px 18px;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.hs-operator-list h3 {
  margin: 0;
  font-size: 16px;
}

.hs-operator-list__items {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 54, 255, 0.35) transparent;
}

.hs-operator-chat.hs-card {
  height: auto;
  min-height: min(72vh, 760px);
  max-height: min(85vh, 900px);
  padding: 20px 18px;
  gap: 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.hs-operator-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.hs-operator-chat__head h3 {
  margin: 0;
  font-size: 18px;
}

.hs-operator-chat__scroll {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 54, 255, 0.35) transparent;
}

.hs-operator-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 100%;
}

.hs-operator-chat__form {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.hs-operator-chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 12, 20, 0.92);
}

.hs-operator-chat__composer:focus-within {
  border-color: rgba(98, 54, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.12);
}

.hs-operator-chat__composer textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  outline: none;
}

.hs-operator-chat__composer-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #7c4dff, #6236ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hs-operator-chat__composer-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hs-operator-chat__composer-send.is-sending {
  opacity: 0.75;
  pointer-events: none;
}

.hs-operator-chat__composer-send svg {
  width: 18px;
  height: 18px;
}

.hs-operator-chat__form-hint {
  margin: 0;
  font-size: 11px;
  color: rgba(212, 221, 247, 0.45);
  text-align: center;
}

.hs-operator-chat__form-hint.is-error {
  color: #f87171;
}

@media (max-width: 560px) {
  .hs-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hs-cookie-banner__actions .hs-btn {
    width: 100%;
  }

  .hs-support-chat-widget {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .hs-support-chat-widget__fab-text {
    display: none;
  }

  .hs-support-chat-widget__fab {
    border-radius: 14px;
    padding: 10px;
  }

  .hs-support-chat-panel--operator {
    width: calc(100vw - 20px);
    right: -8px;
  }

  .hs-support-chat-panel--operator .hs-support-chat-panel__body {
    min-height: min(58vh, 420px);
  }

  .hs-support-chat-operator-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hs-support-chat-operator__sessions {
    max-height: 168px;
  }

  .hs-operator-page__layout {
    grid-template-columns: 1fr;
  }

  .hs-operator-list.hs-card,
  .hs-operator-chat.hs-card {
    min-height: auto;
    max-height: none;
  }

  .hs-operator-list.hs-card {
    max-height: min(42vh, 360px);
  }

  .hs-operator-chat.hs-card {
    min-height: min(52vh, 520px);
  }
}

/* Читабельность мелкого UI-текста по всему проекту */
[class*="__kicker"],
[class*="__eyebrow"],
.hs-kicker {
  line-height: 1.45;
}

small,
.hs-text-2xs {
  font-size: var(--hs-font-2xs);
  line-height: 1.5;
}

.hs-text-xs {
  font-size: var(--hs-font-xs);
  line-height: 1.5;
}

.hs-text-sm {
  font-size: var(--hs-font-sm);
  line-height: 1.5;
}
