/* Strona glowna royalrabbits.pl z natywnych blokow (patterns/glowna-*.php, 26.11.2026). Wszystko pod .rrh (klasa kazdej
   sekcji), zeby nie ruszac reszty motywu. Ten sam arkusz laduje sie w edytorze blokow (inc/assets.php): edytor wyglada
   jak strona. Styl jak na dotychczasowej stronie: prostokatne kafelki, biale boksy z tytulem, naglowki sekcji z liniami,
   granat i biel; roz zostaje w pasku gornym i stopce motywu.
   Caly kafelek klikany: link w bloku z klasa rrh-cel (naglowek, akapit albo przycisk) rozciaga sie na kafelek .rrh-karta
   (::after). Klasa jest na bloku, nie na linku, bo edytor nie zachowuje klas na linkach. */

.rrh {
    --ink: #03295d;
    --ink-2: #0b3f86;
    --text: #39424c;
    --muted: #6b747d;
    --rose: #c9959a;
    --rose-soft: #f3e4e5;
    --cream: #fcf9f7;
    --grey: #f5f5f5;
    --line: #e6e6e6;
    --gut: clamp(16px, 4vw, 40px);
    --r: 10px;
    --r-lg: 16px;
    font-family: Lato, Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    overflow-x: clip;
}

/* ---------- reset elementow motywu i ukladu blokow wewnatrz .rrh ---------- */
.rrh *, .rrh *::before, .rrh *::after { box-sizing: border-box; }
/* Sekcje to bloki najwyzszego poziomu tresci: bez odstepow ukladu blokow (blockGap) miedzy nimi i w srodku - odstepy
   ustala ten arkusz. */
:where(.wp-block-post-content, .is-root-container) > .rrh { margin-top: 0 !important; margin-bottom: 0 !important; }
.rrh.is-layout-flow > *, .rrh :is(.is-layout-flow, .is-layout-constrained) > * { margin-block: 0; }
.rrh :is(h1, h2, h3, h4, h5, h6, .rrh-h) {
    margin: 0;
    font-family: Lato, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: 0.01em;
    text-transform: none;
}
.rrh p { margin: 0; }
.rrh ul, .rrh ol { list-style: none; margin: 0; padding: 0; }
.rrh li { margin: 0; }
.rrh figure, .rrh .wp-block-image { margin: 0; }
.rrh img { display: block; max-width: 100%; height: auto; }
.rrh a { color: var(--ink); text-decoration: none; }
.rrh strong { font-weight: 700; }
.rrh :is(.rrh-prose, .rrh-intro, .rrh-note, .rrh-list, .rrh-credits) a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.rrh :is(.rrh-prose, .rrh-intro, .rrh-note) a:hover { color: var(--ink-2); }
.rrh a:focus-visible, .rrh button:focus-visible, .rrh summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* szeroki uklad (do 1720 px); teksty maja wlasne ograniczenia szerokosci */
.rrh .rrh-wrap { max-width: 1720px; margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 1100px) { .rrh .rrh-wrap { padding: 0 clamp(32px, 3.5vw, 64px); } }
.rrh.rrh-sec { padding: clamp(24px, 3vw, 40px) 0; }
.rrh.rrh-sec--tight { padding: clamp(16px, 2vw, 24px) 0; }

/* Caly kafelek jako link (bez zagniezdzania linkow); inne linki i przyciski w kafelku nad nakladka. */
.rrh .rrh-karta, .rrh .wp-block-post { position: relative; }
.rrh :is(.rrh-karta, .wp-block-post) .rrh-cel a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.rrh .rrh-karta .wp-block-button:not(.rrh-cel) > a { position: relative; z-index: 3; }

/* Naglowki z wersalikami w tresci: litery zostaja w HTML, wyglad zdaniowy. */
.rrh .rrh-caps { text-transform: lowercase; }
.rrh .rrh-caps::first-letter { text-transform: uppercase; }

/* Naglowek sekcji: wersaliki, linie po bokach. */
.rrh .rrh-head { margin: 0 0 clamp(20px, 3vw, 32px); text-align: center; }
.rrh .rrh-head h2 {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: clamp(18px, 1.7vw, 24px);
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}
.rrh .rrh-head h2::before, .rrh .rrh-head h2::after { content: ''; flex: 1 1 0; height: 1px; background: var(--line); }
.rrh .rrh-head h2.rrh-caps { text-transform: uppercase; }
.rrh .rrh-head h2.rrh-caps::first-letter { text-transform: none; }
.rrh .rrh-head .rrh-head__lead { max-width: 720px; margin: 12px auto 0; font-size: 16px; }

