/*
Theme Name: Whelper
Theme URI: https://whelper.me
Author: Whelper Team
Description: AI-інструменти українською — огляди, туторіали, порівняння
Version: 1.0
Tags: blog, ukrainian, ai, technology
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f4f8;
  color: #333;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer { margin-top: auto; }

/* ─── Header ─── */
.site-header {
  background: #1a2332;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  width: 100%;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo span { color: #3b9eff; }
nav { display: flex; gap: 2px; }
nav a {
  color: #b0bec5;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
nav a:hover,
nav a.current-menu-item,
nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ─── Hero ─── */
.hero {
  background: #1a2332;
  padding: 56px 20px 52px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3b9eff;
  background: rgba(59,158,255,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b9eff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.hero-cta:hover { background: #2980d9; }

/* ─── Page wrap ─── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ─── Section header ─── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e9ef;
}
.section-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: -0.01em;
}
.see-all {
  font-size: 0.8rem;
  color: #3498db;
  text-decoration: none;
}
.see-all:hover { text-decoration: underline; }

/* ─── Article card ─── */
.article-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e9ef;
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: #ccd5dd;
}
.card-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-thumb-emoji { font-size: 3rem; opacity: .9; }
.card-thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(59,158,255,0.9);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
}
.card-body { padding: 18px 20px; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 0.85rem;
  color: #5d6d7e;
  line-height: 1.6;
  margin-bottom: 14px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #95a5a6;
}
.card-meta-dot { opacity: .4; }

/* ─── Posts grid (для архіву статей) ─── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ─── Categories ─── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.cat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e5e9ef;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, border-color .2s;
}
.cat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: #ccd5dd;
}
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 5px;
}
.cat-card p {
  font-size: 0.8rem;
  color: #7f8c8d;
  line-height: 1.55;
  margin-bottom: 12px;
}
.cat-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.cat-count.has-articles { background: #e8f4fd; color: #2980b9; }
.cat-count.empty { background: #f4f4f4; color: #aaa; }

/* ─── Section spacing ─── */
.section { margin-bottom: 48px; }

/* ─── Empty state ─── */
.empty-state {
  background: #fff;
  border: 1px dashed #d5dde5;
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  color: #95a5a6;
  font-size: 0.85rem;
  line-height: 1.6;
}
.empty-state strong { display: block; color: #7f8c8d; font-size: 0.9rem; margin-bottom: 4px; }

/* ─── Single post ─── (стилі перенесені в .single-page-wrap нижче) */

/* ─── Page content (про сайт, privacy) ─── */
.page-content-wrap {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e9ef;
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
}
.page-content-wrap h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.page-content-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2332;
  margin: 28px 0 10px;
}
.page-content-wrap p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 14px;
}
.page-content-wrap ul {
  margin: 0 0 14px 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 0.8rem;
  color: #95a5a6;
  margin-bottom: 20px;
}
.breadcrumb a { color: #3498db; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ─── Category filter bar ─── */
.cat-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-filter a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e9ef;
  color: #5d6d7e;
  transition: all .2s;
}
.cat-filter a:hover,
.cat-filter a.active {
  background: #1a2332;
  color: #fff;
  border-color: #1a2332;
}

/* ─── Single post ─── */
.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
}
.breadcrumb-wrap .breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: #7f8c8d;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  border: none;
}
.breadcrumb-wrap .breadcrumb a { color: #3498db; text-decoration: none; }
.breadcrumb-wrap .breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-wrap .breadcrumb span { opacity: .5; }

.single-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  width: 100%;
}
.single-page-wrap > * { min-width: 0; }

