/* ============================================================
   Sklep ze sprawdzianami — jasny, prosty, przyjazny motyw
   ============================================================ */

:root {
  --bg: #f6f4ef;          /* ciepła biel */
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #2c2b29;
  --muted: #6f6b64;
  --border: #e7e2d8;
  --brand: #1f8a5b;       /* spokojna zieleń = "zaliczone" */
  --brand-dark: #17714a;
  --brand-soft: #e8f4ee;
  --accent: #e8a33d;      /* ciepły akcent, oszczędnie */
  --danger: #c0492f;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(60, 50, 30, 0.06);
  --shadow-hover: 0 2px 8px rgba(60, 50, 30, 0.12);
  --promo: #c0392b;       /* czerwień promocji / pilności */
  --promo-dark: #a5301f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

img { max-width: 100%; }

/* ---------------- Nagłówek ---------------- */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 3px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.logo b { color: var(--brand); }
.header-nav { display: flex; align-items: center; gap: 22px; font-size: 0.98rem; }
.header-nav a { color: var(--muted); font-weight: 500; }
.header-nav a:hover { color: var(--brand); }
@media (max-width: 640px) { .header-nav .hide-sm { display: none; } .header-nav { gap: 14px; } }

/* Rozwijane menu "Wybierz klasę" */
.dropdown { position: relative; }
.drop-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); border: 1px solid transparent; color: var(--brand);
  font-family: inherit; font-size: 0.98rem; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 3px;
}
.drop-toggle:hover { background: #dcefe4; }
.drop-toggle .caret { font-size: 0.75rem; transition: transform 0.15s ease; }
.dropdown.open .drop-toggle,
.dropdown:hover .drop-toggle { border-color: var(--brand); }
.dropdown.open .drop-toggle .caret,
.dropdown:hover .drop-toggle .caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  box-shadow: var(--shadow-hover); padding: 8px; display: none; z-index: 40;
}
/* mostek zakrywający odstęp, żeby najechanie nie gubiło menu */
.dropdown::after { content: ""; position: absolute; top: 100%; right: 0; width: 190px; height: 12px; }
.dropdown.open .drop-menu,
.dropdown:hover .drop-menu { display: block; }
.drop-menu a { display: block; padding: 11px 14px; border-radius: 3px; color: var(--text); font-weight: 600; }
.drop-menu a:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------------- Przyciski ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: none;
  padding: 14px 26px; border-radius: 3px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.98); }