/* ---------- przyciski (blok Przyciski) ---------- */
.rrh .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.rrh .wp-block-button { margin: 0; }
.rrh .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 11px 22px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.rrh .rrh-btn--small > .wp-block-button__link { min-height: 40px; padding: 9px 18px; font-size: 11px; }
/* Link obok glownego przycisku ("Nowości →"): jak przed 26.11 - cienki, bez podkreslenia, strzalka po odstepie. */
.rrh .rrh-link > .wp-block-button__link {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none;
}
.rrh .rrh-link > .wp-block-button__link::after { content: '→'; display: inline-block; }
/* "Gotowe pokoje dziecięce", "Wszystkie wpisy", "Projekty pokojów": obrys zamiast wypelnienia. */
.rrh .rrh-more-row { justify-content: center; margin-top: clamp(20px, 3vw, 28px); text-align: center; }
.rrh .rrh-more > .wp-block-button__link, .rrh button.rrh-more {
    min-height: 40px;
    padding: 9px 22px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
@media (hover: hover) {
    .rrh .wp-block-button__link:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
    .rrh .rrh-link > .wp-block-button__link:hover { background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; }
    .rrh .rrh-more > .wp-block-button__link:hover, .rrh button.rrh-more:hover { background: var(--ink); color: #fff; }
}

/* ---------- kafelek ze zdjeciem i bialym boksem na zdjeciu (probki, premium, inspiracje, kategorie) ---------- */
.rrh .rrh-banner, .rrh .rrh-cat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--r);
    background: var(--grey);
}
.rrh :is(.rrh-banner, .rrh-cat) > .wp-block-image { position: absolute; inset: 0; z-index: 0; }
.rrh :is(.rrh-banner, .rrh-cat) > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.rrh .rrh-banner__box, .rrh .rrh-chip, .rrh .rrh-cat__box {
    z-index: 1;
    margin: 0 6% 7%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}
.rrh .rrh-banner__box--cta { display: grid; gap: 10px; justify-items: center; padding: 18px 16px; }
.rrh .rrh-banner__box--cta .wp-block-buttons { justify-content: center; }
.rrh .rrh-banner__title {
    font-size: clamp(14px, 1.35vw, 19px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    hyphens: manual;
    overflow-wrap: break-word;
}
.rrh .rrh-chip {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}
@media (hover: hover) {
    .rrh :is(.rrh-banner, .rrh-cat):hover > .wp-block-image img { transform: scale(1.04); }
}

/* ---------- u gory: dwa kafle, zdjecie w calosci u gory, tekst pod nim (26.11.2026: napisy zaslanialy zdjecia) ---------- */
.rrh.rrh-hero { padding: clamp(10px, 1.6vw, 22px) 0 0; }
.rrh .rrh-hero__grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .rrh .rrh-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rrh .rrh-hero__kafel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rrh .rrh-hero__foto { flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey); }
.rrh .rrh-hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.rrh .rrh-hero__box { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 18px 18px 20px; }
.rrh .rrh-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.rrh .rrh-hero__title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; color: var(--ink); }
.rrh .rrh-hero__title a { color: var(--ink); }
.rrh .rrh-hero__lead { margin: 8px 0 0; max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* 26.11.2026: przyciski docisniete do dolu kafla (margin-top: auto), zeby "Zobacz tapety" i "Zobacz zestawy" staly na tej
   samej wysokosci, gdy opisy maja rozna liczbe linii; odstep od opisu daje padding. */
.rrh .rrh-hero__box .rrh-akcje { margin-top: auto; padding-top: 18px; }
@media (min-width: 700px) {
    .rrh .rrh-hero__foto { aspect-ratio: 16 / 9; }
    .rrh .rrh-hero__box { padding: 22px clamp(20px, 2.4vw, 32px) 24px; }
    .rrh .rrh-hero__title { font-size: clamp(24px, 2.2vw, 32px); }
    .rrh .rrh-hero__box .rrh-akcje { padding-top: 14px; }
}

/* ---------- pasek korzysci (ikona w kolku + tekst) ---------- */
.rrh.rrh-usp { padding: 34px 0 0; }
.rrh .rrh-usp__list { display: grid; gap: 10px; }
@media (min-width: 700px) { .rrh .rrh-usp__list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
/* Telefon: ikona nad tekstem, wszystko na srodku - trzy ramki jedna pod druga wygladaja tak samo (prosba wlasciciela 30.11.2026). */
@media (max-width: 699px) {
    .rrh .rrh-usp__item { flex-direction: column; gap: 8px; padding: 16px; text-align: center; }
    .rrh .rrh-usp__item > *, .rrh .rrh-usp__item small, .rrh .rrh-usp__maly { text-align: center; }
}
.rrh .rrh-usp__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    text-align: left;
}
.rrh .rrh-usp__item::before {
    content: '';
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream) center / 22px 22px no-repeat;
}
.rrh .rrh-ico-dostawa::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303295d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3zM14 9h4l3 3v3h-7zM7 18a1.6 1.6 0 1 0 0 .01M17 18a1.6 1.6 0 1 0 0 .01'/%3E%3C/svg%3E"); }
.rrh .rrh-ico-czas::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303295d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.rrh .rrh-ico-wymiar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303295d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15 15 3l6 6L9 21zM7 11l2 2M10 8l2 2M13 5l2 2'/%3E%3C/svg%3E"); }
.rrh .rrh-usp__main, .rrh .rrh-usp__main a {
    display: block;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}
