/*
Theme Name: HiHunter
Theme URI: https://hihunter.com.ua
Author: HiHunter Team
Author URI: https://hihunter.com.ua
Description: Кастомна тема для блогу про риболовлю hihunter.com.ua. Сучасний дизайн: глибокі водні відтінки, акцент кольору світанку, лінія закиду як фірмовий елемент.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hihunter
Tags: blog, custom-menu, featured-images, two-columns
*/

/* ==========================================================================
   1. Токени
   ========================================================================== */
:root {
  --ink: #0a2220;         /* глибока вода, темні секції */
  --deep: #10362f;        /* темний хвойно-водний */
  --moss: #2c5b50;        /* мох / очерет */
  --aqua: #93cfc0;        /* світла вода, лінки на темному */
  --dawn: #f2a33c;        /* світанок над водою, головний акцент */
  --dawn-deep: #d97f16;
  --paper: #f7f9f5;       /* основний фон */
  --mist: #e8efea;        /* картки, вставки */
  --line: #d8e3dc;        /* бордери */
  --text: #24342f;
  --muted: #5e7169;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(10, 34, 32, 0.10);
  --shadow-sm: 0 4px 14px rgba(10, 34, 32, 0.08);
  --header-h: 74px;
  --tr: 0.25s ease;
}

/* ==========================================================================
   2. Базове
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--dawn-deep); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1.1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* службовий підпис-«вудлище» перед заголовками секцій */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #fff 0 34%, var(--dawn) 36% 100%);
  box-shadow: 0 0 0 2px rgba(242, 163, 60, 0.35);
}
.dark .eyebrow { color: var(--aqua); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
}
.btn-dawn { background: var(--dawn); color: var(--ink); }
.btn-dawn:hover { background: var(--dawn-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-deep { background: var(--deep); color: var(--paper); }
.btn-deep:hover { background: var(--moss); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   3. Лінія закиду: прогрес читання (фірмовий елемент)
   ========================================================================== */
.cast-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--moss), var(--dawn));
  pointer-events: none;
}
.cast-progress::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  width: 13px; height: 13px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #fff 0 34%, var(--dawn) 36% 100%);
  box-shadow: 0 0 0 3px rgba(242, 163, 60, 0.30);
}

