/* Njuškalo.hr help · centered shell + side wallpaper (как оригинал) */
:root {
  --nj-yellow: #fdcd00;
  --nj-blue: #009fe3;
  --nj-link: #0066a1;
  --nj-ink: #221f1f;
  --nj-muted: #666;
  --nj-line: #d9d9d9;
  --nj-footer: #1a1a1a;
  --nj-max: 1140px;
  --nj-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--nj-font);
  color: var(--nj-ink);
  background: #e8e8e8;
  -webkit-font-smoothing: antialiased;
}
/* html=75% (12px) как на njuskalo — контент держим ~16px */
body { font-size: 1.33333rem; }
a { color: var(--nj-link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* не ломать оригинальный Footer */
.Footer a { color: inherit; }
img { max-width: 100%; height: auto; border: 0; display: block; }
button, input { font: inherit; }

/* Фон-паттерн по всей странице — по бокам от центральной колонки */
.njh-page {
  min-height: 100vh;
  background-color: #ebebeb;
  /* Строго файл пользователя (оригинал) — без вырезки/SVG/масштаба */
  background-image: url("/logos/njuskalo-help-pattern.png?v=6");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: auto;
}

/* Центральная колонка как на njuskalo (шапка НЕ на весь экран) */
.njh-wrap {
  max-width: var(--nj-max);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

/* —— Prijava / Registracija — копир. Header-authNav из Njuškalo LBLglwUbL.css —— */
.njh-topbar {
  /* @media (min-width:50em) .Header-mainNav { background:#1a1a1a } */
  background: #1a1a1a;
  /* html { font-size:75% } → 12px — rem как на njuskalo.hr */
  font-size: 12px;
  line-height: 1.5;
}
.njh-authNav {
  /* .Header-authNav */
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0 0.416667rem 0 0;
  padding: 0;
}
.njh-authNav__item {
  /* .Header-authNavListItem */
  position: relative;
}
.njh-authNav__item:not(:first-child)::after {
  /* .Header-authNavListItem:not(:first-child):after */
  content: "";
  border-left: 1px solid #4f4f4f;
  position: absolute;
  top: 1.16667rem;
  bottom: 1.16667rem;
  left: 0;
}
.njh-authNav__link {
  /* .Header-authNavItem @media (min-width:50em) */
  display: block;
  color: #f6f6f6;
  font-weight: 700;
  text-decoration: none;
  text-align: left;
  padding: 0 1.25rem 0 1.33333rem;
  line-height: 3.16667rem;
  position: relative;
}
.njh-authNav__link:hover,
.njh-authNav__link:focus {
  color: #fff;
  text-decoration: none;
}

/* —— Жёлтый хедер 1:1 (Header-mainControls / SearchBox / submitClassified) —— */
.njh-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.njh-header {
  background: #fdcd00;
}
.njh-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 0;
}
/* Header-logo — sprite с static.njuskalo.hr */
.njh-logo {
  text-align: left;
  white-space: nowrap;
  color: transparent;
  text-indent: 100%;
  user-select: none;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  width: 170px;
  height: 46px;
  margin: -10px 12px -10px 10px;
  background-color: transparent;
  background-image: url("/logos/njuskalo-header-logo-1x.png");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  text-decoration: none !important;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .njh-logo {
    background-image: url("/logos/njuskalo-header-logo-2x.png");
  }
}
/* SearchBox--alpha */
.njh-search {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 20px;
  position: relative;
}
.njh-search__input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff url("/logos/njuskalo-CX0kBNqZC.svg") 10px 50% no-repeat;
  background-size: 16px 16px;
  padding: 10px 12px 10px 40px;
  font-size: 14px;
  line-height: 1.3;
  color: #221f1f;
  outline: none;
  box-shadow: none;
}
.njh-search__input::placeholder { color: #999; }
.njh-search__input:focus {
  background-color: #fff;
  border-color: transparent;
  outline: none;
}
/* Header-submitClassified */
.njh-cta {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 -1px rgba(0, 0, 0, 0.4);
  background-color: #19a7d8;
  background-image: linear-gradient(#38bae8, #1692bd);
  border: 1px solid #037399;
  border-radius: 4px;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.5);
  transition: all 80ms ease-in-out;
  margin-right: 10px;
}
.njh-cta:hover,
.njh-cta:focus {
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: inset 0 0 2px #fff, 0 0 10px rgba(65, 190, 233, 0.35);
}
.njh-cta__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.njh-cta__inner::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  background: url("/logos/njuskalo-plus.svg") 0 50% no-repeat;
  background-size: contain;
}
@media screen and (min-width: 800px) {
  .njh-header__inner {
    flex-wrap: nowrap;
    padding: 10px 0;
  }
  .njh-logo {
    width: 190px;
    margin-left: 10px;
    margin-right: 0;
  }
  .njh-cta {
    margin-right: 15px;
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media screen and (max-width: 599px) {
  .njh-header__inner {
    padding: 12px 16px 14px;
  }
  .njh-logo {
    width: 140px;
    height: 40px;
    margin: 0;
  }
  .njh-search {
    order: 3;
    flex: 1 1 100%;
    margin: 12px 0 0;
  }
  .njh-cta {
    margin-right: 0;
    margin-left: auto;
    padding: 9px 14px;
  }
}

/* —— Breadcrumb (как скрин 2: белая плашка) —— */
.njh-crumb {
  background: #f3f3f3;
  padding: 12px 16px 0;
}
.njh-crumb__box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
}
.njh-crumb__box a {
  color: var(--nj-link);
  font-weight: 400;
}
.njh-crumb__box span {
  color: #999;
  margin: 0 6px;
}
.njh-crumb__box strong {
  color: #333;
  font-weight: 400;
}

/* —— Контент —— */
.njh-shell {
  background: #f3f3f3;
  padding: 12px 16px 28px;
}
.njh-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  min-height: 420px;
  overflow: hidden;
}
.njh-panel--solo {
  grid-template-columns: 1fr;
}

.njh-main {
  padding: 28px 32px 36px;
  border-right: 1px solid #eee;
  min-width: 0;
}
.njh-panel--solo .njh-main {
  border-right: 0;
  max-width: 820px;
}
.njh-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.njh-house {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
}
.njh-linkbox {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #fffdf3;
  border: 1px solid #f0e2a0;
  border-radius: 4px;
  font-size: 14.5px;
  color: #333;
}
.njh-linkbox a {
  font-weight: 700;
  word-break: break-all;
}
.njh-bullets {
  margin: 0;
  padding-left: 20px;
}
.njh-bullets li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.njh-block {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.njh-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.njh-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--nj-link);
}
.njh-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #333;
}
.njh-muted {
  color: #777;
  font-size: 13.5px;
}
.njh-new {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: var(--nj-yellow);
  color: var(--nj-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.08);
}
.njh-main h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--nj-ink);
}
.njh-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #444;
}

