/* ds-aranzacje.css v1.0 — galerie aranżacji decorsystem.com.pl (szablon listy „Trzy kolumny małe zdjęcie”).
   Wszystko pod html.insp — klasę dopisuje szablon, więc inne listy sklepu nie są ruszane.
   Bez JS: nagłówek, „Czytaj więcej”, rząd pomieszczeń, mozaika i numery stron to czysty HTML + CSS.
   Z JS (ds-aranzacje.js): kolory, wyszukiwarka, „Produkty” na zdjęciu, „Pokaż więcej”.
   Układ: lewa kolumna znika; boczne menu kategorii staje się rzędem miniatur pomieszczeń (albo zakładek),
   lista to mozaika z dużym zdjęciem co kilka pozycji.
   Kolory sklepu: tekst #191919, niebieski #486AB7, granat #2C3D69, tło #F0F5FF, linie #DFE4E8, pomarańcz #ff6000. */

html.insp { --i-ink: #191919; --i-mute: #5F6B75; --i-line: #DFE4E8; --i-bg: #F0F5FF; --i-acc: #486AB7; --i-navy: #2C3D69; --i-cta: #ff6000; }

.insp-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; opacity: 0; }
html.insp .insp-list, html.insp .insp-list *, html.insp .insp-head, html.insp .insp-head *, html.insp #main-menu, html.insp #main-menu * { box-sizing: border-box; }

/* ── układ strony: jedna kolumna, kolejność przez „order” ───────────────────────────── */
html.insp .container-max-default > .container-max { display: flex; flex-direction: column; }
html.insp .container-max-default > .container-max::before, html.insp .container-max-default > .container-max::after { content: none; }
html.insp .container-main, html.insp .container-main > article { display: contents; }
html.insp .container-main > *, html.insp .container-main > article > * { order: 5; }
html.insp .container-main > article > .insp-head { order: 1; }
html.insp .container-main > article > .insp-list { order: 4; }
/* lewa kolumna „rozpuszczona”: menu kategorii idzie pod nagłówek (rząd pomieszczeń), „Ostatnio oglądane” na dół */
html.insp .container-side { display: contents; }
html.insp .container-side > * { order: 6; }
html.insp .container-side > #main-menu { order: 2; }
/* lewa kolumna jest w HTML przed treścią — chowamy ją, dopóki nagłówek się nie wczyta, żeby nic nie przeskakiwało */
html.insp .container-max:not(:has(.insp-head)) > .container-side { display: none; }

