/* ==========================================================================
   Habbu.ee — вёрстка по макету (2026), v2
   Палитра и пропорции сняты с макета. Все классы с префиксом .hb-
   ========================================================================== */

:root {
  --blue: #0b4f9c;
  --blue-d: #083c78;
  --blue-soft: #eaf4fe;
  --navy: #051c44;
  --navy-2: #12233b;
  --text: #14202e;
  --muted: #4f6076;
  --line: #dfe8f5;
  --line-2: #e8eef8;
  --white: #ffffff;
  --tint-green: #f2fcf6;
  --tint-green-b: #d6f2e1;
  --tint-blue: #eef6fd;
  --tint-blue-b: #d7e9fb;
  --tint-grey: #f5f7fa;
  --tint-grey-b: #e6ebf3;
  --green: #22c55e;
  --green-d: #16a34a;
  --r: 14px;
  --r-lg: 18px;
  --sh: 0 2px 10px rgba(15, 42, 86, 0.05);
  --sh-md: 0 10px 26px rgba(15, 42, 86, 0.08);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body.hb {
  margin: 0;
  background: radial-gradient(1200px 560px at 6% -10%, #e2eefd 0%, rgba(226,238,253,0) 62%), radial-gradient(900px 460px at 96% -14%, #e8e6fc 0%, rgba(232,230,252,0) 60%), #eef4fc;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.hb a { color: inherit; }

h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; letter-spacing: -0.3px; }

.hb-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }

.hb-skip {
  position: absolute;
  left: -9999px;
  background: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.hb-skip:focus { left: 8px; top: 8px; border-radius: 10px; }

/* ================================ ШАПКА ================================= */

.hb-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hb-top__in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  min-width: 0;
}

.hb-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; min-width: 0; }

.hb-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue);
  box-shadow: 0 6px 14px rgba(5, 108, 240, 0.28);
}
.hb-brand__mark svg { width: 19px; height: 19px; display: block; }

.hb-brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--navy);
  white-space: nowrap;
}

.hb-menu { display: flex; align-items: center; gap: 2px; margin-left: 14px; }

.hb-menu a {
  position: relative;
  padding: 8px 10px;
  font-size: 15.5px;
  font-weight: 500;
  color: #1b2a3d;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.hb-menu a:hover { color: var(--blue); background: #f5f9ff; }
.hb-menu a.on { color: var(--blue); font-weight: 600; }
.hb-menu a.on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.hb-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }

.hb-tool {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #30405a;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.hb-tool:hover { background: #f4f8fe; color: var(--blue); }
.hb-tool svg { width: 19px; height: 19px; }

.hb-tool__dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5b5b;
  border: 1.5px solid #fff;
}

.hb-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  width: 168px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.hb-search:focus-within { background: #fff; border-color: #bed7f9; box-shadow: 0 0 0 3px rgba(5, 108, 240, 0.1); }
.hb-search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.hb-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  width: 100%;
  min-width: 0;
}

.hb-ava {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: 2px;
  box-shadow: 0 6px 14px rgba(10, 88, 202, 0.24);
}

/* круглая кнопка входа для телефона (вместо широкой кнопки) */
.hb-ava--guest { display: none; text-decoration: none; }
.hb-ava--guest svg { width: 17px; height: 17px; }

.hb-coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fffbeb;
  border: 1px solid #fde9b0;
  color: #a16207;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hb-drop { position: relative; }

.hb-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 262px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-md);
  padding: 14px;
  display: none;
  z-index: 90;
}
.hb-panel.is-open { display: block; }
.hb-panel__t {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.hb-panel__note {
  font-size: 14px;
  color: #2b3d58;
  background: #f5f9ff;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 8px;
}
.hb-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  color: #2b3d58;
  text-decoration: none;
}
.hb-panel a:hover { background: #f5f9ff; color: var(--blue); }
.hb-panel__out { color: #dc2626 !important; }
.hb-panel__name { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.hb-panel__meta { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }

/* ================================ КНОПКИ ================================ */

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10, 88, 202, 0.22);
  transition: background 0.15s, transform 0.15s, box-shadow 0.2s;
}
.hb-btn:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10, 88, 202, 0.26); }
.hb-btn:active { transform: translateY(0); }

