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

:root {
  --brand:     #1A3A6B;
  --brand-dark:#0F2647;
  --accent:    #F5A623;
  --red:       #B0421F;
  --green:     #2F7D5A;

  --text:    #1C1C2E;
  --text2:   #5A6A85;
  --text3:   #9ca3af;
  --bg:      #F7F9FC;
  --surface: #ffffff;
  --border:  #e2e6ea;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:     #4A8AD4;
    --brand-dark:#1A3A6B;
    --accent:    #F5A623;
    --text:    #E8ECF0;
    --text2:   #A0AABB;
    --text3:   #6B7888;
    --bg:      #0F1620;
    --surface: #1A2332;
    --border:  #2A3544;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand:     #4A8AD4;
  --brand-dark:#1A3A6B;
  --accent:    #F5A623;
  --text:    #E8ECF0;
  --text2:   #A0AABB;
  --text3:   #6B7888;
  --bg:      #0F1620;
  --surface: #1A2332;
  --border:  #2A3544;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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; }

/* ── Main header ── */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.12); border-bottom: 3px solid var(--brand); }
.header-main { display: flex; align-items: center; padding: 0; min-height: 90px; }
.logo-link { flex-shrink: 0; padding: 8px 16px 8px 0; display: flex; align-items: center; }
.logo-img { height: 74px; width: auto; max-width: 240px; object-fit: contain; }
.logo-tagline { flex-shrink: 0; display: none; font-size: 11px; font-weight: 600; color: var(--text2); line-height: 1.4; max-width: 200px; border-left: 2px solid var(--brand); padding-left: 12px; margin-right: 8px; }
.header-nav { display: none; align-items: stretch; flex: 1; overflow-x: auto; scrollbar-width: 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: 90px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; text-transform: uppercase; letter-spacing: .02em; }
.header-nav a:hover, .header-nav a.active { color: var(--brand); border-bottom-color: var(--accent); }
.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: 90px; display: flex; align-items: center; transition: color .15s; }
.search-btn:hover { color: var(--brand); }

/* Hamburger */
.burger-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0 14px; height: 90px; }
.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 */
.mobile-nav { display: none; background: var(--surface); 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); transition: color .15s, background .15s; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }

@media (min-width: 768px) { .burger-btn { display: none; } .mobile-nav { display: none !important; } }
@media (min-width: 1200px) { .logo-tagline { display: block; } .header-nav { display: flex; } .header-main { min-height: 94px; } .header-nav a { height: 94px; } .search-btn { height: 94px; } }

/* Search panel */
.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; background: var(--surface); border: 2px solid var(--brand); 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); 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(--brand-dark); }

/* ── Category bar ── */
.trending-bar { background: var(--surface); border-bottom: 3px solid var(--brand); }
.trending-inner { display: flex; align-items: center; 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); 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, .main-nav a.active { color: var(--brand); }
.main-nav a.active { font-weight: 800; }

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

/* ── Hero ── */
.hero-wrap { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.hero-img-col { position: relative; overflow: hidden; }
.hero-img-col img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; transition: transform .4s; }
.hero-wrap:hover .hero-img-col img { transform: scale(1.03); }
.hero-label { position: absolute; bottom: 12px; left: 12px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 6px 14px; border-radius: 6px; }
.hero-text-col { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; background: var(--surface); }
.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(--accent); margin-bottom: 16px; }
.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-size: 28px; line-height: 1.3; color: var(--text); margin-bottom: 16px; font-weight: 800; }
.hero-text-col h2 a { transition: color .15s; }
.hero-text-col h2 a:hover { color: var(--brand); }
.hero-text-col .hero-sub { font-size: 14px; color: var(--text2); margin-bottom: 20px; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text3); }
.hero-read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand); transition: gap .2s; }
.hero-read-more:hover { gap: 10px; }

/* ── Featured strip ── */
.featured-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 8px; padding-top: 4px; }

/* ── Cards grid ── */
.cards-grid { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; }
.cards-grid .art-card { flex: 1 1 280px; min-width: 0; }
.art-card { background: var(--surface); overflow: hidden; border-radius: 12px; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.art-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.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.04); }
.art-card-img-label { position: absolute; bottom: 8px; left: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 4px; }
.art-card-body { padding: 16px 18px 20px; }
.cat-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 4px; margin-bottom: 8px; }
.art-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card-body h3 a:hover { color: var(--brand); }
.art-card-body .card-excerpt { font-size: 0.85rem; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; line-height: 1.6; }
.art-card-body .card-meta { font-size: 11px; color: var(--text3); }