.content {
  background: #fff;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef2f7;
  flex-wrap: wrap;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #1a78c2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 600; color: #2c3e50; }
.article-date { font-size: 0.8rem; color: #7f8c8d; margin-top: 2px; }
.meta-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.meta-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f4fd;
  color: #2980b9;
  font-weight: 500;
}

.content h1 {
  font-size: 1.9rem;
  color: #1a2332;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.post-content h2 {
  font-size: 1.3rem;
  color: #2980b9;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8f4fd;
  font-weight: 700;
}
.post-content h3 { font-size: 1.05rem; color: #2c3e50; margin: 16px 0 8px; font-weight: 700; }
.post-content p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.75; color: #444; }
.post-content ul, .post-content ol { margin: 10px 0 14px 22px; }
.post-content li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7; color: #444; }
.post-content strong { color: #1a2332; }
.post-content a { color: #3498db; }
.post-content a:hover { text-decoration: underline; }

.post-content .highlight-box {
  background: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.post-content .highlight-box > strong:first-child {
  display: block; margin-bottom: 8px;
  color: #1a78c2; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: .04em;
}

.post-content .table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid #e0e8f0;
  -webkit-overflow-scrolling: touch;
}
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 540px; }
.post-content th {
  background: #2980b9; color: #fff;
  padding: 10px 12px; text-align: left;
  font-weight: 600; white-space: nowrap;
}
.post-content td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.post-content tr:last-child td { border-bottom: none; }
.post-content tr:nth-child(even) td { background: #f8fbff; }

.post-content .faq-list { margin: 16px 0; }
.post-content .faq-item {
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.post-content .faq-question {
  width: 100%; text-align: left;
  padding: 14px 18px;
  background: #f8fbff; border: none;
  cursor: pointer; font-size: 0.95rem;
  font-weight: 600; color: #2c3e50;
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  transition: background .2s;
}
.post-content .faq-question:hover { background: #e8f4fd; }
.post-content .faq-question .arrow { font-size: 0.8rem; transition: transform .25s; flex-shrink: 0; }
.post-content .faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  padding: 0 18px; font-size: 0.9rem;
  color: #444; line-height: 1.65;
}
.post-content .faq-item.open .faq-answer { max-height: 300px; padding: 14px 18px; }
.post-content .faq-item.open .arrow { transform: rotate(180deg); }

/* ─── Sidebar ─── */
.sidebar {
  display: flex; flex-direction: column;
  gap: 20px; position: sticky;
  top: 68px; min-width: 0;
}
.sidebar-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e9ef;
  padding: 20px;
}
.sidebar-card h3 {
  font-size: 0.88rem; font-weight: 700;
  color: #1a2332; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  text-transform: uppercase; letter-spacing: .04em;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc-list li a {
  font-size: 0.82rem; color: #5d6d7e;
  text-decoration: none; display: block;
  padding: 4px 8px; border-radius: 5px;
  transition: all .15s; line-height: 1.4;
}
.toc-list li a:hover { background: #e8f4fd; color: #2980b9; }
.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.related-list li a {
  font-size: 0.83rem; color: #3498db;
  text-decoration: none; line-height: 1.4;
  display: block;
}
.related-list li a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .single-page-wrap { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; padding: 20px 16px; }
  .content { padding: 28px 24px; }
  .content h1 { font-size: 1.65rem; }
}
@media (max-width: 860px) {
  .single-page-wrap { grid-template-columns: 1fr; padding: 16px 12px; }
  .sidebar { order: -1; position: static; }
  .content { padding: 24px 20px; }
  .content h1 { font-size: 1.45rem; }
}
@media (max-width: 600px) {
  .single-page-wrap { padding: 12px 10px; gap: 14px; }
  .content { padding: 18px 14px; border-radius: 8px; }
  .content h1 { font-size: 1.25rem; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .meta-tags { margin-left: 0; }
}

/* ─── Articles page ─── */
.filters-bar {
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
}
.filters-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  overflow-x: auto;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid #e5e9ef;
  background: transparent;
  color: #5d6d7e;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.filter-btn:hover { border-color: #3b9eff; color: #3b9eff; }
.filter-btn.active { background: #3b9eff; border-color: #3b9eff; color: #fff; }
.filter-count { font-size: 0.7rem; opacity: .75; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.article-card {
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-2px); }
.section-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8f4fd;
  color: #2980b9;
  padding: 2px 8px;
  border-radius: 12px;
}
.empty-cat {
  background: #fff;
  border: 1px dashed #d5dde5;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  color: #95a5a6;
  font-size: 0.83rem;
  line-height: 1.6;
}
.empty-cat strong { display: block; color: #7f8c8d; font-size: 0.88rem; margin-bottom: 4px; }

@media (max-width: 860px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* ─── About page ─── */
.about-page-wrap { max-width: 720px; }

.page-hero {
  background: #1a2332;
  padding: 44px 20px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #5d7a99;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}
.page-hero .breadcrumb a { color: #5d7a99; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #3b9eff; }
.breadcrumb-sep { opacity: .5; }
.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 0.95rem;
  color: #7f8c8d;
  max-width: 480px;
  line-height: 1.65;
}

.about-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e9ef;
  overflow: hidden;
  margin-bottom: 24px;
}
.about-card-header {
  background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
  padding: 32px 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59,158,255,0.2);
  border: 2px solid rgba(59,158,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.author-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.author-info p { font-size: 0.82rem; color: #7f8c8d; }
.about-card-body { padding: 28px 32px; }
.about-card-body p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-card-body p:last-child { margin-bottom: 0; }

.coming-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e9ef;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.coming-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.coming-list { display: flex; flex-direction: column; gap: 14px; }
.coming-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}
.coming-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.coming-item-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 3px;
}
.coming-item-text p { font-size: 0.8rem; color: #7f8c8d; line-height: 1.5; }
.soon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff8e1;
  color: #f39c12;
  border: 1px solid #fdeaa7;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.cta-card {
  background: #1a2332;
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}
.cta-card p {
  font-size: 0.92rem;
  color: #7f8c8d;
  margin-bottom: 16px;
  line-height: 1.6;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b9eff;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.cta-btn:hover { background: #2980d9; }

@media (max-width: 600px) {
  .page-hero h1 { font-size: 1.35rem; }
  .page-hero { padding: 32px 16px 28px; }
  .about-card-header { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-card-body { padding: 20px; }
  .coming-card { padding: 20px; }
  .cta-card { padding: 22px 20px; }
}

/* ─── Privacy page ─── */
.privacy-page-wrap { max-width: 720px; }

.content-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e9ef;
  padding: 36px 40px;
}
.content-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 10px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { margin: 8px 0 10px 20px; }
.content-card ul li {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 4px;
}
.content-card a { color: #3498db; }
.content-card a:hover { text-decoration: underline; }
.divider { border: none; border-top: 1px solid #e5e9ef; margin: 24px 0; }
.highlight-box {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
}
.highlight-box p { font-size: 0.85rem; color: #2c5282; margin: 0; }
.updated-note {
  font-size: 0.78rem;
  color: #95a5a6;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e9ef;
}

@media (max-width: 600px) { .content-card { padding: 24px 20px; } }

/* ─── Footer ─── */
footer {
  background: #1a2332;
  color: #7f8c8d;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.82rem;
}
footer a { color: #3b9eff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .cats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 40px 16px 36px; }
  .page-wrap { padding: 28px 14px 48px; }
  nav a { padding: 6px 8px; font-size: 0.78rem; }
  .cats-grid { grid-template-columns: 1fr; }
  .page-content-wrap { padding: 24px 18px; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  nav a:last-child { display: none; }
}
