/* ============================================================
   AstroStore — design system
   Minimalist • white • premium • pastel gradients
   Brand: AstroEnergy purple #68296a
   ============================================================ */

:root {
  --brand: #68296a;
  --brand-600: #7a3380;
  --brand-400: #9b4dca;
  --brand-200: #d9b8e4;
  --ink: #1a1320;
  --ink-soft: #574d60;
  --muted: #8a8194;
  --line: #ece8f0;
  --line-strong: #ddd5e4;
  --bg: #ffffff;
  --bg-soft: #faf8fc;
  --bg-tint: #f5f0f8;
  --white: #fff;
  --ok: #1f9d63;
  --ok-bg: #e7f7ee;
  --warn: #b8860b;
  --warn-bg: #fdf6e3;
  --err: #c0392b;
  --err-bg: #fdecea;
  --info: #2f6fb0;
  --info-bg: #eaf2fb;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 10px 40px -16px rgba(56, 20, 60, .25);
  --shadow-sm: 0 4px 18px -10px rgba(56, 20, 60, .22);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, #f4e6fb 0%, rgba(244,230,251,0) 60%),
               radial-gradient(900px 500px at 0% 0%, #e6f0fb 0%, rgba(230,240,251,0) 55%),
               linear-gradient(180deg, #fdfbff 0%, #ffffff 100%);
  --grad-coin: linear-gradient(135deg, #f3e7fb 0%, #fde9f3 50%, #e8f1fc 100%);
  --grad-brand: linear-gradient(135deg, #68296a 0%, #9b4dca 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: #f3fbfb;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.6;
  font-size: 21px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
/* Jednolity rozmiar nagłówków — jak tytuł „AstroStore” na sliderze */
h1, h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.45rem; color: var(--ink-soft); }
.hide { display: none !important; }

/* minimalistyczne, jednokolorowe ikony liniowe */
.ic { display: inline-block; vertical-align: -.16em; flex: none; }

/* Tekst poza boxami w rozmiarze jak lead — bez nagłówków, stopki i menu */
.site-main p:not([class]),
.site-main .prose { font-size: 1.45rem; line-height: 1.6; }
.site-main .lead { font-size: 1.45rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(104,41,106,.55); color: #fff; }
.btn-ghost { background: var(--white); color: var(--brand); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand-400); }
.btn-soft { background: var(--bg-tint); color: var(--brand); }
.btn-danger { background: var(--err-bg); color: var(--err); border-color: #f3c9c4; }
.btn-danger:hover { background: #fbdbd6; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75em .9em; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(155,77,202,.14);
}
.textarea { min-height: 130px; resize: vertical; }
.field .err { color: var(--err); font-size: .85rem; margin-top: .35rem; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--err); }
.hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.checkbox input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards & surfaces ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem;
}
.surface { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .3em .7em; border-radius: 999px;
  background: var(--bg-tint); color: var(--brand);
}
.tag-premium { background: linear-gradient(135deg,#fbe9c6,#f6d365); color: #7a5b00; }
.pill {
  display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 600;
  padding: .35em .75em; border-radius: 999px;
}
.coin-amt { font-variant-numeric: tabular-nums; font-weight: 700; }
.coin-pos { color: var(--ok); }
.coin-neg { color: var(--err); }

/* coin chip */
.coin-chip { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; }
.coin-chip img { width: 1.25em; height: 1.25em; }

/* ---------- Flash ---------- */
.flash-wrap { display: grid; gap: .6rem; margin: 0 0 1.2rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #bce6cf; }
.flash-error { background: var(--err-bg); color: var(--err); border-color: #f3c9c4; }
.flash-info { background: var(--info-bg); color: var(--info); border-color: #cfe1f5; }

/* status badges */
.badge { display:inline-block; padding:.3em .7em; border-radius:999px; font-size:.78rem; font-weight:700; }
.s-new{background:#eaf2fb;color:#2f6fb0}
.s-accepted{background:#e9f7ef;color:#1f9d63}
.s-processing{background:#fef3e0;color:#b8860b}
.s-awaiting_pickup{background:#f3e8fb;color:#7a3380}
.s-shipped{background:#e6f0fb;color:#2f6fb0}
.s-completed{background:#e7f7ee;color:#1f9d63}
.s-cancelled{background:#fdecea;color:#c0392b}
.u-pending{background:#fef3e0;color:#b8860b}
.u-active{background:#e7f7ee;color:#1f9d63}
.u-blocked{background:#fdecea;color:#c0392b}

/* ============================================================
   PUBLIC SITE
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* identyczne, „przyklejone” tło jak strona — brak odcięcia pod menu */
  background-color: #f3fbfb;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 50px; padding-bottom: 22px; gap: 1rem; }
.brand-logo { display: flex; align-items: center; gap: .6rem; }
.brand-logo img { height: 67px; width: auto; }
.brand-logo .sub { font-weight: 700; color: var(--brand); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.nav a:hover, .nav a.is-active { color: var(--brand); text-decoration: none; }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: .3rem; line-height: 0; color: var(--brand); cursor: pointer; }

.hero { padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.8rem, 3vw, 2.7rem); }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: 32px;
  background: #0a0810 url('../img/slider.jpg') right center / cover no-repeat;
  padding: clamp(2.4rem, 5vw, 4.5rem);
  min-height: clamp(360px, 42vw, 460px);
  display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,6,16,.9) 0%, rgba(8,6,16,.7) 40%, rgba(8,6,16,.25) 68%, rgba(8,6,16,0) 85%);
}
.hero-content { position: relative; max-width: 56%; }
.hero-card h1 { color: #fff; margin-bottom: .3em; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hero-card .eyebrow { color: #e2c7f0; }
.hero-card .lead { color: rgba(255,255,255,.9); font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; }
.hero-card .lead-sm { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.78); margin-bottom: 1.5rem; }
.hero .btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.eyebrow { display:inline-block; font-weight:700; color:var(--brand); letter-spacing:.08em; text-transform:uppercase; font-size:.92rem; margin-bottom:1.1rem; }
@media (max-width: 820px) {
  .hero-card { background-position: 30% center; padding: 2.2rem 1.6rem; min-height: auto; }
  .hero-card::before { background: linear-gradient(180deg, rgba(8,6,16,.78) 0%, rgba(8,6,16,.72) 100%); }
  .hero-content { max-width: 100%; }
}

section.block { padding: clamp(1.8rem, 3vw, 2.7rem) 0; }
section.tint { background: transparent; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
/* obszary OZE — równa siatka, dwie linie, bez ramek */
.oze-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1.4rem; margin-top: 1.4rem; }
.oze-item { display: flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 600; font-size: 1.02rem; }
.oze-item .ic { color: var(--brand); width: 22px; height: 22px; flex: none; }
@media (max-width: 640px){ .oze-grid { grid-template-columns: 1fr 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.3rem; }
.feature { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ico { color: var(--brand); margin-bottom: .9rem; line-height: 0; }
.feature .ico .ic { width: 30px; height: 30px; }
.feature h3 { font-size: 1.18rem; line-height: 1.25; min-height: 2.5em; margin-bottom: .4rem; }
.feature p { font-size: .95rem; margin: 0; }
.features.plain .feature { background: transparent; border: 0; padding: .25rem; }
.feature .num { display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1.6px solid var(--brand);color:var(--brand);font-weight:800;font-size:1.2rem;margin-bottom:1.1rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.1rem; }
.cat-card { display:block; padding: 1.4rem; border-radius: var(--radius); border:1px solid var(--line); background:#fff; transition: box-shadow .2s, transform .12s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-200); text-decoration:none; }
.cat-card h3 { color: var(--brand); }
.cat-card .count { color: var(--muted); font-size:.85rem; }

/* Kategorie jako lista (jedna pod drugą) na stronie głównej */
.cat-list { display: grid; gap: .7rem; max-width: 860px; margin: 0 auto; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s, transform .12s; }
.cat-row:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--brand-200); transform: translateY(-1px); }
.cat-row-main { display: flex; flex-direction: column; gap: .15rem; }
.cat-row-main strong { font-size: 1.2rem; color: var(--brand); }
.cat-row-main .muted { font-size: .95rem; }
.cat-row-aside { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.cat-row-aside .ic { color: var(--brand); }
@media (max-width: 560px){ .cat-row { flex-direction: column; align-items: flex-start; gap: .4rem; } }

.coin-banner { background: var(--grad-coin); border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); display:grid; grid-template-columns: 1fr clamp(200px,24vw,280px); gap: clamp(2rem,5vw,4rem); align-items:center; }
.coin-banner .lead { font-size: 1.15rem; }
.coin-banner p { font-size: 1.02rem; color: var(--ink-soft); }
.coin-banner img { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 18px 40px rgba(104,41,106,.28)); }
@media (max-width: 760px){ .coin-banner{ grid-template-columns:1fr; text-align:center; gap:1.5rem } .coin-banner img{ margin:0 auto; max-width:200px } }
.coin-hero { display:block; margin: 0 auto; width: clamp(220px, 42vw, 360px); height: auto; filter: drop-shadow(0 24px 60px rgba(104,41,106,.38)); }

/* AstroCOIN — hero: tekst po lewej, moneta po prawej */
.coin-hero-split { display: grid; grid-template-columns: 1fr clamp(240px, 34vw, 420px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.coin-hero-media { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .coin-hero-split { grid-template-columns: 1fr; text-align: center; }
  .coin-hero-split .hero-inner { order: 2; }
  .coin-hero-media { order: 1; }
  .coin-hero { width: clamp(200px, 60vw, 300px); }
}

/* AstroCOIN — karty „cennikowe” z liniami między pozycjami */
.coin-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.coin-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.coin-plan-head { margin-bottom: .6rem; }
.coin-plan-head h3 { font-size: 1.4rem; margin: .5rem 0 0; }
.coin-plan-tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .32em .8em; border-radius: 999px; }
.tag-earn { background: var(--ok-bg); color: var(--ok); }
.tag-spend { background: var(--bg-tint); color: var(--brand); }
.coin-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.coin-list li { display: flex; align-items: center; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.coin-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.coin-list li .ic { flex: none; color: var(--brand); }
@media (max-width: 720px) { .coin-table { grid-template-columns: 1fr; } }

/* AstroCOIN — oś czasu „Jak przebiega zakup?” */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%);
  height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-200), var(--brand-400));
}
.tl-item { position: relative; min-height: 300px; }
.tl-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 5px #f3fbfb, 0 0 0 7px var(--brand-200); z-index: 2;
}
.tl-content { position: absolute; left: 50%; transform: translateX(-50%); width: min(100%, 240px); text-align: center; }
.tl-top .tl-content { bottom: calc(50% + 30px); }
.tl-bottom .tl-content { top: calc(50% + 30px); }
.tl-num {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); font-weight: 800; margin-bottom: .5rem;
  background: #fff;
}
.tl-content h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.tl-content p { font-size: .92rem; margin: 0; }

@media (max-width: 760px) {
  .timeline { display: block; padding-left: 1.6rem; margin-top: 1.5rem; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; transform: none; }
  .tl-item { min-height: 0; padding: .9rem 0; }
  .tl-dot { left: 7px; top: 1.7rem; transform: translate(-50%, 0); }
  .tl-content { position: static; transform: none; width: auto; text-align: left; }
  .tl-top .tl-content, .tl-bottom .tl-content { bottom: auto; top: auto; }
  .tl-num { width: 36px; height: 36px; margin-bottom: .3rem; }
}

.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; overflow:hidden; }
.faq-item summary { cursor:pointer; padding: 1.1rem 1.3rem; font-weight:600; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item[open] summary { color: var(--brand); }
.faq-item .ans { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

.site-footer {
  position: relative; overflow: hidden;
  color: #ead9f2;
  padding: 6rem 0 3.5rem; margin-top: 3rem;
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(214,150,235,.28), transparent 60%),
    radial-gradient(900px 500px at 100% 120%, rgba(120,40,160,.45), transparent 55%),
    linear-gradient(135deg, #3a153d 0%, #68296a 55%, #8a3a8d 100%);
}
.site-footer::before {
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.site-footer a { color: #f0e3f7; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-logo img { height: 36px; }
.footer-grid { display:flex; flex-wrap:wrap; justify-content:space-between; gap:3rem; position:relative; }
.footer-grid h4 { color:#fff; font-size:1.05rem; margin-bottom:.9rem; }
.footer-links { display:grid; gap:.6rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.18); margin-top:3.5rem; padding-top:2rem; font-size:.92rem; color:#c9aed6; position:relative; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { min-height: 100vh; display:grid; place-items:center; padding: 2rem 1rem; background: var(--grad-hero); }
.auth-card { width:100%; max-width: 460px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.4rem; }
.auth-card-wide { max-width: 680px; padding: clamp(2rem, 4vw, 3rem); }
.auth-card .brand-logo { justify-content:center; margin-bottom: 1.4rem; }
.auth-card h1 { font-size: 1.7rem; text-align:center; }
.auth-sub { text-align:center; color:var(--muted); margin-bottom:1.6rem; }
.auth-foot { text-align:center; margin-top:1.4rem; font-size:.92rem; color:var(--ink-soft); }

/* ============================================================
   PANEL LAYOUT (advisor + admin)
   ============================================================ */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.3rem 1rem; position: sticky; top:0; height:100vh; overflow-y:auto; }
.sidebar.admin { background: #1c1422; border-color:#2a2030; }
.sidebar .brand-logo { padding: .3rem .6rem 1.4rem; }
.sidebar.admin .brand-logo .sub { color:#d9b8e4; }
.side-nav { display:grid; gap:.2rem; }
.side-nav a { display:flex; align-items:center; gap:.7rem; padding:.7rem .85rem; border-radius: var(--radius-sm); color: var(--ink-soft); font-weight:500; }
.side-nav a:hover { background: var(--bg-tint); color:var(--brand); text-decoration:none; }
.side-nav a.is-active { background: var(--grad-brand); color:#fff; }
.side-nav a .ico { width:20px; display:inline-flex; align-items:center; justify-content:center; line-height:0; }
.side-nav a .ic { width:19px; height:19px; }
.sidebar.admin .side-nav a { color:#b6a9c4; }
.sidebar.admin .side-nav a:hover { background:#2a2030; color:#fff; }
.sidebar.admin .side-nav a.is-active { background: var(--grad-brand); color:#fff; }
.side-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:1rem .85rem .4rem; }
.sidebar.admin .side-label { color:#6f6280; }

.main { min-width:0; background: var(--bg-soft); }
.topbar { background:#fff; border-bottom:1px solid var(--line); height:70px; display:flex; align-items:center; justify-content:space-between; padding:0 1.6rem; position:sticky; top:0; z-index:30; }
.topbar .crumbs { font-weight:600; }
.topbar-right { display:flex; align-items:center; gap:1rem; }
.balance-chip { display:inline-flex; align-items:center; gap:.5em; background: var(--grad-coin); padding:.5em .9em; border-radius:999px; font-weight:700; }
.balance-chip img{ width:1.3em;height:1.3em; }
.avatar { width:38px;height:38px;border-radius:50%; background:var(--grad-brand); color:#fff; display:grid;place-items:center; font-weight:700; }
.content-area { padding: 1.8rem; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.4rem; }
.page-head h1 { font-size: 1.8rem; margin:0; }

.stat-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap:1rem; margin-bottom:1.6rem; }
.stat { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:1.3rem; }
.stat .k { color:var(--muted); font-size:.85rem; font-weight:600; text-transform:uppercase; letter-spacing:.03em; }
.stat .v { font-size:1.9rem; font-weight:800; letter-spacing:-.02em; margin-top:.2rem; }
.stat.brand { background: var(--grad-coin); border-color: transparent; }

/* products grid (advisor) */
.prod-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap:1.1rem; }
.prod-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s, transform .12s; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-thumb { aspect-ratio: 1/1; background: var(--grad-coin); display:grid; place-items:center; overflow:hidden; }
.prod-thumb img { width:100%; height:100%; object-fit:cover; }
.prod-thumb .ph { color: var(--brand-400); opacity:.55; line-height:0; }
.prod-thumb .ph .ic { width:48px; height:48px; }
.prod-body { padding: 1rem 1.1rem 1.2rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.prod-body h3 { font-size:1.05rem; margin:0; }
.prod-body .cat { color:var(--muted); font-size:.8rem; }
.prod-foot { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:.5rem; }

/* tables */
.table-wrap { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
table.data { width:100%; border-collapse:collapse; font-size:.94rem; }
table.data th, table.data td { text-align:left; padding:.85rem 1rem; border-bottom:1px solid var(--line); }
table.data th { background: var(--bg-tint); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); }
table.data tr:last-child td { border-bottom:0; }
table.data tr:hover td { background: var(--bg-soft); }
.table-scroll { overflow-x:auto; }

/* pagination */
.pagination { display:flex; gap:.4rem; margin-top:1.3rem; flex-wrap:wrap; }
.pagination a, .pagination span { padding:.5em .85em; border-radius:var(--radius-sm); border:1px solid var(--line-strong); background:#fff; font-weight:600; font-size:.9rem; }
.pagination .current { background: var(--grad-brand); color:#fff; border-color:transparent; }
.pagination a:hover { border-color: var(--brand-400); text-decoration:none; }

/* Kontakt — dane firmowe po lewej, formularz po prawej */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-meta { list-style: none; margin: 1.4rem 0 0; padding: 0; max-width: 380px; }
.contact-meta li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-meta li:last-child { border-bottom: 0; }
.contact-meta span { color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.empty { text-align:center; padding:3rem 1rem; color:var(--muted); }
.empty .ico { color:var(--brand-400); opacity:.55; margin-bottom:.6rem; line-height:0; }
.empty .ico .ic { width:46px; height:46px; }

.two-col { display:grid; grid-template-columns: 2fr 1fr; gap:1.4rem; align-items:start; }
@media (max-width: 900px){ .two-col{ grid-template-columns:1fr; } }

.divider { height:1px; background:var(--line); margin:1.2rem 0; border:0; }
.row-between { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.chips { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.chips a { padding:.45em .9em; border-radius:999px; border:1px solid var(--line-strong); font-size:.88rem; font-weight:600; color:var(--ink-soft); background:#fff; }
.chips a.is-active { background:var(--grad-brand); color:#fff; border-color:transparent; }
.chips a:hover { text-decoration:none; border-color:var(--brand-400); }

.thumb-list { display:flex; gap:.6rem; flex-wrap:wrap; }
.thumb-list .ti { position:relative; width:96px; height:96px; border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--line); }
.thumb-list .ti img { width:100%;height:100%;object-fit:cover; }

/* responsive panel */
.sidebar-backdrop { display:none; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position:fixed; left:0; top:0; width:264px; transform:translateX(-100%); transition:transform .25s ease; z-index:60; }
  .sidebar.open { transform:translateX(0); }
  .sidebar-backdrop.open { display:block; position:fixed; inset:0; background:rgba(20,12,24,.4); z-index:55; }
  .menu-toggle { display:inline-block; }
}
@media (max-width: 720px) {
  body, .site-header { background-attachment: scroll; }
  .site-header .container { padding-top: 28px; padding-bottom: 16px; }
  .brand-logo img { height: 54px; }
  .nav { display:none; }
  .nav.open { display:flex; position:absolute; top:74px; left:0; right:0; flex-direction:column; background:#fff; padding:1rem 22px; border-bottom:1px solid var(--line); gap:.8rem; }
  .menu-toggle { display:inline-block; }
  body { font-size:16px; }
}

/* prose for content pages / news */
.prose { max-width:760px; }
.prose h2 { margin-top:1.6rem; }
.prose img { border-radius: var(--radius-sm); margin: 1rem 0; }
.prose ul { padding-left:1.3rem; }