/* ── Fade animations ── */
.pk-fade-init { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pk-fade-init.pk-in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .pk-fade-init { opacity: 1 !important; transform: none !important; } }
@keyframes pk-fade-fallback { to { opacity: 1; transform: translateY(0); } }
.pk-fade-init { animation: pk-fade-fallback 0.5s ease 4s forwards; }
.pk-fade-init.pk-in-view { animation: none; }

/* ── Load more ── */
.load-more { text-align: center; margin: 32px 0 8px; }
.load-more button { background: var(--brand); border: none; color: #fff; padding: 14px 40px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s, transform .2s; box-shadow: 0 4px 12px rgba(26,58,107,.2); }
.load-more button:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ── 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); 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-left { display: flex; align-items: center; gap: 10px; }
.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; }
.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(--brand); }
.latest-item-body span { font-size: 11px; color: var(--text3); }

/* ── Article page ── */
.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; }
.article-cat-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 2px; margin-bottom: 14px; }
.article-header h1 { font-size: 30px; line-height: 1.3; margin-bottom: 14px; font-weight: 800; }
.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 { 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; transition: opacity .15s; }
.share-btn:hover { opacity: .85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tg { background: #229ED9; }
.share-btn.copy { background: var(--bg); color: var(--text2); border: 1px solid var(--border); }
.article-cover-wrap { margin-bottom: 24px; }
.article-cover-wrap img { width: 100%; border-radius: 4px; max-height: 500px; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-body h2 { font-size: 22px; font-weight: 800; 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; cursor: zoom-in; height: auto !important; }
.article-body blockquote { border-left: 4px solid var(--brand); padding: 14px 22px; background: color-mix(in srgb, var(--brand) 6%, var(--bg)); margin: 24px 0; color: var(--text2); font-style: italic; border-radius: 0 8px 8px 0; }
.article-body a { color: var(--brand); 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 { 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); }
.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); 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); }
.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); 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; }
.comment-date { font-size: 11px; color: var(--text3); }
.comment-text { font-size: 14px; line-height: 1.6; }
.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; color: var(--text); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-submit { background: var(--brand); 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: var(--green); }
.comment-msg.err { color: var(--red); }

/* ── Blog ── */
.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-size: 28px; font-weight: 800; 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; }
.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); }
.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; }