/* ── nagłówek ───────────────────────────────────────────────────────────────────────── */
html.insp .insp-head { width: 100%; margin: 6px 0 24px; padding: 0; text-align: center; color: var(--i-ink); }
html.insp .insp-nad { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--i-acc); }
html.insp .insp-head h1.insp-h1 { margin: 4px 0 0; padding: 0; font-size: 28px; line-height: 1.25; font-weight: 700; text-transform: none; color: var(--i-ink); text-wrap: balance; }
html.insp .insp-desc { max-width: 760px; max-height: 44px; margin: 8px auto 0; overflow: hidden; font-size: 14px; line-height: 22px; color: var(--i-mute); -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
html.insp .insp-desc * { font-size: inherit !important; line-height: inherit !important; }
html.insp .insp-desc div { max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
html.insp .insp-desc p { margin: 0 0 10px; }
html.insp .insp-desc strong { font-weight: 700; }
html.insp .insp-desc a { color: var(--i-acc); text-decoration: underline; }
html.insp .insp-desc img, html.insp .insp-desc picture, html.insp .insp-desc .category-promo-banner, html.insp .insp-desc p:empty, html.insp .insp-desc p:has(img) { display: none; }
html.insp .insp-more:checked + .insp-desc { max-height: none; -webkit-mask-image: none; mask-image: none; text-align: left; }
html.insp .insp-more__l { display: inline-block; margin: 6px 0 0; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--i-acc); cursor: pointer; }
html.insp .insp-more__l:hover { text-decoration: underline; text-underline-offset: 3px; }
html.insp .insp-more__l span + span, html.insp .insp-more:checked ~ .insp-more__l span:first-child { display: none; }
html.insp .insp-more:checked ~ .insp-more__l span + span { display: inline; }
html.insp .insp-more:focus-visible ~ .insp-more__l { outline: 2px solid var(--i-acc); outline-offset: 3px; }

/* ── pomieszczenia = boczne menu kategorii, przerobione na jeden rząd ────────────────── */
html.insp #main-menu { display: none; position: relative; float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html.insp #main-menu > span { display: block; }
html.insp #main-menu > span > * { display: none; }
html.insp #main-menu ul { margin: 0; padding: 0; font-size: inherit; list-style: none; }
html.insp #main-menu li { margin: 0; padding: 0; border: 0; background: none; }
html.insp #main-menu a, html.insp #main-menu a .name { background: none !important; }
html.insp #main-menu .image { display: none; }
html.insp #main-menu .categories > li { display: none; }

/* A) drzewko „Gotowe aranżacje” (c245): miniatury ze zdjęciem i podpisem.
      Nowe drzewko galerii z miniaturami = dopisać jego numer obok c245. */
html.insp #main-menu:has(.categories > li.active > a[href*=",c245."]),
html.insp #main-menu:has(.categories > li.activeSubcategory > a[href*=",c245."]) { display: block; }
html.insp #main-menu .categories:has(> li.active > a[href*=",c245."]),
html.insp #main-menu .categories:has(> li.activeSubcategory > a[href*=",c245."]) { display: block; }
html.insp #main-menu .categories > li.active:has(> a[href*=",c245."]),
html.insp #main-menu .categories > li.activeSubcategory:has(> a[href*=",c245."]) { display: flex; gap: 0 16px; padding: 4px 4px 2px; overflow-x: auto; scrollbar-width: none; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."])::-webkit-scrollbar { display: none; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."])::before,
html.insp #main-menu .categories > li:has(> a[href*=",c245."])::after { content: ""; margin: auto; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li { display: contents; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > a { display: block; flex: none; width: 116px; margin: 0; padding: 0; font-size: 13px; line-height: 1.3; font-weight: 400; text-align: center; color: var(--i-ink); text-decoration: none; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a::before,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > a::before { content: ""; display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 5px; background-color: var(--i-bg); background-position: center; background-size: cover; background-repeat: no-repeat; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, opacity .2s; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) a:hover { color: var(--i-acc); }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) a:hover::before { opacity: .85; }
/* link drzewka („Gotowe aranżacje”) to miniatura „Wszystkie” */
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a .name { display: block; padding: 0; font-size: 0; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a .name::before { content: "Wszystkie"; font-size: 13px; }
html.insp #main-menu .categories > li.active:has(> a[href*=",c245."]) > a,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li.active > a,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li.activeSubcategory > a { font-weight: 700; }
html.insp #main-menu .categories > li.active:has(> a[href*=",c245."]) > a::before,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li.active > a::before,
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li.activeSubcategory > a::before { outline-color: var(--i-acc); }
/* zdjęcia miniatur — nowe pomieszczenie = jedna linijka tutaj + plik 224×168 w /img/insp/ */
html.insp #main-menu a[href*=",c245."]::before { background-image: url(/img/insp/wszystkie.webp); }
html.insp #main-menu a[href*=",c304."]::before { background-image: url(/img/insp/salon.webp); }
html.insp #main-menu a[href*=",c305."]::before { background-image: url(/img/insp/sypialnia.webp); }
html.insp #main-menu a[href*=",c308."]::before { background-image: url(/img/insp/przedpokoj.webp); }
html.insp #main-menu a[href*=",c307."]::before { background-image: url(/img/insp/kuchnia.webp); }
html.insp #main-menu a[href*=",c315."]::before { background-image: url(/img/insp/biuro.webp); }
html.insp #main-menu a[href*=",c306."]::before { background-image: url(/img/insp/lazienka.webp); }
html.insp #main-menu a[href*=",c486."]::before { background-image: url(/img/insp/pokoj-dziecka.webp); }
html.insp #main-menu a[href*=",c537."]::before { background-image: url(/img/insp/schody.webp); }
html.insp #main-menu a[href*=",c677."]::before { background-image: url(/img/insp/lokale-uslugowe.webp); }
/* trzeci poziom (np. Salon: mały / średni / duży) — rząd przycisków pod miniaturami */
html.insp #main-menu:has(.categories > li > a[href*=",c245."] + ul > li > ul) { padding-bottom: 58px; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; margin: 0; overflow-x: auto; scrollbar-width: none; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul > li { display: block; flex: none; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul a { display: flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--i-line); border-radius: 5px; background: #fff !important; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--i-ink); text-decoration: none; transition: border-color .2s, color .2s; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul a:hover { border-color: var(--i-acc); color: var(--i-acc); }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul li.active > a { border-color: var(--i-acc); background: var(--i-acc) !important; color: #fff; }

/* B) galeria z podkategoriami w drzewku produktów („Lamele aranżacje”, c405): zakładki tekstowe.
      Link galerii to „Wszystkie”, jej podkategorie to zakładki. Nowa taka gałąź = dopisać numer obok c405. */
html.insp #main-menu:has(.categories > li > ul > li > a[href*=",c405."] + ul) { display: block; border-bottom: 2px solid var(--i-line); }
html.insp #main-menu .categories:has(> li > ul > li > a[href*=",c405."] + ul),
html.insp #main-menu .categories > li:has(> ul > li > a[href*=",c405."] + ul),
html.insp #main-menu .categories > li > ul:has(> li > a[href*=",c405."] + ul) { display: contents; }
html.insp #main-menu .categories > li:has(> ul > li > a[href*=",c405."] + ul) > a,
html.insp #main-menu .categories > li > ul:has(> li > a[href*=",c405."] + ul) > li:not(:has(> a[href*=",c405."])) { display: none; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) { display: flex; justify-content: safe center; gap: 0 28px; overflow-x: auto; scrollbar-width: none; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul)::-webkit-scrollbar { display: none; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) > ul,
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) > ul > li { display: contents; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) a { display: block; flex: none; margin: 0; padding: 0 0 12px; border-bottom: 3px solid transparent; font-size: 14px; line-height: 1.4; font-weight: 700; white-space: nowrap; color: var(--i-mute); text-decoration: none; transition: color .2s; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) a:hover { color: var(--i-acc); }
html.insp #main-menu .categories > li > ul > li.active:has(> a[href*=",c405."] + ul) > a,
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) li.active > a { color: var(--i-ink); border-bottom-color: var(--i-acc); }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) > a { font-size: 0; }
html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) > a::before { content: "Wszystkie"; font-size: 14px; }