.njh-section { margin: 0 0 26px; }
.njh-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--nj-ink);
}
.njh-section p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #333;
}
.njh-section ul, .njh-section ol {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #333;
}
.njh-section li { margin-bottom: 6px; }

.njh-steps { list-style: none; margin: 0; padding: 0; }
.njh-steps > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.njh-steps > li:last-child { border-bottom: 0; }
.njh-steps__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nj-yellow);
  color: var(--nj-ink);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.njh-steps__body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--nj-link);
}
.njh-steps__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.njh-callout {
  background: #f7f7f7;
  border-left: 4px solid var(--nj-yellow);
  padding: 12px 14px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}

/* Выделенный блок для владельца — залог остаётся у него */
.njh-owner-note {
  margin: 20px 0 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff8e1 100%);
  border: 1px solid #e6c200;
  border-left: 5px solid var(--nj-yellow);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.njh-owner-note__label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: var(--nj-yellow);
}
.njh-owner-note__title {
  margin: 0 0 10px !important;
  font-size: 18px !important;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.njh-owner-note > p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #222;
}
.njh-owner-note__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.njh-owner-note__list li {
  position: relative;
  margin: 0 0 10px;
  padding: 10px 12px 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 194, 0, 0.45);
  font-size: 14px;
  line-height: 1.55;
  color: #222;
}
.njh-owner-note__list li:last-child { margin-bottom: 0; }
.njh-owner-note__list strong { color: #111; }
.njh-owner-note__foot {
  margin: 0 !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 13.5px !important;
  font-weight: 600;
  color: #1a1a1a !important;
}

.njh-entry {
  margin-top: 8px;
  padding: 18px 16px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 4px;
}
.njh-entry h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.njh-entry > p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #666;
}
.njh-entry-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 400px;
}
.njh-entry-form input {
  flex: 1;
  min-width: 120px;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
}
.njh-entry-form button {
  border: 0;
  background: var(--nj-yellow);
  color: var(--nj-ink);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 2px;
  cursor: pointer;
}
.njh-entry-form button:disabled { opacity: .65; cursor: wait; }
.njh-entry-error { color: #b91c1c; font-size: 13px; font-weight: 700; margin: 8px 0 0; }

.njh-side {
  padding: 20px 18px 24px;
  background: #fff;
}
.njh-mascot {
  text-align: center;
  margin: 4px 0 12px;
}
.njh-mascot__pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
}
.njh-mascot__house {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  margin-bottom: 18px;
}
.njh-mascot__dog {
  width: 150px;
  height: auto;
}
.njh-helpbox h2 {
  margin: 8px 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--nj-ink);
}
.njh-helpbox > p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}
.njh-helpbox > p a { font-weight: 700; }
.njh-meta {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 14px;
}
.njh-meta strong { font-weight: 700; }
.njh-meta a { color: var(--nj-link); font-weight: 700; }
.njh-btn-dark {
  display: block;
  text-align: center;
  background: #4a4a4a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 13px 10px;
  margin-bottom: 8px;
  border-radius: 2px;
}
.njh-btn-dark:hover { filter: brightness(1.08); text-decoration: none !important; }

/* Footer — только css/njuskalo-footer-orig.css (классы .Footer из оригинала) */

/* FAB поддержки (kako / portal) */
.njn-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #009fe3;
  color: #fff;
  font: 700 12px/1 Arial, "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 159, 227, 0.35);
}
.njn-fab:hover { filter: brightness(1.05); }
.njn-fab--pulse { animation: njnFabPulse 0.9s ease; }
@keyframes njnFabPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
}
.njn-tp-panel.hidden { display: none !important; }

@media (max-width: 920px) {
  .njh-panel { grid-template-columns: 1fr; }
  .njh-main { border-right: 0; border-bottom: 1px solid #eee; padding: 22px 18px; }
}
@media (max-width: 560px) {
  .njh-main h1 { font-size: 22px; }
}
