@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

:root {
  --brand-blue:   #52A9FF;
  --brand-dark:   #0d1535;
  --brand-orange: #E29939;

  --accent:    #52A9FF;
  --accent2:   #79BFFF;
  --highlight: #E29939;

  --text:    #1a1a1a;
  --text2:   #5a6472;
  --text3:   #9ca3af;
  --bg:      #f2f4f6;
  --bg-blue: #f0f6ff;
  --surface: #ffffff;
  --border:  #e2e6ea;
  --topbar:  #1C2328;
  --topbar-dark: #07102a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ── News ticker ── */
.news-ticker { background: var(--brand-dark); color: rgba(255,255,255,.85); height: 28px; display: flex; align-items: center; overflow: hidden; font-size: 12px; font-weight: 500; }
.ticker-label { background: #c0392b; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 0 12px; height: 100%; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; gap: 5px; text-transform: uppercase; }
.ticker-track-wrap { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; gap: 0; white-space: nowrap; animation: ticker-scroll 120s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 32px 0 0; color: rgba(255,255,255,.8); text-decoration: none; transition: color .15s; }
.ticker-item:hover { color: var(--brand-orange); }
.ticker-sep { color: var(--brand-orange); margin-right: 32px; font-size: 14px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 599px) { .ticker-label { display: none; } .news-ticker { font-size: 11px; } }
@media (max-width: 767px) { .top-bar { display: none; } }

/* ── Top utility bar ── */
.top-bar { background: var(--topbar-dark); color: rgba(255,255,255,.5); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 32px; gap: 8px; }
.top-bar a { color: rgba(255,255,255,.5); transition: color .15s; text-transform: uppercase; }
.top-bar a:hover { color: #fff; }
.top-bar-left { display: flex; align-items: center; gap: 0; min-width: 0; flex: 1; overflow: hidden; }
.top-bar-left a { padding: 0 10px; border-right: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.top-bar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* ── Resources dropdown ── */
.resources-menu { position: relative; border-left: 1px solid rgba(255,255,255,.12); padding-left: 14px; }
.resources-btn { background: none; border: none; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 3px; letter-spacing: .04em; transition: all .15s; font-family: inherit; white-space: nowrap; }
.resources-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.resources-drop { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); min-width: 220px; z-index: 500; overflow: hidden; }
.resources-drop.open { display: block; }
.resources-drop a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); transition: background .12s; text-decoration: none; }
.resources-drop a:last-child { border-bottom: none; }
.resources-drop a:hover { background: var(--bg); color: var(--brand-blue); }
.res-icon { font-size: 16px; flex-shrink: 0; }

.lang-switcher { display: flex; align-items: center; gap: 2px; border-left: 1px solid rgba(255,255,255,.12); padding-left: 14px; }
.lang-btn { background: none; border: none; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; cursor: pointer; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; transition: all .15s; font-family: inherit; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-btn.active { color: #fff; background: var(--brand-blue); }

/* ── Main header ── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.12); border-bottom: 3px solid var(--brand-blue); }
.header-main { display: flex; align-items: center; gap: 0; padding: 0; min-height: 64px; }

/* Logo */
.logo-link { flex-shrink: 0; padding: 4px 16px 4px 0; display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; max-width: 200px; object-fit: contain; }

/* Tagline — між лого і навом, тільки на широких */
.logo-tagline {
  flex-shrink: 0;
  display: none;
  font-size: 11px; font-weight: 600;
  color: var(--text2, #888);
  line-height: 1.4;
  max-width: 148px;
  border-left: 2px solid var(--brand-blue);
  padding-left: 12px;
  margin-right: 8px;
}

/* Nav у хедері — тільки на широких екранах */
.header-nav { display: none; align-items: stretch; flex: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a { font-size: 11px; font-weight: 700; padding: 0 7px; color: var(--text); white-space: nowrap; display: flex; align-items: center; height: 64px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; text-transform: uppercase; letter-spacing: .02em; }
.header-nav a:hover { color: var(--brand-blue); border-bottom-color: var(--brand-orange); }
.header-nav a.active { color: var(--brand-blue); border-bottom-color: var(--brand-orange); }

/* Right side buttons group */
.header-right { display: flex; align-items: center; margin-left: auto; }
.search-btn { background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; padding: 0 12px; height: 64px; display: flex; align-items: center; transition: color .15s; }
.search-btn:hover { color: var(--brand-blue); }

/* Hamburger */
.burger-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0 14px; height: 64px; }
.burger-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text); padding: 14px 20px; border-bottom: 1px solid var(--border); display: block; transition: color .15s, background .15s; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--brand-blue); background: #f0f6ff; }

/* ── Breakpoints ── */

/* Планшет: 768–1199px — nav тільки в trending bar */
@media (min-width: 768px) {
  .burger-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* Широкий: ≥1200px — показуємо header-nav і tagline */
@media (min-width: 1200px) {
  .logo-tagline { display: block; }
  .header-nav { display: flex; }
  .header-main { min-height: 68px; }
  .header-nav a { height: 68px; }
  .search-btn { height: 68px; }
  .burger-btn { display: none; }
}

/* Search panel (dropdown) */
.search-panel { display: none; background: var(--bg); border-top: 1px solid var(--border); padding: 12px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; align-items: center; background: #fff; border: 2px solid var(--brand-blue); border-radius: 6px; overflow: hidden; max-width: 500px; margin: 0 auto; }
.search-form input { background: none; border: none; padding: 10px 16px; font-size: 15px; outline: none; flex: 1; font-family: inherit; color: var(--text); }
.search-form input::placeholder { color: var(--text3); }
.search-form button { background: var(--brand-blue); border: none; color: #fff; padding: 0 18px; height: 42px; cursor: pointer; font-size: 16px; font-weight: 700; transition: background .15s; }
.search-form button:hover { background: var(--accent2); }

/* ── Trending bar ── */
.trending-bar { background: var(--surface); border-bottom: 3px solid var(--brand-blue); }
.trending-inner { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; height: 38px; }
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-blue); padding: 0 16px 0 0; white-space: nowrap; border-right: 1px solid var(--border); margin-right: 12px; height: 100%; display: flex; align-items: center; }
.main-nav { display: contents; }
.main-nav a { font-size: 12px; font-weight: 600; padding: 0 14px; color: var(--text2); white-space: nowrap; height: 38px; display: flex; align-items: center; border-right: 1px solid var(--border); transition: color .15s; text-transform: uppercase; letter-spacing: .03em; }
.main-nav a:hover { color: var(--brand-blue); }
.main-nav a.active { color: var(--brand-blue); font-weight: 800; }

/* ── Layout ── */
.home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin: 28px 0; }
.articles-main { min-width: 0; }

/* ── Hero (Fox News split style) ── */
.hero-wrap { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; border-bottom: 2px solid var(--border); padding-bottom: 24px; gap: 0; }
.hero-img-col { position: relative; overflow: hidden; }
.hero-img-col img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.hero-label { position: absolute; bottom: 0; left: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; }
.hero-text-col { display: flex; flex-direction: column; justify-content: center; padding: 28px 32px; background: var(--surface); border-left: none; }
.hero-text-col .breaking-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-orange); margin-bottom: 14px; }
.hero-text-col .breaking-tag::before { content: '●'; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-text-col h2 { font-family: 'Merriweather', Georgia, serif; font-size: 30px; line-height: 1.25; color: var(--text); margin-bottom: 16px; }
.hero-text-col h2 a:hover { color: var(--accent); }
.hero-text-col .hero-sub { font-size: 14px; color: var(--text2); margin-bottom: 18px; line-height: 1.6; border-top: 1px solid var(--border); padding-top: 14px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text3); }

