/* =====================================================================
   brat.pl – wygląd 2026 (spójny z terminybrat.pl)
   Bez Materialize/jQuery: lekki, mobile-first.
   ===================================================================== */

:root {
    --bg: #f6f3ef;
    --surface: #ffffff;
    --ink: #1f1c1a;
    --ink-2: #4a4542;
    --muted: #7a736d;
    --line: #e8e2db;
    --line-strong: #d6cec5;

    --brand: #b14243;
    --brand-dark: #8e2f33;
    --brand-soft: #f9ecea;

    --green: #2f6b3a;
    --green-dark: #24542d;
    --green-soft: #e9f3ea;

    --ok: #1e6b3e;
    --ok-bg: #e5f4ea;
    --warn: #8a4b00;
    --warn-bg: #fff2d9;

    --footer: #2b2724;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(31, 28, 26, .05), 0 4px 16px rgba(31, 28, 26, .05);
    --shadow-lift: 0 2px 4px rgba(31, 28, 26, .06), 0 10px 28px rgba(31, 28, 26, .09);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

    --gutter: 16px;
    --max: 1160px;
    --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* Ikony Material Icons z własnego serwera (bez Google Fonts) – licencja Apache 2.0, fonts/LICENSE-material-icons.txt */
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../fonts/material-icons.woff2") format("woff2"), url("../fonts/material-icons.woff") format("woff");
}
.material-icons {
    font-family: "Material Icons";
    font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "liga";
    font-size: 1.25em; vertical-align: -.2em; line-height: 1; user-select: none;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid rgba(177, 66, 67, .45); outline-offset: 2px; }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border-radius: 999px; border: 1px solid transparent;
    background: var(--brand); color: #fff;
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { background: var(--bg); color: var(--ink); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }

/* ---------- Nagłówek ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 8px 12px; border-radius: 999px;
    color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }
.main-nav a.nav-shop { background: var(--brand); color: #fff; margin-left: 6px; }
.main-nav a.nav-shop:hover { background: var(--brand-dark); }

.menu-toggle {
    margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; cursor: pointer;
}
.menu-toggle .material-icons { font-size: 26px; }

@media (min-width: 960px) {
    .main-nav { display: block; }
    .menu-toggle { display: none; }
}

/* menu mobilne */
.mobile-menu {
    position: fixed; inset: 0; z-index: 60; background: #fff;
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .25s ease;
    visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-menu-head img { height: 40px; width: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px var(--gutter); }
.mobile-menu li a {
    display: flex; align-items: center; gap: 12px; padding: 14px 6px;
    font-size: 1.15rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu li a .material-icons { color: var(--brand); }
.mobile-menu .btn { margin: 12px var(--gutter); }

/* ---------- Pasek korzyści ---------- */
.benefits { background: #fff; border-bottom: 1px solid var(--line); }
.benefits ul {
    list-style: none; margin: 0; padding: 10px 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px;
}
.benefits li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.benefits .material-icons { color: var(--green); font-size: 20px; }
@media (min-width: 760px) {
    .benefits ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* ---------- Hero (strona główna) ---------- */
.hero {
    position: relative; color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 16, 14, .55), rgba(20, 16, 14, .62)),
        url("../img/background.jpg") center / cover no-repeat;
}
.hero .wrap { padding-top: 48px; padding-bottom: 44px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 strong { color: var(--brand); text-shadow: 0 0 1px rgba(255, 255, 255, .35), 0 2px 14px rgba(255, 255, 255, .18); }
.hero .lead { font-size: 1.1rem; max-width: 52ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    padding: 4px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 14px;
}
@media (min-width: 760px) {
    .hero .wrap { padding-top: 80px; padding-bottom: 76px; }
}

/* ---------- Wyszukiwarka produktów ---------- */
.search-box {
    margin-top: 22px; background: #fff; color: var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow-lift);
    padding: 6px; display: flex; gap: 6px; max-width: 640px;
}
.search-box label { display: flex; align-items: center; flex: 1; gap: 8px; padding-left: 10px; min-width: 0; }
.search-box .btn { flex-shrink: 0; padding-left: 16px; padding-right: 16px; }
.search-box .material-icons { color: var(--muted); }
.search-box input {
    flex: 1; border: 0; outline: 0; min-height: 44px; font-size: 1rem; background: transparent; min-width: 0;
}
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-hint { font-size: .85rem; color: rgba(255, 255, 255, .85); margin-top: 8px; }
.search-hint a { color: #fff; }

.search-results { background: var(--bg); }
.search-results[hidden] { display: none; }
.search-results .wrap { padding-top: 22px; padding-bottom: 26px; }
.search-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.search-results-head h2 { font-size: 1.2rem; margin: 0; }
.search-status { color: var(--muted); font-size: .92rem; }

/* ---------- Sekcje ---------- */
.section { padding: 44px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--green); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-center { text-align: center; }
.section-center .section-head { justify-content: center; text-align: center; }
@media (min-width: 760px) { .section { padding: 64px 0; } }

.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 6px;
}

/* ---------- Karty ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* kategorie */
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: inherit; }
.cat-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cat-card .cat-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.cat-card .more { color: var(--brand-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* zakładki */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs button {
    border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer;
    font-weight: 600; color: var(--ink-2);
}
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }

/* produkty */
.products {
    display: grid; gap: 12px;
    grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.products > * { scroll-snap-align: start; }
@media (min-width: 640px) { .products { grid-auto-columns: 40%; } }
@media (min-width: 960px) {
    .products { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
}
.products.products-list { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }
@media (min-width: 640px) { .products.products-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .products.products-list { grid-template-columns: repeat(3, 1fr); } }

.product { display: flex; flex-direction: column; }
.product-img {
    aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--line); padding: 12px;
}
.product-img img { max-height: 100%; width: auto; object-fit: contain; }
.product-img .material-icons { font-size: 48px; color: var(--line-strong); }
.product-img { position: relative; }
.tag-best {
    display: inline-flex; align-items: center; gap: 3px; align-self: flex-start;
    background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
}
.product-img .tag-best { position: absolute; top: 8px; left: 8px; }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.product-name:hover { color: var(--brand-dark); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.price { font-weight: 700; font-size: 1.1rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-no { background: #f1ece6; color: var(--muted); }
.product-links { display: flex; gap: 6px; flex-wrap: wrap; }
.product-links a { font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.product-links a.link-terms { color: var(--green); }

.product-list-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; align-items: center; }
.product-list-item .product-img { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
.product-list-item .product-body { padding: 0; }

.skeleton { background: linear-gradient(90deg, #efe9e3 25%, #f6f2ee 50%, #efe9e3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 260px; }
@keyframes sk { to { background-position: -200% 0; } }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px dashed var(--line-strong); color: var(--ink-2); }

/* ---------- Dlaczego warto ---------- */
.features { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 18px; }
.feature .material-icons {
    font-size: 26px; color: var(--brand); background: var(--brand-soft);
    width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- O nas (skrót) ---------- */
.about { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.facts strong { display: block; font-size: 1.35rem; color: var(--brand-dark); line-height: 1.1; }
.facts span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Blog / inspiracje ---------- */
.post { padding: 18px; display: flex; flex-direction: column; }
.post h3 { margin-bottom: 6px; }
.post p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.post a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.social a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.social img { width: 36px; height: 36px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "expand_more"; font-family: "Material Icons"; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); font-size: 24px; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq details > *:not(summary) { margin: 0 16px 14px; color: var(--ink-2); }
.faq ul { padding-left: 20px; }
.faq-note { color: var(--muted); font-size: .92rem; margin-top: 14px; }

/* ---------- Podstrony ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 34px; padding-bottom: 30px; }
.page-hero p { color: var(--ink-2); max-width: 64ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }

.prose { max-width: 860px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: var(--bg); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Sklepy ---------- */
.store { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .store { grid-template-columns: 220px 1fr; } }
.store-photo { position: relative; background: var(--bg); min-height: 160px; }
.store-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
@media (min-width: 700px) { .store-photo img { aspect-ratio: auto; position: absolute; inset: 0; } }
.store-body { padding: 16px 18px 18px; }
.store-type { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.store-type.main { color: var(--brand); }
.store h3 { margin: 4px 0 6px; }
.hours { list-style: none; padding: 0; margin: 8px 0 12px; font-size: .93rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted var(--line); max-width: 300px; }
.open-state { font-size: .82rem; font-weight: 700; }
.open-state.is-open { color: var(--ok); }
.open-state.is-closed { color: var(--brand-dark); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 18px 20px; }
.contact-card h2, .contact-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.contact-card h2 .material-icons, .contact-card h3 .material-icons { color: var(--brand); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv li:last-child { border-bottom: 0; }
.kv .k { display: block; font-size: .85rem; color: var(--muted); }
.kv .v { font-weight: 600; text-decoration: none; }

/* ---------- Kopiowanie ---------- */
.copy {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
    background: var(--bg); border-radius: 8px; padding: 3px 4px 3px 9px; cursor: pointer;
    font-family: var(--mono); font-size: .92rem; color: var(--ink);
}
.copy:hover { border-color: var(--line-strong); background: #fff; }
.copy .material-icons { font-size: 16px; color: var(--muted); }
.copy.copied { border-color: var(--ok); background: var(--ok-bg); }
.copy.copied .material-icons { color: var(--ok); }

.toast {
    position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .92rem;
    transition: opacity .2s, transform .2s; z-index: 90; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--footer); color: #e9e4de; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 20px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: .93rem; color: #cfc8c0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .85rem; color: #a9a199; }
.footer-bottom a { color: #cfc8c0; }
.link-btn { background: none; border: 0; padding: 0; color: #cfc8c0; text-decoration: underline; cursor: pointer; font-size: .85rem; }
.select-all { user-select: all; font-family: var(--mono); }

/* ---------- Pomocnicze ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

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

/* ---------- Oferty pracy (pliki HTML w templates/oferty/aktywne) ---------- */
.job { padding: 18px 20px; }
.job .panel-heading h4, .job .panel-title { font-size: 1.15rem; margin: 0 0 6px; }
.job h5 { font-size: 1rem; color: var(--brand-dark); margin: 0 0 8px; }
.job hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.job ul { padding-left: 20px; }
.job p, .job li { font-size: .95rem; }

/* ---------- Polityka prywatności (długi tekst) ---------- */
.legal-page .container, .legal-page { max-width: 860px; }
.legal-toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; }
.legal-toc ol, .legal-toc ul { margin: 6px 0 0; padding-left: 20px; }
.legal-toc-note { color: var(--muted); font-size: .9rem; }

/* ---------- Nagroda (O nas) ---------- */
.award { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff8e6; border-color: #f1dfa8; }
.award > .material-icons { font-size: 40px; color: #b8860b; flex-shrink: 0; }
.award strong { font-size: 1.05rem; }

/* Atrybut hidden ma pierwszeństwo przed display z klas (np. .tabs) */
[hidden] { display: none !important; }


/* ---------- Hero: tekst z lewej, logo z prawej ---------- */
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-brand { display: none; }
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; }
    .hero-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
}
.hero-logo {
    background: rgba(255, 255, 255, .94); border-radius: 22px; padding: 26px 34px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .28); width: 100%; max-width: 360px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo img { width: 100%; max-width: 290px; height: auto; }
.hero-award {
    display: flex; gap: 10px; align-items: center; max-width: 360px;
    background: rgba(20, 16, 14, .45); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px; padding: 10px 14px; font-size: .85rem; line-height: 1.35; color: rgba(255, 255, 255, .92);
}
.hero-award .material-icons { color: #f2c14e; font-size: 28px; }

/* ---------- Stronicowanie wyników wyszukiwania ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: .92rem; min-width: 120px; text-align: center; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Polecane: cała karta jest linkiem do sklepu ---------- */
a.product { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.product:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: inherit; }
a.product:hover .product-name { color: var(--brand-dark); }

/* ---------- Kafelki oferty: Promocje / Nowości (bez zdjęcia) ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: .8fr 1fr 1fr 1fr .8fr; } }
.cat-card.cat-special { justify-content: space-between; color: #fff; border: 0; min-height: 220px; }
.cat-card.cat-special .cat-body { justify-content: center; }
.cat-card.cat-special p { color: rgba(255, 255, 255, .9); flex: 0; }
.cat-card.cat-special .more { color: #fff; }
.cat-card.cat-special .cat-icon { font-size: 44px; margin-bottom: 8px; color: rgba(255, 255, 255, .95); }
.cat-promo { background: linear-gradient(150deg, #c4504f, var(--brand-dark)); }
.cat-new { background: linear-gradient(150deg, #3d8048, var(--green-dark)); }
@media (min-width: 640px) and (max-width: 999px) { .cat-grid > .cat-special { grid-column: span 1; } }

/* ---------- Sklepy: karty obok siebie ---------- */
.stores-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stores-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .stores-grid { grid-template-columns: repeat(3, 1fr); } }
.store-card { display: flex; flex-direction: column; }
.store-card .store-photo { display: block; min-height: 0; }
.store-card .store-photo img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; position: static; }
.store-card .store-body { display: flex; flex-direction: column; flex: 1; }
.store-card .hours { max-width: none; }
.store-card .hours li { max-width: none; }
.store-card .store-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.store-partner-cta { border: 2px dashed var(--line-strong); background: transparent; box-shadow: none; justify-content: center; text-align: center; padding: 22px; }
.store-partner-cta .material-icons.big { font-size: 44px; color: var(--brand); }
.cat-card.cat-special .more { white-space: nowrap; font-size: .95rem; }
@media (max-width: 999px) { .cat-card.cat-special { min-height: 0; } }

/* ---------- Runda 3 ---------- */
/* Odznaka "Ponad 20 lat": na telefonie nad nagłówkiem, na komputerze pod logo */
.hero-badge-desktop { display: none; }
@media (min-width: 960px) {
    .hero-badge-mobile { display: none; }
    .hero-badge-desktop { display: inline-flex; margin: 0; font-size: .92rem; padding: 6px 14px; background: rgba(20, 16, 14, .4); }
}
/* Wyniki wyszukiwania: cała karta jest linkiem */
a.product-list-item { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.product-list-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: inherit; }
a.product-list-item:hover .product-name { color: var(--brand-dark); }
/* Sklepy: godziny i przyciski wyrównane w jednej linii niezależnie od długości adresu */
.store-card .store-head { flex: 1; }
.store-card .hours { margin-top: 4px; }
/* Kontakt: prośba o umówienie wizyty */
.note-visit { display: flex; gap: 10px; align-items: flex-start; background: var(--green-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; color: var(--ink-2); }
.note-visit .material-icons { color: var(--green); font-size: 20px; margin-top: 1px; }

/* ---------- Hero na telefonie: małe logo nad treścią, wszystko wyśrodkowane ---------- */
@media (max-width: 959px) {
    .hero .wrap { padding-top: 28px; }
    .hero-grid { gap: 14px; }
    .hero-brand { display: flex; justify-content: center; order: -1; }
    .hero-brand .hero-badge-desktop { display: none; }
    .hero-logo { max-width: 190px; padding: 12px 18px; border-radius: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
    .hero-logo img { max-width: 150px; }
    .hero-text { text-align: center; }
    .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero .search-hint { text-align: center; }
}
