/* www.avena.pl — wygląd wspólny (kolory marki z motywu Wix 2026-10-27: akcent #EA5823) */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/czcionki/rubik-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/czcionki/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/czcionki/rubik-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --akcent: #ea5823;
  --akcent-ciemny: #c7461a;
  --ciemny: #1d2733;
  --ciemny-2: #2a3644;
  --tekst: #1f1f1f;
  --szary: #6b6b69;
  --linia: #e3e1de;
  --tlo-jasne: #f6f5f3;
  --szer: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400;
  color: var(--tekst); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--akcent-ciemny); }
a:hover { color: var(--akcent); }
.szer { max-width: var(--szer); margin: 0 auto; padding: 0 20px; }

/* wersja testowa */
.test { background: #fff3c4; color: #5a4300; font-size: 14px; text-align: center; padding: 6px 12px; }

/* nagłówek */
.naglowek { background: var(--ciemny); color: #fff; }
.naglowek .szer { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.naglowek .logo img { height: 44px; width: auto; display: block; }
.naglowek .ue img { height: 34px; width: auto; display: block; }
.dzialy { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.dzialy a { color: #cfd6de; text-decoration: none; font-size: 14px; letter-spacing: .06em; font-weight: 500; }
.dzialy a.aktywny, .dzialy a:hover { color: #fff; }

.pasek { background: var(--ciemny-2); }
.pasek ul { list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--szer); display: flex; flex-wrap: wrap; gap: 4px 0; }
.pasek li { position: relative; }
.pasek a { display: block; color: #fff; text-decoration: none; padding: 12px 14px; font-size: 15px; }
.pasek a:hover, .pasek a.aktywny { background: var(--akcent); color: #fff; }
.pasek li ul { display: none; position: absolute; top: 100%; left: 0; z-index: 10; background: var(--ciemny-2);
  min-width: 260px; padding: 0; flex-direction: column; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.pasek li:hover > ul, .pasek li:focus-within > ul { display: flex; }

/* treść */
main { padding: 36px 0 56px; }
main h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 18px; font-weight: 700; }
main h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; margin: 34px 0 12px; font-weight: 600; }
main h3 { font-size: 20px; margin: 26px 0 10px; font-weight: 600; }
main p, main li { max-width: 78ch; }
main p img { display: block; margin: 8px 0; max-height: 560px; width: auto; }
.kafle { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 32px; }
.kafel { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--linia); border-radius: 10px; padding: 14px;
  text-decoration: none; color: var(--tekst); background: #fff; }
.kafel:hover { border-color: var(--akcent); box-shadow: 0 6px 18px rgba(0,0,0,.06); color: var(--tekst); }
.kafel img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; margin: 0; }
.kafel span { font-weight: 500; line-height: 1.35; }
main a img { border-radius: 6px; }
main table { border-collapse: collapse; width: 100%; margin: 16px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
main th, main td { border: 1px solid var(--linia); padding: 8px 12px; text-align: left; vertical-align: top; }
main th { background: var(--tlo-jasne); font-weight: 600; }
main tr:nth-child(even) td { background: #fbfaf9; }

/* film YouTube: miniatura, odtwarzacz dopiero po kliknięciu (bez ciasteczek wcześniej) */
.yt { position: relative; display: block; max-width: 720px; aspect-ratio: 16 / 9; margin: 10px 0 26px;
  background: #000; border-radius: 8px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0; opacity: .9; }
.yt .graj { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 14px;
  background: var(--akcent); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.yt:hover .graj { background: var(--akcent-ciemny); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* zachęta do kontaktu */
.kontakt-pas { background: var(--tlo-jasne); border-top: 1px solid var(--linia); padding: 34px 0; }
.kontakt-pas .szer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.kontakt-pas h2 { margin: 0 0 6px; font-size: 22px; }
.kontakt-pas p { margin: 4px 0; }
.przycisk { display: inline-block; background: var(--akcent); color: #fff !important; text-decoration: none;
  padding: 11px 22px; border-radius: 6px; font-weight: 500; margin: 6px 8px 6px 0; }
.przycisk:hover { background: var(--akcent-ciemny); }
button.przycisk { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.przycisk.jasny { background: #fff; color: var(--akcent-ciemny) !important; border: 1px solid var(--akcent); }

/* sklep */
.produkty { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 24px 0; }
.produkt-kafel { border: 1px solid var(--linia); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--tekst);
  display: flex; flex-direction: column; gap: 8px; position: relative; background: #fff; }
.produkt-kafel:hover { border-color: var(--akcent); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.produkt-kafel img { aspect-ratio: 1; object-fit: contain; width: 100%; margin: 0; }
.produkt-kafel .nazwa { font-weight: 500; line-height: 1.35; }
/* kafelek: nazwa = odnośnik do produktu na cały kafelek; przycisk „Zamów” nad nim */
.produkt-kafel a.nazwa { color: var(--tekst); text-decoration: none; }
.produkt-kafel a.nazwa::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.produkt-kafel a.nazwa:focus-visible { outline: none; }
.produkt-kafel a.nazwa:focus-visible::after { outline: 2px solid var(--akcent); outline-offset: 2px; }
.produkt-kafel .zamow { position: relative; z-index: 1; align-self: flex-start; margin: auto 0 0; }
.cena { font-size: 22px; font-weight: 700; color: var(--tekst); }
.cena small { font-size: 14px; font-weight: 400; color: var(--szary); }
.nowosc { position: absolute; top: 12px; left: 12px; background: var(--akcent); color: #fff; font-size: 12px;
  font-weight: 600; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.produkt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.produkt .dane { font-size: 15px; color: var(--szary); }
@media (max-width: 820px) { .produkt { grid-template-columns: 1fr; } }

/* stopka */
.stopka { background: var(--ciemny); color: #cfd6de; padding: 36px 0 28px; font-size: 15px; }
.stopka .szer { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.stopka a { color: #fff; }
.stopka h3 { color: #fff; font-size: 15px; letter-spacing: .06em; margin: 0 0 8px; font-weight: 600; }
.stopka p { margin: 3px 0; }
.stopka ul { list-style: none; padding: 0; margin: 0; }
.stopka li { margin: 3px 0; }
.stopka .prawa { grid-column: 1 / -1; border-top: 1px solid #3a4655; padding-top: 14px; font-size: 13px; color: #9aa6b2; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .naglowek .szer { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .dzialy { margin-left: 0; gap: 14px; width: 100%; }
  .pasek a { padding: 9px 10px; font-size: 14px; }
}

/* filmy w siatce (strona główna) */
.filmy { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 16px 0; }
.filmy figure { margin: 0; }
.filmy .yt { margin: 0 0 8px; }
.filmy figcaption { font-weight: 500; line-height: 1.35; }

/* galeria zdjęć (kontakt) */
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0; }

/* menu na telefonie: podmenu widoczne od razu (bez najeżdżania) */
@media (max-width: 820px) {
  .pasek li ul { display: flex; position: static; box-shadow: none; background: transparent; min-width: 0;
    flex-direction: row; flex-wrap: wrap; padding: 0 0 4px 8px; }
  .pasek li ul a { font-size: 13px; padding: 5px 8px; color: #cfd6de; }
  .pasek > ul { flex-direction: column; }
}

.menu-przycisk { display: none; }
@media (max-width: 820px) {
  .menu-przycisk { display: block; width: 100%; text-align: left; background: transparent; color: #fff; border: 0;
    font: inherit; font-size: 16px; font-weight: 500; padding: 12px 20px; cursor: pointer; }
  .js .pasek > ul { display: none; }
  .js .pasek.otwarte > ul { display: flex; }
}

/* baner zgody na cookies */
.zgoda-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--linia); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 14px 18px; font-size: 15px; }
.zgoda-cookies p { margin: 4px 0; }
.stopka .prawa a { color: #cfd6de; }

.cena-brutto { color: var(--szary); font-size: 15px; margin-top: -6px; }

.yt-link { display: inline-block; font-size: 14px; margin: -18px 0 18px; }
.filmy .yt-link { margin: 0 0 6px; }

/* ceny robotów w grafice (Maciek 2026-10-28): pas robotów na stronie głównej, odznaka ceny na zdjęciu, duża cena na stronie robota */
.roboty-ceny { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 4px 0 30px;
  padding: 16px; background: var(--tlo-jasne); border: 1px solid var(--linia); border-radius: 12px; }
.robot-cena { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linia); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: var(--tekst); transition: border-color .15s, box-shadow .15s; }
.robot-cena:hover { border-color: var(--akcent); box-shadow: 0 6px 18px rgba(0,0,0,.08); color: var(--tekst); }
.robot-cena-zdjecie, .kafel .kafel-zdjecie { position: relative; display: block; }
.robot-cena-zdjecie, .kafle-roboty .kafel-zdjecie { padding-bottom: 34px; }   /* pod robotem miejsce na odznakę ceny */
.robot-cena-zdjecie img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; border-radius: 0; }
.robot-cena-podpis { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px;
  padding: 10px 14px 12px; border-top: 1px solid var(--linia); }
.robot-cena-podpis b { font-size: 20px; font-weight: 700; }
.robot-cena-podpis span { font-size: 14px; color: var(--szary); }
.odznaka-ceny, .kafel .odznaka-ceny { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; align-items: flex-end;
  background: #fff; border: 2px solid var(--akcent); border-radius: 10px; padding: 5px 11px 6px; color: var(--szary);
  box-shadow: 0 4px 14px rgba(29, 39, 51, .16); line-height: 1.15; font-weight: 400; }
.odznaka-ceny small { font-size: 12px; font-weight: 500; line-height: 1.2; }
.odznaka-ceny b { color: var(--akcent); font-size: 25px; font-weight: 700; line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.kafle-roboty .kafel-zdjecie img { aspect-ratio: 1; }
.robot-gora { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". zdjecie" "naglowek zdjecie" "tekst zdjecie" ". zdjecie"; column-gap: 40px; margin-bottom: 8px; }
.robot-gora-naglowek { grid-area: naglowek; }
.robot-gora-zdjecie { grid-area: zdjecie; align-self: center; }
.robot-gora-zdjecie img { display: block; margin: 0 auto; width: auto; max-height: 460px; }
.robot-gora-tekst { grid-area: tekst; }
.robot-gora-tekst > p:first-child { margin-top: 0; }
.cena-duza { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: -4px 0 16px; color: var(--szary); font-size: 16px; }
.cena-duza b { color: var(--akcent); font-size: clamp(38px, 5vw, 54px); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; white-space: nowrap; }
.cena-duza .cena-od { font-size: 19px; font-weight: 500; color: var(--tekst); }
.cena-brutto-linia { flex-basis: 100%; font-size: 15px; color: var(--szary); }
.produkt .cena-duza { margin-top: 0; }
.cena-zestawu { color: var(--akcent); font-weight: 700; white-space: nowrap; }
@media (max-width: 820px) {
  .robot-gora { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "naglowek" "zdjecie" "tekst"; }
  .robot-gora-zdjecie img { max-height: 300px; margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .roboty-ceny { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; margin-bottom: 24px; }
  .robot-cena:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }   /* nieparzysta liczba robotów: ostatni w poprzek */
  .robot-cena:last-child:nth-child(odd) .robot-cena-zdjecie { flex: 0 0 50%; }
  .robot-cena:last-child:nth-child(odd) .robot-cena-podpis { flex-direction: column; justify-content: center; align-items: flex-start;
    border-top: 0; border-left: 1px solid var(--linia); }
  .robot-cena-podpis { padding: 8px 10px 9px; }
  .robot-cena-podpis b { font-size: 17px; }
  .robot-cena-podpis span { font-size: 12.5px; }
  .robot-cena-zdjecie, .kafle-roboty .kafel-zdjecie { padding-bottom: 56px; }
  .odznaka-ceny, .kafel .odznaka-ceny { right: 6px; bottom: 4px; padding: 3px 8px 4px; border-radius: 8px; }
  .odznaka-ceny b { font-size: 20px; }
  .odznaka-ceny small { font-size: 11px; }
  .cena-duza .cena-od { font-size: 17px; }
  .kafle.kafle-roboty { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kafle-roboty .kafel { padding: 8px; gap: 6px; }
  .kafle-roboty .kafel > span:last-child { font-size: 14px; }
}

/* menu „Zestawy”: nazwy grup w podmenu (Piotr Jordan 2026-10-30, ZAD0020) */
.pasek li.grupa > span { display: block; padding: 10px 14px 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #9aa6b2; }
.pasek li.grupa:first-child > span { padding-top: 8px; }
@media (max-width: 820px) { .pasek li.grupa { flex-basis: 100%; } .pasek li.grupa > span { padding: 6px 8px 0; font-size: 11px; } }

/* sklep: nagłówki grup produktów */
.sklep-grupa { margin-top: 38px; }

/* aktualności: lista wpisów i pas „Ostatnio u nas” na stronie głównej */
.wpis { border-top: 1px solid var(--linia); padding-top: 18px; margin-top: 28px; }
.wpis h2 { margin-top: 4px; }
.wpis-data { color: var(--szary); font-size: 14px; margin: 0; }
.wpis-zdjecia { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.wpis-zdjecia img { width: 100%; border-radius: 8px; margin: 0; }
.ostatnio { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 16px 0; }
.ostatnio-wpis { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--linia); border-radius: 10px; padding: 14px;
  text-decoration: none; color: var(--tekst); background: #fff; }
.ostatnio-wpis:hover { border-color: var(--akcent); box-shadow: 0 6px 18px rgba(0,0,0,.06); color: var(--tekst); }
.ostatnio-wpis img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin: 0 0 4px; border-radius: 6px; }
.ostatnio-wpis b { line-height: 1.3; }
.ostatnio-wpis span:last-child { font-size: 15px; color: var(--szary); }

/* poprawki po przeglądzie wyglądu 2026-10-30 (Chrome, komputer i telefon) */
a[href^="tel:"], .nw { white-space: nowrap; }
main h4 { font-size: 18px; margin: 22px 0 8px; font-weight: 600; }
main h5, main h6 { font-size: 17px; margin: 20px 0 8px; font-weight: 600; }

/* tabele szersze niż ekran: cień przy krawędzi, którą da się przewinąć; na telefonie pierwsza kolumna przyklejona */
main table { background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)), linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.2), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll; }
@media (max-width: 640px) {
  main table { font-size: 14px; }
  main th, main td { padding: 7px 9px; }
  main td:first-child, main th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--linia); }
  main th:first-child { background: var(--tlo-jasne); }
}

/* galeria produktu: zdjęcie główne w całości, reszta jako miniatury, kliknięcie = pełne zdjęcie; na telefonie przewijanie w bok */
.produkt .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; position: sticky; top: 16px; }
.produkt .galeria a { display: block; }
.produkt .galeria a:first-child { grid-column: 1 / -1; }
.produkt .galeria img { aspect-ratio: 1; object-fit: contain; border: 1px solid var(--linia); border-radius: 10px; background: #fff; }
.produkt .zadzwon { margin: 2px 0 10px; }
@media (max-width: 820px) {
  .produkt .galeria { position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .produkt .galeria a { flex: 0 0 82%; scroll-snap-align: start; }
  .produkt .galeria a:only-child { flex-basis: 100%; }
}

/* sklep na telefonie: kafelek poziomy (zdjęcie obok nazwy i ceny) */
@media (max-width: 520px) {
  .produkty { grid-template-columns: 1fr; gap: 12px; }
  .produkt-kafel { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 12px; align-items: start; }
  .produkt-kafel img { grid-row: 1 / span 4; width: 104px; }
  .produkt-kafel .cena { font-size: 19px; }
  .produkt-kafel .zamow { margin: 4px 0 0; padding: 8px 16px; }
}

/* nagłówek na telefonie: działy w jednym wierszu (bez słowa „AVENA”) */
@media (max-width: 640px) {
  .dzialy { gap: 16px; }
  .dzialy a { font-size: 13px; letter-spacing: .04em; }
  .dzial-avena { display: none; }
}

/* klasy do treści przeniesionej z Wix */
.na-ciemnym { background: var(--ciemny); border-radius: 8px; padding: 16px 20px; display: inline-block; margin: 8px 0; }
.na-ciemnym img, .na-ciemnym p img { margin: 0; }
.loga { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 16px 0; }
.loga img, .loga p img { height: 64px; width: auto; max-width: 100%; margin: 0; object-fit: contain; }
.loga p { display: contents; }
img.male, .male img { max-width: 320px; width: 100%; height: auto; }
/* pasek znaków FE/RP/UE: zawsze cały (na telefonie pomniejszony, jak w oryginale), bez przycinania */
.pasek-ue img, .pasek-ue p img { width: 100%; height: auto; max-height: none; }
.powod-bledu { background: #fff4ec; border: 1px solid var(--akcent); border-radius: 8px; padding: 12px 16px; font-weight: 500; }
.galeria img { background: var(--tlo-jasne); }
@media (max-width: 640px) { main ul, main ol { padding-left: 22px; } }
@media (max-width: 640px) { .nowosc { top: 4px; left: 4px; font-size: 10px; padding: 2px 5px; } }