/* Legacy compat */
.hero-card { display: none; }

/* ── Cards grid ── */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }

.art-card { background: var(--surface); overflow: hidden; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .15s; }
.art-card:hover { background: #fafafa; }
.art-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.art-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.art-card:hover .art-card-img-wrap img { transform: scale(1.03); }
.art-card-img-label { position: absolute; bottom: 0; left: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; }
.art-card-body { padding: 12px 14px 16px; }
.cat-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; margin-bottom: 7px; }
.art-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: var(--text); }
.art-card-body h3 a:hover { color: var(--accent); }
.art-card-body .card-meta { font-size: 11px; color: var(--text3); }
.art-card-body p { display: none; }

/* ── Load more ── */
.load-more { text-align: center; margin: 28px 0 4px; }
.load-more button { background: var(--surface); border: 1.5px solid var(--border); color: var(--text2); padding: 11px 32px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.load-more button:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--surface); border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.widget-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ''; width: 3px; height: 14px; background: var(--brand-blue); border-radius: 2px; }

.cat-list { list-style: none; padding: 8px 0; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text2); transition: all .15s; }
.cat-list li a:hover { background: var(--bg); color: var(--text); }
.cat-list li a .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-list li a .cnt { font-size: 12px; color: var(--text3); background: var(--bg); padding: 1px 7px; border-radius: 10px; }
.cat-list-left { display: flex; align-items: center; gap: 10px; }

