/**
 * Rytuały, hub /rytualy/ — samodzielne komponenty ry-, wygląd makiety 07.10.2026.
 * Wzór: assets/css/manifestacje.css (ta sama baza makiet) i <style> makiety na klasach ry-.
 * Wszystko pod .ry, tokeny --ry-*, stany is-*, haki JS wyłącznie data-ry-*; opinie,
 * nagłówek i stopka zachowują swoje arkusze. Regiony RY:* dzielą plik między sekcje, każdy
 * niesie swoje @media; RY:SCENA należy do partiala scena.php.
 */

/* ==== RY:BAZA ==== */
.ry {
    --ry-night: #0f0c16;
    --ry-bg: var(--ry-night);
    --ry-surface: #120e1a;
    --ry-ink: #f1e8d8;
    --ry-muted: #cfc4b2;
    --ry-faint: #958b7d;
    --ry-gold: #d4b05a;
    --ry-bright: #e8c978;
    --ry-deep: #a8853f;
    --ry-glow: #fff1c8;
    --ry-wine: #7a2433;
    --ry-line: rgb(212 176 90 / 22%);
    --ry-hairline: rgb(241 232 216 / 10%);
    --ry-paper: #fbf8f2;
    --ry-btn-border: rgb(241 232 216 / 45%);
    --ry-btn-accent-bg: #e8c978;
    --ry-btn-accent-fg: #1a1406;
    --ry-btn-accent-fill: #fff1c8;
    --ry-btn-accent-fill-fg: #1a1406;
    --ry-akcent: var(--ry-bright);
    --ry-heading: 'Cormorant Garamond', Georgia, serif;
    --ry-reading: 'Fraunces', Georgia, serif;
    --ry-ui: 'Inter', system-ui, sans-serif;
    --ry-ease: cubic-bezier(.2, .7, .15, 1);
    --ry-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    position: relative;
    isolation: isolate;
    color: var(--ry-ink);
    font: 300 18px/1.7 var(--ry-reading);
    font-variation-settings: 'opsz' 14;
    -webkit-font-smoothing: antialiased;
}
/* Kolory czterech nagrań i ceremonii; złoto marki zostaje na ramie strony. */
.ry-akcent--milosc { --ry-akcent: #d9808f; }
.ry-akcent--obfitosc { --ry-akcent: #86bc9c; }
.ry-akcent--przemiana { --ry-akcent: #a99be0; }
.ry-akcent--ksiezyc { --ry-akcent: #c7b3e6; }
.ry-akcent--woda { --ry-akcent: #8fb7d9; }
.ry-akcent--ogien { --ry-akcent: #e39a5b; }
.ry-akcent--ziemia { --ry-akcent: #a9b07a; }
.ry-akcent--powietrze { --ry-akcent: #c9c4de; }
.ry *, .ry *::before, .ry *::after { box-sizing: border-box; }
.ry [hidden] { display: none !important; }
/* Reset elementów na poziomie arkusza głównego (0,0,1 / 0,1,1): klasy komponentów wygrywają bez podbijania. */
.ry :is(h1, h2, h3, h4, figure, blockquote, ul, ol, li, table, details, summary):where(:not(.ry-reviews *)) { margin: 0; padding: 0; }
.ry p:where(:not(.ry-reviews *)) { margin: 0 0 18px; line-height: inherit; }
.ry :is(h1, h2, h3, h4):where(:not(.ry-reviews *)) { color: inherit; font-family: var(--ry-heading); font-weight: 500; line-height: 1.08; letter-spacing: normal; }
:where(.ry) a:where(:not(.ry-reviews *)), :where(.ry) a:hover:where(:not(.ry-reviews *)) { color: inherit; }
:where(.ry) button:where(:not(.ry-reviews *)) { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: center; cursor: pointer; }
.ry img:where(:not(.ry-reviews *)) { display: block; max-width: 100%; }
.ry :is(button, a, summary, [tabindex]):focus-visible:where(:not(.ry-reviews *)) { outline: 2px solid var(--ry-akcent); outline-offset: 4px; }
/* Rezerwa celów kotwic pod przyklejony header, jak .cp :is(section, article);
   także kafle (#produkt-<slug> z menu i stopki) i kontener paneli, do którego JS przewija po
   dotknięciu kafla na telefonie. */
.ry :is(section, article), .ry-tile, .ry-picker__panels { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--zoriana-header-h, 4rem) + 1rem); }
.ry-wrap { position: relative; width: min(100%, 1200px); margin-inline: auto; padding-inline: 20px; }
.ry-wrap--narrow { max-width: 900px; }
.ry-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ry-icon { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; }
/* Cyfry krojem UI jak .num makiety: tylko krój, waga i rozmiar. */
.ry-num { font-family: var(--ry-ui); font-weight: 500; font-size: .92em; }
.ry .ry-link { color: var(--ry-bright); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .6s ease; }
.ry .ry-link:hover { color: var(--ry-bright); background-size: 0 1px; }
/* Nocne niebo pod treścią (płótno rysuje assets/js/strona-glowna.js po [data-sg-niebo]). */
.ry-sky {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 80% 8%, rgb(122 36 51 / 22%), transparent 60%), radial-gradient(ellipse 60% 50% at 10% 60%, rgb(70 52 120 / 20%), transparent 65%), radial-gradient(ellipse 80% 60% at 60% 110%, rgb(212 176 90 / 7%), transparent 60%), var(--ry-night);
}
.ry-sky canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
/* Pasma: noc (domyślnie, przezroczyste nad niebem) i dzień (papier). */
.ry-band { position: relative; padding-block: 110px; }
.ry-band--paper {
    --ry-bg: #f4efe6; --ry-ink: #1c1a17; --ry-muted: #57504a; --ry-faint: #8b8175; --ry-gold: #a8853f; --ry-bright: #8e6e2f;
    --ry-line: rgb(168 133 63 / 30%); --ry-hairline: rgb(28 26 23 / 10%);
    --ry-btn-border: #1c1a17; --ry-btn-accent-bg: #7a2433; --ry-btn-accent-fg: #fff6ea; --ry-btn-accent-fill: #1c1a17; --ry-btn-accent-fill-fg: #fff6ea;
    color: var(--ry-ink);
    background: var(--ry-bg) var(--ry-grain);
}
.ry-band--continue { padding-top: 30px; }
/* Typografia sekcji. */
.ry .ry-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; color: var(--ry-gold); font: 500 12px/1 var(--ry-ui); letter-spacing: .32em; text-transform: uppercase; }
.ry-eyebrow__star { flex: 0 1 auto; width: 12px; height: 12px; color: var(--ry-bright); }
.ry-eyebrow::after { content: ''; flex: 0 0 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--ry-gold)); transform-origin: left; transition: transform 2s ease .3s; }
.ry .ry-eyebrow--center { justify-content: center; }
.ry-eyebrow--center::before { content: ''; order: -1; flex: 0 0 56px; height: 1px; background: linear-gradient(90deg, var(--ry-gold), transparent); transform-origin: right; transition: transform 2s ease .3s; }
.ry .ry-title { max-width: 820px; margin-bottom: 24px; font-size: clamp(34px, 4.6vw, 58px); }
.ry .ry-title--center { margin-inline: auto; text-align: center; }
.ry .ry-lead { max-width: 700px; margin: 20px 0 0; color: var(--ry-muted); font: italic 300 20px/1.6 var(--ry-reading); }
/* Przycisk: obrysowany (domyślny) i pełny w akcencie pasma; wypełnienie od lewej przy najechaniu. */
.ry .ry-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border: 1px solid var(--ry-btn-border); border-radius: 2px;
    background: transparent; color: var(--ry-ink); font: 500 15px/1.2 var(--ry-ui);
    letter-spacing: .01em; text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
    transition: color .5s var(--ry-ease), border-color .5s;
}
.ry-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ry-ink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ry-ease); }
.ry .ry-btn:hover { color: var(--ry-bg); border-color: var(--ry-ink); }
.ry-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.ry .ry-btn--accent { background: var(--ry-btn-accent-bg); border-color: var(--ry-btn-accent-bg); color: var(--ry-btn-accent-fg); }
.ry-btn--accent::before { background: var(--ry-btn-accent-fill); }
.ry .ry-btn--accent:hover { color: var(--ry-btn-accent-fill-fg); border-color: var(--ry-btn-accent-bg); }
.ry-btn__arrow { transition: transform .5s var(--ry-ease); }
.ry-btn:hover .ry-btn__arrow { transform: translateX(5px); }
.ry .ry-btn-note { margin: 12px 0 0; color: var(--ry-faint); font: 500 13px/1.5 var(--ry-ui); }
/* Złoty połysk w tekście (wyróżnienie H1). */
.ry-shine { background: linear-gradient(100deg, #a8853f 0%, #e8c978 30%, #fff1c8 45%, #e8c978 60%, #a8853f 100%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: ry-shine 14s ease-in-out infinite; }
@keyframes ry-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.ry-stars { display: block; margin-bottom: 8px; color: #f5b400; font: normal 400 15px/1 var(--ry-ui); letter-spacing: 2px; }
/* Pojawianie się: ukrywa dopiero JS (is-enhanced), bez JS i przy reduced-motion treść widoczna od razu. */
.ry.is-enhanced [data-ry-reveal] { transition: opacity 1.6s ease, translate 1.6s ease; }
.ry.is-enhanced [data-ry-reveal].is-waiting { opacity: 0; translate: 0 10px; }
.ry.is-enhanced .ry-eyebrow.is-waiting::after, .ry.is-enhanced .ry-eyebrow.is-waiting::before { transform: scaleX(0); }
/* H1 słowo po słowie: słowo wysuwa się spod maski (JS dzieli tekst; bez JS nagłówek jest zwykły). */
.ry-title-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.ry-title-word__inner { display: inline-block; animation: ry-word 1.6s var(--ry-ease) both; }
@keyframes ry-word { from { translate: 0 105%; } to { translate: 0 0; } }
/* Słowo akcentu niesie połysk samo (JS dokłada mu .ry-shine): background-clip:text rodzica nie sięga warstw. */
.ry-title-word__inner.ry-shine { animation: ry-word 1.6s var(--ry-ease) both, ry-shine 14s ease-in-out infinite; }
@keyframes ry-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Suwak opinii (panele, ceremonie, zakończenie): przewijalny także bez skryptu. */
.ry-slider { position: relative; align-self: stretch; width: 100%; min-width: 0; margin-top: 28px; }
.ry-slider__track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ry-slider__track::-webkit-scrollbar { display: none; }
.ry .ry-slider__slide { flex: 0 0 100%; margin: 0; padding: 16px 26px 14px 18px; border: 1px solid color-mix(in srgb, var(--ry-akcent) 28%, transparent); border-left: 2px solid var(--ry-akcent); border-radius: 6px; background: rgb(255 255 255 / 3.5%); color: var(--ry-ink); font: italic 400 19px/1.45 var(--ry-heading); scroll-snap-align: start; }
.ry-slider__slide .ry-stars { margin-bottom: 6px; }
.ry-slider__source { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ry-faint); font: normal 500 12.5px var(--ry-ui); }
.ry-slider__source .ry-icon { width: 15px; height: 15px; }
/* Strzałka: koło 34 px na prawej krawędzi karty, bez własnego wiersza (jak .rt-slider w rozkładach); tło kryjące, pole dotyku 44 px (::before, poszerzone w lewo — w prawo wychodziło poza ekran). */
.ry-slider__nav { position: absolute; inset-block: 0; right: -17px; display: flex; align-items: center; pointer-events: none; }
.ry .ry-slider__next { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--ry-akcent); border-radius: 50%; background: color-mix(in srgb, var(--ry-akcent) 14%, var(--ry-surface)); color: var(--ry-akcent); cursor: pointer; pointer-events: auto; transition: background .4s, color .4s, translate .4s; }
.ry-slider__next::before { content: ''; position: absolute; inset: -5px 0 -5px -10px; }
.ry-slider__next .ry-icon { width: 15px; height: 15px; }
.ry .ry-slider__next:is(:hover, :focus-visible) { background: var(--ry-akcent); color: #1a1406; translate: 2px 0; }
@media (max-width: 860px) {
    .ry-band { padding-block: 76px; }
    .ry-band--continue { padding-top: 20px; }
}
@media (max-width: 600px) {
    .ry-band { padding-block: 58px; }
    .ry-band--continue { padding-top: 14px; }
    .ry .ry-title { margin-bottom: 16px; }
    .ry .ry-eyebrow { gap: 10px; letter-spacing: .2em; }
    .ry-eyebrow::after, .ry-eyebrow--center::before { flex-basis: 26px; }
    .ry .ry-slider__slide { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .ry *, .ry *::before, .ry *::after { animation: none !important; transition: none !important; }
    .ry.is-enhanced [data-ry-reveal].is-waiting { opacity: 1; translate: none; }
    .ry.is-enhanced .ry-eyebrow.is-waiting::after, .ry.is-enhanced .ry-eyebrow.is-waiting::before { transform: none; }
}
/* ==== /RY:BAZA ==== */

/* ==== RY:HERO ==== */
.ry-hero { padding-block: 34px 40px; overflow-x: clip; }
.ry-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ry-hero__copy { min-width: 0; }
.ry .ry-hero__title { max-width: 720px; margin: 4px 0 22px; font-size: clamp(40px, 5vw, 62px); font-weight: 400; line-height: 1.04; }
.ry-hero__accent { font-style: italic; }
.ry .ry-hero__lead { max-width: 560px; margin: 0; color: var(--ry-muted); font: italic 300 21px/1.6 var(--ry-reading); }
.ry-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 30px; }
/* Kolumna sceny: wnętrze (.ry-scena) wypełnia ją w całości; kwadrat trzyma sama scena (aspect-ratio: 1). */
.ry-hero__scene { width: 100%; max-width: 520px; min-width: 0; margin: 0 0 0 auto; }
/* Zaufanie: ocena w Google i płatności (jak na stronie głównej). */
.ry-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ry .ry-rating { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 4px; background: var(--ry-paper); color: #1c1a17; text-decoration: none; box-shadow: 0 12px 30px -14px rgb(0 0 0 / 70%); }
.ry .ry-rating:hover { color: #1c1a17; }
.ry-rating__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #ece6da; }
.ry-rating__logo .ry-icon { width: 22px; height: 22px; }
.ry-rating__score { font: 600 28px/1 var(--ry-heading); }
/* Gwiazdki plakietki dziedziczą krój czytania jak w makiecie. */
.ry-rating__stars { display: block; color: #f5b400; font-size: 15px; line-height: 1; letter-spacing: 1.5px; }
.ry-rating__count { display: block; margin-top: 3px; color: #4a4440; font: 500 12.5px/1.2 var(--ry-ui); }
.ry-payments { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ry-hairline); border-radius: 4px; background: rgb(255 255 255 / 3%); }
.ry .ry-payments__label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ry-ink); font: 500 12.5px var(--ry-ui); }
.ry-payments__label .ry-icon { width: 15px; height: 15px; color: var(--ry-bright); }
.ry .ry-payments__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ry .ry-payments__logo { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; background: #fff; color: #1c1a17; font: 800 10.5px/1 var(--ry-ui); letter-spacing: .02em; }
.ry .ry-payments__logo--blik { background: #000; color: #fff; }
.ry .ry-payments__logo--payu { color: #a6c307; }
.ry .ry-payments__logo--stripe { color: #635bff; font-weight: 700; }
.ry .ry-payments__logo--visa { color: #1a1f71; font-style: italic; font-weight: 900; letter-spacing: .04em; }
.ry .ry-payments__logo--mastercard { padding: 0 6px; }
.ry-payments__logo--mastercard span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; }
.ry-payments__logo--mastercard span + span { margin-left: -6px; background: #f79e1b; mix-blend-mode: multiply; }
@media (max-width: 860px) {
    .ry-hero { padding-block: 16px 30px; }
    .ry-hero__grid { grid-template-columns: 1fr; gap: 30px; }
    /* Na telefonie scena na całą szerokość ekranu (poza odstęp kontenera) i większa. */
    .ry-hero__scene { width: calc(100% + 40px); max-width: none; margin: 0 -20px; }
}
@media (max-width: 600px) {
    .ry .ry-hero__title { font-size: 36px; }
    .ry .ry-hero__lead { font-size: 19px; }
    .ry-hero .ry-eyebrow { margin-bottom: 14px; }
    .ry .ry-hero__cta .ry-btn { width: 100%; }
}
/* ==== /RY:HERO ==== */

/* ==== RY:SCENA ==== */
/* Scena w hero (template-parts/rytualy/scena.php, ruch: rytualy.js RY:SCENA).
   Kwadrat 1:1, więc nie przesuwa układu; cała warstwa bez pointer-events (nie zasłania przycisków).
   Reguły bez klasy stanu = stan końcowy (bez JS i przy reduced-motion). Skrypt dokłada `is-ready`
   (stan początkowy), a gdy scena wejdzie na ekran — `is-play` (animacja raz, `forwards`; potem
   płomień tylko łagodnie drga). Opóźnienia i czasy z makiety w `--ry-d` i `--ry-dur` na elementach.
   Pył przy znaku ognia tworzy skrypt. */
.ry-scena { position: relative; width: 100%; aspect-ratio: 1; margin: 0; pointer-events: none; }
.ry-scena__rysunek { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ry-scena__pierscien { transform-origin: 270px 270px; animation: ry-scena-obrot 220s linear infinite; }
.ry-scena__pierscien--wstecz { animation-duration: 160s; animation-direction: reverse; }
.ry-scena__glif { font: 16px 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', serif; font-variant-emoji: text; fill: #e8c978; opacity: .7; }
.ry-scena__kreska { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ry-scena__swiatlo { opacity: .6; }
.ry-scena__wybrany { opacity: .7; }
.ry-scena__plomien { transform-box: fill-box; transform-origin: 50% 100%; }
.ry-scena :is(.ry-scena__swiatlo, .ry-scena__zywiol, .ry-scena__iskra) { transform-box: fill-box; transform-origin: center; }
.ry-scena.is-ready .ry-scena__kreska { stroke-dashoffset: 1; }
.ry-scena.is-ready :is(.ry-scena__wypelnienie, .ry-scena__krag, .ry-scena__wybrany, .ry-scena__znak, .ry-scena__iskra) { opacity: 0; }
.ry-scena.is-ready .ry-scena__plomien { opacity: 0; transform: scale(.2); }
.ry-scena.is-ready .ry-scena__swiatlo { opacity: 0; transform: scale(.3); }
.ry-scena.is-ready .ry-scena__zywiol { opacity: 0; transform: scale(.6); }
.ry-scena.is-ready .ry-scena__karta { opacity: 0; transform: translateY(14px); }
.ry-scena.is-play .ry-scena__kreska { animation: ry-scena-kreska var(--ry-dur, 2s) var(--ry-d, 0s) cubic-bezier(.45, .05, .3, 1) forwards; }
.ry-scena.is-play .ry-scena__wypelnienie { animation: ry-scena-pojaw 1.4s var(--ry-d, 0s) ease-out forwards; }
.ry-scena.is-play .ry-scena__plomien { animation: ry-scena-zaplon 1.6s 2s cubic-bezier(.2, .7, .2, 1) forwards, ry-scena-drganie 3.2s 3.6s ease-in-out infinite; }
.ry-scena.is-play .ry-scena__swiatlo { animation: ry-scena-swiatlo 2.4s 2.4s ease-out forwards; }
.ry-scena.is-play .ry-scena__krag { animation: ry-scena-pojaw 1.6s 2.8s ease-out forwards; }
.ry-scena.is-play .ry-scena__zywiol { animation: ry-scena-wejscie 1.2s var(--ry-d, 0s) cubic-bezier(.2, .7, .2, 1) forwards; }
.ry-scena.is-play .ry-scena__wybrany { animation: ry-scena-wybrany 2.4s 6.2s ease-out forwards; }
.ry-scena.is-play .ry-scena__karta { animation: ry-scena-wejscie 1.3s var(--ry-d, 0s) cubic-bezier(.2, .7, .2, 1) forwards; }
.ry-scena.is-play .ry-scena__znak { animation: ry-scena-pojaw 1.5s var(--ry-d, 0s) ease-out forwards; }
.ry-scena.is-play .ry-scena__iskra { animation: ry-scena-iskra 1.6s var(--ry-d, 0s) ease-out forwards; }
.ry-scena__pyl { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: #ffe3a1; box-shadow: 0 0 8px 2px rgb(255 200 110 / 75%); }
@keyframes ry-scena-obrot { to { transform: rotate(360deg); } }
@keyframes ry-scena-kreska { to { stroke-dashoffset: 0; } }
@keyframes ry-scena-pojaw { to { opacity: 1; } }
@keyframes ry-scena-zaplon { to { opacity: 1; transform: none; } }
@keyframes ry-scena-drganie { 0%, 100% { transform: none; } 35% { transform: scaleY(1.06) skewX(-2deg); } 70% { transform: scaleY(.97) skewX(1.5deg); } }
@keyframes ry-scena-swiatlo { 0% { opacity: 0; transform: scale(.3); } 50% { opacity: .95; } 100% { opacity: .6; transform: none; } }
@keyframes ry-scena-wejscie { to { opacity: 1; transform: none; } }
@keyframes ry-scena-wybrany { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .7; } }
@keyframes ry-scena-iskra { 0% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1.25); } 100% { opacity: .75; transform: scale(1); } }
/* ==== /RY:SCENA ==== */

/* ==== RY:WYBOR ==== */
/* Wybór rytuału: kafle po lewej, panel rytuału po prawej (na telefonie pod klikniętym kaflem). */
.ry-picker { padding-top: 40px; }
.ry-picker__head { max-width: 780px; }
.ry-picker__layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 34px; align-items: start; margin-top: 44px; }
.ry-picker__tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.ry .ry-tile {
    position: relative; display: grid; grid-template-columns: 118px 1fr 46px; align-items: center; gap: 16px;
    width: 100%; min-height: 96px; padding: 8px 16px 8px 8px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ry-akcent) 40%, transparent); border-radius: 8px;
    color: var(--ry-ink); text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    background: radial-gradient(ellipse 110px 90px at 59px 50%, color-mix(in srgb, var(--ry-akcent) 22%, transparent), transparent 75%), linear-gradient(100deg, color-mix(in srgb, var(--ry-akcent) 12%, #140f1c) 0%, var(--ry-surface) 70%);
    transition: transform .6s var(--ry-ease), border-color .6s, box-shadow .6s;
}
.ry .ry-tile:hover { transform: translateX(3px); border-color: var(--ry-akcent); }
.ry .ry-tile.is-active {
    border-color: var(--ry-akcent); box-shadow: inset 0 0 0 1px var(--ry-akcent), 0 20px 44px -26px color-mix(in srgb, var(--ry-akcent) 60%, transparent);
    background: radial-gradient(ellipse 120px 100px at 59px 50%, color-mix(in srgb, var(--ry-akcent) 34%, transparent), transparent 75%), linear-gradient(100deg, color-mix(in srgb, var(--ry-akcent) 22%, #140f1c) 0%, color-mix(in srgb, var(--ry-akcent) 6%, var(--ry-surface)) 75%);
}
.ry-tile__visual { display: block; width: 118px; height: 72px; overflow: visible; color: var(--ry-akcent); }
.ry-tile__text { font: 500 clamp(21px, 1.9vw, 25px)/1.18 var(--ry-heading); text-wrap: balance; }
/* Mała etykieta stanu ze sklepu („chwilowo niedostępny”, jak w menu). */
.ry-tile__state { display: block; margin-top: 5px; color: var(--ry-faint); font: 500 10.5px/1 var(--ry-ui); letter-spacing: .18em; text-transform: uppercase; }
/* Aktywny kafel ma jaśniejsze tło akcentu: przygaszony napis spadał tam poniżej 4,5:1. */
.ry-tile.is-active .ry-tile__state { color: var(--ry-muted); }
.ry-tile__arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ry-akcent); color: #1a1406; transition: transform .5s var(--ry-ease); }
.ry-tile__arrow .ry-icon { width: 17px; height: 17px; }
.ry-tile:not(.is-active) .ry-tile__arrow { animation: ry-tile-pulse 4.2s ease-out infinite; }
.ry-tile:nth-child(2) .ry-tile__arrow { animation-delay: .8s; }
.ry-tile:nth-child(3) .ry-tile__arrow { animation-delay: 1.6s; }
.ry-tile:nth-child(4) .ry-tile__arrow { animation-delay: 2.4s; }
.ry-tile.is-active .ry-tile__arrow { transform: rotate(90deg); }
@keyframes ry-tile-pulse { 0%, 55% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ry-akcent) 50%, transparent); } 85%, 100% { box-shadow: 0 0 0 11px transparent; } }
/* Panel stoi obok kafli i zostaje w polu widzenia pod przyklejonym headerem (makieta: 24 px od góry ekranu). */
.ry-picker__panels { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--zoriana-header-h, 4rem) + 24px); min-width: 0; max-width: 100%; }
.ry-panel { position: relative; min-width: 0; max-width: 100%; border: 1px solid color-mix(in srgb, var(--ry-akcent) 45%, transparent); border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--ry-akcent) 10%, #15101d), #13101a 55%); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--ry-akcent) 45%, transparent); }
.ry-panel.is-entering { animation: ry-panel-in 1s var(--ry-ease); }
.ry-panel__visual { position: relative; display: grid; place-items: center; padding: 24px 20px 6px; background: radial-gradient(ellipse 60% 80% at 50% 50%, color-mix(in srgb, var(--ry-akcent) 18%, transparent), transparent 72%); }
.ry-panel__rysunek { display: block; width: min(100%, 400px); height: auto; aspect-ratio: 400 / 240; overflow: visible; color: var(--ry-akcent); }
.ry-panel__body { padding: 6px 34px 8px; }
.ry-panel--moon .ry-panel__body { padding-top: 30px; }
.ry .ry-panel__eyebrow { margin: 0 0 8px; color: var(--ry-akcent); font: 500 11.5px/1 var(--ry-ui); letter-spacing: .26em; text-transform: uppercase; }
.ry .ry-panel__title { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; }
.ry .ry-panel__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .8s ease; }
.ry .ry-panel__title a:hover { background-size: 100% 1px; }
.ry .ry-panel__text { margin: 12px 0 18px; color: var(--ry-muted); }
.ry .ry-panel__lead { margin: 10px 0 18px; color: var(--ry-akcent); font: italic 300 19px/1.5 var(--ry-reading); }
.ry .ry-facts { margin: 0; padding: 0; list-style: none; }
.ry .ry-facts__item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--ry-hairline); font: 400 16px/1.4 var(--ry-ui); }
.ry .ry-facts__icon { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border: 1px solid color-mix(in srgb, var(--ry-akcent) 45%, transparent); border-radius: 50%; color: var(--ry-akcent); }
/* Trzy pozycje kart w panelu rytuału, który nie ma jeszcze punktów (numer nad nazwą pozycji). */
.ry .ry-positions__label { margin: 0 0 8px; color: var(--ry-faint); font: 500 11px var(--ry-ui); letter-spacing: .2em; text-transform: uppercase; }
.ry .ry-positions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: ry-pozycja; }
.ry .ry-positions li { position: relative; margin: 0; padding: 34px 10px 12px; border: 1px solid color-mix(in srgb, var(--ry-akcent) 35%, transparent); border-radius: 6px; color: var(--ry-ink); font: 400 14px/1.35 var(--ry-ui); text-align: center; counter-increment: ry-pozycja; }
.ry-positions li::before { content: counter(ry-pozycja); position: absolute; top: 9px; left: 50%; transform: translateX(-50%); color: var(--ry-akcent); font: 500 15px/1 var(--ry-ui); }
/* Cena po lewej, przycisk z linią pod spodem po prawej, suwak opinii na całą szerokość pod nimi. */
.ry-panel__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; min-width: 0; max-width: 100%; padding: 22px 34px 30px; border-top: 1px solid var(--ry-hairline); }
.ry-panel__buy--proof { padding-top: 0; border-top: 0; }
/* Kwota z wc_price(): cyfry krojem UI jak .num makiety, „zł” kursywą nagłówka, „W tym VAT” pod spodem. */
/* 40 px, nie 46 px makiety: sklep podaje „1 999,00 zł” (makieta „1999 zł”), a cena ma stać obok przycisku. */
.ry .ry-buy__price { margin: 0; color: var(--ry-ink); font: 400 40px/1 var(--ry-heading); white-space: nowrap; }
.ry-buy__price .woocommerce-Price-amount { font-family: var(--ry-ui); font-weight: 500; font-size: .92em; }
.ry-buy__price .woocommerce-Price-currencySymbol { color: var(--ry-faint); font: italic 400 21px var(--ry-heading); }
.ry .ry-buy__price .z-vat-note { display: block; margin: 7px 0 0; padding: 0; color: var(--ry-faint); font: 500 11.5px/1 var(--ry-ui); letter-spacing: .06em; text-transform: uppercase; }
.ry-buy__go { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ry .ry-buy__go .ry-btn-note { margin: 0; }
.ry-panel__buy .ry-slider { flex: 1 0 100%; width: 100%; margin-top: 6px; }
/* Stan niedostępny: zamiast ceny etykieta, zdanie i zwykły przycisk do tego, co można zamówić dziś. */
.ry-panel__buy--off { flex-direction: column; align-items: flex-start; }
.ry .ry-buy__state { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; border: 1px solid var(--ry-line); border-radius: 3px; color: var(--ry-muted); font: 500 12px/1 var(--ry-ui); letter-spacing: .18em; text-transform: uppercase; }
.ry-buy__state::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--ry-faint); border-radius: 50%; }
.ry .ry-buy__alt { max-width: 520px; margin: 0; color: var(--ry-muted); font: italic 300 18px/1.5 var(--ry-reading); }
/* Panel ceremonii: dwie karty z księżycem. */
.ry-moons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 34px 32px; }
.ry-moon { display: flex; flex-direction: column; padding: 22px 20px 20px; border: 1px solid rgb(234 223 194 / 30%); border-radius: 8px; background: rgb(255 255 255 / 3%); }
.ry-moon__disc { display: block; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; }
.ry-moon--nowiu .ry-moon__disc { background: radial-gradient(circle at 70% 50%, transparent 0 60%, #b9c6e4 63%), #15121d; box-shadow: 0 0 14px rgb(185 198 228 / 35%); }
.ry-moon--pelni .ry-moon__disc { background: radial-gradient(circle at 38% 34%, #fff7e2 0%, #eadfc2 45%, #b9a57a 100%); box-shadow: 0 0 22px rgb(255 241 200 / 35%); }
.ry-moon__label { color: var(--ry-faint); font: 500 11px var(--ry-ui); letter-spacing: .22em; text-transform: uppercase; }
.ry .ry-moon__name { margin: 6px 0 2px; font: 500 24px/1.15 var(--ry-heading); }
.ry .ry-moon__date { margin: 0 0 12px; color: var(--ry-akcent); font: italic 400 18px var(--ry-heading); }
.ry .ry-moon__packs { margin: 0 0 18px; color: var(--ry-muted); font: italic 300 17px/1.5 var(--ry-reading); }
.ry .ry-moon .ry-btn { margin-top: auto; padding: 12px 16px; }
@media (max-width: 980px) {
    .ry-picker__layout { grid-template-columns: 1fr; }
    .ry-picker__panels { position: static; }
}
@media (max-width: 600px) {
    .ry .ry-tile { grid-template-columns: 92px 1fr 40px; gap: 12px; min-height: 84px; }
    .ry-tile__visual { width: 92px; height: 56px; }
    .ry-tile__text { font-size: 20px; }
    .ry-tile__arrow { width: 40px; height: 40px; }
    .ry-panel__body { padding: 4px 20px 6px; }
    .ry-moons { grid-template-columns: 1fr; padding: 0 20px 24px; }
    .ry-panel__buy { flex-direction: column; align-items: stretch; padding: 18px 20px 24px; }
    .ry-panel__buy--proof { padding-top: 0; }
    .ry-buy__go { align-items: stretch; }
    .ry .ry-buy__go .ry-btn { width: 100%; }
    .ry .ry-positions { gap: 6px; }
    .ry .ry-positions li { padding: 30px 6px 10px; font-size: 13px; }
}
/* ==== /RY:WYBOR ==== */

/* ==== RY:POROWNANIE ==== */
/* Porównanie trzech rytuałów, zwinięte za przyciskiem. */
.ry-compare-toggle { display: flex; justify-content: center; margin-top: 54px; text-align: center; }
.ry .ry-compare-toggle__btn { gap: 12px; }
.ry-compare-toggle__chev { width: 14px; height: 14px; transition: transform .5s var(--ry-ease); }
.ry-compare-toggle__btn[aria-expanded="true"] .ry-compare-toggle__chev { transform: rotate(180deg); }
.ry-compare { margin-top: 48px; overflow: hidden; border: 1px solid var(--ry-line); border-radius: 6px; background: rgb(18 14 26 / 60%); }
.ry .ry-compare__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font: 400 15.5px/1.4 var(--ry-ui); }
.ry .ry-compare__table :is(th, td) { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--ry-hairline); background: transparent; color: inherit; text-align: center; }
.ry .ry-compare__table thead :is(th, td) { color: var(--ry-ink); font: 500 19px/1.2 var(--ry-heading); vertical-align: bottom; }
.ry-compare__bar { display: block; width: 26px; height: 3px; margin: 0 auto 10px; border-radius: 2px; background: var(--ry-akcent); }
.ry .ry-compare__table tbody th { color: var(--ry-ink); font-weight: 400; text-align: left; }
.ry .ry-compare__table :is(tbody, tfoot) td { font-size: 15px; }
.ry-compare__table tbody tr:hover { background: rgb(241 232 216 / 3%); }
.ry-compare__price { font: 400 30px/1 var(--ry-heading); white-space: nowrap; }
.ry-compare__off { color: var(--ry-faint); font: 500 12px/1.3 var(--ry-ui); letter-spacing: .12em; text-transform: uppercase; }
.ry .ry-compare__table tfoot :is(th, td) { padding-block: 18px 22px; border-bottom: 0; }
.ry .ry-compare__table tfoot .ry-btn { padding: 12px 18px; font-size: 15px; }
@media (max-width: 600px) {
    /* Tabela na telefonie: nazwa cechy nad trzema kolumnami. */
    .ry .ry-compare__table { font-size: 13.5px; }
    .ry-compare__table, .ry-compare__table :is(thead, tbody, tfoot) { display: block; }
    .ry-compare__table tr { display: grid; grid-template-columns: repeat(3, 1fr); }
    .ry .ry-compare__table :is(thead, tfoot) td:first-child { display: none; }
    .ry .ry-compare__table thead th { padding: 10px 4px; font-size: 14px; }
    .ry .ry-compare__table tbody th { grid-column: 1 / -1; padding: 12px 10px 2px; border-bottom: 0; color: var(--ry-muted); font-size: 13.5px; text-align: center; }
    .ry .ry-compare__table tbody td, .ry .ry-compare__table tfoot td { padding: 6px 4px 12px; font-size: 13px; }
    .ry-compare__price { font-size: 22px; }
    .ry .ry-compare__table tfoot .ry-btn { padding: 9px 6px; font-size: 12.5px; }
}
/* ==== /RY:POROWNANIE ==== */

/* ==== RY:POKAZ ==== */
/* Czym jest rytuał (papier): tekst i pokaz czterech żywiołów. */
.ry-learn::after, .ry-closing::before { content: ''; position: absolute; top: 0; left: 50%; width: min(560px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #c9a84c, transparent); }
.ry-learn__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.ry-learn__copy { margin-top: 26px; }
.ry .ry-learn__copy p { max-width: 600px; margin: 0 0 18px; color: var(--ry-muted); }
/* W makiecie reguła akapitów kolumny (.learn__text p, .online__text p) obejmuje też ozdobnik:
   napis przygaszony i odstęp 18 px (gwiazdka i kreska zostają złote). */
.ry :is(.ry-learn__text, .ry-online__text) .ry-eyebrow { max-width: 600px; margin-bottom: 18px; color: var(--ry-muted); }
.ry .ry-online__text .ry-eyebrow { max-width: 620px; }
/* Pokaz żywiołów (forma pokazu z hubów rozkładów i autohipnoz): przełączniki ze znakiem żywiołu,
   pod nimi znak, zdanie, kiedy go wybieram, i trzy linie — po jednej na rytuał, z kreską w kolorze
   rytuału. Każdy przełącznik i odczyt niesie akcent swojego żywiołu (ry-akcent--*). */
.ry-demo { position: relative; padding: 34px 30px 30px; border: 1px solid rgb(168 133 63 / 35%); border-radius: 6px; background: var(--ry-paper); box-shadow: 0 30px 60px -36px rgb(60 40 10 / 45%); }
.ry-demo::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgb(168 133 63 / 18%); border-radius: 3px; pointer-events: none; }
.ry .ry-demo__kicker { margin: 0 0 6px; color: var(--ry-gold); font: 500 11.5px var(--ry-ui); letter-spacing: .26em; text-align: center; text-transform: uppercase; }
.ry .ry-demo__sub { margin: 0 0 18px; color: var(--ry-muted); font: italic 400 17px var(--ry-heading); text-align: center; }
.ry-demo__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 18px; }
.ry .ry-demo__tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 4px; border: 1px solid var(--ry-line); border-radius: 4px; background: transparent; color: var(--ry-ink); font: 500 13.5px/1.2 var(--ry-ui); text-align: center; cursor: pointer; transition: border-color .4s, background .4s; }
.ry-demo__tab .ry-icon { flex: none; width: 14px; height: 14px; color: color-mix(in srgb, var(--ry-akcent) 70%, #5b3a12); }
.ry .ry-demo__tab.is-active { border-color: color-mix(in srgb, var(--ry-akcent) 80%, #6b5530); background: color-mix(in srgb, var(--ry-akcent) 30%, transparent); }
.ry-demo__reading { min-height: 19em; }
.ry-demo__reading.is-entering { animation: ry-panel-in .9s var(--ry-ease); }
.ry-demo__sign { display: block; width: 64px; height: 64px; margin: 0 auto 10px; color: color-mix(in srgb, var(--ry-akcent) 60%, #5b3a12); }
.ry .ry-demo__note { margin: 0 0 14px; color: #5b1b2a; font: italic 400 20px/1.4 var(--ry-heading); text-align: center; }
.ry .ry-lines { margin: 0; padding: 0; list-style: none; }
.ry .ry-lines__item { margin: 0; padding: 10px 0 10px 16px; border-top: 1px solid rgb(168 133 63 / 20%); border-left: 2px solid var(--ry-linia); color: var(--ry-ink); font: 300 16px/1.5 var(--ry-reading); }
.ry-lines__item--milosc { --ry-linia: color-mix(in srgb, #d9808f 80%, #6b5530); }
.ry-lines__item--obfitosc { --ry-linia: color-mix(in srgb, #86bc9c 80%, #4c5f3e); }
.ry-lines__item--przemiana { --ry-linia: color-mix(in srgb, #a99be0 80%, #4c3f6b); }
.ry .ry-lines__item a { color: var(--ry-ink); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; }
@media (max-width: 860px) {
    .ry-learn__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .ry-demo { padding: 26px 16px 22px; }
    .ry .ry-demo__tab { gap: 4px; font-size: 12px; }
    .ry-demo__tab .ry-icon { width: 11px; height: 11px; }
}
/* ==== /RY:POKAZ ==== */

/* ==== RY:WIECZOR ==== */
/* Wieczór z rytuałem (papier, ciąg dalszy): rysunek wieczoru i akapity. */
.ry-online__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.ry-online__copy { margin-top: 26px; }
.ry .ry-online__copy p { max-width: 620px; margin: 0 0 18px; color: var(--ry-muted); }
.ry .ry-online__copy .ry-online__lead { font: italic 400 24px/1.45 var(--ry-heading); }
.ry-online__sketch { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
@media (max-width: 860px) {
    .ry-online__grid { grid-template-columns: 1fr; gap: 30px; }
    .ry-online__visual { order: -1; }
}
/* ==== /RY:WIECZOR ==== */

/* ==== RY:KONIEC ==== */
/* Opinie: wariant papier (opinie-papier.css, ładowany później, priorytet 56). Reset kroju zostaje,
   bo .ry ustawia krój czytania; makieta stawia tu wspólną sekcję w ciągu jasnego pasa, bez kreski. */
.ry-reviews { position: relative; font: 400 1rem/1.6 Poppins, sans-serif; font-variation-settings: normal; }
/* Pytania (papier, ciąg dalszy po opiniach). */
.ry-faq { max-width: 860px; margin: 34px auto 0; border-top: 1px solid var(--ry-line); }
.ry-faq__item { border-bottom: 1px solid var(--ry-line); }
.ry .ry-faq__summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; }
.ry-faq__summary::-webkit-details-marker { display: none; }
.ry-faq__question { color: var(--ry-ink); font: 500 clamp(21px, 2vw, 25px)/1.3 var(--ry-heading); }
.ry-faq__icon { position: relative; flex: none; width: 30px; height: 30px; margin-top: 2px; border: 1px solid var(--ry-line); border-radius: 50%; transition: transform .5s var(--ry-ease), border-color .5s; }
.ry-faq__icon::before, .ry-faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 1px; margin: -.5px 0 0 -5.5px; background: var(--ry-bright); }
.ry-faq__icon::after { transform: rotate(90deg); }
.ry-faq__item[open] .ry-faq__icon { transform: rotate(45deg); border-color: var(--ry-gold); }
.ry .ry-faq__answer { max-width: 740px; margin: 0 0 24px; color: var(--ry-muted); }
/* Zakończenie (noc, złota kreska u góry). */
.ry-closing__inner { max-width: 780px; margin-inline: auto; text-align: center; }
.ry .ry-closing__text { max-width: 660px; margin: 22px auto 0; color: var(--ry-muted); font: italic 300 21px/1.65 var(--ry-reading); }
.ry-closing__reviews { --ry-akcent: var(--ry-bright); max-width: 640px; min-width: 0; margin: 40px auto 0; text-align: left; }
.ry-closing__actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 30px; }
@media (max-width: 600px) {
    .ry .ry-closing__actions .ry-btn { width: 100%; }
}
/* ==== /RY:KONIEC ==== */