/* ==========================================================================
   4. Хедер: [Лого] [Меню] [Пошук] [Гамбургер]
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 34, 32, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--tr), background var(--tr);
}
.site-header.is-scrolled {
  background: rgba(10, 34, 32, 0.98);
  box-shadow: 0 8px 24px rgba(4, 16, 15, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--paper);
  white-space: nowrap;
}
.brand:hover { color: var(--dawn); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-tld { color: var(--dawn); }

.desk-nav { flex: 1 1 auto; min-width: 0; }
.desk-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.desk-nav-list li { flex: none; }
.desk-nav-list a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(247, 249, 245, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--tr), color var(--tr);
}
.desk-nav-list a:hover,
.desk-nav-list .current-menu-item > a,
.desk-nav-list .current_page_item > a {
  background: rgba(147, 207, 192, 0.14);
  color: var(--dawn);
}

.header-search {
  display: flex;
  align-items: center;
  flex: none;
  background: rgba(247, 249, 245, 0.10);
  border: 1px solid rgba(247, 249, 245, 0.18);
  border-radius: 999px;
  padding: 3px 4px 3px 16px;
  transition: border-color var(--tr), background var(--tr);
}
.header-search:focus-within { border-color: var(--dawn); background: rgba(247, 249, 245, 0.14); }
.header-search input {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 150px;
  padding: 7px 0;
}
.header-search input::placeholder { color: rgba(247, 249, 245, 0.55); }
.header-search input:focus { outline: none; }
.header-search button {
  border: 0;
  background: var(--dawn);
  color: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr);
}
.header-search button:hover { background: var(--dawn-deep); color: #fff; }
.header-search svg { width: 15px; height: 15px; }

/* Гамбургер: прихований на десктопі */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 1px solid rgba(247, 249, 245, 0.25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex: none;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобільне меню: окремий блок ПОЗА хедером, керується через style.display */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 990;
  background: var(--ink);
  border-top: 1px solid rgba(147, 207, 192, 0.15);
  padding: 18px 22px 26px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-menu li + li { border-top: 1px solid rgba(147, 207, 192, 0.10); }
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  color: var(--paper);
  font-weight: 500;
  font-size: 1.02rem;
}
.mobile-menu a:hover { color: var(--dawn); }
.mobile-search {
  display: flex;
  gap: 8px;
  background: rgba(247, 249, 245, 0.08);
  border: 1px solid rgba(247, 249, 245, 0.18);
  border-radius: 12px;
  padding: 5px 5px 5px 14px;
}
.mobile-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.mobile-search input:focus { outline: none; }
.mobile-search button {
  border: 0;
  background: var(--dawn);
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   5. Темні hero-секції та хвиля-розділювач
   ========================================================================== */
.dark { background: var(--ink); color: rgba(247, 249, 245, 0.88); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.dark a { color: var(--aqua); }
.dark a:hover { color: var(--dawn); }

.hero-home {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 90px 0 130px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 34, 32, 0.92) 18%, rgba(10, 34, 32, 0.55) 60%, rgba(16, 54, 47, 0.35));
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dawn);
  margin-bottom: 18px;
}
.hero-home h1 { max-width: 15ch; color: var(--paper); }
.hero-home h1 em { font-style: normal; color: var(--dawn); }
.hero-lead { max-width: 46ch; font-size: 1.08rem; color: rgba(247, 249, 245, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.ripple {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.ripple svg { width: 100%; height: 64px; display: block; }

/* Мarquee-стрічка видів риб */
.marquee {
  background: var(--deep);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(147, 207, 192, 0.14);
  border-bottom: 1px solid rgba(147, 207, 192, 0.14);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--aqua);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 44px;
}
.marquee-item::after { content: "〰"; color: var(--dawn); font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   6. Секції та картки
   ========================================================================== */
.section { padding: 74px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.section-head .all-link {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--dawn);
  padding-bottom: 2px;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-media { position: relative; min-height: 360px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 a { color: var(--paper); }
.featured-body h2 a:hover { color: var(--dawn); }
.featured-body p { color: rgba(247, 249, 245, 0.78); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.dark .post-meta, .featured-body .post-meta { color: var(--aqua); }
.post-meta .cat-link {
  background: rgba(242, 163, 60, 0.16);
  color: var(--dawn-deep);
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 500;
}
.dark .post-meta .cat-link, .featured-body .post-meta .cat-link { color: var(--dawn); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--dawn-deep); }
.card-excerpt { font-size: 0.93rem; color: var(--muted); margin: 0; }
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
}

/* Статистика */
.stats { background: var(--mist); border-radius: var(--radius-lg); padding: 46px 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--deep);
}
.stat-num sup { color: var(--dawn-deep); font-size: 0.55em; }
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* CTA */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 66px 52px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(10, 34, 32, 0.93) 30%, rgba(16, 54, 47, 0.62));
}
.cta h2 { color: var(--paper); max-width: 20ch; }
.cta p { color: rgba(247, 249, 245, 0.8); max-width: 52ch; }

/* ==========================================================================
   7. Сторінки архівів: блог, категорія, пошук
   ========================================================================== */
.hero-page {
  position: relative;
  padding: 76px 0 108px;
  background: radial-gradient(1100px 480px at 82% -10%, rgba(44, 91, 80, 0.55), transparent 62%), var(--ink);
}
.hero-page h1 { color: var(--paper); margin-bottom: 10px; }
.hero-page .hero-sub { color: rgba(247, 249, 245, 0.72); max-width: 56ch; }
.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 26px;
  background: rgba(247, 249, 245, 0.08);
  border: 1px solid rgba(247, 249, 245, 0.22);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  transition: border-color var(--tr);
}
.hero-search:focus-within { border-color: var(--dawn); }
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
}
.hero-search input::placeholder { color: rgba(247, 249, 245, 0.5); }
.hero-search input:focus { outline: none; }
.hero-search button {
  border: 0;
  background: var(--dawn);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--tr);
}
.hero-search button:hover { background: var(--dawn-deep); color: #fff; }

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.first-big { grid-column: 1 / -1; }
.first-big .post-card { flex-direction: row; min-height: 300px; }
.first-big .card-media { flex: 1.2; aspect-ratio: auto; }
.first-big .card-body { flex: 1; justify-content: center; padding: 34px 36px; }
.first-big .card-body h3 { font-size: 1.45rem; }

.pagination { display: flex; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.pagination .page-numbers.current { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.pagination .page-numbers:hover { border-color: var(--moss); color: var(--moss); }

/* ==========================================================================
   8. Сайдбар
   ========================================================================== */
.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  margin-bottom: 26px;
}
.widget-title {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dawn);
  display: inline-block;
}
.popular-item { display: flex; gap: 14px; align-items: center; }
.popular-item + .popular-item { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.popular-thumb { width: 68px; height: 56px; flex: none; border-radius: 9px; overflow: hidden; }
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; line-height: 1.35; margin: 0 0 4px; }
.popular-item h4 a { color: var(--ink); }
.popular-item h4 a:hover { color: var(--dawn-deep); }
.popular-item time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { margin-top: 4px; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  transition: background var(--tr), color var(--tr);
}
.cat-list a:hover { background: var(--mist); color: var(--deep); }
.cat-list .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--mist);
  color: var(--moss);
  border-radius: 999px;
  padding: 2px 9px;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all var(--tr);
}
.tag-cloud a:hover { border-color: var(--dawn); color: var(--dawn-deep); background: rgba(242, 163, 60, 0.08); }

