/* ГО «Історичний слід» — глобальні стилі.
   Макет збудовано на інлайн-стилях (точна копія Claude Design).
   Тут лише: ресет, hover/focus-хелпери та адаптив хедера. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- hover-хелпери (замість style-hover з макета) ---- */
.hov-gold-dark:hover  { background: #a3895f !important; }
.hov-gold-light:hover { background: #c4ac86 !important; }
.hov-border-white:hover { border-color: #fff !important; }
.hov-white:hover { color: #fff !important; }
.hov-gold-text:hover { color: #a3895f !important; }
.hov-border-gold:hover { border-color: #b69d74 !important; }
.hov-row:hover { background: #fafafa; }
.hov-rubric:hover { background: rgba(182,157,116,.1) !important; border-color: #b69d74 !important; }
.hov-card { transition: box-shadow .18s ease; }
.hov-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
a, button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }

/* ---- поля форм: фокус (видимий ring для доступності) ---- */
.inp:focus { border-color: #b69d74 !important; }
.inp:focus-visible { outline: 2px solid #b69d74; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(182,157,116,.25); }
/* ---- видимий фокус для клавіатурної навігації ---- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #b69d74; outline-offset: 3px; border-radius: 3px;
}
.filter-btn:focus-visible { outline: 2px solid #1f2839; outline-offset: 2px; }

/* ---- хедер: адаптив (десктоп ↔ мобайл, брейк 880px) ---- */
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-burger  { display: none; }
.nav-mobile  { display: none; }
@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-burger  { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ---- FAQ ---- */
.faq-item .faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open { border-color: #b69d74 !important; }

/* ---- стани форм (показ/приховання через JS) ---- */
.is-hidden { display: none !important; }
.field-error { display: block; font-family: 'Open Sans', sans-serif; font-size: 12.5px; margin-top: 6px; }

/* ---- блог: фільтр-кнопки ---- */
.filter-btn {
  font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600;
  background: #fff; color: #1f2839; border: 1.5px solid #d1d1d1;
  border-radius: 6px; padding: 9px 18px; cursor: pointer;
}
.filter-btn.active { background: #b69d74; color: #fff; border-color: #b69d74; font-weight: 700; }
.post-card.is-hidden { display: none !important; }

/* ---- типографіка статті (markdown → стилі макета) ---- */
.article-content { font-family: 'Open Sans', sans-serif; }
.article-content h2 {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700;
  line-height: 1.2; color: #1f2839; margin: 44px 0 18px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600;
  line-height: 1.3; color: #1f2839; margin: 32px 0 14px;
}
.article-content p { font-size: 16px; line-height: 1.8; color: #333; margin: 0 0 18px; }
.article-content strong { font-weight: 700; color: #1f2839; }
.article-content a { color: #b69d74; text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 28px; padding-left: 0; }
.article-content ul { list-style: none; }
.article-content ul li {
  position: relative; padding-left: 24px; margin-bottom: 12px;
  font-size: 16px; line-height: 1.8; color: #333;
}
.article-content ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 8px; height: 8px; background: #b69d74; transform: rotate(45deg);
}
.article-content ol { padding-left: 22px; }
.article-content ol li { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 12px; padding-left: 6px; }
.article-content ol li::marker { color: #b69d74; font-weight: 700; }
.article-content blockquote {
  border-left: 4px solid #1f2839; background: #f9f9f9; border-radius: 0 8px 8px 0;
  margin: 0 0 32px; padding: 22px 26px;
  font-family: 'Playfair Display', serif; font-size: 19px; font-style: italic;
  line-height: 1.65; color: #1f2839;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 32px;
  font-family: 'Open Sans', sans-serif; font-size: 14.5px;
}
.article-content th, .article-content td {
  border: 1px solid #e3e3e3; padding: 12px 14px; text-align: left;
  line-height: 1.6; color: #333; vertical-align: top;
}
.article-content th {
  background: #f4f4f4; font-weight: 700; color: #1f2839;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  letter-spacing: .04em;
}
.article-content img { border-radius: 8px; margin: 0 0 28px; }
