/* ============================================================
   Czysta Przestrzeń — style (redesign v2)
   Minimalizm, czytelna typografia, subtelne animacje.
   ============================================================ */
:root {
  --ink: #0d2b33;
  --body: #4a6570;
  --muted: #7d939c;
  --line: #e2edef;
  --bg: #ffffff;
  --bg-alt: #f4faf8;
  --teal-900: #06333c;
  --teal-800: #0a4650;
  --teal-700: #0e5b68;
  --teal-100: #e2f1ef;
  --mint: #19c39c;
  --mint-dark: #0da886;
  --danger: #c0392b;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 43, 51, .06), 0 2px 8px rgba(13, 43, 51, .05);
  --shadow-md: 0 6px 24px rgba(13, 43, 51, .10);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); font-size: .95rem; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px;
  background: var(--teal-100); color: var(--teal-700);
  border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: .4em; }
.section-head p { margin: 0; }

/* ---------- Przyciski (minimalizm) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 4px 14px rgba(14, 91, 104, .28); }
.btn-primary:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14, 91, 104, .32); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: #cfe3e0; }
.btn-ghost:hover { border-color: var(--teal-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--teal-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { font-weight: 800; font-size: 1.22rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--teal-700), var(--mint)); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 17px; height: 17px; }
.brand em { font-style: normal; color: var(--teal-700); }
.brand-light { color: #fff; }
.brand-light em { color: #8fe6cd; }

.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--body); position: relative; padding: 4px 0; transition: color .18s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--mint); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% -10%, #11707f 0%, var(--teal-800) 45%, var(--teal-900) 100%);
  padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px);
  background-size: 30px 30px;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(255, 255, 255, .08); font-size: .85rem; font-weight: 600; color: #d9f4ec;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(25, 195, 156, .25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(25, 195, 156, .28); } 50% { box-shadow: 0 0 0 7px rgba(25, 195, 156, .08); } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.03em; margin-bottom: .45em; }
.hero h1 span { color: #8fe6cd; }
.hero-lead { max-width: 54ch; font-size: 1.12rem; color: #cfe7e4; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; color: #d7efea; font-weight: 600; }
.hero-badges svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

/* hero art */
.hero-art { position: relative; justify-self: center; width: min(430px, 100%); }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px; padding: 26px; box-shadow: 0 30px 60px rgba(3, 30, 36, .35);
}
.hero-card svg { display: block; width: 100%; height: auto; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700;
  padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.float-chip svg { width: 16px; height: 16px; color: var(--mint-dark); }
.chip-1 { top: -18px; right: -14px; animation: floaty 6s ease-in-out infinite alternate; }
.chip-2 { bottom: -16px; left: -18px; animation: floaty 7s ease-in-out 1.2s infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* iskra w ilustracji */
.spark { animation: twinkle 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.spark.s2 { animation-delay: .8s; }
.spark.s3 { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Usługi ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe8e3; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); margin-bottom: 18px;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.card-icon svg { width: 25px; height: 25px; }
.service-card:hover .card-icon { background: var(--teal-700); color: #fff; transform: scale(1.06) rotate(-3deg); }
.service-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.service-card p { margin: 0; font-size: .95rem; }
.services-empty { color: var(--body); font-size: 1rem; padding: 1.25rem 0 .75rem; }

/* ---------- Proces ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0; padding: 0; counter-reset: step; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; transition: transform .22s ease, box-shadow .22s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-700), var(--mint)); color: #fff;
  font-weight: 800; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(14, 91, 104, .3);
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { margin: 0; font-size: .93rem; }
@media (min-width: 981px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -26px; width: 26px; border-top: 2px dashed #bcd9d3;
  }
}

/* ---------- Pasek statystyk ---------- */
.stats-band { background: linear-gradient(120deg, var(--teal-900), var(--teal-700)); color: #fff; padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stat strong em { font-style: normal; color: #8fe6cd; }
.stat span { display: block; margin-top: 6px; font-size: .92rem; color: #c4e2dd; }

/* ---------- Opinie ---------- */
.reviews-note { max-width: 720px; font-size: .93rem; color: var(--muted); background: #fff8e6; border: 1px solid #f0e2b6; border-radius: 10px; padding: 12px 16px; margin: -22px 0 34px; }
.reviews-note strong { color: #8a6d1a; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.demo-badge {
  position: absolute; top: -11px; right: 16px; background: #fff3cd; color: #7a5b00;
  border: 1px solid #ecd9a0; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.stars { color: #f5b301; letter-spacing: 2px; font-size: .95rem; }
.review-card blockquote { margin: 0; flex: 1; font-size: .97rem; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.review-card strong { color: var(--ink); font-size: .95rem; }
.review-card span { font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: #bfe0da; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); font-size: 1.15rem; font-weight: 600; line-height: 1;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--teal-700); color: #fff; }
.faq-body { margin: 0; padding: 0 22px 20px; font-size: .96rem; animation: faqFade .3s ease; }
@keyframes faqFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Formularz wyceny ---------- */
.quote-grid { display: grid; grid-template-columns: .85fr 1.35fr; gap: 40px; align-items: start; }
.quote-aside { position: sticky; top: 96px; }
.quote-aside h3 { font-size: 1.25rem; }
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: var(--body); }
.check-list svg { width: 20px; height: 20px; color: var(--mint-dark); flex: none; margin-top: 2px; }
.contact-mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; font-size: .95rem; }
.contact-mini strong { color: var(--ink); }
.contact-mini a { color: var(--teal-700); text-decoration: none; font-weight: 600; }
.contact-mini a:hover { text-decoration: underline; }

.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: var(--ink); font-size: .93rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fbfefd;
  border: 1.5px solid #d6e5e2; border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-700); background: #fff; box-shadow: 0 0 0 4px rgba(14, 91, 104, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #9fb3ba; }
.field textarea { resize: vertical; min-height: 110px; }
.field-error { font-size: .85rem; color: var(--danger); margin: 0; }
.form-alert, .form-success { border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin-bottom: 20px; border: 1.5px solid transparent; }
.form-alert { background: #fdeeee; color: #8c2318; border-color: #f3c8c4; }
.form-success { background: #e9f7f1; color: #0b5d4a; border-color: #bfe6d6; }
.form-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal-800), var(--teal-700) 55%, #0f7d6b); color: #fff; padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #cfe7e4; max-width: 46ch; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--teal-900); color: #b9d4d0; padding: 58px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #b9d4d0; text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Strona logowania ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(150deg, var(--teal-900), var(--teal-700)); padding: 24px; }
.auth-wrap { width: min(420px, 100%); }
.auth-card { background: #fff; border-radius: 18px; padding: 36px 32px; box-shadow: 0 30px 70px rgba(3, 30, 36, .45); animation: cardIn .45s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.auth-card .brand { justify-content: center; margin-bottom: 22px; display: flex; }
.auth-card h1 { font-size: 1.35rem; text-align: center; margin-bottom: .3em; }
.auth-sub { text-align: center; font-size: .93rem; color: var(--muted); margin-bottom: 26px; }
.auth-card form { display: grid; gap: 16px; }

/* ---------- Panel administratora ---------- */
.admin-topbar { background: var(--teal-900); color: #fff; padding: 13px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 40; }
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* kontrast przycisków na ciemnym pasku (poprawka) */
.admin-actions .btn-ghost, .admin-topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.admin-actions .btn-ghost:hover, .admin-topbar .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-1px); }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { font: inherit; padding: 9px 13px; border-radius: 9px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; min-width: 240px; transition: border-color .18s ease, background-color .18s ease; }
.inline-form input::placeholder { color: rgba(255, 255, 255, .6); }
.inline-form input:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, .16); }

.admin-main { padding: 48px 0 70px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.inquiries-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .94rem; }
.inquiries-table th, .inquiries-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inquiries-table th { background: #f7fbfa; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.inquiries-table tbody tr { transition: background-color .15s ease; }
.inquiries-table tbody tr:hover { background: #f4faf8; }
.inquiries-table td strong { color: var(--ink); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfe0dc; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { width: min(360px, 92%); margin-top: 6px; }
  .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px 4%; }
  .main-nav.open { display: block; animation: faqFade .25s ease; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 11px 6px; font-size: 1.02rem; }
  .main-nav a::after { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 72px; }
  .services-grid, .reviews-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 26px 20px; }
  .chip-1 { right: -6px; }
  .chip-2 { left: -6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .inline-form input { min-width: 0; flex: 1; }
}

/* ===== v3: czcionki (Sora + Plus Jakarta Sans), marka, CTA w nagłówku, sceny animowane ===== */
:root{--font:"Plus Jakarta Sans",-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--font-head:"Sora","Plus Jakarta Sans",-apple-system,"Segoe UI",sans-serif;}
h1,h2,h3,h4,.btn,.brand,.step-num,.stat strong,details summary{font-family:var(--font-head);}
.brand{font-size:1.4rem;font-weight:800;letter-spacing:-.02em;}
.brand em{font-style:normal;color:#17c9a2;}
.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#17c9a2,#0e5b68);box-shadow:0 6px 14px -6px rgba(14,91,104,.5);}
.brand-mark svg{width:21px;height:21px;}
.site-header .btn-primary{background:linear-gradient(135deg,#12b98f 0%,#0e8f96 100%);color:#fff;font-weight:800;letter-spacing:.01em;padding:11px 24px;box-shadow:0 10px 22px -10px rgba(14,143,150,.6);}
.site-header .btn-primary:hover{transform:translateY(-2px);background:linear-gradient(135deg,#19d3a4,#12a3ab);box-shadow:0 14px 26px -10px rgba(14,143,150,.7);}
.card-scene{border-radius:14px;overflow:hidden;margin-bottom:18px;border:1px solid #dcefe9;background:#eefaf6;}
.card-scene svg{display:block;width:100%;height:96px;}
.card-scene img{display:block;width:100%;height:96px;object-fit:cover;}
.s-sweep{transform-box:fill-box;transform-origin:50% 8%;animation:sweep 2.6s ease-in-out infinite alternate;}
@keyframes sweep{from{transform:translateX(-24px) rotate(-7deg)}to{transform:translateX(24px) rotate(7deg)}}
.s-puff,.s-mist{transform-box:fill-box;animation:puff 2.6s ease-out infinite;}
.s-puff.p2,.s-mist.m2{animation-delay:.5s}.s-puff.p3,.s-mist.m3{animation-delay:1s}
@keyframes puff{0%{opacity:0;transform:translate(0,0)}25%{opacity:.9}100%{opacity:0;transform:translate(14px,-10px)}}
.s-spark,.s-star{transform-box:fill-box;transform-origin:center;animation:blink 2.4s ease-in-out infinite;}
.s-star.st2{animation-delay:1.2s}
@keyframes blink{0%,100%{opacity:.25;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.s-checkdraw{stroke-dasharray:52;stroke-dashoffset:52;animation:draw 3s ease-in-out infinite;}
@keyframes draw{0%{stroke-dashoffset:52}45%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
.s-squeegee{animation:squeegee 3.2s ease-in-out infinite;}
@keyframes squeegee{0%{transform:translateY(0)}70%,100%{transform:translateY(56px)}}
.s-clean{transform-box:fill-box;transform-origin:50% 0;animation:cleangrow 3.2s ease-in-out infinite;}
@keyframes cleangrow{0%{transform:scaleY(0)}70%,100%{transform:scaleY(1)}}
.s-moon{animation:moonpulse 4s ease-in-out infinite;}
@keyframes moonpulse{0%,100%{opacity:.5}50%{opacity:1}}
.s-spray{transform-box:fill-box;transform-origin:50% 90%;animation:sprayout 2.4s ease-in-out infinite alternate;}
@keyframes sprayout{from{transform:rotate(-5deg)}to{transform:rotate(6deg)}}
.s-badge{transform-box:fill-box;transform-origin:center;animation:pop 2.4s ease-in-out infinite;}
@keyframes pop{0%,15%{transform:scale(.6);opacity:0}35%,80%{transform:scale(1);opacity:1}100%{transform:scale(1)}}
.s-lens{animation:lensmove 3.4s ease-in-out infinite alternate;}
@keyframes lensmove{from{transform:translate(-16px,-8px)}to{transform:translate(10px,6px)}}
@media (prefers-reduced-motion: reduce){[class^="s-"],[class*=" s-"]{animation:none !important;}}

/* ============================================================
   Panel administracyjny (admin)
   ============================================================ */
.admin-body { background: #f2f7f6; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { background: var(--teal-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { color: #cfe7e4; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 9px; transition: background-color .18s ease, color .18s ease; }
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav a.is-active { color: #fff; background: rgba(25,195,156,.22); box-shadow: inset 0 0 0 1px rgba(25,195,156,.4); }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-main { flex: 1; padding: 36px 0 56px; }
.admin-footer { border-top: 1px solid var(--line); padding: 18px 0; font-size: .88rem; color: var(--muted); background: #fff; }
.admin-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-footer a { color: var(--teal-700); text-decoration: none; font-weight: 600; }
.admin-footer a:hover { text-decoration: underline; }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.flash-stack { display: grid; gap: 10px; margin-bottom: 22px; }
.flash-success { background: #eafaf4; border-color: #b9e6d7; color: #0b6b52; }
.flash-error { background: #fdeeee; border-color: #f2c4c0; color: #8f2318; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 4px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe8e3; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--teal-700); letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-weight: 700; color: var(--ink); font-size: .98rem; }
.stat-hint { font-size: .84rem; color: var(--muted); }

.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 28px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { margin: 0; font-size: 1.15rem; }

.table-wrap { overflow-x: auto; }
.inquiries-table, .services-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.inquiries-table th, .services-table th { text-align: left; padding: 12px 16px; background: #f7fbfa; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.inquiries-table td, .services-table td { padding: 13px 16px; border-bottom: 1px solid #eef4f3; vertical-align: top; }
.inquiries-table tr:last-child td, .services-table tr:last-child td { border-bottom: 0; }
.inquiries-table tbody tr:hover td, .services-table tbody tr:hover td { background: #f7fcfa; }
.row-new td { background: #f2fbf8; }
.row-muted td { color: var(--muted); }
.strong-cell { font-weight: 700; color: var(--ink); }
.notes-cell { max-width: 260px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .inline-form { margin-left: 6px; }
.inline-form { display: inline-flex; margin: 0; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tab { padding: 9px 18px; border-radius: 999px; border: 1.5px solid #d6e5e2; background: #fff; color: var(--body); font-weight: 700; font-size: .92rem; text-decoration: none; transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.filter-tab:hover { border-color: var(--teal-700); color: var(--teal-700); }
.filter-tab.is-active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.badge-nowe { background: #e8f4fd; color: #155e8f; border: 1px solid #bfe0f5; }
.badge-przetworzone { background: #eafaf4; color: #0b6b52; border: 1px solid #b9e6d7; }
.badge-image { background: var(--teal-100); color: var(--teal-700); border: 1px solid #cfe8e3; }
.badge-scene { background: #fdf3e3; color: #9a6a12; border: 1px solid #f0ddb0; }

.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #eec9c4; }
.btn-danger-ghost:hover { border-color: var(--danger); background: #fdf1ef; transform: translateY(-2px); }
.btn-mint-ghost { background: transparent; color: var(--mint-dark); border-color: #b9e6d7; }
.btn-mint-ghost:hover { border-color: var(--mint-dark); background: #f0faf7; transform: translateY(-2px); }

.empty-state { background: #fff; border: 1.5px dashed #cfe3e0; border-radius: var(--radius); padding: 54px 30px; text-align: center; }
.empty-state h2 { font-size: 1.2rem; margin-bottom: .35em; }
.empty-state p { max-width: 52ch; margin: 0 auto 22px; }

/* logowanie */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 140% at 85% -10%, #11707f 0%, var(--teal-800) 45%, var(--teal-900) 100%); padding: 24px; }
.auth-wrap { width: min(420px, 100%); }
.auth-card { background: #fff; border-radius: 20px; padding: 38px 34px; box-shadow: 0 30px 60px rgba(3,30,36,.4); display: grid; gap: 18px; }
.auth-card .brand { justify-content: center; }
.auth-card h1 { text-align: center; font-size: 1.4rem; margin: 6px 0 0; }
.auth-card p { text-align: center; margin: 0; }

/* formularze admina */
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; display: grid; gap: 20px; max-width: 760px; }
.admin-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-hint { font-size: .84rem; color: var(--muted); margin: 0; }
.check-field { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: .95rem; cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .admin-topbar-inner { flex-direction: column; align-items: flex-start; }
}