/* ==========================================================================
   9. Сторінка статті
   ========================================================================== */
.hero-single {
  background: radial-gradient(900px 420px at 12% 0%, rgba(44, 91, 80, 0.5), transparent 60%), var(--ink);
  padding: 70px 0 92px;
}
.hero-single .post-meta { color: var(--aqua); margin-bottom: 18px; }
.hero-single h1 { color: var(--paper); max-width: 24ch; }
.single-byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.single-byline .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--dawn); }
.single-byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { color: var(--paper); font-weight: 600; font-size: 0.95rem; }
.byline-info { font-family: var(--font-mono); font-size: 0.74rem; color: rgba(247, 249, 245, 0.6); }

.entry-content { font-size: 1.04rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h3 { margin-top: 1.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 22px 28px;
  border-left: 4px solid var(--dawn);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--deep);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content a { border-bottom: 1px solid rgba(44, 91, 80, 0.35); }

.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 32px;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; }
.toc ol li + li { margin-top: 8px; }
.toc ol a { display: flex; gap: 12px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--dawn-deep);
  font-size: 0.8rem;
}
.toc ol a:hover { color: var(--dawn-deep); }
.toc .toc-sub { padding-left: 34px; }
.toc .toc-sub a::before { content: "—"; }

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.share-label { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-right: 6px; }
.share-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--tr);
}
.share-row a:hover { border-color: var(--deep); background: var(--deep); color: var(--paper); }

.author-box {
  display: flex;
  gap: 22px;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 36px;
}
.author-box .avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box h4 { margin-bottom: 6px; }
.author-box p { margin: 0; font-size: 0.93rem; color: var(--muted); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.post-nav a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fff;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.post-nav a:hover { border-color: var(--moss); box-shadow: var(--shadow-sm); }
.post-nav .nav-dir { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dawn-deep); }
.post-nav .nav-title { display: block; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.35; font-size: 0.95rem; }
.post-nav .nav-next { text-align: right; }

.related { margin-top: 64px; }

/* ==========================================================================
   10. Сторінка «Про нас»
   ========================================================================== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.about-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 34, 32, 0.08);
  pointer-events: none;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--tr), box-shadow var(--tr);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.value-icon svg { width: 24px; height: 24px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.team-role { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dawn-deep); }

.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--moss) 0 8px, transparent 8px 15px);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #fff 0 34%, var(--dawn) 36% 100%);
  box-shadow: 0 0 0 3px rgba(242, 163, 60, 0.3);
}
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--deep); font-size: 1.05rem; }
.tl-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   11. Футер
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(247, 249, 245, 0.7); margin-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 64px 0 44px;
}
.site-footer h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: rgba(247, 249, 245, 0.7); font-size: 0.93rem; }
.site-footer a:hover { color: var(--dawn); }
.footer-bottom {
  border-top: 1px solid rgba(147, 207, 192, 0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* ==========================================================================
   12. Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   13. Адаптив (кожен брейкпоінт — один блок)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
  .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search input { width: 110px; }
}

@media (max-width: 900px) {
  .desk-nav { display: none; }
  .header-search { display: none; }
  .burger { display: flex; }
  .header-inner { justify-content: space-between; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 260px; }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .first-big .post-card { flex-direction: column; }
  .first-big .card-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .team-grid, .values-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .featured-body { padding: 30px 26px; }
  .cta { padding: 46px 28px; }
  .stats { padding: 34px 26px; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-home { min-height: 480px; padding: 70px 0 110px; }
}

/* ==========================================================================
   14. Дрібниці WordPress
   ========================================================================== */
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.sticky, .bypostauthor { display: revert; }