.btn.big { padding: 16px 32px; font-size: 1.15rem; }
.btn.small { padding: 10px 18px; font-size: 0.98rem; border-radius: 3px; }
.btn.secondary { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); }
.btn.disabled, .btn:disabled {
  background: #e3ded4; color: #9a958c; cursor: default;
}
.btn.disabled:hover, .btn:disabled:hover { background: #e3ded4; }

/* ---------------- Pasek promocji z licznikiem ---------------- */
.promo-bar {
  background: var(--promo); color: #fff; text-align: center;
  font-size: 0.95rem; font-weight: 600; padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.promo-bar .pb-strong { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.pb-timer {
  font-variant-numeric: tabular-nums; font-weight: 800;
  background: rgba(0, 0, 0, 0.22); padding: 3px 10px; border-radius: 3px; letter-spacing: 0.03em;
}
@media (max-width: 520px) { .promo-bar { font-size: 0.85rem; padding: 7px 10px; gap: 6px; } }

/* ---------------- Ceny promocyjne ---------------- */
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 0.9em; margin-right: 6px; }
.price-now { color: var(--promo); font-weight: 800; }
.badge-sale {
  display: inline-block; background: var(--promo); color: #fff; font-weight: 800;
  font-size: 0.72rem; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.02em;
}
.cover-sale {
  position: absolute; top: 8px; left: 8px; background: var(--promo); color: #fff;
  font-weight: 800; font-size: 0.8rem; padding: 3px 8px; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ---------------- Logo płatności ---------------- */
.pay-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-logos img {
  height: 30px; width: auto; background: #fff; border: 1px solid var(--border);
  border-radius: 3px; padding: 4px 7px; display: block;
}
.pay-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; color: var(--muted); font-size: 0.9rem; }

/* ---------------- Strona główna: hero ---------------- */
.hero {
  background-color: var(--brand-soft);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(246, 244, 239, 0.90) 70%, var(--bg) 100%),
    url('/img/hero-web.jpg');
  background-size: cover; background-position: center 42%;
  padding: 60px 0 32px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2.5rem; letter-spacing: -0.03em; margin: 0 0 14px; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.hero p.lead { font-size: 1.2rem; color: #4a463f; margin: 0 auto 26px; max-width: 620px; font-weight: 500; }

/* ---------------- Sekcje ---------------- */
.section { padding: 48px 0; }
#klasy { padding-top: 34px; }
.section h2 { font-size: 1.7rem; text-align: center; margin: 0 0 6px; letter-spacing: -0.02em; }
.section .sub { text-align: center; color: var(--muted); margin: 0 0 32px; }

/* Kafelki klas */
.class-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.class-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding-bottom: 18px; text-align: center; box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.class-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.class-illu { width: 100%; height: auto; display: block; }
.class-tile .label { font-size: 1.1rem; font-weight: 700; margin-top: 14px; }
.class-tile .count { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }

/* Jak to działa */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.step .circle {
  width: 54px; height: 54px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pasek zaufania */
.trust {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; padding: 24px 20px; }
.trust .item { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 0.98rem; }
.trust .item .ic { color: var(--brand); font-size: 1.3rem; }

/* ---------------- Opinie rodziców ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 22px; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column;
}
.review .stars { color: #e8a33d; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 16px; padding: 0; color: var(--text); font-size: 1rem; line-height: 1.55; }
.review .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review .av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex: 0 0 40px;
}
.review .who .n { font-weight: 700; font-size: 0.95rem; display: block; }
.review .who .c { color: var(--muted); font-size: 0.85rem; display: block; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { padding: 20px 0 4px; color: var(--muted); font-size: 0.95rem; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

/* Nagłówek strony klasy */
.page-head { padding: 12px 0 8px; }
.page-head h1 { font-size: 2rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------------- Układ sklepu: pasek boczny + produkty ---------------- */
.shop-layout {
  display: grid; grid-template-columns: 262px 1fr; gap: 28px;
  align-items: start; padding: 8px 0 32px;
}
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.sidebar-title {
  margin: 0 0 10px; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); font-weight: 700;
}
.subject-nav { display: flex; flex-direction: column; gap: 2px; }
.subject-link {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 3px; color: var(--text); font-weight: 600; font-size: 0.98rem;
}
.subject-link:hover { background: var(--surface-2); }
.subject-link.active { background: var(--brand); color: #fff; }
.subject-link .cnt {
  font-size: 0.8rem; color: var(--muted); background: var(--bg);
  border-radius: 3px; padding: 1px 9px; min-width: 26px; text-align: center;
}
.subject-link.active .cnt { color: #fff; background: rgba(255, 255, 255, 0.25); }
.class-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.class-pill {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.class-pill:hover { border-color: var(--brand); color: var(--brand); }
.class-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.shop-main { min-width: 0; }
.sh-count { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { position: static; flex-direction: column; }
  .subject-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .subject-link { background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: 8px 14px; }
  .subject-link .cnt { background: transparent; padding: 0 0 0 4px; min-width: 0; }
}

/* Filtr przedmiotów (starszy wariant, nieużywany) */
.subject-filter {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0;
  position: sticky; top: 72px; background: var(--bg); z-index: 10;
}
.chip {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 9px 18px; font-size: 0.98rem; cursor: pointer; font-family: inherit;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Nagłówek przedmiotu */
.subject-head {
  font-size: 1.25rem; margin: 32px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft); color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.subject-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* ---------------- Siatka produktów ---------------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-link { display: block; flex: 1; }
.card-text { padding: 14px 16px 6px; }
.card .subject-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 3px; padding: 3px 9px; margin-bottom: 10px;
}
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; color: var(--text); }

/* Okładka produktu (kolor wydawnictwa + ikona przedmiotu) */
.cover {
  position: relative; aspect-ratio: 3 / 2;
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.14));
  background-color: var(--cov);
  display: flex; align-items: center; justify-content: center;
}
.cover-emoji { font-size: 2.7rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.cover-pub {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, 0.24); padding: 2px 9px; border-radius: 3px; letter-spacing: 0.02em;
}
.cover.big {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  box-shadow: var(--shadow); align-self: start;
}
.cover.big .cover-emoji { font-size: 5.5rem; }
.cover.big .cover-pub { font-size: 0.95rem; bottom: 14px; right: 14px; padding: 5px 15px; }
.card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 18px; gap: 10px;
}
.card .price { font-weight: 800; font-size: 1.15rem; color: var(--text); }

/* ---------------- Strona produktu ---------------- */
.product {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px;
  padding: 24px 0 56px; align-items: start;
}
.product .media {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-soft), #fff);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.product .badge {
  display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 3px; padding: 5px 14px; margin-bottom: 14px;
}
.product h1 { margin: 0 0 10px; font-size: 1.9rem; letter-spacing: -0.02em; }
.product .price-big { font-size: 1.9rem; font-weight: 800; margin: 6px 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product .price-big .price-old { font-size: 1.3rem; }
.product .promo-hint { color: var(--promo); font-weight: 600; font-size: 0.98rem; margin: 0 0 20px; }
.product .description { color: var(--muted); margin-bottom: 24px; font-size: 1.05rem; }
.product .assurance { list-style: none; padding: 0; margin: 22px 0 0; color: var(--text); }
.product .assurance li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.product .assurance .ic { color: var(--brand); font-weight: 800; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 24px; } .product .media { aspect-ratio: 16/10; font-size: 3.5rem; } }

.back { display: inline-block; margin: 8px 0 0; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--brand); }

/* ---------------- Komunikaty / stany ---------------- */
.state { text-align: center; padding: 60px 20px; color: var(--muted); }
.notice {
  max-width: 520px; margin: 64px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow);
}
.notice .icon { font-size: 3.2rem; margin-bottom: 12px; }
.notice h1 { margin: 0 0 10px; font-size: 1.6rem; }
.notice p { color: var(--muted); margin: 0 0 24px; }