.rrh.rrh-usp em { font-style: normal; color: var(--ink-2); }
.rrh.rrh-usp small, .rrh .rrh-usp__maly { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: #4d5661; }

/* ---------- style tapet: napis pod zdjeciem (krytycy 26.11.2026) ---------- */
.rrh .rrh-styles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .rrh .rrh-styles__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.rrh .rrh-styl { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rrh .rrh-styl__foto { aspect-ratio: 3 / 4; overflow: hidden; background: var(--grey); }
.rrh .rrh-styl__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.rrh .rrh-styl__tytul {
    padding: 12px 10px 14px;
    font-size: clamp(14px, 1.35vw, 19px);
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    hyphens: manual;
    overflow-wrap: break-word;
}
@media (hover: hover) { .rrh .rrh-styl:hover img { transform: scale(1.04); } }
.rrh .rrh-intro {
    max-width: 960px;
    margin: clamp(24px, 3vw, 40px) auto 0;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.8;
    text-align: center;
}

/* ---------- asortyment ---------- */
.rrh.rrh-range { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rrh .rrh-range__list { --item: 30%; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
.rrh .rrh-range__item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rrh .rrh-range__img { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--grey); }
.rrh .rrh-range__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rrh .rrh-range__nazwa { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
@media (hover: hover) {
    .rrh .rrh-range__item:hover img { transform: scale(1.05); }
    .rrh .rrh-range__item:hover .rrh-range__nazwa a { color: var(--ink-2); }
}

/* ---------- "Zaprojektuj, zanim zamowisz": planer sciany, akwarela, studio plakatu (kafelki wtyczek) ---------- */
.rrh.rrh-planners { background: var(--grey); }
.rrh .rrh-planners__grid--kafelki { display: grid; gap: 18px; }
@media (min-width: 700px) { .rrh .rrh-planners__grid--kafelki { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .rrh .rrh-planners__grid--kafelki { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.rrh .rrh-planners__grid--kafelki :is(.rr-kafel, .rrwk-kafel, .rrpp-kafel) { width: 100%; max-width: none; margin: 0; }
.rrh .rrh-planners__grid--kafelki :is(.rrpp-kafel-uwaga, .rrwk-kafel-uwaga) { font-size: 13px; }
.rrh .rrt-studio-kafel { display: flex; flex-direction: column; }
.rrh .rrt-studio-kafel__foto { display: block; aspect-ratio: 1; overflow: hidden; background: #f3efea; }
.rrh .rrt-studio-kafel__foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
@media (hover: hover) { .rrh .rrt-studio-kafel__foto:hover img { transform: scale(1.03); } }

/* ---------- trzy banery i inspiracje ---------- */
.rrh .rrh-trio__grid, .rrh .rrh-inspo__grid { --item: 82%; display: grid; gap: 14px; }
@media (min-width: 700px) { .rrh .rrh-trio__grid, .rrh .rrh-inspo__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- film (blok Wideo; plik pobiera sie dopiero przy odtwarzaniu, przycisk dokleja theme.js) ---------- */
.rrh .rrh-video { position: relative; }
.rrh .rrh-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rrh .rrh-video figcaption { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rrh .rrh-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.rrh .rrh-video__play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
/* Film gra: w rogu pauza zamiast trojkata (theme.js wstawia obie ikony). */
.rrh .rrh-video__play .rrh-ikona-pauza, .rrh .rrh-video.is-playing .rrh-video__play .rrh-ikona-graj { display: none; }
.rrh .rrh-video.is-playing .rrh-video__play .rrh-ikona-pauza { display: block; }
.rrh .rrh-video.is-playing .rrh-video__play { left: auto; top: auto; right: 12px; bottom: 12px; width: 36px; height: 36px; transform: none; opacity: 0.8; }
.rrh .rrh-video.is-playing .rrh-video__play svg { width: 14px; height: 14px; margin: 0; }

/* ---------- najczesciej wybierane produkty (blok royal-rabbits/polecane) ---------- */
.rrh .rrh-products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.rrh .rrh-products__grid > li.is-ukryty { display: none; }
.rrh .rrh-product { display: block; color: var(--ink); }
.rrh .rrh-product__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--grey); }
.rrh .rrh-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.rrh .rrh-product__name { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; line-height: 1.4; text-align: center; color: var(--text); }
.rrh .rrh-product__price { display: block; margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--ink); text-align: center; }
.rrh .rrh-product__price .woocommerce-Price-amount { font-weight: 700; }
.rrh .rrh-product__price del { opacity: 0.6; font-weight: 400; }
.rrh .rrh-product__price :is(.rrpr-omnibus, .rrp-omnibus) { display: block; margin-top: 0.25em; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #6b6b6b; }
.rrh .rrh-product__price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (hover: hover) {
    .rrh .rrh-product:hover img { transform: scale(1.04); }
    .rrh .rrh-product:hover .rrh-product__name { color: var(--ink); }
}
@media (min-width: 700px) { .rrh .rrh-products__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .rrh .rrh-products__grid { grid-template-columns: repeat(6, 1fr); gap: 24px 16px; } }

/* ---------- wpisy: wybrane ("Zainspiruj się!") i najnowsze (BLOG, blok Petla zapytania) ---------- */
.rrh .rrh-posts__grid { --item: 78%; display: grid; gap: 24px; }
/* Petla zapytania: rdzen ogranicza liste do 100% szerokosci, a rzad przewijany na telefonie wychodzi na margines. */
.rrh .wp-block-post-template.rrh-posts__grid { max-width: none; }
.rrh :is(.rrh-post, .wp-block-post) { display: flex; flex-direction: column; gap: 8px; }
.rrh :is(.rrh-post__img, .wp-block-post-featured-image) { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--grey); }
.rrh :is(.rrh-post__img, .wp-block-post-featured-image) img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.rrh :is(.rrh-post, .wp-block-post) :is(h5, .rrh-h5) { margin-top: 6px; font-size: 15px; line-height: 1.4; text-align: center; }
.rrh :is(.rrh-post, .wp-block-post) :is(h5, .rrh-h5) a { color: var(--ink); }
.rrh .rrh-post__img--brak { display: flex; align-items: center; justify-content: center; background: var(--cream); color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
.rrh .wp-block-post-excerpt { margin: 0; }
.rrh .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: var(--muted);
}
.rrh .wp-block-post-excerpt__more-text { display: none; }
@media (hover: hover) {
    .rrh :is(.rrh-post, .wp-block-post):hover img { transform: scale(1.04); }
    .rrh :is(.rrh-post, .wp-block-post):hover :is(h5, .rrh-h5) a { color: var(--ink-2); }
}
@media (min-width: 700px) { .rrh .rrh-posts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    .rrh .rrh-posts__grid--4 { grid-template-columns: repeat(4, 1fr); }
    .rrh .rrh-posts__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
}

/* ---------- produkty tworzone z pasja ---------- */
.rrh .rrh-passion__grid { --item: 78%; display: grid; gap: 20px; }
.rrh .rrh-frame { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.rrh .rrh-frame__img { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--grey); }
.rrh .rrh-frame__img img { width: 100%; height: 100%; object-fit: cover; }
.rrh .rrh-frame h2 { margin-top: 12px; font-size: clamp(15px, 1.35vw, 19px); letter-spacing: 0.08em; text-transform: uppercase !important; line-height: 1.3; }
.rrh .rrh-frame p { font-size: 14px; color: var(--muted); }
@media (min-width: 700px) { .rrh .rrh-passion__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.rrh .rrh-note { max-width: 960px; margin: clamp(24px, 3vw, 36px) auto 0; font-size: 15px; text-align: center; }

/* ---------- sklep z tapetami ---------- */
.rrh .rrh-prose { font-size: 15px; line-height: 1.8; }
.rrh .rrh-prose > * + * { margin-top: 1em; }
.rrh .rrh-prose--center { max-width: 960px; margin-left: auto; margin-right: auto; text-align: center; }
.rrh .rrh-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(24px, 3vw, 36px); }
.rrh .rrh-cat__box { padding: 10px 8px; }
.rrh .rrh-cat :is(h5, .rrh-h5) { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.rrh .rrh-cat__count { margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--muted); }
@media (min-width: 700px) { .rrh .rrh-cats { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .rrh .rrh-cats { grid-template-columns: repeat(5, 1fr); } }

/* ---------- poradnik (blok Szczegoly) ---------- */
.rrh .rrh-guide__wrap { max-width: 1040px; }
.rrh .rrh-acc { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rrh .rrh-acc + .rrh-acc { margin-top: 10px; }
.rrh .rrh-acc summary {
    position: relative;
    display: block;
    padding: 16px 48px 16px 22px;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.rrh .rrh-acc summary::-webkit-details-marker { display: none; }
.rrh .rrh-acc summary::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.rrh .rrh-acc[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.rrh .rrh-acc__body { display: grid; gap: 20px; padding: 0 22px 24px; }
.rrh .rrh-acc__img { align-self: start; }
.rrh .rrh-acc__img a, .rrh .rrh-acc__img > img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; }
.rrh .rrh-acc__img img { width: 100%; height: 100%; object-fit: cover; }
.rrh .rrh-acc__img figcaption { margin-top: 8px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--muted); }
.rrh .rrh-acc :is(h2, h3) { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; }
.rrh .rrh-acc .rrh-prose > :first-child { margin-top: 0; }
.rrh .rrh-acc .rrh-prose > :is(h2, h3) + p { margin-top: 0; }
@media (min-width: 800px) {
    .rrh .rrh-acc__body { grid-template-columns: 260px 1fr; gap: 28px; }
    .rrh .rrh-acc__img a, .rrh .rrh-acc__img > img { aspect-ratio: 1; }
}

/* ---------- materialy, zamowienie, paczka ---------- */
.rrh .rrh-info__grid { display: grid; gap: 18px; }
.rrh .rrh-info__col { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--cream); }
.rrh .rrh-info__col h2 { margin-bottom: 14px; font-size: 19px; line-height: 1.3; }
.rrh .rrh-list { display: grid; gap: 10px; font-size: 15px; line-height: 1.6; counter-reset: rrh-list; }
.rrh .rrh-list li { position: relative; padding-left: 22px; }
.rrh .rrh-list li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.rrh .rrh-list--num li { counter-increment: rrh-list; }
.rrh .rrh-list--num li::before { content: counter(rrh-list) '.'; left: 0; top: 0; width: auto; height: auto; border-radius: 0; background: none; font-weight: 700; color: var(--ink); }
.rrh .rrh-list strong { display: block; color: var(--ink); text-wrap: pretty; }
@media (min-width: 900px) { .rrh .rrh-info__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- salon i sypialnia ---------- */
.rrh .rrh-salon__grid { --item: 62%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rrh .rrh-salon__foto img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); }
.rrh .rrh-salon__foto figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--text); }
@media (min-width: 700px) { .rrh .rrh-salon__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.rrh .rrh-credits { margin: 20px 0 14px; font-size: 12px; text-align: center; color: var(--muted); }

/* ---------- projektowanie pokoju ---------- */
.rrh .rrh-design__wrap { max-width: 900px; text-align: center; }
.rrh .rrh-design__wrap h3 { margin-bottom: 14px; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; }

/* ---------- o mnie ---------- */
.rrh .rrh-about__grid { display: grid; gap: 24px; align-items: center; }
.rrh .rrh-about__img { width: min(70%, 320px); margin: 0 auto; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg); }
.rrh .rrh-about__img img { width: 100%; height: 100%; object-fit: cover; }
.rrh .rrh-about__text p { font-size: 15px; line-height: 1.8; }
.rrh .rrh-about__text > * + * { margin-top: 1em; }
.rrh .rrh-about__text > .rrh-about__podpis { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.4; }
.rrh .rrh-about__podpis strong { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.rrh .rrh-about__text > .rrh-about__rola { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 900px) { .rrh .rrh-about__grid { grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); } .rrh .rrh-about__img { width: 100%; } }

/* ---------- przewijane rzedy na telefonie ---------- */
@media (max-width: 699px) {
    .rrh .rrh-scroll {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: var(--item, 44%);
        grid-template-columns: none !important;
        gap: 12px;
        margin: 0 calc(-1 * var(--gut)) !important;
        padding: 4px var(--gut) 12px !important;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gut);
        scrollbar-width: none;
    }
    .rrh .rrh-scroll::-webkit-scrollbar { display: none; }
    .rrh .rrh-scroll > * { scroll-snap-align: start; }
    .rrh :is(.rrh-intro, .rrh-prose--center, .rrh-note) { text-align: left; }
}

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

/* ---------- edytor blokow: podglad jak na stronie, ale bez nakladek linkow (zaznaczanie blokow) ---------- */
/* Sekcje na cala szerokosc obszaru edycji (tresc strony w edytorze ma waska kolumne 820 px). */
.editor-styles-wrapper .is-root-container:has(> .rrh) { max-width: none !important; }
.editor-styles-wrapper .is-root-container > :is(.rrh, .wp-block-royal-rabbits-polecane) { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
.editor-styles-wrapper .rrh :is(.rrh-karta, .wp-block-post) .rrh-cel a::after { content: none; }
.editor-styles-wrapper .rrh .rrh-video video { pointer-events: none; }
.editor-styles-wrapper .rrh .rrh-video figcaption { position: relative; width: auto; height: auto; clip: auto; margin: 0; padding: 6px 10px; background: rgba(255, 255, 255, 0.9); font-size: 12px; z-index: 1; white-space: normal; }
.editor-styles-wrapper .rrh .rrh-products__grid > li.is-ukryty { display: block; opacity: 0.45; }
/* Obraz w edytorze siedzi w ramce do zmiany rozmiaru: ramka wypelnia kafel, kadr jak na stronie. */
.editor-styles-wrapper .rrh .wp-block-image > .components-resizable-box__container { width: 100% !important; height: 100% !important; max-width: none !important; }
.editor-styles-wrapper .rrh .wp-block-image img { height: 100% !important; }
/* Zaznaczona sekcja: edytor rysuje obrys bloku w ::after naglowka - bez lewej linii, zeby napis zostal na srodku. */
.editor-styles-wrapper .rrh .rrh-head h2:is(.has-editable-outline, .is-highlighted, .is-selected)::before { display: none; }
.editor-styles-wrapper .rrh .rrh-head h2:is(.has-editable-outline, .is-highlighted, .is-selected) { justify-content: center; }
/* Kafel planera/akwareli/studia zaznaczony w edytorze: przyciski zmiany zdjec na kaflu. */
.editor-styles-wrapper .rrh-kafel-edytor { position: relative; }
.editor-styles-wrapper .rrt-kafel-zdjecia { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; }
.editor-styles-wrapper .rrt-kafel-zdjecia .components-button { font-size: 12px; }
/* Asortyment w jednym rzedzie takze w wezszym obszarze edycji (paneli po bokach). */
@media (min-width: 700px) {
    .editor-styles-wrapper .rrh .rrh-range__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
}
.editor-styles-wrapper .rrt-blok-zastepczy { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border: 1px dashed #c9959a; border-radius: 6px; background: #fff; color: #03295d; font: 600 12px/1.3 Lato, Arial, sans-serif; }