/* Главная кнопка (CTA): жёсткие цвета — никакой прозрачности и старых стилей из кеша */
.hb-cta {
  background-color: #0b4f9c !important;
  background-image: none !important;
  color: #ffffff !important;
  opacity: 1 !important;
  border: 0;
  text-shadow: none;
  font-weight: 700;
}
.hb-cta:hover { background-color: #083c78 !important; }

.hb-btn--ghost {
  background: #fff;
  color: #33456b;
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 600;
}
.hb-btn--ghost:hover { background: #f6faff; color: var(--blue); border-color: #d5e5fb; box-shadow: none; }

.hb-btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; box-shadow: 0 6px 16px rgba(5, 108, 240, 0.2); }

/* ================================= HERO ================================= */

.hb-hero {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(100deg, #fdfeff 0%, #f3faff 38%, #dcefff 70%, #cde5fb 100%);
  border: 1px solid #e6f1fd;
}

/* картинка — фоном на весь блок, текст слева поверх свободного неба */
.hb-hero__in {
  position: relative;
  display: block;
  min-height: 330px;
}

.hb-hero__txt {
  position: relative;
  z-index: 2;
  max-width: 56%;
  padding: 36px 20px 36px 34px;
}

/* мягкая белая вуаль, чтобы текст читался поверх неба */
.hb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.80) 30%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 64%);
}

.hb-hero h1 {
  font-size: clamp(26px, 3.3vw, 40px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hb-hero__sub {
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 600;
  color: #0d2c58;
  letter-spacing: -0.4px;
  margin: 0 0 3px;
}

.hb-hero__ru { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }

.hb-hero__p { max-width: 400px; margin: 0 0 20px; font-size: 16.5px; color: #22344a; }

.hb-hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hb-hero__art picture { position: absolute; inset: 0; display: block; }

.hb-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  display: block;
}

/* =============================== ФИЧИ =================================== */

.hb-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.hb-feature {
  display: block;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
  border: 1px solid #dbe8f8;
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 42, 86, 0.06);
  transition: transform 0.16s, box-shadow 0.2s, border-color 0.2s;
}
.hb-feature:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #dbe8fa; }

.hb-feature__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 12px;
}
.hb-feature__ico svg { width: 22px; height: 22px; }