/* ---------------- Stopka ---------------- */
footer.site {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: 40px; padding: 40px 0 28px;
}
footer.site .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer.site .col h4 { margin: 0 0 12px; font-size: 1rem; }
footer.site .col a, footer.site .col p { display: block; color: var(--muted); font-size: 0.95rem; margin: 6px 0; }
footer.site .col a:hover { color: var(--brand); }
footer.site .bottom {
  border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px;
  color: var(--muted); font-size: 0.9rem; text-align: center;
}

/* ---------------- Poradnik / blog ---------------- */
.post { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.post-hero { padding: 8px 0 4px; }
.post-hero .kicker { color: var(--brand); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.post h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 12px; }
.post .lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 8px; }
.post .meta-row { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.post-body { font-size: 1.08rem; }
.post-body h2 { font-size: 1.5rem; margin: 34px 0 12px; letter-spacing: -0.01em; }
.post-body h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--brand); }
.post-body strong { font-weight: 700; }
.post-body table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 0.98rem; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--brand-soft); }
.post-body .toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 16px 20px; margin: 0 0 26px;
}
.post-body .toc h4 { margin: 0 0 8px; font-size: 0.95rem; }
.post-body .toc a { display: block; padding: 3px 0; }

/* Ramka produktów w artykule */
.prod-inline {
  list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 8px;
}
.prod-inline a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 16px; text-decoration: none; color: var(--text);
}
.prod-inline a:hover { border-color: var(--brand); }
.prod-inline .p-name { font-weight: 600; }
.prod-inline .p-price { color: var(--brand-dark); font-weight: 700; white-space: nowrap; }

/* CTA box */
.cta-box {
  background: var(--brand-soft); border: 1px solid #cfe7db; border-radius: var(--radius);
  padding: 24px 26px; margin: 30px 0; text-align: center;
}
.cta-box h3 { margin: 0 0 6px; font-size: 1.3rem; }
.cta-box p { margin: 0 0 16px; color: var(--muted); }

/* FAQ */
.faq { margin: 34px 0 8px; }
.faq h2 { font-size: 1.5rem; margin-bottom: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Powiązane artykuły */
.related { margin: 40px 0 8px; }
.related h2 { font-size: 1.4rem; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 16px 18px; color: var(--text); font-weight: 600; box-shadow: var(--shadow);
}
.related-grid a:hover { border-color: var(--brand); color: var(--brand-dark); }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* Pillar page (hub) */
.pillar-hero { text-align: center; padding: 12px 0 8px; }
.pillar-hero h1 { font-size: 2.3rem; letter-spacing: -0.02em; margin: 0 0 10px; }
.pillar-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 8px; }
.cluster { margin: 40px 0; }
.cluster h2 { font-size: 1.5rem; margin: 0 0 4px; }
.cluster .c-sub { color: var(--muted); margin: 0 0 16px; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-grid a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 16px 18px; color: var(--text); font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.link-grid a:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.link-grid a .ic { font-size: 1.2rem; }
@media (max-width: 860px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .link-grid { grid-template-columns: 1fr; } }

/* ---------------- Powiadomienia "social proof" ---------------- */
.sp-toast {
  position: fixed; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  max-width: 350px; padding: 14px 40px 14px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; box-shadow: var(--shadow-hover);
  transform: translateY(160%); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.45s ease;
}
.sp-toast.sp-left { left: 20px; }
.sp-toast.sp-right { right: 20px; }
.sp-toast.sp-show { transform: translateY(0); opacity: 1; }
.sp-avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
}
.sp-body { min-width: 0; }
.sp-line { font-size: 0.92rem; line-height: 1.35; }
.sp-line strong { font-weight: 700; }
.sp-city { color: var(--muted); font-size: 0.82rem; }
.sp-msg { color: var(--text); margin: 2px 0; }
.sp-time { font-size: 0.76rem; color: var(--brand); font-weight: 600; }
.sp-close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.sp-close:hover { color: var(--text); }
@media (max-width: 640px) {
  .sp-toast, .sp-toast.sp-left, .sp-toast.sp-right { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