.latest-list { display: flex; flex-direction: column; }
.latest-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--bg); }
.latest-item img { width: 64px; height: 50px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.latest-item-body { min-width: 0; }
.latest-item-body h4 { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-item-body h4 a:hover { color: var(--accent); }
.latest-item-body span { font-size: 11px; color: var(--text3); }

/* ── Article page layout ── */
.article-page { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1200px; margin: 36px auto; }
.article-main { min-width: 0; }
.article-aside { display: flex; flex-direction: column; gap: 24px; }

/* Header */
.article-cat-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-blue); border-bottom: 2px solid var(--brand-blue); padding-bottom: 2px; margin-bottom: 14px; }
.article-header h1 { font-family: 'Merriweather', Georgia, serif; font-size: 30px; line-height: 1.3; margin-bottom: 14px; }
.article-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.article-byline-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; flex-shrink: 0; }
.article-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline-info { flex: 1; }
.article-byline-info .by { font-size: 13px; font-weight: 700; color: var(--text); }
.article-byline-info .pub { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* Share bar */
.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; color: #fff; text-decoration: none; transition: opacity .15s; }
.share-btn:hover { opacity: .85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #000; }
.share-btn.tg { background: #229ED9; }
.share-btn.copy { background: var(--bg); color: var(--text2); border: 1px solid var(--border); }

/* Cover */
.article-cover-wrap { margin-bottom: 24px; }
.article-cover-wrap img { width: 100%; border-radius: 4px; max-height: 500px; object-fit: cover; }
.article-cover-caption { font-size: 12px; color: var(--text3); margin-top: 6px; }

/* Body */
.article-body { font-size: 17px; line-height: 1.85; color: #1a1a1a; }
.article-body h2 { font-family: 'Merriweather', serif; font-size: 22px; margin: 32px 0 14px; }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body img { border-radius: 6px; margin: 20px 0; max-width: 100%; height: auto !important; }
.article-body blockquote { border-left: 4px solid var(--brand-blue); padding: 14px 22px; background: var(--bg-blue); margin: 24px 0; color: var(--text2); font-style: italic; border-radius: 0 8px 8px 0; }
.article-body a { color: var(--brand-blue); text-decoration: underline; }
.yt-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; margin: 20px 0; background: #000; }
.yt-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Author box at bottom */
.author-box { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 8px; padding: 18px; margin-top: 36px; border: 1px solid var(--border); }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.author-box-info p { font-size: 13px; color: var(--text2); }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--text2); transition: color .15s; }
.back-link:hover { color: var(--brand-blue); }

/* Article aside */
.aside-widget { background: var(--surface); border: 1px solid var(--border); }
.aside-widget-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 10px 14px; border-bottom: 2px solid var(--brand-blue); color: var(--brand-dark); }
.aside-article-list { display: flex; flex-direction: column; }
.aside-article-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); transition: background .15s; }
.aside-article-item:last-child { border-bottom: none; }
.aside-article-item:hover { background: var(--bg); }
.aside-article-item img { width: 72px; height: 54px; object-fit: cover; flex-shrink: 0; }
.aside-article-item h4 { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.aside-article-item h4 a:hover { color: var(--brand-blue); }
.aside-article-item span { font-size: 11px; color: var(--text3); margin-top: 4px; display: block; }

/* ── Comments ── */
.comments-section { margin-top: 40px; border-top: 2px solid var(--brand-blue); padding-top: 24px; }
.comments-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.comments-title span { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: none; letter-spacing: 0; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.comment-author { font-size: 13px; font-weight: 700; color: var(--text); }
.comment-date { font-size: 11px; color: var(--text3); }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-form { background: var(--bg); border-radius: 8px; padding: 20px; margin-top: 24px; border: 1px solid var(--border); }
.comment-form h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.comment-form input,
.comment-form textarea { width: 100%; background: var(--surface); border: 1.5px solid var(--border); border-radius: 6px; padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; margin-bottom: 10px; display: block; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--brand-blue); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-submit { background: var(--brand-blue); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.comment-submit:hover { background: var(--brand-dark); }
.comment-msg { font-size: 13px; margin-top: 10px; font-weight: 600; }
.comment-msg.ok { color: #16a34a; }
.comment-msg.err { color: var(--accent); }

/* Responsive article */
@media (max-width: 900px) {
  .article-page { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { display: none; }
}
@media (max-width: 599px) {
  .article-header h1 { font-size: 22px; }
  .article-body { font-size: 15px; }
  .article-cover-wrap img { border-radius: 0; margin: 0 -12px; width: calc(100% + 24px); max-width: none; }
}

/* ── Blog page ── */
.blog-page { margin: 28px 0; }
.blog-page-header { text-align: center; padding: 32px 0 28px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.blog-page-header h1 { font-family: 'Merriweather', serif; font-size: 28px; margin-bottom: 8px; }
.blog-page-header p { color: var(--text2); font-size: 15px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 18px; }

.blog-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-author-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; overflow: hidden; flex-shrink: 0; }
.blog-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blog-author-name { font-size: 13px; font-weight: 700; color: var(--text); }
.blog-author-date { font-size: 11px; color: var(--text3); margin-top: 1px; }

.blog-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.blog-card-body h3 a:hover { color: var(--brand-blue); }
.blog-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1023px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ── Empty / error ── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text2); }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; color: var(--text); }

/* ── Donors bar ── */
.donors-bar { background: #fff; border-top: 3px solid #e8edf2; padding: 32px 0; }
.donors-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.donors-strip { width: 100%; max-width: 1100px; height: auto; display: block; }
.donors-text { font-size: 12px; color: #5a6472; line-height: 1.7; max-width: 780px; font-style: italic; }
@media (max-width: 767px) {
  .donors-text { font-size: 11px; }
}

/* ── Feedback FAB ── */
.feedback-fab { position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-blue); color: #fff; border: none; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(82,169,255,.45); transition: transform .2s, box-shadow .2s; display: flex; align-items: center; justify-content: center; }
.feedback-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(82,169,255,.6); }

/* ── Feedback modal ── */
.feedback-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.feedback-overlay.open { opacity: 1; pointer-events: all; }
.feedback-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; transform: translateY(16px); transition: transform .2s; }
.feedback-overlay.open .feedback-modal { transform: translateY(0); }
.feedback-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid #eee; }
.feedback-header h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; }
.feedback-close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; line-height: 1; padding: 0; transition: color .15s; }
.feedback-close:hover { color: #333; }
.feedback-form { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.feedback-field { display: flex; flex-direction: column; gap: 5px; }
.feedback-field label { font-size: 13px; font-weight: 600; color: #374151; }
.feedback-field input, .feedback-field textarea { border: 1.5px solid #e2e6ea; border-radius: 8px; padding: 9px 13px; font-size: 14px; font-family: inherit; color: #1a1a1a; transition: border-color .15s; resize: vertical; }
.feedback-field input:focus, .feedback-field textarea:focus { outline: none; border-color: var(--brand-blue); }
.feedback-footer { display: flex; align-items: center; gap: 14px; }
.feedback-submit { background: var(--brand-blue); color: #fff; border: none; border-radius: 8px; padding: 10px 28px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.feedback-submit:hover { background: #3a96f0; }
.feedback-submit:disabled { opacity: .6; cursor: default; }
.feedback-note { font-size: 12px; color: #9ca3af; }
.fb-success { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.fb-error { background: #fef2f2; color: #991b1b; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* ── Footer ── */
.site-footer { background: #0d1535; color: rgba(255,255,255,.85); padding: 28px 0 0; margin-top: 44px; font-size: 13px; }

/* Головна сітка футера: 2 колонки */
.footer-main-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start; }

/* Контакти */
.footer-contacts-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); margin-bottom: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-contact-row { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 500; margin-bottom: 8px; text-decoration: none; transition: color .15s; }
.footer-contact-row:hover { color: #fff; }
.footer-contact-row svg { flex-shrink: 0; opacity: .7; width: 14px; height: 14px; }
.footer-socials { display: flex; gap: 10px; margin: 14px 0 10px; }
.footer-socials a { color: rgba(255,255,255,.7); transition: color .15s, transform .15s; display: flex; }
.footer-socials a:hover { color: #fff; transform: scale(1.15); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-cta { font-size: 11.5px; color: rgba(255,255,255,.55); line-height: 1.55; max-width: 280px; }

/* Правова колонка */
.footer-legal-col { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,.55); line-height: 1.65; }
.footer-btns-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-photo-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(82,169,255,.12); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid rgba(82,169,255,.35); border-radius: 4px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; letter-spacing: .02em; }
.footer-photo-btn:hover { background: rgba(82,169,255,.22); border-color: rgba(82,169,255,.6); color: #fff; }
.footer-privacy-btn { display: inline-block; background: transparent; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; letter-spacing: .02em; }
.footer-privacy-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

/* Інформер */
.footer-informer { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 10.5px; color: rgba(255,255,255,.5); line-height: 1.55; }
.fi-col strong { display: block; color: rgba(255,255,255,.8); font-size: 10.5px; margin-bottom: 3px; }
.fi-col a { color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 2px; }
.fi-col a:hover { color: #fff; }

/* Нижній рядок */
.footer-bottom { background: #0d1535; padding: 10px 0; display: flex; align-items: center; justify-content: center; }
.footer-bottom span { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; letter-spacing: .02em; }


/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

/* Планшет широкий: 1024–1200px */
@media (max-width: 1200px) {
  .home-grid { grid-template-columns: 1fr 300px; gap: 24px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}

/* Планшет: 768–1023px */
@media (max-width: 1023px) {
  .home-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .hero-wrap { grid-template-columns: 1fr 1fr; }
  .hero-text-col h2 { font-size: 22px; }
  .top-bar { display: none; }
}

/* Малий планшет: 600–767px */
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .hero-card { margin-left: -16px; margin-right: -16px; }
  .hero-card-body { padding: 16px; }
  .hero-card-body h2 { font-size: 22px; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .art-card-body h3 { font-size: 14px; }
  .search-form input { width: 140px; }
  .article-header h1 { font-size: 26px; }
  .article-body { font-size: 16px; }
  .footer-main-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Мобільний: до 599px */
@media (max-width: 599px) {
  .container { padding: 0 12px; }
  .logo-img { height: 46px; }
  .search-form { max-width: 100%; }
  .search-form input { font-size: 16px; } /* запобігає zoom на iOS */
  .main-nav a { font-size: 12px; padding: 9px 10px; }
  .sidebar { grid-template-columns: 1fr; }
  /* Hero — стає вертикальним */
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-img-col img { max-height: 220px; }
  .hero-text-col { padding: 16px; }
  .hero-text-col h2 { font-size: 20px; }
  .hero-text-col .hero-sub { display: none; }
  /* Картки горизонтальні */
  .cards-grid { grid-template-columns: 1fr; }
  .art-card { display: flex; flex-direction: row; }
  .art-card-img-wrap { width: 120px; min-width: 120px; aspect-ratio: auto; height: 88px; }
  .art-card-body { padding: 10px 12px; }
  .art-card-body h3 { font-size: 13px; line-height: 1.4; }
  /* Article */
  .article-header h1 { font-size: 22px; }
  .article-body { font-size: 15px; }
  .article-cover-wrap { border-radius: 0; margin: 0 -12px 20px; }
  .home-grid { margin: 12px 0; }
  .load-more button { width: 100%; }
  .footer-informer { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-cta { max-width: 100%; }
}
@media (max-width: 599px) {
  .footer-informer { grid-template-columns: 1fr; }
}
