/* ============================================================
   PROFITTAX – Biuro Rachunkowe | style.css v1.0
   Kolorystyka: krem + głęboki granat + złoto
   Fonty: Playfair Display (nagłówki) + Source Sans 3 (body)
============================================================ */

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

/* ── Zmienne ── */
:root {
  --navy:       #1a3353;
  --navy-dark:  #0f2240;
  --navy-light: #2a4a70;
  --gold:       #b8922a;
  --gold-light: #d4a843;
  --cream:      #f7f2ea;
  --cream-dark: #ede5d6;
  --white:      #ffffff;
  --blue-pale:  #eef4fb;
  --text:       #2c2c2c;
  --text-muted: #6b7280;
  --border:     #d8cfc0;
  --shadow:     0 4px 24px rgba(26,51,83,0.10);
  --shadow-lg:  0 10px 48px rgba(26,51,83,0.16);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Source Sans 3', 'Segoe UI', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
main { flex: 1; }

/* ── Typografia ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
p { margin-bottom: 1rem; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--alt { background: var(--blue-pale); }
.section--dark { background: var(--navy); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

/* ── HEADER / TOPBAR ── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar i { margin-right: 5px; color: var(--gold-light); }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(26,51,83,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand-logo {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.navbar-brand-text { line-height: 1.2; }
.navbar-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.navbar-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
  background: var(--navy);
  color: var(--white);
}
.nav-link.nav-cta {
  background: var(--gold);
  color: var(--white);
  margin-left: 8px;
}
.nav-link.nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.navbar-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,146,42,0.2);
  border: 1px solid rgba(184,146,42,0.4);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin: 20px 0 28px;
  font-family: var(--font-head);
}
.hero-quote cite { display: block; font-style: normal; font-size: 0.82rem; color: var(--gold-light); margin-top: 6px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card h3 { color: var(--gold-light); margin-bottom: 12px; font-size: 1.1rem; }
.hero-info-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.hero-info-item:last-child { border-bottom: none; }
.hero-info-item i { color: var(--gold-light); width: 18px; flex-shrink: 0; margin-top: 2px; }
.hero-founded {
  margin-top: 16px;
  background: rgba(184,146,42,0.15);
  border: 1px solid rgba(184,146,42,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-head);
}
.hero-founded strong { color: var(--gold-light); font-size: 1.4rem; display: block; }
.hero-founded span { font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── PRZYCISKI ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-navy      { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-light     { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-sm        { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg        { padding: 15px 32px; font-size: 1.05rem; }

/* ── SEKCJA: USŁUGI GRID ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--navy); color: var(--gold-light); }
.service-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.service-card p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.service-link { color: var(--gold); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.service-link:hover { color: var(--navy); }

/* ── LINKI BRANŻOWE ── */
.links-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.links-panel-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px;
}
.links-panel-header i { color: var(--gold-light); }
.links-list { padding: 8px 0; }
.links-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--cream-dark);
  transition: background var(--transition);
}
.links-list a:last-child { border-bottom: none; }
.links-list a:hover { background: var(--blue-pale); color: var(--navy); }
.links-list a i { color: var(--gold); width: 18px; flex-shrink: 0; font-size: 0.95rem; }

