@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --baby: #E8F4FD;
  --baby-mid: #C9E5F7;
  --baby-deep: #A8D4EF;
  --blue: #2E86C1;
  --blue-dark: #1A5276;
  --blue-accent: #1B98E0;
  --ink: #0D1B2A;
  --ink-mid: #2C3E50;
  --muted: #5D7285;
  --border: #D4E8F6;
  --red: #C0392B;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'DM Sans', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-ui);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── TOPBAR ─────────────────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  color: var(--baby-mid);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--baby-mid); transition: color 0.2s; }
.topbar a:hover { color: var(--white); }

/* ─── HEADER ─────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(46,134,193,0.10);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--blue-accent);
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue-accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
nav a:hover { color: var(--blue); }
nav a:hover::after { transform: scaleX(1); }

/* ─── BREAKING TICKER ────────────────────────────────── */
.ticker-wrap {
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 28px;
}
.ticker-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0 12px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 2px solid rgba(255,255,255,0.25);
}
.ticker-inner {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker-text {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  padding-left: 20px;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ─── HERO ARTICLE ───────────────────────────────────── */
.hero {
  max-width: 1200px;
  width: 100%;
  margin: 36px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.hero-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-main:hover img { transform: scale(1.02); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,28,48,0.85) 0%, rgba(10,28,48,0.2) 55%, transparent 100%);
}
/* przezroczysty link pokrywający cały hero — pod tytułem, nad obrazkiem */
.hero-img-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  color: var(--white);
  z-index: 2;
}
.hero-category {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--baby-mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-category::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--blue-accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title a { color: var(--white); }
.hero-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--baby-mid);
  opacity: 0.85;
}

/* hero no image fallback */
.hero-main.no-image {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

/* ─── HERO SIDEBAR ───────────────────────────────────── */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.hero-sidebar-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-accent);
  display: inline-block;
}
.sidebar-article {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover { background: var(--baby); margin: 0 -16px; padding: 16px 16px; border-radius: 4px; }
.sidebar-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-thumb.no-img {
  background: linear-gradient(135deg, var(--baby-mid), var(--baby-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.4rem;
}
.sidebar-info {}
.sidebar-cat {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 4px;
}
.sidebar-art-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.sidebar-art-title a:hover { color: var(--blue); }
.sidebar-art-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── SECTION DIVIDER ────────────────────────────────── */
.section-header {
  max-width: 1200px;
  margin: 48px auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-accent {
  width: 36px;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
  margin-top: 2px;
}

/* ─── ARTICLE GRID ───────────────────────────────────── */
.articles-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  box-sizing: border-box;
}
.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s;
}
.article-card:hover { transform: translateY(-3px); }
.card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 14px;
  aspect-ratio: 16/10;
  background: var(--baby);
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-image-wrap:hover img { transform: scale(1.05); }
.card-no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--baby) 0%, var(--baby-mid) 100%);
  color: var(--blue);
  font-size: 2rem;
}
.card-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 7px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-title a:hover { color: var(--blue); }
.card-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-meta .dot { width: 3px; height: 3px; background: var(--baby-deep); border-radius: 50%; }
.card-author { font-weight: 600; color: var(--blue-dark); }

/* ─── FULL ARTICLE PAGE ──────────────────────────────── */
.article-page {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px;
}
.article-page-category {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-page-category::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--blue-accent);
}
.article-page h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}
.article-page-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
}
.article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 32px;
}
.article-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-mid);
}
.article-body p { margin-bottom: 1.4em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }
.back-link::before { content: '←'; }

/* ─── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}
.empty-state .big-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}
.empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.empty-state p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
}
.empty-state a {
  display: inline-block;
  margin-top: 20px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  transition: background 0.2s;
}
.empty-state a:hover { background: var(--blue-dark); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: var(--baby-mid);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-logo span { color: var(--blue-accent); }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--baby-mid);
  opacity: 0.7;
  margin-bottom: 32px;
}
.footer-bottom {
  border-top: 1px solid rgba(169,212,239,0.2);
  padding-top: 20px;
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--baby-mid);
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
}
.footer-bottom a { color: var(--baby-mid); opacity: 0.8; transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 1; }

/* ─── ADMIN ──────────────────────────────────────────── */
.admin-wrap {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 24px;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.admin-subtitle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.admin-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(46,134,193,0.08);
  margin-bottom: 40px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 7px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(27,152,224,0.12);
}
.form-group textarea { resize: vertical; min-height: 200px; line-height: 1.6; }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: var(--baby);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--blue-accent);
  background: var(--baby-mid);
}
.file-drop-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; }
.file-drop p { font-size: 0.85rem; color: var(--muted); }
.file-drop strong { color: var(--blue); }
.file-drop input[type="file"] { display: none; }
.file-preview { margin-top: 14px; }
.file-preview img { max-height: 160px; border-radius: 4px; margin: 0 auto; border: 1px solid var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,134,193,0.3); }
.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }

.alert {
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.alert-success { background: #EAF7EF; color: #1A7A3C; border-left: 4px solid #2ECC71; }
.alert-error { background: #FEF0F0; color: #B02020; border-left: 4px solid var(--red); }

/* articles list in admin */
.admin-articles { margin-top: 0; }
.admin-article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.admin-article-item:hover { box-shadow: 0 2px 12px rgba(46,134,193,0.1); }
.admin-art-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.admin-art-thumb-none {
  width: 72px; height: 54px;
  background: var(--baby-mid);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
}
.admin-art-info { flex: 1; min-width: 0; }
.admin-art-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-art-meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.admin-actions { display: flex; gap: 8px; }

/* login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--baby);
}
.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 48px rgba(46,134,193,0.15);
}
.login-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.login-logo span { color: var(--blue-accent); }
.login-subtitle { font-size: 0.82rem; color: var(--muted); margin-bottom: 32px; }

/* stats bar */
.stats-bar {
  background: var(--baby);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
}
.stats-inner strong { color: var(--blue-dark); }

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 0;
  }
  .hero-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
  }
  .hero-main img { height: 380px; }
  .hero-title { font-size: 1.7rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .article-page h1 { font-size: 2.1rem; }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {

  /* topbar */
  .topbar-inner { flex-direction: column; gap: 2px; text-align: center; padding: 6px 16px; }

  /* header */
  .header-inner { padding: 0 16px; height: 60px; }
  .logo { font-size: 1.55rem; }
  nav { display: none; }

  /* hamburger menu */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .25s;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-family: var(--font-ui);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-mid);
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:active { background: var(--baby); }

  /* ticker */
  .ticker-text { font-size: .7rem; }

  /* stats bar */
  .stats-bar {
    flex-wrap: wrap;
    gap: 4px;
    font-size: .72rem;
    padding: 6px 16px;
  }

  /* hero */
  .hero { padding: 0 16px; margin-top: 16px; gap: 0; }
  .hero-main img { height: 240px; }
  .hero-main.no-image { min-height: 240px; }
  .hero-title { font-size: 1.3rem; line-height: 1.25; }
  .hero-content { padding: 16px 18px; }
  .hero-sidebar { margin-top: 16px; padding-top: 16px; }
  .sidebar-thumb { width: 72px; height: 54px; }

  /* grid */
  .articles-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .article-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .card-image-wrap {
    width: 100%;
  }
  .section-header { padding: 0 16px; margin: 32px auto 16px; }
  .section-header h2 { font-size: 1.2rem; }

  /* article page */
  .article-page { padding: 0 16px; margin: 28px auto; }
  .article-page h1 { font-size: 1.65rem; line-height: 1.2; }
  .article-page-meta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: .75rem;
  }
  .article-hero-img { max-height: 240px; margin-bottom: 20px; }
  .article-body { font-size: .97rem; line-height: 1.75; }
  .back-link { margin-bottom: 20px; }

  /* komentarze */
  .comments-section { padding: 0 16px; }
  .comment-form { padding: 16px; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .related-section { padding: 0 16px; }
  .related-grid { grid-template-columns: 1fr; }

  /* footer */
  footer { padding: 32px 0 20px; }
  .footer-inner { padding: 0 16px; }
  .footer-logo { font-size: 1.4rem; }

  /* onetime / error pages */
  .form-card { padding: 20px 16px; }
  .login-wrap { padding: 16px; }
  .login-card { padding: 28px 20px; }
  .error-code { font-size: 6rem; }
  .error-title { font-size: 1.4rem; }
}