/* ── pasek nad listą: kolory i wyszukiwarka (obsługuje ds-aranzacje.js) ─────────────── */
html.insp .insp-bar { margin: 24px 0 0; padding: 0; border: 0; background: none; }
html.insp .insp-bar__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 40px; margin: 0; padding: 0; }
html.insp .insp-k { display: flex; align-items: center; gap: 7px; }
html.insp .insp-k__h { margin-right: 5px; font-size: 13px; font-weight: 700; color: var(--i-ink); }
html.insp .insp-k__o { position: relative; flex: none; width: 44px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: #ccc; box-shadow: inset 0 0 0 1px rgba(44, 61, 105, .14); outline: 2px solid transparent; outline-offset: 2px; cursor: pointer; transition: outline-color .2s, transform .2s; }
html.insp .insp-k__o span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html.insp .insp-k__o:hover { transform: translateY(-1px); }
html.insp .insp-k__o.on { outline-color: var(--i-acc); }
html.insp .insp-k__o.on::after { content: ""; position: absolute; left: 50%; top: 45%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .6)); }
html.insp .insp-k__o:focus-visible { outline-color: var(--i-navy); }
html.insp .insp-k__o[data-kol="bialy"] { background: linear-gradient(90deg, #ffffff 0 33.4%, #f3f2ee 33.4% 66.7%, #e2e0d8 66.7%); }
html.insp .insp-k__o[data-kol="bezowy"] { background: linear-gradient(90deg, #ecdcc4 0 33.4%, #d9c7ab 33.4% 66.7%, #bfa684 66.7%); }
html.insp .insp-k__o[data-kol="szary"] { background: linear-gradient(90deg, #c9cdd0 0 33.4%, #9a9fa3 33.4% 66.7%, #6c7175 66.7%); }
html.insp .insp-k__o[data-kol="czarny"] { background: linear-gradient(90deg, #4d5053 0 33.4%, #2a2c2e 33.4% 66.7%, #0e0f10 66.7%); }
html.insp .insp-k__o[data-kol="drewno"] { background: linear-gradient(90deg, #c99c6d 0 33.4%, #9a6a3c 33.4% 66.7%, #5f3d20 66.7%); }
html.insp .insp-k__o[data-kol="zielony"] { background: linear-gradient(90deg, #b5cda6 0 33.4%, #6f9e6c 33.4% 66.7%, #3f6645 66.7%); }
html.insp .insp-k__o[data-kol="niebieski"] { background: linear-gradient(90deg, #8fb0d6 0 33.4%, #3f67a3 33.4% 66.7%, #1e2f55 66.7%); }
html.insp .insp-k__o[data-kol="rozowy"] { background: linear-gradient(90deg, #f4d6d9 0 33.4%, #e3b3b8 33.4% 66.7%, #c98a93 66.7%); }
html.insp .insp-k__o[data-kol="zolty"] { background: linear-gradient(90deg, #f3dc8a 0 33.4%, #e0b030 33.4% 66.7%, #b5861a 66.7%); }

html.insp .insp-q { position: relative; flex: 0 1 320px; min-width: 200px; margin: 0 0 0 auto; }
html.insp .insp-q input.insp-q__i { width: 100%; height: 40px; margin: 0; padding: 0 38px 0 40px; border: 2px solid var(--i-line); border-radius: 5px; box-shadow: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6B75' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; font-family: inherit; font-size: 14px; font-weight: 400; color: #333; -webkit-appearance: none; appearance: none; outline: 0; transition: border-color .2s; }
html.insp .insp-q__i::-webkit-search-cancel-button { display: none; }
html.insp .insp-q__i::placeholder { color: #8a8a8a; opacity: 1; }
html.insp .insp-q input.insp-q__i:hover, html.insp .insp-q input.insp-q__i:focus, html.insp .insp-q--on input.insp-q__i { border-color: var(--i-acc); }
html.insp .insp-q__x { display: none; position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: none; font-size: 20px; line-height: 1; color: var(--i-ink); cursor: pointer; }
html.insp .insp-q__x:hover { background: var(--i-bg); }
html.insp .insp-q--on .insp-q__x { display: block; }

/* wynik filtrowania w przeglądarce: licznik, „nic nie pasuje”, równa siatka zamiast mozaiki */
html.insp .insp-info { margin: 18px 0 -4px; font-size: 14px; font-weight: 700; color: var(--i-ink); }
html.insp .insp-empty { margin: 48px 0; font-size: 15px; text-align: center; color: var(--i-mute); }
html.insp .insp-empty a { color: var(--i-acc); font-weight: 700; }
html.insp .insp-t[hidden], html.insp .insp-info[hidden], html.insp .insp-empty[hidden] { display: none; }
html.insp.insp-fil .insp-pages { display: none; }
html.insp.insp-fil #insp-grid .insp-t { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
html.insp.insp-fil #insp-grid .insp-t::before { content: none; }
html.insp.insp-fil #insp-grid .insp-t .insp-t__n { left: 16px; right: 16px; bottom: 14px; font-size: 15px; line-height: 1.32; }
html.insp.insp-fil #insp-grid .insp-t .insp-t__new { top: 12px; left: 12px; }

/* ── lista: mozaika ─────────────────────────────────────────────────────────────────── */
html.insp .insp-list { width: 100%; margin: 0; padding: 0; }
html.insp .insp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; margin: 20px 0 0; }
html.insp .insp-t { position: relative; margin: 0; min-width: 0; aspect-ratio: 4 / 3; }
html.insp .insp-t__a { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 5px; background: var(--i-bg); color: #fff; text-decoration: none; }
html.insp .insp-t__a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(23, 23, 23), rgba(23, 23, 23, .20) 38%, rgba(23, 23, 23, 0) 58%); pointer-events: none; }
html.insp .insp-t__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
html.insp .insp-t__a:hover .insp-t__img { transform: scale(1.045); }
html.insp .insp-t__new { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 8px; border-radius: 3px; background: #fff; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--i-navy); }
html.insp .insp-t h3.insp-t__n { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; margin: 0; padding: 0; font-size: 15px; line-height: 1.32; font-weight: 700; text-transform: none; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.insp .insp-t__a:focus-visible { outline: 3px solid var(--i-acc); outline-offset: 3px; }
html.insp .insp-list .note { margin: 40px 0; color: var(--i-mute); }

/* duże kafle — pulpit: 4 kolumny, duży na zmianę z lewej i z prawej */
@media (min-width: 1000px) {
	html.insp .insp-t:nth-child(10n+1 of .insp-t), html.insp .insp-t:nth-child(10n+7 of .insp-t) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	/* duży kafel sam trzyma swoją wysokość — bez tego zapada się, gdy w jego rzędach nie ma małych zdjęć (koniec listy) */
	html.insp .insp-t:nth-child(10n+1 of .insp-t)::before, html.insp .insp-t:nth-child(10n+7 of .insp-t)::before { content: ""; display: block; padding-top: calc(75% - 5px); }
	html.insp .insp-t:nth-child(10n+7 of .insp-t) { grid-column: 3 / span 2; }
	html.insp .insp-t:nth-child(10n+1 of .insp-t) h3.insp-t__n, html.insp .insp-t:nth-child(10n+7 of .insp-t) h3.insp-t__n { left: 26px; right: 26px; bottom: 24px; font-size: 24px; line-height: 1.22; }
	html.insp .insp-t:nth-child(10n+1 of .insp-t) .insp-t__new, html.insp .insp-t:nth-child(10n+7 of .insp-t) .insp-t__new { top: 18px; left: 18px; }
}

/* ── „Produkty”: przycisk na kaflu i panel rozwijany w siatce (ds-aranzacje.js) ─────── */
html.insp .insp-t__prod { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; margin: 0; padding: 0 9px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(24, 33, 60, .22); font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; color: var(--i-navy); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
html.insp .insp-t__prod svg { flex: none; }
html.insp .insp-t__prod span { max-width: 0; margin-left: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s, margin-left .25s; }
html.insp .insp-t:hover .insp-t__prod span, html.insp .insp-t__prod:focus-visible span, html.insp .insp-t--on .insp-t__prod span { max-width: 70px; margin-left: 6px; }
html.insp .insp-t__prod:hover { background: #fff; transform: scale(1.04); }
html.insp .insp-t__prod:focus-visible { outline: 2px solid var(--i-acc); outline-offset: 2px; }
html.insp .insp-t--on .insp-t__prod { background: var(--i-acc); color: #fff; }
html.insp .insp-t--on .insp-t__a { outline: 3px solid var(--i-acc); outline-offset: 2px; }

html.insp .insp-p { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; margin: 4px 0; padding: 26px; border-radius: 5px; background: #F5F6F7; opacity: 0; transform: translateY(-10px); transition: opacity .28s, transform .28s; }
html.insp .insp-p--in { opacity: 1; transform: none; }
html.insp .insp-p__dziob { position: absolute; top: -8px; left: var(--dziob, 50%); width: 18px; height: 18px; margin-left: -9px; border-radius: 3px; background: #F5F6F7; transform: rotate(45deg); }
html.insp .insp-p__foto { display: block; align-self: start; overflow: hidden; border-radius: 5px; background: #fff; }
html.insp .insp-p__foto img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
html.insp .insp-p__foto:hover img { transform: scale(1.03); }
html.insp .insp-p__b { display: flex; flex-direction: column; min-width: 0; }
html.insp .insp-p__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.insp .insp-p__c { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--i-acc); }
html.insp .insp-p__nav { display: flex; flex: none; gap: 6px; }
html.insp .insp-p__s, html.insp .insp-p__x { width: 36px; height: 36px; margin: 0; padding: 0; border: 2px solid var(--i-line); border-radius: 5px; background: #fff; font-family: inherit; font-size: 16px; line-height: 1; color: var(--i-ink); cursor: pointer; transition: border-color .2s, color .2s; }
html.insp .insp-p__x { margin-left: 8px; font-size: 20px; }
html.insp .insp-p__s:hover:not(:disabled), html.insp .insp-p__x:hover { border-color: var(--i-acc); color: var(--i-acc); }
html.insp .insp-p__s:disabled { opacity: .35; cursor: default; }
html.insp .insp-p__s:focus-visible, html.insp .insp-p__x:focus-visible { outline: 2px solid var(--i-acc); outline-offset: 2px; }
html.insp .insp-p h2.insp-p__t { margin: 12px 0 8px; padding: 0; font-size: 24px; line-height: 1.25; font-weight: 700; text-transform: none; color: var(--i-ink); text-wrap: balance; }
html.insp .insp-p__m { display: flex; flex-wrap: wrap; gap: 4px 18px; min-height: 20px; margin: 0 0 18px; font-size: 13.5px; color: var(--i-ink); }
html.insp .insp-p__m b { font-weight: 400; color: var(--i-mute); }
html.insp .insp-p__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-content: start; gap: 12px; min-height: 180px; }
html.insp .insp-p__i { display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 11px; border-radius: 5px; background: #fff; color: var(--i-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; animation: insp-p-in .4s both; animation-delay: calc(var(--n, 0) * 40ms); }
html.insp .insp-p__i:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44, 61, 105, .18); color: var(--i-ink); text-decoration: none; }
html.insp .insp-p__i:focus-visible { outline: 2px solid var(--i-acc); outline-offset: 2px; }
html.insp .insp-p__i img, html.insp .insp-p__ph { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 9px; border-radius: 3px; object-fit: contain; background: #fff; }
html.insp .insp-p__ph { background: var(--i-bg); }
html.insp .insp-p__n { font-size: 12.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.insp .insp-p__pr { margin-top: 5px; font-size: 12.5px; color: var(--i-mute); }
html.insp .insp-p__sk { display: block; height: 180px; border-radius: 5px; background: linear-gradient(100deg, #fff 30%, #f7f9fd 50%, #fff 70%) 0 0 / 300% 100%; animation: insp-p-sk 1.2s linear infinite; }
html.insp .insp-p__e { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--i-mute); }
html.insp .insp-p__cta { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; height: 46px; margin: 22px 0 0; padding: 0 24px; border-radius: 5px; background: var(--i-cta); font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; transition: background-color .2s; }
html.insp .insp-p__cta:hover { background: #e55600; color: #fff; text-decoration: none; }
html.insp .insp-p__cta span { transition: transform .2s; }
html.insp .insp-p__cta:hover span { transform: translateX(4px); }
html.insp .insp-p__cta:focus-visible { outline: 2px solid var(--i-navy); outline-offset: 3px; }
@keyframes insp-p-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes insp-p-sk { to { background-position: -300% 0; } }
@media (hover: none) { html.insp .insp-t__prod span { max-width: 0; margin-left: 0; } html.insp .insp-t--on .insp-t__prod span { max-width: 70px; margin-left: 6px; } }
/* węziej: bez dużego zdjęcia (jest tuż nad panelem), produkty w przesuwanym rzędzie */
@media (max-width: 899px) {
	html.insp .insp-p { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 18px 16px 20px; }
	html.insp .insp-p__foto { display: none; }
	html.insp .insp-p h2.insp-p__t { font-size: 19px; margin: 10px 0 6px; }
	html.insp .insp-p__m { margin-bottom: 14px; font-size: 13px; }
	html.insp .insp-p__list { display: flex; gap: 10px; min-height: 0; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	html.insp .insp-p__list::-webkit-scrollbar { display: none; }
	html.insp .insp-p__i { flex: 0 0 132px; scroll-snap-align: start; }
	html.insp .insp-p__sk { flex: 0 0 132px; height: 190px; }
	html.insp .insp-p__cta { align-self: stretch; justify-content: center; margin-top: 16px; }
	html.insp .insp-t__prod { top: 8px; right: 8px; height: 32px; min-width: 32px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { html.insp .insp-p, html.insp .insp-p__i, html.insp .insp-p__sk { transition: none; animation: none; } }

/* ── strony ─────────────────────────────────────────────────────────────────────────── */
/* „Pokaż więcej aranżacji”: bez JS zwykły link do następnej strony, z JS dogrywa ją pod listą */
html.insp .insp-next { margin: 40px 0 0; text-align: center; }
html.insp .insp-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 260px; height: 50px; padding: 0 30px; border: 2px solid var(--i-acc); border-radius: 5px; background: #fff; font-size: 14px; font-weight: 700; color: var(--i-acc); text-decoration: none; transition: background-color .2s, color .2s; }
html.insp .insp-btn:hover { background: var(--i-acc); color: #fff; text-decoration: none; }
html.insp .insp-btn:focus-visible { outline: 2px solid var(--i-navy); outline-offset: 3px; }
html.insp.insp-fil .insp-next, html.insp.insp-dograne .insp-pages { display: none; }
html.insp .insp-pages:not(:has(a)) { display: none; }   /* jedna strona — sam numer „1” nic nie wnosi */
html.insp .insp-pages { margin: 24px 0 0; }
html.insp .insp-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
html.insp .insp-pages li { margin: 0; padding: 0; border: 0; background: none; }
html.insp .insp-pages a, html.insp .insp-pages span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border: 0; border-radius: 5px; background: none; font-size: 14px; font-weight: 400; color: var(--i-mute); text-decoration: none; }
html.insp .insp-pages a:hover { color: var(--i-acc); background: var(--i-bg); }
html.insp .insp-pages .aktywna { color: #fff; background: var(--i-acc); font-weight: 700; }

/* ── pas dla projektantów, projektanci (tagi) i tekst pod listą ─────────────────────── */
/* baner „Pokażemy Twoje projekty” — nad listą, na każdej galerii (zdjęcie: /img/insp/projekty.webp, 360×360) */
html.insp .insp-proj { display: flex; align-items: center; gap: 12px 26px; min-height: 84px; margin: 24px 0 0; padding: 0 22px 0 0; overflow: hidden; border-radius: 5px; background: #F5F6F7; }
html.insp .insp-proj__f { flex: none; align-self: stretch; width: 250px; background: #e9ebee url(/img/insp/projekty.webp) center / cover no-repeat; }
html.insp .insp-proj__t { flex: 1 1 auto; min-width: 0; margin: 0; padding: 12px 0; font-size: 14px; line-height: 1.45; color: var(--i-ink); }
html.insp .insp-proj__t strong { display: block; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--i-ink); }
html.insp .insp-proj__t em { font-style: normal; color: var(--i-acc); }
html.insp .insp-proj__t span { display: block; margin-top: 3px; }
html.insp .insp-proj__a { display: inline-flex; align-items: center; flex: none; height: 42px; padding: 0 18px; border-radius: 5px; background: var(--i-cta); font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; transition: background-color .2s; }
html.insp .insp-proj__a:hover { background: #e55600; color: #fff; text-decoration: none; }
@media (max-width: 899px) { html.insp .insp-proj { flex-wrap: wrap; padding: 0 16px 16px 0; } html.insp .insp-proj__f { width: 120px; min-height: 84px; } html.insp .insp-proj__t { flex: 1 1 0; } html.insp .insp-proj__t strong { font-size: 18px; } html.insp .insp-proj__a { flex: 1 1 100%; justify-content: center; margin-left: 16px; } }
html.insp .tags-category { margin: 40px 0 0; }
html.insp .insp-seo { max-width: 860px; margin: 56px auto 30px; padding: 0; border: 0; font-size: 14px; line-height: 24px; color: #333; }
html.insp .insp-seo h2 { margin: 1.8em 0 .5em; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--i-ink); }
html.insp .insp-seo > :first-child { margin-top: 0; }
html.insp .insp-seo h3 { margin: 1.5em 0 .4em; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--i-ink); }
html.insp .insp-seo p { margin: 0 0 1em; }

/* ── tablet: 3 kolumny ──────────────────────────────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 999px) {
	html.insp .insp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	html.insp .insp-t:nth-child(6n+1 of .insp-t) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	html.insp .insp-t:nth-child(6n+1 of .insp-t)::before { content: ""; display: block; padding-top: calc(75% - 4px); }
	html.insp .insp-t:nth-child(12n+7 of .insp-t) { grid-column: 2 / span 2; }
	html.insp .insp-t h3.insp-t__n { font-size: 13.5px; left: 12px; right: 12px; bottom: 11px; }
	html.insp .insp-t:nth-child(6n+1 of .insp-t) h3.insp-t__n { left: 20px; right: 20px; bottom: 18px; font-size: 20px; line-height: 1.25; }
}

/* ── telefon: 2 kolumny, co piąte zdjęcie na całą szerokość ─────────────────────────── */
@media (max-width: 599px) {
	html.insp .insp-head { margin: 2px 0 18px; }
	html.insp .insp-nad { font-size: 12px; }
	html.insp .insp-head h1.insp-h1 { font-size: 22px; }
	html.insp .insp-desc { max-height: 66px; }
	html.insp #main-menu .categories > li.active:has(> a[href*=",c245."]),
	html.insp #main-menu .categories > li.activeSubcategory:has(> a[href*=",c245."]) { gap: 0 10px; margin: 0 -10px; padding: 4px 12px 2px; }
	html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a,
	html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > a { width: 88px; font-size: 12.5px; }
	html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > a .name::before { font-size: 12.5px; }
	html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li > ul { justify-content: safe center; margin: 0 -10px; padding: 0 10px; }
	html.insp #main-menu .categories > li > ul > li:has(> a[href*=",c405."] + ul) { gap: 0 22px; margin: 0 -10px; padding: 0 10px; }
	html.insp .insp-bar { margin-top: 18px; }
	html.insp .insp-bar__form { gap: 12px; }
	html.insp .insp-q { order: 1; flex: 1 1 100%; margin: 0; }
	html.insp .insp-q input.insp-q__i { height: 44px; font-size: 16px; }
	html.insp .insp-q__x { top: 8px; }
	html.insp .insp-k { order: 2; flex: 1 1 100%; gap: 6px; }
	html.insp .insp-k__h { display: none; }
	html.insp .insp-k__o { flex: 1 1 0; width: auto; min-width: 0; height: 30px; }
	html.insp.insp-fil #insp-grid .insp-t .insp-t__n { left: 10px; right: 10px; bottom: 9px; font-size: 12.5px; line-height: 1.3; }
	html.insp.insp-fil #insp-grid .insp-t .insp-t__new { top: 8px; left: 8px; }
	html.insp .insp-info { margin-top: 14px; }
	html.insp .insp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
	html.insp .insp-t:nth-child(5n+1 of .insp-t) { grid-column: span 2; }
	html.insp .insp-t h3.insp-t__n { left: 10px; right: 10px; bottom: 9px; font-size: 12.5px; line-height: 1.3; }
	html.insp .insp-t:nth-child(5n+1 of .insp-t) h3.insp-t__n { left: 16px; right: 16px; bottom: 14px; font-size: 17px; line-height: 1.25; }
	html.insp .insp-t__new { top: 8px; left: 8px; padding: 4px 6px; font-size: 9px; }
	html.insp .insp-next { margin-top: 26px; }
	html.insp .insp-btn { width: 100%; min-width: 0; }
	html.insp .insp-pages { margin-top: 18px; }
	html.insp .insp-pages a, html.insp .insp-pages span { min-width: 36px; height: 36px; }
	html.insp .insp-proj { margin-top: 18px; }
	html.insp .insp-proj__t span { font-size: 13px; }
	html.insp .insp-seo { margin-top: 40px; }
	html.insp .insp-seo h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html.insp .insp-t__img { transition: none; } html.insp .insp-t__a:hover .insp-t__img { transform: none; } }

/* ── „Ostatnio oglądane” (blok z lewej kolumny): na dół strony, jako poziomy pasek miniatur ── */
html.insp #last-viewed { display: block; float: none; width: auto; margin: 10px 0 30px; padding: 26px 0 0; border: 0; border-top: 2px solid var(--i-line); border-radius: 0; background: none; box-shadow: none; }
html.insp #last-viewed .box-left-header { height: auto; margin: 0 0 16px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1.3; font-weight: 700; text-transform: none; color: var(--i-ink); }
html.insp #last-viewed ul { display: flex; gap: 18px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
html.insp #last-viewed ul::-webkit-scrollbar { display: none; }
html.insp #last-viewed li { flex: 0 0 170px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
html.insp #last-viewed .product { display: block; margin: 0; padding: 0; border: 0; }
html.insp #last-viewed .product-img { width: auto; height: auto; margin: 0 0 10px; padding: 0; }
html.insp #last-viewed .product-img a { display: block; overflow: hidden; border-radius: 5px; background: var(--i-bg); }
html.insp #last-viewed .product-img img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
html.insp #last-viewed .product-img a:hover img { opacity: .88; }
html.insp #last-viewed .description { width: auto; margin: 0; padding: 0; }
html.insp #last-viewed .product h4 { margin: 0; padding: 0; font-size: 13px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.insp #last-viewed h4 a { color: var(--i-ink); text-decoration: none; }
html.insp #last-viewed h4 a:hover { color: var(--i-acc); }
html.insp #last-viewed .price { margin: 5px 0 0; padding: 0; font-size: 13px; color: var(--i-mute); }
@media (max-width: 599px) { html.insp #last-viewed li { flex-basis: 150px; } html.insp #last-viewed ul { gap: 12px; margin: 0 -10px; padding: 0 10px 4px; } }

/* podkategoria pomieszczenia (np. „Mały salon”): miniatura pomieszczenia zostaje wyróżniona */
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li:has(> ul > li.active) > a { font-weight: 700; }
html.insp #main-menu .categories > li:has(> a[href*=",c245."]) > ul > li:has(> ul > li.active) > a::before { outline-color: var(--i-acc); }

/* baner dla projektantów na telefonie: bez zdjęcia, zwarty */
@media (max-width: 599px) {
	html.insp .insp-proj { padding: 14px 16px 16px; gap: 12px; min-height: 0; }
	html.insp .insp-proj__f { display: none; }
	html.insp .insp-proj__t { padding: 0; }
	html.insp .insp-proj__a { margin-left: 0; }
}

/* ── nagłówek w dwóch kolumnach: tytuł i wstęp po lewej, baner „Pokażemy Twoje projekty” po prawej ── */
html.insp .insp-head .insp-proj { margin-top: 18px; text-align: left; }
@media (min-width: 900px) {
	html.insp .insp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: center; gap: 0 48px; text-align: left; }
	html.insp .insp-head .insp-desc { margin-left: 0; margin-right: 0; }
	html.insp .insp-head .insp-proj { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 22px; min-height: 0; margin: 0; padding: 0 20px 0 0; }
	html.insp .insp-head .insp-proj__f { grid-row: 1 / span 2; width: auto; }
	html.insp .insp-head .insp-proj__t { padding: 16px 0 0; }
	html.insp .insp-head .insp-proj__t strong { font-size: 20px; }
	html.insp .insp-head .insp-proj__a { justify-self: start; height: 38px; margin: 12px 0 16px; padding: 0 14px; }
}

/* więcej oddechu między nagłówkiem, rzędem pomieszczeń i paskiem kolorów (pulpit i tablet) */
@media (min-width: 600px) {
	html.insp .insp-head { margin: 14px 0 44px; }
	html.insp .insp-bar { margin-top: 36px; }
	html.insp .insp-grid { margin-top: 24px; }
}

/* ── filtr „Styl wnętrza” (wartości dokłada ds-aranzacje.js) ────────────────────────── */
html.insp .insp-f { position: relative; }
html.insp .insp-f[hidden] { display: none; }
html.insp .insp-f__h { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 14px; border: 2px solid var(--i-line); border-radius: 5px; background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; color: var(--i-ink); cursor: pointer; transition: border-color .2s, color .2s; }
html.insp .insp-f__h::after { content: ""; width: 6px; height: 6px; margin: -3px 2px 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s, margin .2s; }
html.insp .insp-f--on .insp-f__h::after { margin-top: 4px; transform: rotate(-135deg); }
html.insp .insp-f__h:hover, html.insp .insp-f--on .insp-f__h, html.insp .insp-f__h.on { border-color: var(--i-acc); color: var(--i-acc); }
html.insp .insp-f__h i { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--i-acc); font-size: 11px; font-style: normal; color: #fff; }
html.insp .insp-f__h i:empty { display: none; }
html.insp .insp-f__h:focus-visible, html.insp .insp-f__o:focus-visible { outline: 2px solid var(--i-navy); outline-offset: 2px; }
html.insp .insp-f__v { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; flex-wrap: wrap; gap: 6px; width: min(600px, calc(100vw - 40px)); padding: 14px; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px rgba(44, 61, 105, .18); }
html.insp .insp-f--on .insp-f__v { display: flex; }
html.insp .insp-f__o { height: 34px; margin: 0; padding: 0 12px; border: 2px solid var(--i-line); border-radius: 5px; background: #fff; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1; white-space: nowrap; color: var(--i-ink); cursor: pointer; transition: border-color .2s, color .2s; }
html.insp .insp-f__o:hover { border-color: var(--i-acc); color: var(--i-acc); }
html.insp .insp-f__o.on { border-color: var(--i-acc); background: var(--i-acc); font-weight: 700; color: #fff; }
@media (max-width: 599px) {
	html.insp .insp-bar__form { position: relative; }
	html.insp .insp-f { order: 3; position: static; }
	html.insp .insp-f__v { left: 0; right: 0; width: auto; padding: 12px; }
}

/* przycisk w banerze dla projektantów: delikatny (biały z ramką) — to dodatek do galerii, nie główne wezwanie */
html.insp .insp-proj .insp-proj__a { height: 36px; padding: 0 14px; border: 2px solid var(--i-line); background: #fff; font-size: 13px; color: var(--i-acc); transition: border-color .2s; }
html.insp .insp-proj .insp-proj__a:hover { border-color: var(--i-acc); background: #fff; color: var(--i-acc); }
@media (max-width: 899px) { html.insp .insp-proj .insp-proj__a { flex: 0 0 auto; } }
@media (min-width: 600px) and (max-width: 899px) { html.insp .insp-proj .insp-proj__t { flex: 1 1 calc(100% - 160px); } html.insp .insp-proj .insp-proj__a { margin-left: 146px; } }
@media (max-width: 599px) { html.insp .insp-proj .insp-proj__t { flex: 1 1 100%; } html.insp .insp-proj .insp-proj__a { margin-left: 0; } }
/* tablet: baner w jednym rzędzie — zdjęcie, tekst, przycisk */
@media (min-width: 600px) and (max-width: 899px) { html.insp .insp-head .insp-proj { flex-wrap: nowrap; padding: 0 16px 0 0; } html.insp .insp-proj .insp-proj__t { flex: 1 1 0; } html.insp .insp-proj .insp-proj__a { margin-left: 0; } }