/* ── DLACZEGO MY – STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── WHY US – LISTA ── */
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: box-shadow var(--transition);
}
.why-item:hover { box-shadow: var(--shadow); }
.why-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.3rem;
}
.why-text h4 { font-size: 1rem; margin-bottom: 4px; }
.why-text p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ── ARTYKUŁY ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img-placeholder { color: rgba(255,255,255,0.3); font-size: 2.5rem; }
.article-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.article-cat { background: var(--blue-pale); color: var(--navy); padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.article-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.article-card p   { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.article-card-footer { padding: 0 22px 22px; }

/* ── KONTAKT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.contact-form-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-info-box {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.contact-info-card h4 { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.contact-info-row { display: flex; gap: 12px; padding: 8px 0; font-size: 0.9rem; }
.contact-info-row i { color: var(--gold); width: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-map { width: 100%; height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ── FORMULARZE ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,51,83,0.1);
  background: var(--white);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.form-check input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.form-check label { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Alerty */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start; }
.alert i { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── PAGE HEADER (banery podstron) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  padding: 52px 0;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.breadcrumb a  { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ── SIDEBAR z linkami ── */
.two-col-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.sidebar-widget-header {
  background: var(--navy); color: var(--white); padding: 14px 20px;
  font-family: var(--font-head); font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget-header i { color: var(--gold-light); }
.sidebar-widget-body { padding: 16px; }

/* ── STOPKA ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}
.footer-main { padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-box {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.footer-brand-name { color: var(--white); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.footer-brand-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-desc { line-height: 1.65; color: rgba(255,255,255,0.55); margin-bottom: 16px; font-size: 0.85rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.86rem; transition: color var(--transition); display: flex; align-items: center; gap: 7px; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-col ul a i { font-size: 0.75rem; color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.footer-contact-item i { color: var(--gold-light); width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── PANEL ADMINA ── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy-dark);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  padding: 22px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-logo-name { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.admin-logo-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; }
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-section { font-size: 0.68rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.12em; padding: 8px 8px 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  margin-bottom: 2px;
  transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.admin-nav a.active { background: var(--gold); color: var(--white); }
.admin-nav a i { width: 18px; color: var(--gold-light); }
.admin-nav a.active i { color: var(--white); }
.admin-content { flex: 1; background: #f0f4f8; overflow-x: hidden; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar h1 { font-size: 1.2rem; color: var(--navy); }
.admin-body { padding: 28px; }
.admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; align-items: center;
}
.admin-card-header h2 { font-size: 1rem; color: var(--navy); margin: 0; }
.admin-card-body { padding: 22px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.admin-stat-number { font-size: 2rem; font-weight: 700; color: var(--navy); font-family: var(--font-head); }
.admin-stat-label  { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Tabela admina */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
  background: #f8fafc; padding: 10px 14px; text-align: left;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tr:hover td { background: #fafcff; }
.badge { padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-neutral  { background: #f1f5f9; color: #475569; }

/* Wiadomości */
.msgs-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative;
}
.msg-item.msg-important { border-left: 4px solid var(--gold); }
.msg-item h3 { font-size: 1rem; margin-bottom: 6px; }
.msg-item-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.msg-item p { font-size: 0.9rem; margin: 0; }

/* ── PAGINACJA ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--navy); background: var(--white);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow); gap: 4px; z-index: 999; }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: block; }
  .navbar { position: sticky; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.mt-1 { margin-top: 8px;  }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px;  } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Animacje ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.55s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Wygląd artykułu */
.article-content h2 { margin: 1.8rem 0 0.8rem; }
.article-content h3 { margin: 1.4rem 0 0.6rem; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  border-left: 4px solid var(--gold); padding: 12px 20px;
  background: var(--blue-pale); margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Loader */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SEZONOWE PALETY KOLORÓW – PROFITTAX
   Klasa dodawana automatycznie do <body> przez seasons.js
============================================================ */

/* ── WIOSNA ── soczyste zielenie, pąki kwiatów */
html.season-spring {
  --navy:       #1d5c35;
  --navy-dark:  #0e3a1f;
  --navy-light: #2e7a50;
  --gold:       #d97b22;
  --gold-light: #f0a040;
  --cream:      #f2f9f2;
  --cream-dark: #d8eedd;
  --blue-pale:  #e8f5e8;
  --border:     #b8ddb8;
  --shadow:     0 4px 24px rgba(29,92,53,0.12);
  --shadow-lg:  0 10px 48px rgba(29,92,53,0.18);
}
html.season-spring .topbar       { background: linear-gradient(90deg,#0e3a1f,#1d5c35); }
html.season-spring .navbar        { background: linear-gradient(135deg,#1d5c35,#2e7a50); }
html.season-spring .hero-section,
html.season-spring .page-hero     { background: linear-gradient(135deg,#0e3a1f 0%,#1d5c35 50%,#2e7a50 100%) !important; }
html.season-spring .section--dark { background: linear-gradient(135deg,#0e3a1f,#1d5c35); }
html.season-spring .section--alt  { background: #e8f5e8; }
html.season-spring .btn-primary   { background: linear-gradient(135deg,#d97b22,#f0a040); }
html.season-spring .card          { border-top: 3px solid #2e7a50; }
html.season-spring .footer        { background: linear-gradient(135deg,#0e3a1f,#1d5c35); }

/* ── LATO ── piaskowe żółcie, upał, słońce */
html.season-summer {
  --navy:       #3a6600;
  --navy-dark:  #234000;
  --navy-light: #558c10;
  --gold:       #c8b800;
  --gold-light: #e8d820;
  --cream:      #fafde8;
  --cream-dark: #eef5c0;
  --blue-pale:  #f2fad0;
  --border:     #c8d880;
  --shadow:     0 4px 24px rgba(58,102,0,0.12);
  --shadow-lg:  0 10px 48px rgba(58,102,0,0.18);
}
html.season-summer .topbar       { background: linear-gradient(90deg,#1a3300,#3a6600); }
html.season-summer .navbar        { background: linear-gradient(135deg,#3a6600,#558c10); }
html.season-summer .hero-section,
html.season-summer .page-hero     { background: linear-gradient(135deg,#1a3300 0%,#3a6600 45%,#7ab020 100%) !important; }
html.season-summer .section--dark { background: linear-gradient(135deg,#1a3300,#3a6600); }
html.season-summer .section--alt  { background: #f2fad0; }
html.season-summer .btn-primary   { background: linear-gradient(135deg,#c8b800,#e8d820); color:#1a3300; }
html.season-summer .card          { border-top: 3px solid #8ab800; }
html.season-summer .footer        { background: linear-gradient(135deg,#0e1e00,#3a6600); }

/* ── JESIEŃ ── czerwienie, żółcie, brązy opadających liści */
html.season-autumn {
  --navy:       #7b2800;
  --navy-dark:  #4e1500;
  --navy-light: #a03a10;
  --gold:       #c8620a;
  --gold-light: #e8882a;
  --cream:      #fdf0e0;
  --cream-dark: #f5dfc0;
  --blue-pale:  #fae8d0;
  --border:     #d8aa80;
  --shadow:     0 4px 24px rgba(123,40,0,0.12);
  --shadow-lg:  0 10px 48px rgba(123,40,0,0.18);
}
html.season-autumn .topbar       { background: linear-gradient(90deg,#4e1500,#7b2800); }
html.season-autumn .navbar        { background: linear-gradient(135deg,#7b2800,#a03a10); }
html.season-autumn .hero-section,
html.season-autumn .page-hero     { background: linear-gradient(135deg,#4e1500 0%,#7b2800 40%,#c05010 100%) !important; }
html.season-autumn .section--dark { background: linear-gradient(135deg,#4e1500,#7b2800); }
html.season-autumn .section--alt  { background: #fae8d0; }
html.season-autumn .btn-primary   { background: linear-gradient(135deg,#c8620a,#e8882a); }
html.season-autumn .card          { border-top: 3px solid #c8620a; }
html.season-autumn .footer        { background: linear-gradient(135deg,#2e0a00,#7b2800); }

/* ── ZIMA ── biele, błękity, kolory lodu i śniegu */
html.season-winter {
  --navy:       #1a3a6e;
  --navy-dark:  #0d2050;
  --navy-light: #2a5090;
  --gold:       #4a9fd4;
  --gold-light: #70bce8;
  --cream:      #f0f5fc;
  --cream-dark: #dce8f4;
  --blue-pale:  #e8f0fa;
  --border:     #b0cce8;
  --shadow:     0 4px 24px rgba(26,58,110,0.12);
  --shadow-lg:  0 10px 48px rgba(26,58,110,0.18);
}
html.season-winter .topbar       { background: linear-gradient(90deg,#0d2050,#1a3a6e); }
html.season-winter .navbar        { background: linear-gradient(135deg,#1a3a6e,#2a5090); }
html.season-winter .hero-section,
html.season-winter .page-hero     { background: linear-gradient(135deg,#0d2050 0%,#1a3a6e 50%,#2a5090 100%) !important; }
html.season-winter .section--dark { background: linear-gradient(135deg,#0d2050,#1a3a6e); }
html.season-winter .section--alt  { background: #e8f0fa; }
html.season-winter .btn-primary   { background: linear-gradient(135deg,#2a5090,#4a9fd4); }
html.season-winter .card          { border-top: 3px solid #4a9fd4; }
html.season-winter .footer        { background: linear-gradient(135deg,#06101e,#1a3a6e); }

/* ── Płótno animacji sezonowych ── */
#season-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.75;
}

/* ── Kolory linków menu dla sezonowych navbarów ── */
html.season-spring .navbar .nav-link,
html.season-summer .navbar .nav-link,
html.season-autumn .navbar .nav-link,
html.season-winter .navbar .nav-link {
  color: rgba(255,255,255,0.88);
}
html.season-spring .navbar .nav-link:hover,
html.season-summer .navbar .nav-link:hover,
html.season-autumn .navbar .nav-link:hover,
html.season-winter .navbar .nav-link:hover,
html.season-spring .navbar .nav-link.active,
html.season-summer .navbar .nav-link.active,
html.season-autumn .navbar .nav-link.active,
html.season-winter .navbar .nav-link.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
html.season-spring .navbar-brand-name,
html.season-summer .navbar-brand-name,
html.season-autumn .navbar-brand-name,
html.season-winter .navbar-brand-name {
  color: #fff;
}
html.season-spring .navbar-brand-sub,
html.season-summer .navbar-brand-sub,
html.season-autumn .navbar-brand-sub,
html.season-winter .navbar-brand-sub {
  color: rgba(255,255,255,0.65);
}
html.season-spring .navbar-toggle,
html.season-summer .navbar-toggle,
html.season-autumn .navbar-toggle,
html.season-winter .navbar-toggle {
  color: #fff;
}

/* ============================================================
   MOBILE – dodatkowe poprawki responsywności
============================================================ */
@media (max-width: 768px) {
  /* Topbar – jeden wiersz na mobile */
  .topbar .container { justify-content: center; font-size: .75rem; }
  .topbar-right { gap: 12px; flex-wrap: wrap; justify-content: center; }

  /* Hero */
  .hero-section { padding: 40px 0 36px; }
  .hero-section h1 { font-size: clamp(1.7rem,6vw,2.4rem); }

  /* Navbar sezonowy – białe linki */
  .navbar-nav.open {
    background: var(--navy, #1a3353) !important;
    border-top: 2px solid rgba(255,255,255,0.1);
  }

  /* Karty */
  .cards-row, .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Sekcja "O nas" */
  .responsive-grid { grid-template-columns: 1fr !important; }

  /* Polityki */
  .card table { font-size: .82rem; }

  /* Baner cookies na mobile */
  #ptx-cookie-banner { padding: 14px 16px; gap: 14px; }
  .ptx-btns { width: 100%; }
  .ptx-btn  { flex: 1; text-align: center; padding: 10px 8px; }

  /* PWA baner */
  #pwa-banner { bottom: 16px; left: 12px; right: 12px; }
}

@media (max-width: 480px) {
  /* Stopka */
  .footer-bottom { font-size: .78rem; flex-direction: column; gap: 6px; text-align: center; }
  .footer-bottom a { display: inline-block; margin: 2px 4px; }

  /* Karty 1 kolumna na bardzo małych */
  .cards-row { grid-template-columns: 1fr; }

  /* Polityki – tabela scroll */
  .card [style*="overflow-x:auto"] { overflow-x: auto; }

  /* Siatka 3-kolumnowa → 1 kol */
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }

  /* Siatka 2-kolumnowa w politykach → 1 kol */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