.hb-feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.hb-feature p { margin: 5px 0 12px; font-size: 14.5px; color: #455a72; line-height: 1.45; }
.hb-feature__go { font-size: 15px; font-weight: 600; color: var(--blue); }

/* =============================== СЕКЦИИ ================================= */

.hb-sec { margin-top: 38px; }

.hb-sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hb-sec__t { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.hb-sec__s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.hb-sec__link { font-size: 14.5px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.hb-sec__link:hover { text-decoration: underline; }

.hb-panelbox {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid #dde8f6;
  border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(15, 42, 86, 0.06);
}

/* ========================== КАРТОЧКИ УРОВНЕЙ ============================ */

.hb-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.hb-lvl {
  padding: 16px 16px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 42, 86, 0.05);
}

.hb-lvl--done { background: var(--tint-green); border-color: var(--tint-green-b); }
.hb-lvl--cur { background: var(--tint-blue); border-color: var(--tint-blue-b); box-shadow: 0 6px 18px rgba(5, 108, 240, 0.09); }
.hb-lvl--lock { background: var(--tint-grey); border-color: var(--tint-grey-b); }
.hb-lvl--soon { background: #f4f6fa; border-color: #e6ebf3; }

.hb-lvl__top { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }

.hb-lvl__ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(15, 42, 86, 0.06);
}
.hb-lvl__ico svg { width: 17px; height: 17px; }
.hb-lvl--done .hb-lvl__ico { color: var(--green-d); }
.hb-lvl--lock .hb-lvl__ico,
.hb-lvl--soon .hb-lvl__ico { color: #9aabc1; }

.hb-lvl__code { font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.hb-lvl__name { font-size: 13.5px; color: #33475f; line-height: 1.25; }
.hb-lvl__ru { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.hb-lvl__bar { height: 7px; border-radius: 999px; background: #e6edf6; overflow: hidden; }
.hb-lvl__bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.7s ease; }
.hb-lvl--done .hb-lvl__bar { background: #dcf4e6; }
.hb-lvl--done .hb-lvl__bar i { background: var(--green); }
.hb-lvl--lock .hb-lvl__bar i,
.hb-lvl--soon .hb-lvl__bar i { background: #cfd9e7; }

.hb-lvl__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
  font-size: 13.5px;
  color: #3a4c63;
}
.hb-lvl__foot b { color: var(--navy); font-weight: 700; }
.hb-lvl__ok { color: var(--green-d); font-weight: 600; }
.hb-lvl__pct { color: var(--navy); font-weight: 600; }
.hb-lvl__lock { color: var(--muted); }

/* ============ прогресс: ранг + график + путь (перенос из старого) ======== */

.hb-progress-extra {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.hb-rank { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hb-rank__medal { font-size: 31px; line-height: 1; }
.hb-rank__name { font-size: 15px; font-weight: 700; color: var(--navy); }
.hb-rank__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.hb-chart { padding: 12px 16px 10px; }
.hb-chart__head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.hb-chart__head strong { font-size: 14.5px; color: var(--navy); }
.hb-chart__head span { font-size: 13px; color: var(--muted); }
.hb-chart__bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.hb-chart__col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.hb-chart__val { font-size: 12px; font-weight: 700; color: #5b6e88; }
.hb-chart__bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; }
.hb-chart__day { font-size: 11.5px; color: var(--muted); }
.hb-chart__empty { font-size: 13.5px; color: var(--muted); padding: 22px 0; text-align: center; margin: 0; }

.hb-path__head { display: flex; align-items: baseline; gap: 6px; padding: 14px 16px 0; }
.hb-path__head strong { font-size: 13.5px; color: var(--navy); }
.hb-path__head span { font-size: 12px; color: var(--muted); }

/* ============================== СООБЩЕСТВО ============================== */

.hb-join {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 18px;
  background: linear-gradient(115deg, #eef7ff 0%, #f8fbff 55%, #ffffff 100%);
  border: 1px solid #dbe9f9;
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.hb-join__ico {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.hb-join__ico svg { width: 22px; height: 22px; }
.hb-join h3 { font-size: 17.5px; font-weight: 700; }
.hb-join__ru { font-size: 13.5px; color: var(--muted); margin: 1px 0 0; }
.hb-join__p { font-size: 14.5px; color: #3a4c63; margin: 3px 0 0; }
.hb-join img { height: 62px; width: auto; margin-left: auto; display: block; }
.hb-join__cta { flex: 0 0 auto; }

/* =========================== БЫСТРЫЕ ССЫЛКИ ============================= */

.hb-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-top: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border: 1px solid #dde8f6;
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.hb-quick__item { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.hb-quick__ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f7fd;
  color: var(--blue);
  flex: 0 0 32px;
}
.hb-quick__ico svg { width: 16px; height: 16px; }
.hb-quick__t { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.hb-quick__s { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.hb-quick__item:hover .hb-quick__t { color: var(--blue); }

.hb-quick__motto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7d8ea6;
  font-style: italic;
}
.hb-quick__motto span { font-style: normal; font-size: 16px; }

/* =============================== ПРАКТИКА =============================== */

.hb-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hb-pcard {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dde8f6;
  border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(15, 42, 86, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hb-pcard__head {
  background: #f5faff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #e5eefa;
}
.hb-pcard__ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.hb-pcard__ico svg { width: 17px; height: 17px; }
.hb-pcard__t { font-size: 16px; font-weight: 700; color: var(--navy); }
.hb-pcard__s { font-size: 13px; color: var(--muted); }
.hb-pcard__go { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }

.hb-frame { display: block; width: 100%; border: 0; background: transparent; }

.hb-promo { margin-top: 16px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.hb-promo iframe { display: block; width: 100%; border: 0; }

/* ================================ ЧИПЫ ================================== */

.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.hb-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #3a4c66;
  cursor: pointer;
  transition: 0.15s;
}
.hb-chip:hover { border-color: #cfe2fa; color: var(--blue); }
.hb-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(5, 108, 240, 0.22); }

.hb-words { padding: 8px; }

/* высота iframe словаря: на телефоне короче, чтобы не было пустоты */
#listFrame { height: 800px; }
@media (max-width: 900px) { #listFrame { height: 640px; } }

/* =============================== РЕЙТИНГ ================================ */

.hb-board { display: grid; gap: 8px; padding: 14px; }

.hb-board__row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
}
.hb-board__row:first-child { background: #fffdf4; border-color: #fdeeb6; }
.hb-board__n { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.hb-board__name { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; color: var(--navy); min-width: 0; }
.hb-board__name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-board__coins { font-size: 14px; font-weight: 600; color: #b45309; white-space: nowrap; }
.hb-board__cnt { font-size: 14px; font-weight: 700; color: var(--green-d); white-space: nowrap; }

/* ================================ ПУТЬ ================================== */

.hb-path { display: flex; align-items: flex-start; gap: 4px; padding: 16px 14px 10px; overflow-x: auto; }
.hb-path__step { flex: 1 1 0; min-width: 68px; text-align: center; position: relative; }
.hb-path__step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #eef2f8;
  z-index: 0;
}
.hb-path__step:first-child::before { left: 50%; }
.hb-path__step:last-child::before { right: 50%; }
.hb-path__dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 0 auto 7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: #f4f7fb;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(15, 42, 86, 0.08);
}
.hb-path__step.is-done .hb-path__dot { background: #eafaf0; }
.hb-path__step.is-cur .hb-path__dot { background: #e9f3ff; box-shadow: 0 0 0 4px rgba(5, 108, 240, 0.1); }
.hb-path__step.is-lock .hb-path__dot { filter: grayscale(1); opacity: 0.5; }
.hb-path__code { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.hb-path__name { font-size: 12px; color: var(--muted); }
.hb-path__step.is-lock .hb-path__code { color: #9aabc1; }

/* ============================= ФОРМА / ФОРМЫ ============================ */

.hb-details {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #dde8f6;
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}
.hb-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-details > summary::-webkit-details-marker { display: none; }
.hb-details > summary::after { content: "+"; margin-left: auto; font-size: 19px; font-weight: 400; color: var(--muted); }
.hb-details[open] > summary::after { content: "–"; }
.hb-details__body { padding: 0 18px 18px; }

.hb-field { display: block; margin-bottom: 10px; }
.hb-field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }

.hb-input,
.hb-select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--navy);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.hb-input:focus,
.hb-select:focus { background: #fff; border-color: #bed7f9; box-shadow: 0 0 0 3px rgba(5, 108, 240, 0.1); }

.hb-row2 { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.hb-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ================================= ВХОД ================================= */

.hb-auth { max-width: 400px; margin: 38px auto 0; }
.hb-auth__in { padding: 22px; }
.hb-auth h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.hb-auth__line { height: 3px; border-radius: 3px; background: var(--blue); width: 46px; margin-bottom: 16px; }
.hb-auth__alt { display: block; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.hb-auth__alt:hover { text-decoration: underline; }

/* ================================= SEO ================================== */

.hb-seo { margin-top: 38px; padding: 22px; }
.hb-seo__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.hb-seo h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.hb-seo p { margin: 0 0 9px; font-size: 15px; color: #33475f; }
.hb-seo__cols > div + div { border-left: 1px solid var(--line-2); padding-left: 26px; }
.hb-seo__tags { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }

/* =============================== ФУТЕР ================================== */

.hb-foot { margin-top: 46px; border-top: 1px solid var(--line); background: #e9f1fb; padding: 34px 0 22px; }

.hb-foot__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin-bottom: 26px;
}
.hb-foot__tag { font-size: 14.5px; color: var(--muted); }

.hb-foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hb-foot h4 { font-size: 13px; letter-spacing: 0.9px; text-transform: uppercase; color: #8395ab; margin-bottom: 9px; }
.hb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hb-foot a { font-size: 14.5px; color: #3d5372; text-decoration: none; }
.hb-foot a:hover { color: var(--blue); }

.hb-foot__bottom {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ============================ НИЖНЕЕ МЕНЮ =============================== */

.hb-bnav { display: none; }

/* =============================== COOKIE ================================= */

.hb-cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 200;
  max-width: 700px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #0b1f3a;
  color: #e9eef7;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 22, 44, 0.32);
  font-size: 13.5px;
}
.hb-cookie.is-open { display: flex; }
.hb-cookie p { margin: 0; line-height: 1.45; }
.hb-cookie small { color: #a3b3c8; }
.hb-cookie__btns { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }

.hb-mini {
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hb-mini--ok { background: #22c55e; color: #08240f; }
.hb-mini--no { background: rgba(255, 255, 255, 0.12); color: #dce7f5; }

/* ================================ ТОСТ ================================== */

.hb-toast {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 190;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-md);
  display: flex;
  gap: 10px;
}
.hb-toast button { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; margin-left: auto; }

/* =============================== АДАПТИВ ================================ */

@media (max-width: 1080px) {
  .hb-menu { gap: 0; margin-left: 8px; }
  .hb-menu a { padding: 8px 7px; font-size: 13.5px; }
  .hb-search { width: 132px; }
  .hb-hero__txt { padding: 28px 18px 28px 26px; }
}

@media (max-width: 900px) {
  .hb-menu { display: none; }
  .hb-top__in { height: 58px; }
  .hb-search { display: none; }

  .hb-hero { min-height: 0; }
  .hb-hero::before { display: none; }
  .hb-hero__in { min-height: 0; }
  .hb-hero__txt { max-width: none; padding: 22px 18px 4px; }

  /* на телефоне текст сверху, картинка — полосой снизу */
  .hb-hero__art { position: relative; inset: auto; height: 232px; margin-top: 10px; }
  .hb-hero__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    border-radius: 0 0 12px 12px;
  }

  .hb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-progress-extra { grid-template-columns: 1fr; }
  .hb-practice { grid-template-columns: 1fr; }
  .hb-seo__cols { grid-template-columns: 1fr; gap: 16px; }
  .hb-seo__cols > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 14px; }
  .hb-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-join { flex-wrap: wrap; }
  .hb-join img { margin-left: 0; }
  .hb-join__cta { width: 100%; }
  .hb-join__cta .hb-btn { width: 100%; }

  body.hb { padding-bottom: 72px; }

  .hb-bnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  }
  .hb-bnav a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: #8595ab;
  }
  .hb-bnav svg { width: 20px; height: 20px; }
  .hb-bnav a.on { color: var(--blue); }

  .hb-cookie { bottom: 78px; flex-direction: column; align-items: stretch; }
  .hb-cookie__btns { margin-left: 0; }
  .hb-cookie__btns .hb-mini { flex: 1 1 0; }
  .hb-toast { top: auto; bottom: 84px; left: 16px; right: 16px; max-width: none; }
}

@media (max-width: 700px) {
  /* мобильная версия — приоритет */
  .hb-wrap { padding: 0 10px; }
  .hb-levels { grid-template-columns: 1fr; }
  .hb-hero__txt { padding: 20px 16px 2px; }
  .hb-hero h1 { font-size: 28px; letter-spacing: -0.9px; }
  .hb-hero__sub { font-size: 17px; }
  .hb-hero__ru { font-size: 13.5px; }
  .hb-hero__p { font-size: 15.5px; margin-bottom: 16px; }
  .hb-sec { margin-top: 30px; }
  .hb-sec__t { font-size: 21px; }
  .hb-join { padding: 14px 15px; gap: 12px; }
  .hb-join img { height: 52px; }
  .hb-quick { padding: 12px 14px; gap: 12px 16px; }
  .hb-path { padding: 14px 10px 8px; }
  .hb-chart { padding: 10px 13px 8px; }
}

@media (max-width: 560px) {
  /* контент почти вплотную к краям экрана */
  .hb-wrap { padding: 0 8px; }
  .hb-hero { border-radius: 12px; }

  /* в шапке — только круглая иконка входа, без широкой синей кнопки */
  .hb-login { display: none; }
  .hb-signup { display: none; }
  .hb-ava--guest { display: grid; }

  /* рубрики на телефоне — по 2 в ряд, как в макете */
  .hb-features { gap: 10px; }
  .hb-feature { padding: 14px 13px 12px; }
  .hb-feature__ico { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 9px; }
  .hb-feature__ico svg { width: 19px; height: 19px; }
  .hb-feature h3 { font-size: 16.5px; letter-spacing: -0.3px; }
  .hb-feature p { font-size: 13px; margin: 4px 0 9px; }
  .hb-feature__go { font-size: 13.5px; }
  .hb-board__row { grid-template-columns: 24px 1fr auto; }
  .hb-board__coins { display: none; }
  .hb-row2 { grid-template-columns: 1fr; }
  .hb-quick { justify-content: flex-start; gap: 14px 18px; }
  .hb-quick__motto { width: 100%; }
  .hb-coins span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   v3 — ТЁПЛЫЙ ФОН + ЦВЕТНЫЕ РУБРИКИ
   ========================================================================== */

/* тёплый «бумажный» фон вместо холодного голубого */
body.hb {
  background:
    radial-gradient(1100px 520px at 6% -12%, #fdf1e2 0%, rgba(253, 241, 226, 0) 62%),
    radial-gradient(900px 460px at 96% -16%, #f7edda 0%, rgba(247, 237, 218, 0) 60%),
    #fbf7f1;
}

:root {
  --line: #eae0d3;
  --line-2: #f2e9dd;
}

/* ---------- рубрики: у каждой свой цвет ---------- */
.hb-feature--blue {
  background: linear-gradient(180deg, #f6fbff 0%, #e8f2fe 100%);
  border-color: #cfe2fa;
}
.hb-feature--blue .hb-feature__ico { background: #fff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #d6e6fb; }
.hb-feature--blue .hb-feature__go { color: #1d4ed8; }
.hb-feature--blue:hover { border-color: #b7d5f8; box-shadow: 0 12px 26px rgba(29, 78, 216, 0.12); }

.hb-feature--violet {
  background: linear-gradient(180deg, #faf6ff 0%, #f0e8fe 100%);
  border-color: #ded0f8;
}
.hb-feature--violet .hb-feature__ico { background: #fff; color: #6d28d9; box-shadow: inset 0 0 0 1px #e3d8fb; }
.hb-feature--violet .hb-feature__go { color: #6d28d9; }
.hb-feature--violet:hover { border-color: #cebbf5; box-shadow: 0 12px 26px rgba(109, 40, 217, 0.12); }

.hb-feature--green {
  background: linear-gradient(180deg, #f5fdf7 0%, #e8f8ee 100%);
  border-color: #cfecd9;
}
.hb-feature--green .hb-feature__ico { background: #fff; color: #15803d; box-shadow: inset 0 0 0 1px #d7f0e1; }
.hb-feature--green .hb-feature__go { color: #15803d; }
.hb-feature--green:hover { border-color: #b4e3c6; box-shadow: 0 12px 26px rgba(21, 128, 61, 0.12); }

.hb-feature--peach {
  background: linear-gradient(180deg, #fff9f4 0%, #ffecdd 100%);
  border-color: #f9dcc6;
}
.hb-feature--peach .hb-feature__ico { background: #fff; color: #c2410c; box-shadow: inset 0 0 0 1px #fbe1cd; }
.hb-feature--peach .hb-feature__go { color: #c2410c; }
.hb-feature--peach:hover { border-color: #f6c9a9; box-shadow: 0 12px 26px rgba(194, 65, 12, 0.12); }

.hb-feature h3 { color: #14202e; }
.hb-feature p { color: #4b5560; }

/* ---------- остальные блоки в тёплой гамме ---------- */
.hb-panelbox { background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%); border-color: #ece2d6; }
.hb-pcard { background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%); border-color: #ece2d6; }
.hb-pcard__head { background: #fdf7f1; border-bottom-color: #f0e6da; }
.hb-join { background: linear-gradient(115deg, #fff6ec 0%, #fffaf5 55%, #ffffff 100%); border-color: #f2e0cf; }
.hb-quick { background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%); border-color: #ece2d6; }
.hb-details { border-color: #ece2d6; }
.hb-foot { background: #f6efe6; border-top-color: #eadfd2; }
.hb-board__row { background: #fdfaf6; border-color: #f3ebe1; }
.hb-top { background: rgba(255, 253, 250, 0.94); border-bottom-color: #eadfd2; }

/* замкнутые/будущие уровни — нейтрально-тёплые, а не серо-синие */
.hb-lvl--lock { background: #f8f4ee; border-color: #e8ddcf; }
.hb-lvl--soon { background: #f7f3ec; border-color: #e6dccf; }

/* герой: сверху тёплый, к картинке плавно уходит в небо */
.hb-hero { border-color: #f0e3d4; background: linear-gradient(180deg, #fffdf9 0%, #f8fbff 100%); }

/* ==========================================================================
   v4 — СТРАНИЦЫ: вход / регистрация / поддержка
   ========================================================================== */

.hb-authpage { max-width: 460px; margin: 54px auto 70px; padding: 0 20px; }

.hb-authpage__card {
  background: #fff;
  border: 1px solid #ece2d6;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(40, 30, 15, 0.08);
  padding: 26px 24px 24px;
}

.hb-authpage__brand { display: flex; justify-content: center; margin-bottom: 16px; }

.hb-authpage h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-align: center;
  color: var(--navy);
}

.hb-authpage__sub {
  text-align: center;
  font-size: 14px;
  color: #4f6076;
  margin: 6px 0 18px;
  line-height: 1.45;
}

.hb-alert {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hb-alert--err { background: #fef2f2; border: 1px solid #fbd5d5; color: #b91c1c; }
.hb-alert--ok { background: #f2fbf4; border: 1px solid #cfedd9; color: #15803d; }

.hb-authpage .hb-field > span { font-size: 12.5px; }

.hb-authpage__alt {
  text-align: center;
  font-size: 14px;
  color: #4f6076;
  margin-top: 16px;
}
.hb-authpage__alt a { color: var(--blue); font-weight: 700; text-decoration: none; }
.hb-authpage__alt a:hover { text-decoration: underline; }

.hb-authpage__back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: #5b6472;
  text-decoration: none;
}
.hb-authpage__back:hover { color: var(--blue); }

.hb-authpage__note {
  font-size: 12px;
  color: #7b8794;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.45;
}

/* ---------- поддержка проекта ---------- */

.sup { max-width: 640px; margin: 44px auto 70px; padding: 0 20px; }

.sup__card {
  background: #fff;
  border: 1px solid #ece2d6;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(40, 30, 15, 0.08);
  overflow: hidden;
}

.sup__head {
  padding: 22px 24px;
  background: linear-gradient(120deg, #fff6ec, #fffdf9);
  border-bottom: 1px solid #f0e6da;
}
.sup__head h1 { font-size: 20px; font-weight: 800; color: var(--navy); }
.sup__head p { margin: 6px 0 0; font-size: 13.5px; color: #4f6076; line-height: 1.5; }

.sup__body { padding: 22px 24px 24px; }
.sup__body h2 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 18px 0 8px; }
.sup__body p { font-size: 14px; color: #3a4c63; line-height: 1.55; margin: 0 0 10px; }

.sup__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff1ee;
  border: 1px solid #f9d7d0;
  margin: 4px 0 18px;
}
.sup__price b { font-size: 15px; color: #b91c1c; }
.sup__price span { font-size: 12.5px; color: #8a5a52; }

.sup__rows { border: 1px dashed #cfdff5; border-radius: 12px; padding: 4px 16px; background: #fbfdff; }
.sup__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef3fa;
  font-size: 13.5px;
}
.sup__row:last-child { border-bottom: 0; }
.sup__row > span { color: #5b6472; }
.sup__row b { color: var(--navy); text-align: right; overflow-wrap: anywhere; }
.sup__iban { color: #b45309 !important; letter-spacing: 0.3px; }

.sup__note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f2f8ff;
  border-left: 3px solid var(--blue);
  font-size: 13px;
  color: #2b3d58;
  line-height: 1.55;
}

.sup__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

@media (max-width: 520px) {
  .hb-authpage { margin: 26px auto 50px; }
  .hb-authpage__card { padding: 20px 16px; }
  .hb-authpage h1 { font-size: 20px; }

  .sup { margin: 26px auto 50px; }
  .sup__body { padding: 18px 16px 20px; }
  .sup__row { flex-direction: column; gap: 2px; }
  .sup__row b { text-align: left; }
}

/* ==========================================================================
   v5 — уведомления и приветствие
   ========================================================================== */

.hb-tool__num {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e11d48; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.hb-welcome {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, #eefaf3, #ffffff);
  border: 1px solid #cfeedd;
}
.hb-welcome__ico { font-size: 24px; line-height: 1; }
.hb-welcome b { display: block; font-size: 15px; color: var(--navy); }
.hb-welcome span { display: block; font-size: 12.5px; color: #4f6076; margin-top: 3px; line-height: 1.45; }
.hb-welcome .hb-btn { margin-left: auto; }

@media (max-width: 560px) {
  .hb-welcome { flex-wrap: wrap; }
  .hb-welcome .hb-btn { margin-left: 0; width: 100%; }
}
