@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

@property --hc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;
  --bg: #09090a;
  --bar-h: 4rem;
  --tabs-h: 3.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bg-1: #0a0a0a;
  --bg-2: #111112;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f5;
  --text-soft: #a1a1aa;
  --text-mute: #71717a;
  --danger: #fca5a5;
  --ok: #d4d4d8;
  --r-lg: 1.25rem;
  --r-md: 0.9rem;
  --wrap: 1180px;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Onest", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-top: var(--bar-h); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1rem; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.hc-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.hc-wrap--narrow { max-width: 820px; }
.hc-muted { color: var(--text-soft); }
.hc-small { font-size: 0.875rem; }
.hc-mt { margin-top: 2.25rem; }
.hc-h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.6rem; }
.hc-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--text-soft); margin-bottom: 1rem; }
.hc-link { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.hc-link:hover { border-color: #fff; }

/* ================================================= top bar (as on watchplay.app) ==
 * Fixed bar: gradient at the top, frosted + slimmer once scrolled. The wordmark
 * morphs into the icon and the nav links glide left with it.
 */
.hc-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  transition: height 420ms var(--ease), background-color 240ms var(--ease), box-shadow 240ms var(--ease);
  background: linear-gradient(180deg, rgba(9, 9, 10, 0.82) 0%, rgba(9, 9, 10, 0) 100%);
}
.hc-bar[data-scrolled="true"] {
  height: 3.5rem;
  background: rgba(9, 9, 10, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.hc-bar__inner { display: flex; height: 100%; align-items: center; gap: 1.5rem; padding: 0 clamp(1rem, 3.2vw, 3rem); transition: gap 420ms var(--ease); }
.hc-bar[data-scrolled="true"] .hc-bar__inner { gap: 1rem; }

.hc-bar__brand { position: relative; display: block; flex: none; height: 2rem; width: 2rem; transition: width 420ms var(--ease); }
.hc-bar__logo-wide, .hc-bar__logo-icon { position: absolute; left: 0; top: 50%; transition: opacity 320ms ease, transform 420ms var(--ease); }
.hc-bar__logo-wide { height: auto; width: 8rem; max-width: none; opacity: 0; transform: translate(-0.4rem, -50%); pointer-events: none; }
.hc-bar__logo-icon { height: 2rem; width: 2rem; object-fit: contain; opacity: 1; transform: translateY(-50%) scale(1); }
@media (min-width: 1024px) {
  .hc-bar:not([data-scrolled="true"]) .hc-bar__brand { width: 8.25rem; }
  .hc-bar:not([data-scrolled="true"]) .hc-bar__logo-wide { opacity: 1; transform: translateY(-50%); }
  .hc-bar:not([data-scrolled="true"]) .hc-bar__logo-icon { opacity: 0; transform: translateY(-50%) scale(0.85); }
}

.hc-nav { display: none; min-width: 0; flex: 1; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .hc-nav { display: flex; } }
.hc-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap; color: #b4b4bb; transition: color 140ms ease, background-color 140ms ease;
}
.hc-nav__link i { font-size: 1.05rem; line-height: 1; }
.hc-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.hc-nav__link[data-active="true"] {
  color: #fff; background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}

.hc-bar__actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 0.25rem; }
@media (min-width: 1024px) { .hc-bar__actions { flex: none; } }

/* One frosted pill for search, language and profile */
.hc-actions {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hc-actions__sep { height: 1rem; width: 1px; background: rgba(255, 255, 255, 0.14); }
.hc-search-btn, .hc-langbtn {
  display: inline-flex; height: 2rem; align-items: center; justify-content: center; gap: 0.45rem; border: 0; border-radius: 999px;
  background: none; color: #f4f4f5; font: 500 0.8125rem var(--font); cursor: pointer; transition: background-color 140ms ease;
}
.hc-search-btn { min-width: 2rem; padding: 0 0.5rem; }
.hc-search-btn i, .hc-langbtn i { font-size: 1.05rem; }
.hc-search-btn:hover, .hc-langbtn:hover, .hc-langbtn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.1); }
.hc-search-btn__label { display: none; color: #b4b4bb; }
@media (min-width: 1100px) { .hc-search-btn { padding: 0 0.85rem 0 0.7rem; } .hc-search-btn__label { display: inline; } }
.hc-langbtn { padding: 0 0.65rem 0 0.55rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }

.hc-avatar {
  display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border: 0; padding: 0;
  border-radius: 999px; background: #f4f4f5; color: #09090a; font: 700 0.8rem var(--font); cursor: pointer; transition: transform .15s;
}
.hc-avatar:hover { transform: scale(1.06); }
.hc-avatar--static { cursor: inherit; flex: none; height: 2.5rem; width: 2.5rem; border-radius: 12px; font-size: 1rem; }
.hc-avatar--static:hover { transform: none; }
.hc-cta-btn { display: inline-flex; height: 2rem; align-items: center; padding: 0 0.9rem; border-radius: 999px; background: #f4f4f5; color: #09090a; font-size: 0.8125rem; font-weight: 600; transition: background-color .15s; }
.hc-cta-btn:hover { background: #fff; }

.hc-dd { position: relative; display: flex; }
.hc-langmenu, .hc-menu {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 70; padding: 0.35rem; border-radius: 10px; background: #111113;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.7); transform-origin: top right;
}
.hc-langmenu[hidden], .hc-menu[hidden] { display: none; }
.hc-langmenu:not([hidden]), .hc-menu:not([hidden]) { animation: hc-pop 240ms var(--ease); }
@keyframes hc-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.hc-langmenu { min-width: 9.5rem; }
.hc-langmenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 2.1rem; padding: 0 0.7rem; border-radius: 6px;
  color: #b4b4bb; font-size: 0.8125rem; font-weight: 500; transition: background-color 140ms ease, color 140ms ease;
}
.hc-langmenu a:hover { background: rgba(255, 255, 255, 0.08); color: #f4f4f5; }
.hc-langmenu a[data-active="true"] { color: #f4f4f5; }

.hc-menu { width: min(21rem, calc(100vw - 2rem)); padding: 0.5rem; }
.hc-menu__profile { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: #1a1a1d; border-radius: 10px; transition: background-color .15s; }
.hc-menu__profile:hover { background: #222226; }
.hc-menu__who { min-width: 0; flex: 1; }
.hc-menu__name, .hc-menu__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-menu__name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.hc-menu__sub { font-size: 0.75rem; color: #7d7d86; }
.hc-menu__chev { flex: none; font-size: 1.25rem; color: #7d7d86; }
.hc-menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.375rem; margin: 0.5rem 0; }
.hc-menu__tile {
  display: flex; min-height: 4.25rem; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 0.8rem; border-radius: 10px; background: #1a1a1d; color: #b4b4bb; font-size: 0.8125rem; font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease;
}
.hc-menu__tile i { font-size: 1.25rem; line-height: 1; color: #f4f4f5; }
.hc-menu__tile:hover { background: #26262a; color: #f4f4f5; }
.hc-menu form { margin: 0; }
.hc-menu__item {
  display: flex; width: 100%; min-height: 2.5rem; align-items: center; gap: 0.75rem; padding: 0 0.6rem; border: 0; border-radius: 6px;
  background: none; color: #b4b4bb; font: 400 0.875rem var(--font); text-align: left; cursor: pointer; transition: background-color .14s, color .14s;
}
.hc-menu__item i { width: 1.1rem; font-size: 1.05rem; text-align: center; }
.hc-menu__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.hc-menu__item--danger:hover { color: #fca5a5; }

/* Mobile bottom tab bar */
.hc-tabs {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  min-height: var(--tabs-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(9, 9, 10, 0.9); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.07);
}
@media (min-width: 1024px) { .hc-tabs { display: none; } }
@media (max-width: 1023.98px) { body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); } }
.hc-tabs__link { display: flex; min-height: var(--tabs-h); flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; font-size: 0.625rem; font-weight: 500; color: #7d7d86; }
.hc-tabs__link i { font-size: 1.3rem; line-height: 1; transition: background-color .2s, padding .2s; }
.hc-tabs__link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-tabs__link[data-active="true"] { color: #fff; }
.hc-tabs__link[data-active="true"] i { padding: 0.2rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (prefers-reduced-motion: reduce) {
  .hc-bar, .hc-bar__inner, .hc-bar__brand, .hc-bar__logo-wide, .hc-bar__logo-icon { transition: none; }
  .hc-langmenu:not([hidden]), .hc-menu:not([hidden]) { animation: none; }
}

/* Buttons */
.hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: 500 0.92rem var(--font); cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.hc-btn:hover { background: var(--card-hover); border-color: rgba(255,255,255,.35); }
.hc-btn:active { transform: scale(.98); }
.hc-btn--primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.hc-btn--primary:hover { background: #e5e5e5; border-color: #e5e5e5; }
.hc-btn--ghost { border-color: var(--line); color: var(--text-soft); }
.hc-btn--ghost:hover { color: #fff; }
.hc-btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.hc-btn--block { width: 100%; }
.hc-btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hc-hero { position: relative; z-index: 5; margin-top: calc(-1 * var(--bar-h)); padding: calc(var(--bar-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.hc-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,.1), transparent 70%),
    linear-gradient(to bottom, rgba(5,5,5,.75), rgba(5,5,5,.25) 22%, rgba(5,5,5,.4) 60%, var(--bg) 96%),
    url("../img/login_bg_sonya_romanovska.webp") center/cover no-repeat;
  opacity: .9;
}
.hc-hero__inner { position: relative; z-index: 1; }
.hc-hero__title { font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -0.045em; margin-bottom: 1rem; }
.hc-hero__lead { max-width: 560px; margin: 0 auto 2.25rem; color: var(--text-soft); font-size: 1.1rem; }
.hc-hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 1.5rem; color: var(--text-mute); font-size: 0.88rem; }
.hc-chip { padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: rgba(5,5,5,.5); transition: color .2s, border-color .2s; }
.hc-chip:hover { color: #fff; border-color: var(--line-strong); }

/* Search with orbiting gradient line */
.hc-search { position: relative; width: 100%; max-width: 680px; margin-inline: auto; text-align: left; }
.hc-search__box {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 0.75rem;
  background: #0a0a0b; border-radius: 999px; padding: 0.3rem 0.35rem 0.3rem 1.25rem;
  height: 54px;
}
.hc-search--big .hc-search__box { height: 66px; padding-left: 1.5rem; }
.hc-search__icon { font-size: 1.25rem; color: var(--text-soft); }
.hc-search__input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0;
  color: #fff; font: 400 1.05rem var(--font);
}
.hc-search--big .hc-search__input { font-size: 1.18rem; }
.hc-search__input::placeholder { color: var(--text-mute); }
.hc-search__input::-webkit-search-cancel-button { display: none; }
.hc-search__kbd { font: 500 .75rem var(--font); color: var(--text-mute); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .45rem; }
.hc-search:focus-within .hc-search__kbd { display: none; }
.hc-search__submit {
  height: 100%; aspect-ratio: 1; border-radius: 50%; border: 0; background: #fff; color: #000;
  font-size: 1.25rem; display: grid; place-items: center; cursor: pointer; transition: transform .2s;
}
.hc-search__submit:hover { transform: translateX(2px); }

/* The moving line: a conic gradient ring that circles the bar. */
.hc-search__glow, .hc-search__glow::before {
  position: absolute; inset: -2px; border-radius: 999px; pointer-events: none;
}
.hc-search__glow {
  z-index: 1; padding: 2px;
  background: conic-gradient(from var(--hc-angle), transparent 0deg, transparent 215deg, rgba(255,255,255,.15) 255deg, #fff 320deg, rgba(255,255,255,.15) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hc-orbit 5s linear infinite;
}
.hc-search__glow::before {
  content: ""; inset: -2px; padding: 0; z-index: -1;
  background: inherit; -webkit-mask: none; mask: none;
  filter: blur(14px); opacity: .45;
}
.hc-search:focus-within .hc-search__glow { animation-duration: 2.6s; }
.hc-search:focus-within .hc-search__glow::before { opacity: .75; }
@keyframes hc-orbit { to { --hc-angle: 360deg; } }

/* Fallback when @property is unsupported: static soft ring */
@supports not (background: conic-gradient(from 1turn at 50% 50%, red, blue)) {
  .hc-search__glow { background: var(--line-strong); animation: none; }
}

/* Live suggestions */
.hc-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 10px); margin: 0; padding: .4rem;
  list-style: none; background: rgba(12,12,13,.98); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: 380px; overflow: auto;
}
.hc-suggest[hidden] { display: none; }
.hc-suggest a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border-radius: .8rem; }
.hc-suggest a strong { font-weight: 500; }
.hc-suggest a small { color: var(--text-soft); }
.hc-suggest li[aria-selected="true"] a, .hc-suggest a:hover { background: var(--card-hover); }
.hc-suggest__empty { padding: 1rem; color: var(--text-soft); }

/* Sections, cards, lists */
.hc-section { padding-block: 2.5rem; }
.hc-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.hc-section__head h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .6rem; }
.hc-page { padding-block: 2.5rem 4rem; }
.hc-block { margin-top: 2.5rem; }
.hc-grid { display: grid; gap: 1rem; }
.hc-grid--cats { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; transition: background .2s, border-color .2s, transform .25s; }
a.hc-card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-3px); }
.hc-cat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #000; font-size: 1.3rem; margin-bottom: 1rem; }
.hc-cat h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.hc-cat p { color: var(--text-soft); font-size: .93rem; margin-bottom: .9rem; }
.hc-cat__count { font-size: .8rem; color: var(--text-mute); }
.hc-cathead { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 2rem; }
.hc-cathead .hc-cat__icon { margin: 0; width: 56px; height: 56px; font-size: 1.6rem; }

.hc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.hc-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); transition: background .2s; }
.hc-row:first-child { border-top: 0; }
.hc-row:hover { background: var(--card-hover); }
.hc-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.hc-row__main strong { font-weight: 500; }
.hc-row__main small { color: var(--text-soft); font-size: .88rem; }
.hc-row__meta { color: var(--text-mute); font-size: .8rem; white-space: nowrap; }
.hc-row > i { color: var(--text-mute); font-size: 1.3rem; transition: transform .2s, color .2s; }
.hc-row:hover > i { transform: translateX(3px); color: #fff; }
.hc-list--compact .hc-row { padding: .8rem 1rem; }

.hc-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 1.75rem; border: 1px solid var(--line-strong); background: radial-gradient(80% 140% at 0% 0%, rgba(255,255,255,.09), transparent 60%), var(--bg-1); }
.hc-cta h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.hc-cta p { color: var(--text-soft); max-width: 520px; margin: 0; }
.hc-cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.hc-crumbs { display: flex; align-items: center; gap: .15rem; font-size: .88rem; color: var(--text-soft); margin-bottom: 1.25rem; flex-wrap: wrap; }
.hc-crumbs a:hover { color: #fff; }

/* Article */
.hc-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.hc-article__meta { font-size: .88rem; margin-bottom: 2rem; }
.hc-prose { font-size: 1.05rem; color: #e4e4e7; }
.hc-prose h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; color: #fff; }
.hc-prose ul, .hc-prose ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.hc-prose li { margin-bottom: .5rem; }
.hc-prose a { border-bottom: 1px solid var(--line-strong); color: #fff; }
.hc-prose a:hover { border-color: #fff; }
.hc-prose code { background: var(--card-hover); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; font-size: .9em; }
.hc-prose blockquote,
.callout { border: 1px solid var(--line-strong); border-left: 3px solid #fff; background: var(--card); border-radius: .9rem; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.hc-helpful { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.hc-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1.25rem; }
.hc-aside h3 { font-size: 1rem; color: var(--text-soft); font-weight: 500; }
.hc-aside__card { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.hc-aside__card i { font-size: 1.6rem; }
.hc-aside__card p { color: var(--text-soft); font-size: .92rem; margin: 0 0 .5rem; }

/* Forms */
.hc-form { display: flex; flex-direction: column; gap: 1.1rem; }
.hc-form--card { padding: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; }
.hc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hc-field { display: flex; flex-direction: column; gap: .45rem; }
.hc-field > span { font-size: .88rem; color: var(--text-soft); }
.hc-field input, .hc-field select, .hc-field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); border-radius: .85rem;
  color: #fff; font: 400 1rem var(--font); padding: .8rem 1rem; transition: border-color .2s, background .2s;
}
.hc-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.hc-field select option { background: #111; color: #fff; }
.hc-field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.hc-field input:focus, .hc-field select:focus, .hc-field textarea:focus { outline: 0; border-color: #fff; background: rgba(255,255,255,.07); }
.hc-field small { text-align: right; }

.hc-alert { border-radius: .9rem; padding: .85rem 1.1rem; margin: 1rem 0; border: 1px solid var(--line-strong); background: var(--card); }
.hc-alert--error { border-color: rgba(252,165,165,.45); color: var(--danger); background: rgba(239,68,68,.08); }

/* Auth */
.hc-auth { min-height: calc(100vh - var(--bar-h)); display: grid; grid-template-columns: minmax(380px, 520px) 1fr; }
.hc-auth__panel { display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: clamp(1.5rem, 5vw, 4rem); }
.hc-auth__panel .hc-brand { margin-bottom: 2rem; }
.hc-auth__panel .hc-form { margin: 1.25rem 0 1.5rem; }
.hc-auth__hero { background: linear-gradient(90deg, var(--bg), transparent 40%), url("../img/login_bg_sonya_romanovska.webp") center/cover; border-left: 1px solid var(--line); }

/* Tickets */
.hc-status { font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.hc-status--open { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.hc-status--in_progress { background: var(--card-hover); color: #fff; }
.hc-status--closed { color: var(--text-mute); }
.hc-ticket-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.hc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.hc-meta dt { font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.hc-meta dd { margin: .2rem 0 0; }
.hc-thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.hc-msg { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.3rem; background: var(--card); }
.hc-msg--team { border-color: var(--line-strong); background: rgba(255,255,255,.08); margin-left: 2rem; }
.hc-msg__head { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; font-size: .9rem; }
.hc-msg__head span:last-child { margin-left: auto; color: var(--text-mute); font-size: .8rem; }
.hc-msg p { margin: 0; word-break: break-word; }
.hc-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 999px; background: #fff; color: #000; font-weight: 700; }

.hc-empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.hc-empty > i { font-size: 2.4rem; color: var(--text-soft); }
.hc-empty h1, .hc-empty h2 { margin: .75rem 0 .5rem; }
.hc-empty p { color: var(--text-soft); }
.hc-empty .hc-search { margin-top: 1.5rem; }

/* Toasts */
.hc-toasts { position: fixed; top: .75rem; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 460px); pointer-events: none; }
.hc-toast { background: rgba(14,14,15,.96); border: 1px solid var(--line-strong); border-radius: 999px; padding: .75rem 1.25rem; text-align: center; font-size: .93rem; box-shadow: 0 16px 50px rgba(0,0,0,.6); animation: hc-toast 5s ease both; }
.hc-toast--info { color: var(--ok); }
@keyframes hc-toast { 0% { opacity: 0; transform: translateY(-12px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

/* Footer */
.hc-footer { border-top: 1px solid var(--line); margin-top: 3rem; color: var(--text-mute); font-size: .88rem; }
.hc-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem; }
.hc-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hc-footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .hc-article-layout { grid-template-columns: 1fr; }
  .hc-aside { position: static; }
  .hc-auth { grid-template-columns: 1fr; }
  .hc-auth__hero { display: none; }
}
@media (max-width: 640px) {
  .hc-form__row { grid-template-columns: 1fr; }
  .hc-row__meta { display: none; }
  .hc-msg--team { margin-left: 0; }
  .hc-search__kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-search__glow { animation: none; --hc-angle: 300deg; }
  .hc-toast { animation-duration: 1ms; animation-delay: 4s; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Skip link + language switcher */
.hc-skip { position: absolute; left: .75rem; top: -4rem; z-index: 200; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; transition: top .2s; }
.hc-skip:focus { top: .75rem; }

/* OAuth sign-in */
.hc-auth__cta { margin: 1.5rem 0 1rem; gap: .65rem; }
.hc-auth__icon { filter: invert(1); }
.hc-auth__how { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 1.25rem; }
.hc-auth__how i { font-size: 1.1rem; margin-top: .1rem; }

.hc-prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: #fff; }
.hc-prose blockquote p:last-child, .callout p:last-child { margin-bottom: 0; }
.hc-prose pre { padding: .9rem 1rem; border-radius: .9rem; background: var(--card-hover); border: 1px solid var(--line); overflow: auto; }
.hc-prose pre code { background: none; border: 0; padding: 0; }
.hc-prose img { max-width: 100%; border-radius: .9rem; }