/* ── 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: var(--surface); border-top: 3px solid var(--border); padding: 32px 0; }
.donors-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.donors-text { font-size: 12px; color: var(--text2); line-height: 1.7; max-width: 780px; font-style: italic; }

/* ── Feedback ── */
.feedback-fab { position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; border: none; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(26,58,107,.45); transition: transform .2s; display: flex; align-items: center; justify-content: center; }
.feedback-fab:hover { transform: scale(1.1); }
.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: var(--surface); 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 var(--border); }
.feedback-header h3 { font-size: 18px; font-weight: 700; }
.feedback-close { background: none; border: none; font-size: 20px; color: var(--text3); cursor: pointer; padding: 0; transition: color .15s; }
.feedback-close:hover { color: var(--text); }
.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: var(--text2); }
.feedback-field input, .feedback-field textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 13px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color .15s; resize: vertical; }
.feedback-field input:focus, .feedback-field textarea:focus { outline: none; border-color: var(--brand); }
.feedback-footer { display: flex; align-items: center; gap: 14px; }
.feedback-submit { background: var(--brand); 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: var(--brand-dark); }
.feedback-submit:disabled { opacity: .6; cursor: default; }
.feedback-note { font-size: 12px; color: var(--text3); }
.fb-success { background: color-mix(in srgb, var(--green) 10%, var(--bg)); color: var(--green); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.fb-error { background: color-mix(in srgb, var(--red) 10%, var(--bg)); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* ── Services grid ── */
.services-section { padding: 36px 0; border-top: 1px solid var(--border); background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(26,58,107,.1); transform: translateY(-2px); }
.service-card svg { width: 36px; height: 36px; color: var(--brand); flex-shrink: 0; }
.service-card span { font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 767px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .service-card { padding: 16px 8px; } .service-card svg { width: 30px; height: 30px; } }

/* ── Cookie banner ── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(0,0,0,.1); padding: 16px 0; }
.cookie-banner-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-banner-inner p { font-size: 13px; color: var(--text2); line-height: 1.5; margin: 0; }
.cookie-banner-inner p a { color: var(--brand); text-decoration: underline; }
.cookie-banner-inner button { flex-shrink: 0; background: var(--brand); color: #fff; border: none; padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.cookie-banner-inner button:hover { background: var(--brand-dark); }
@media (max-width: 599px) { .cookie-banner-inner { flex-direction: column; gap: 12px; text-align: center; } .cookie-banner-inner button { width: 100%; } }

/* ── Latest carousel ── */
.latest-carousel-section { background: var(--bg); padding: 48px 0; border-top: 1px solid var(--border); }
.latest-carousel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.latest-carousel-header h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.carousel-btn:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.carousel-btn:hover svg { stroke: #fff; }
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--text2); }
.carousel-track-wrap { overflow: hidden; }
.carousel-track { display: flex; transition: transform .3s ease; }
.carousel-slide { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; transition: box-shadow .2s; }
.carousel-slide:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.carousel-slide-img { overflow: hidden; aspect-ratio: 16/10; }
.carousel-slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carousel-slide:hover .carousel-slide-img img { transform: scale(1.03); }
.carousel-slide-body { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; gap: 12px; }
.carousel-cat { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.carousel-slide-body h3 { font-size: 22px; font-weight: 800; line-height: 1.35; color: var(--text); }
.carousel-slide-body p { font-size: 14px; color: var(--text2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-date { font-size: 13px; color: var(--text3); }

/* ── Footer ── */
.site-footer { background: #1a2332; color: rgba(255,255,255,.85); padding: 0; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-about { gap: 14px; }
.footer-logo-text { font-size: 20px; font-weight: 800; color: #fff; }
.footer-mission { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 340px; margin: 0; }
.footer-subscribe { margin-top: 4px; }
.footer-subscribe-form { display: flex; gap: 0; }
.footer-subscribe-form input { padding: 11px 16px; border: 1px solid rgba(255,255,255,.25); border-right: none; border-radius: 8px 0 0 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; width: 200px; outline: none; font-family: inherit; }
.footer-subscribe-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-subscribe-form input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.footer-subscribe-form button { padding: 11px 20px; border: none; border-radius: 0 8px 8px 0; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap; font-family: inherit; }
.footer-subscribe-form button:hover { background: var(--accent); color: #1a2332; }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-socials-big { display: flex; gap: 14px; margin: 4px 0 0; }
.footer-socials-big a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .2s; }
.footer-socials-big a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.1); }
.footer-socials-big svg { width: 18px; height: 18px; }
.footer-contact-info { margin-top: 8px; }
.footer-contact-info a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-contact-info a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: center; }
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,.4); text-align: center; letter-spacing: .02em; }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 1200px) {
  .home-grid { grid-template-columns: 1fr 300px; gap: 24px; }
}
@media (max-width: 1023px) {
  .home-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .article-page { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { display: none; }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .cards-grid .art-card { max-width: calc(50% - 12px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col-about { grid-column: 1 / -1; }
  .footer-subscribe-form input { width: 180px; }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide-img { aspect-ratio: 16/9; }
  .carousel-slide-body { padding: 20px 24px; }
  .carousel-slide-body h3 { font-size: 18px; }
  .latest-carousel-section { padding: 32px 0; }
}
@media (max-width: 599px) {
  .container { padding: 0 12px; }
  .logo-img { height: 60px; }
  .search-form input { font-size: 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-img-col img { height: auto; max-height: 280px; }
  .hero-text-col { padding: 16px; }
  .hero-text-col h2 { font-size: 20px; }
  .hero-text-col .hero-sub { display: none; }
  .cards-grid { gap: 16px; }
  .cards-grid .art-card { max-width: 100%; flex-basis: 100%; }
  .art-card { display: flex; flex-direction: row; }
  .art-card-img-wrap { width: 120px; min-width: 120px; aspect-ratio: auto; height: 88px; border-radius: 8px 0 0 8px; }
  .art-card-body { padding: 10px 12px; }
  .art-card-body h3 { font-size: 13px; }
  .article-header h1 { font-size: 22px; }
  .article-body { font-size: 15px; }
  .article-cover-wrap { border-radius: 0; margin: 0 -12px 20px; }
  .article-cover-wrap img { max-width: calc(100% + 24px); }
  .home-grid { margin: 12px 0; }
  .load-more button { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-subscribe-form input { width: 150px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .carousel-slide-body h3 { font-size: 16px; }
  .carousel-slide-body { padding: 16px 18px; gap: 8px; }
}
[data-block="image-row"] { display: flex; gap: 8px; margin: 12px 0; }
[data-block="image-row"] img { flex: 1; min-width: 0; border-radius: 8px; object-fit: cover; max-height: 400px; }
@media (max-width: 599px) { [data-block="image-row"] { flex-direction: column; } [data-block="image-row"] img { max-height: none; } }
