/*
Theme Name: Receptoteka
Theme URI: https://receptoteka.pl/
Author: Receptoteka
Description: Motyw blokowy strony Receptoteki: lekarz online i e-recepta po rozmowie. Jasny róż, biel i jasna szarość, a każda recepta to karta z kartoteki ze stemplem „wykup do”. Strona główna, podstrony, wpisy i strona błędu 404. Czcionka Archivo jest w motywie, strona nie łączy się z Google Fonts.
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: receptoteka
Tags: block-patterns, full-site-editing, editor-style, custom-colors, one-column, wide-blocks
*/

/* Kolory i rozmiary pochodzą z theme.json (Wygląd → Edytor → Style). */
:root {
	--white: var(--wp--preset--color--bialy, #ffffff);
	--pink: var(--wp--preset--color--roz, #f8dce3);
	--pink-2: var(--wp--preset--color--roz-jasny, #fcedf1);
	--pink-3: var(--wp--preset--color--roz-zakladka, #f2c3d0);
	--grey: var(--wp--preset--color--szary, #f2f1f2);
	--grey-2: var(--wp--preset--color--szary-sredni, #e5e3e5);
	--grey-3: var(--wp--preset--color--szary-ciemny, #cfcbd0);
	--ink: var(--wp--preset--color--grafit, #2b2327);
	--soft: var(--wp--preset--color--grafit-jasny, #5b5155);
	--rose: var(--wp--preset--color--roza, #a92f56);
	--rose-2: var(--wp--preset--color--roza-ciemna, #8a2445);
	--t-s: var(--wp--preset--font-size--maly, 0.875rem);
	--t-b: var(--wp--preset--font-size--tekst, clamp(1rem, 0.95rem + 0.2vw, 1.125rem));
	--t-l: var(--wp--preset--font-size--duzy, clamp(1.375rem, 1.1rem + 0.9vw, 2.125rem));
	--t-h: var(--wp--preset--font-size--naglowek, clamp(2.5rem, 1.2rem + 3.2vw, 4.25rem));
	--t-d: var(--wp--preset--font-size--plakat, clamp(4rem, 1rem + 10vw, 10rem));
	--m: clamp(20px, 2.4vw, 36px);
	--gap: clamp(96px, 11vw, 200px);
}

/* ---------- podstawa ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block: 0; }
::selection { background: var(--pink-3); color: var(--ink); }

/* W sekcjach odstępy ustawia ten arkusz, nie automatyczne marginesy bloków. */
:where(.rt-sec, .rt-blk),
:where(.rt-sec, .rt-blk) *,
:where(.rt-sec, .rt-blk) *::before,
:where(.rt-sec, .rt-blk) *::after { box-sizing: border-box; }
.rt-sec.is-layout-flow > *,
.rt-sec .is-layout-flow > * { margin-block: 0; }
:where(.rt-blk) :where(h2, h3, p, ul, ol, dl, dt, dd, figure) { margin: 0; padding: 0; }
:where(.rt-blk) :where(ul, ol) { list-style: none; }
.rt-sec a:focus-visible,
.rt-sec button:focus-visible,
.rt-sec input:focus-visible,
.rt-page a:focus-visible,
.rt-page button:focus-visible,
.rt-page input:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.rt-nw { white-space: nowrap; }
.rt-sec .rt-disp,
.rt-blk .rt-disp {
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: 0.88;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* ---------- nagłówek ---------- */
.rt-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 32px;
	padding: 18px var(--m);
	background: var(--pink);
}
.rt-top .rt-wm {
	margin: 0;
	font-size: var(--t-b);
	font-weight: 700;
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	line-height: 1.5;
}
.rt-top .rt-wm a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; }
.rt-top .wp-block-navigation,
.rt-top .wp-block-navigation .wp-block-navigation__container { gap: 0 28px; }
.rt-top .wp-block-navigation .wp-block-navigation-item__content {
	display: inline-block;
	padding: 10px 0;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}
.rt-top .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ---------- pierwszy ekran: lada z kartoteką ---------- */
.rt-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 54px var(--m) clamp(72px, 8vw, 128px);
	background: var(--pink);
	text-align: center;
}
.rt-hero .rt-wordmark {
	margin-top: 36px;
	padding-left: 0.55em;
	color: var(--ink);
	font-size: var(--t-h);
	font-weight: 700;
	font-stretch: 125%;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: 0.55em;
	white-space: nowrap;
}
.rt-hero .rt-line {
	max-width: 30ch;
	margin-top: 18px;
	font-size: var(--t-l);
	font-weight: 500;
	line-height: 1.2;
	text-wrap: balance;
}
.rt-hero .rt-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 48px;
	margin-top: 30px;
}
.rt-hero .rt-spec { max-width: 16em; line-height: 1.35; }
.rt-hero .rt-spec-l { text-align: right; }
.rt-hero .rt-spec-r { text-align: left; }
.rt-hero .rt-wait { margin-top: 18px; font-size: var(--t-s); }
.rt-sec .rt-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 60px;
	padding: 0 28px;
	background: var(--rose);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}
.rt-sec .rt-cta .wp-block-button__link:hover { background: var(--rose-2); color: var(--white); }
.rt-sec .rt-cta .wp-block-button__link:active { transform: scale(0.98); }
.rt-sec .rt-cta strong { font-size: var(--t-l); font-weight: 800; font-stretch: 62%; line-height: 1; }

/* szuflada kartoteki (blok „Kartoteka recept”) */
.rt-drawer { position: relative; width: min(23vw, 340px); aspect-ratio: 4 / 5; margin: 0; text-align: left; }
.rt-drawer .rt-cast { position: absolute; left: 3%; right: 3%; bottom: -2.5%; height: 7%; border-radius: 50%; background: var(--pink-3); }
.rt-drawer .rt-fc { position: absolute; left: 4%; right: 4%; bottom: 26%; border-radius: 6px 6px 0 0; }
.rt-drawer .rt-fc i {
	position: absolute;
	top: -26px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26%;
	height: 26px;
	border-radius: 6px 6px 0 0;
	color: var(--ink);
	font-size: var(--t-s);
	font-style: normal;
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: 1;
}
.rt-drawer .rt-fc1 { height: 15%; background: #f6f4f6; }
.rt-drawer .rt-fc1 i { right: 6%; background: var(--grey-3); }
.rt-drawer .rt-fc2 { height: 12.5%; background: #faf9fa; }
.rt-drawer .rt-fc2 i { left: 37%; background: var(--pink-3); }
.rt-drawer .rt-fc3 { height: 10%; background: var(--white); }
.rt-drawer .rt-fc3 i { left: 6%; background: var(--rose); color: var(--white); }
.rt-drawer .rt-raised { position: absolute; left: 9%; right: 9%; bottom: 28%; height: 71%; border-radius: 8px 8px 0 0; background: var(--white); }
.rt-drawer .rt-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 10% 9% 0; }
.rt-drawer .rt-f2,
.rt-drawer .rt-f3 { opacity: 0; visibility: hidden; }
.rt-drawer .rt-tab { position: absolute; top: -22px; left: 9%; width: 30%; height: 22px; border-radius: 6px 6px 0 0; background: var(--white); }
.rt-drawer .rt-tab.rt-t-grey { left: 36%; }
.rt-drawer .rt-tab.rt-t-rose { left: 61%; }
.rt-drawer .rt-kind {
	max-width: 8em;
	color: var(--ink);
	font-size: var(--t-l);
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: 0.9;
	text-wrap: balance;
}
.rt-drawer .rt-stamp { align-self: flex-end; margin-top: 8%; }
.rt-drawer .rt-meta { margin-top: 6%; color: var(--soft); font-size: var(--t-s); line-height: 1.35; }
.rt-drawer .rt-front { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; border-radius: 10px; background: var(--grey-2); }
.rt-drawer .rt-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; border-radius: 0 0 10px 10px; background: var(--grey-3); }
.rt-drawer .rt-label { position: absolute; left: 50%; top: 16%; width: 48%; height: 32%; padding: 4px; border-radius: 6px; background: var(--grey-3); transform: translateX(-50%); }
.rt-drawer .rt-label span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border-radius: 3px;
	background: var(--white);
	color: var(--ink);
	font-size: var(--t-b);
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
}
.rt-drawer .rt-pull { position: absolute; z-index: 1; left: 50%; top: 56%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--grey-3); transform: translateX(-50%); }
.rt-drawer .rt-pull::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #ddd9de; }

/* stempel „wykup do” */
.rt-stamp {
	padding: 6px 12px 7px;
	border: 3px solid var(--rose);
	border-radius: 10px;
	color: var(--rose);
	font-weight: 800;
	font-stretch: 62%;
	text-align: center;
	text-transform: uppercase;
	line-height: 0.92;
	transform: rotate(-7deg);
	mix-blend-mode: multiply;
}
.rt-stamp b { display: block; font-size: var(--t-l); font-weight: 800; white-space: nowrap; }
.rt-stamp b + b { margin-top: 2px; }

/* ---------- jak to działa: schody ---------- */
.rt-steps {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	padding: var(--gap) var(--m);
}
.rt-steps > .rt-steps-title {
	position: relative;
	z-index: 1;
	grid-column: 9 / 13;
	grid-row: 1;
	justify-self: end;
	padding-top: 4px;
	font-size: var(--t-l);
	font-weight: 600;
	line-height: 1.1;
	text-align: right;
}
.rt-steps > .rt-stair {
	display: grid;
	grid-column: 1 / 13;
	grid-row: 1;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 56px 24px;
}
.rt-stair > .rt-step { grid-column-end: 13; }
.rt-stair > .rt-step:nth-child(1) { grid-column-start: 1; }
.rt-stair > .rt-step:nth-child(2) { grid-column-start: 3; }
.rt-stair > .rt-step:nth-child(3) { grid-column-start: 5; }
.rt-stair > .rt-step:nth-child(4) { grid-column-start: 7; }
.rt-stair .rt-step h3 { font-size: var(--t-h); }
.rt-stair .rt-step:nth-child(4) h3 { color: var(--rose); }
.rt-stair .rt-step p { max-width: 36ch; margin-top: 14px; text-wrap: pretty; }

/* ---------- konto pacjenta: dwa pola ---------- */
.rt-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-duo .rt-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 860px;
	overflow: hidden;
}
.rt-duo .rt-p1 { background: var(--pink); }
.rt-duo .rt-p2 { background: var(--grey); }
.rt-duo .rt-panel > .rt-panel-title { position: absolute; z-index: 2; top: 36px; left: var(--m); width: 28%; font-size: var(--t-l); }
.rt-duo .rt-row {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 24px;
	padding: 0 var(--m) var(--m);
}
.rt-duo .rt-row h3 { font-size: var(--t-l); font-weight: 600; line-height: 1.15; }
.rt-duo .rt-row p { max-width: 32ch; margin-top: 6px; }

/* duża karta e-recepty (blok „Termin wykupu e-recepty”) */
.rt-checker .rt-big-card {
	position: absolute;
	top: -240px;
	left: 36%;
	width: 104%;
	height: 860px;
	padding: 300px 0 0 44px;
	border-radius: 12px;
	background: var(--white);
	text-align: left;
}
.rt-checker .rt-lines {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: 16px 22px;
	max-width: 420px;
	margin-top: 44px;
}
.rt-checker .rt-lines dt { color: var(--soft); }
.rt-checker .rt-lines dd { font-size: var(--t-l); font-weight: 600; line-height: 1.15; }
.rt-checker input[type="date"] {
	width: 100%;
	max-width: 9.5em;
	min-height: 48px;
	padding: 4px 8px;
	border: 0;
	border-bottom: 3px solid var(--pink-3);
	border-radius: 0;
	background: var(--pink-2);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
}
.rt-checker .rt-note { max-width: 34ch; margin-top: 22px; color: var(--soft); }
.rt-checker .rt-big-card .rt-stamp {
	display: inline-block;
	padding: 12px 20px 14px;
	border-width: 5px;
	border-radius: 16px;
	line-height: 0.88;
	transform: rotate(-6deg);
	transform-origin: left bottom;
}
.rt-checker .rt-big-card .rt-stamp b { font-size: var(--t-h); }
.rt-checker .rt-hole { position: absolute; left: 62%; bottom: 52px; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); }
.rt-checker .rt-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-checker .rt-chip {
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.rt-checker .rt-chip:hover { background: var(--pink-2); }
.rt-checker .rt-chip:active { transform: scale(0.97); }
.rt-checker .rt-chip.is-on { background: var(--ink); color: var(--white); }
.rt-checker .rt-stamp.rt-thump { animation: rt-thump 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
@keyframes rt-thump {
	from { opacity: 0; transform: rotate(-6deg) scale(1.2); }
	to { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* fragment konta (blok „Konto pacjenta”) */
.rt-app {
	position: absolute;
	top: -250px;
	left: 8%;
	width: 124%;
	height: 900px;
	padding: 300px 0 0;
	border-radius: 18px;
	background: var(--white);
	text-align: left;
}
.rt-app .rt-bar { display: flex; align-items: baseline; gap: 16px; padding: 0 6% 22px; }
.rt-app .rt-bar strong { font-size: var(--t-l); font-weight: 600; }
.rt-app .rt-bar span { color: var(--soft); }
.rt-app li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 24px;
	padding: 22px 30% 22px 6%;
	border-top: 1px solid var(--grey-2);
}
.rt-app li b { font-size: var(--t-l); font-weight: 600; line-height: 1.15; }
.rt-app li .rt-meta { grid-column: 1; color: var(--soft); }
.rt-app li .rt-tag { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 10px 14px; background: var(--grey); font-weight: 500; white-space: nowrap; }
.rt-app li .rt-tag-rose { background: var(--pink); }
.rt-app .rt-meter { grid-column: 1 / 3; height: 10px; margin-top: 8px; background: var(--grey); }
.rt-app .rt-meter i { display: block; width: 100%; height: 100%; background: var(--rose); }

.rt-sec .rt-acts { gap: 8px; }
.rt-sec .rt-b-ink .wp-block-button__link,
.rt-sec .rt-b-paper .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}
.rt-sec .rt-b-ink .wp-block-button__link { background: var(--ink); color: var(--white); }
.rt-sec .rt-b-ink .wp-block-button__link:hover { background: #000000; color: var(--white); }
.rt-sec .rt-b-paper .wp-block-button__link { background: var(--white); color: var(--ink); }
.rt-sec .rt-b-paper .wp-block-button__link:hover { background: var(--pink-2); color: var(--ink); }
.rt-sec .rt-b-ink .wp-block-button__link:active,
.rt-sec .rt-b-paper .wp-block-button__link:active { transform: scale(0.97); }

/* ---------- cennik: pola, które rosną ---------- */
.rt-prices { position: relative; padding: var(--gap) var(--m); }
.rt-prices > .rt-prices-title { position: absolute; top: var(--gap); left: var(--m); font-size: var(--t-d); }
.rt-prices .rt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.rt-prices .rt-tile { position: relative; display: flex; flex-direction: column; padding: 28px 28px 92px; }
.rt-prices .rt-t1 { min-height: 400px; background: var(--grey); }
.rt-prices .rt-t2 { min-height: 520px; background: var(--pink); }
.rt-prices .rt-t3 { min-height: 640px; background: var(--pink-3); }
.rt-prices .rt-tile h3 { font-size: var(--t-l); font-weight: 600; line-height: 1.15; }
.rt-prices .rt-tile .rt-amount { margin-top: 10px; font-size: var(--t-h); }
.rt-prices .rt-tile ul { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.rt-prices .rt-tile li { max-width: 34ch; margin: 0; line-height: 1.35; }
.rt-prices .rt-strip-wrap { position: absolute; left: 0; right: 0; bottom: 0; display: block; }
.rt-prices .rt-strip { display: block; width: 100%; }
.rt-prices .rt-strip .wp-block-button__link {
	display: flex;
	align-items: center;
	width: 100%;
	height: 64px;
	padding: 0 28px;
	background: var(--grey-2);
	color: var(--ink);
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	transition: background-color 0.2s;
}
.rt-prices .rt-t1 .rt-strip .wp-block-button__link:hover { background: var(--grey-3); color: var(--ink); }
.rt-prices .rt-t2 .rt-strip .wp-block-button__link { background: var(--pink-3); }
.rt-prices .rt-t2 .rt-strip .wp-block-button__link:hover { background: color-mix(in srgb, var(--pink-3) 85%, var(--rose)); color: var(--ink); }
.rt-prices .rt-t3 .rt-strip .wp-block-button__link { background: var(--rose); color: var(--white); }
.rt-prices .rt-t3 .rt-strip .wp-block-button__link:hover { background: var(--rose-2); color: var(--white); }
.rt-prices .rt-after { max-width: 60ch; margin-top: 28px; }

/* ---------- zasady: punkty z kropkami ---------- */
.rt-rules {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: center;
	column-gap: 24px;
	padding: clamp(72px, 8vw, 140px) var(--m);
	overflow: clip;
	background: var(--grey);
}
.rt-rules > :first-child { grid-column: 1 / 6; }
.rt-rules > .rt-rules-body { grid-column: 6 / 13; }
.rt-pic { position: relative; aspect-ratio: 1; margin-left: calc(-1 * var(--m) - 4vw); overflow: hidden; border-radius: 50%; background: var(--pink); }
.rt-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-pic .rt-k-card.rt-k0 { fill: #ffffff; }
.rt-pic .rt-k-card.rt-k1 { fill: #faf9fa; }
.rt-pic .rt-k-card.rt-k2 { fill: #f5f3f5; }
.rt-pic .rt-k-edge { fill: #e9e6ea; }
.rt-pic .rt-k-g3 { fill: var(--grey-3); }
.rt-pic .rt-k-g2 { fill: var(--grey-2); }
.rt-pic .rt-k-p3 { fill: var(--pink-3); }
.rt-pic .rt-k-r { fill: var(--rose); }
.rt-rules .rt-rules-body > h2 { font-size: var(--t-h); }
.rt-rules .rt-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; margin-top: 48px; }
.rt-rules .rt-point h3 { display: flex; align-items: baseline; gap: 10px; font-size: var(--t-b); font-weight: 600; line-height: 1.25; }
.rt-rules .rt-point h3::before { content: ""; flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--rose); }
.rt-rules .rt-point:nth-child(3n+2) h3::before { background: color-mix(in srgb, var(--rose) 45%, var(--pink-3)); }
.rt-rules .rt-point:nth-child(3n) h3::before { background: var(--grey-3); }
.rt-rules .rt-point p { margin-top: 8px; line-height: 1.45; }

/* ---------- pytania: pas na pytanie ---------- */
.rt-faq .rt-faq-head { display: flex; align-items: flex-end; min-height: 360px; padding: 0 var(--m) 36px; background: var(--pink); }
.rt-faq .rt-faq-head h2 { font-size: var(--t-d); }
.rt-faq .rt-qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 56px var(--m); }
.rt-faq .rt-qas > .rt-qa:nth-child(odd) { background: var(--pink-2); }
.rt-faq .rt-qas > .rt-qa:nth-child(even) { background: var(--white); }
.rt-faq .rt-qa > h3 { grid-column: 1 / 6; font-size: var(--t-l); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.rt-faq .rt-qa > .rt-ans { grid-column: 7 / 13; }
.rt-faq .rt-ans p { max-width: 60ch; text-wrap: pretty; }
.rt-faq .rt-ans p + p { margin-top: 12px; }

/* ---------- stopka: tył karty ---------- */
.rt-foot {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	padding: clamp(72px, 8vw, 140px) var(--m) clamp(40px, 5vw, 72px);
	background: var(--grey);
}
.rt-foot .rt-card-back {
	position: relative;
	display: grid;
	grid-column: 2 / 12;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 64px;
	padding: 48px 48px 150px;
	border-radius: 14px;
	background: var(--white);
}
.rt-foot .rt-card-back::after { content: ""; position: absolute; left: 50%; bottom: 104px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--grey); }
.rt-foot .rt-msg h2 { font-size: var(--t-h); }
.rt-foot .rt-msg p { max-width: 40ch; margin-top: 18px; }
.rt-foot .rt-addr { display: grid; align-content: start; gap: 12px; margin: 0; padding: 150px 0 0; list-style: none; }
.rt-foot .rt-addr li { margin: 0; }
.rt-foot .rt-addr a { color: var(--ink); font-size: var(--t-b); font-weight: 500; text-decoration: none; }
.rt-foot .rt-addr a:hover { text-decoration: underline; }
.rt-seal {
	position: absolute;
	top: 40px;
	right: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 136px;
	height: 136px;
	margin: 0;
	border: 4px solid var(--rose);
	border-radius: 50%;
	color: var(--rose);
	font-weight: 800;
	font-stretch: 62%;
	text-align: center;
	text-transform: uppercase;
	line-height: 1;
	transform: rotate(-12deg);
	mix-blend-mode: multiply;
}
.rt-seal b { font-size: var(--t-b); font-weight: 800; }
.rt-seal b:first-child { margin-bottom: 4px; font-size: 1.375rem; }
.rt-foot .rt-imprint { position: absolute; left: 48px; right: 48px; bottom: 32px; max-width: 75ch; color: var(--soft); font-size: var(--t-s); line-height: 1.45; }

/* ---------- podstrony, wpisy, 404 ---------- */
.rt-page-head { padding: clamp(64px, 8vw, 128px) var(--m) clamp(28px, 3vw, 44px); background: var(--pink); }
.rt-page-head > * { max-width: var(--wp--style--global--content-size, 760px); margin-inline: auto; }
.rt-page-head .wp-block-post-title,
.rt-page-head .wp-block-query-title,
.rt-page-head .rt-page-title {
	margin-top: 0;
	color: var(--ink);
	font-size: clamp(2.75rem, 1.4rem + 4.4vw, 6rem);
	font-weight: 800;
	font-stretch: 62%;
	text-transform: uppercase;
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.rt-page-head .wp-block-post-date { margin-bottom: 14px; color: var(--soft); }
.rt-page-head .rt-search { margin-top: 28px; }
.rt-prose,
.rt-list { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(72px, 8vw, 128px); }
.rt-prose h2 { margin-top: 2em; font-size: var(--t-l); }
.rt-prose h3 { margin-top: 1.6em; font-size: var(--t-b); }
.rt-prose a:not(.wp-element-button) { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rt-list .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.rt-list .wp-block-post-template > li + li { margin-top: 44px; }
.rt-entry .wp-block-post-date { color: var(--soft); font-size: var(--t-s); }
.rt-entry .wp-block-post-title { margin-top: 6px; font-size: var(--t-l); }
.rt-entry .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.rt-entry .wp-block-post-title a:hover { text-decoration: underline; }
.rt-entry .wp-block-post-excerpt { margin-top: 10px; }
.rt-entry .wp-block-post-excerpt__more-link { color: var(--rose); }
.rt-list .wp-block-query-pagination { margin-top: 56px; }
.rt-back { padding-bottom: clamp(72px, 8vw, 128px); }

/* ---------- edytor ----------
   W edytorze każdy blok ma własną ramkę z position: relative. Karta e-recepty,
   konto i pieczęć mają się układać względem pola i karty, tak jak na stronie. */
.rt-duo .rt-panel > .rt-editor-preview,
.rt-foot .rt-card-back > .rt-editor-preview { position: static; }

/* ---------- ruch ---------- */
@media (prefers-reduced-motion: no-preference) {
	.rt-in { animation: rt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.rt-in.rt-d1 { animation-delay: 0.08s; }
	.rt-in.rt-d2 { animation-delay: 0.16s; }
	.rt-in.rt-d3 { animation-delay: 0.24s; }
	.rt-drawer .rt-face { animation: rt-face 18s linear infinite both; }
	.rt-drawer .rt-f1 { animation-delay: -1s; }
	.rt-drawer .rt-f2 { animation-delay: 5s; }
	.rt-drawer .rt-f3 { animation-delay: 11s; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rt-drawer .rt-f2,
	.rt-drawer .rt-f3 { display: none; }
	.rt-checker .rt-stamp.rt-thump { animation: none; }
}
@keyframes rt-rise {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}
@keyframes rt-face {
	0% { opacity: 0; visibility: hidden; }
	3% { opacity: 1; visibility: visible; }
	33.3% { opacity: 1; visibility: visible; }
	36.3% { opacity: 0; visibility: hidden; }
	100% { opacity: 0; visibility: hidden; }
}

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
	.rt-hero .rt-wordmark { padding-left: 0.32em; letter-spacing: 0.32em; }
	.rt-drawer { width: min(40vw, 340px); }
	.rt-duo { grid-template-columns: minmax(0, 1fr); }
	.rt-duo .rt-panel { min-height: 820px; }
	.rt-rules { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
	.rt-rules > :first-child { grid-column: 1; width: 64vw; max-width: 560px; }
	.rt-rules > .rt-rules-body { grid-column: 1; }
	.rt-pic { margin-left: calc(-1 * var(--m) - 6vw); }
	.rt-foot .rt-card-back { grid-column: 1 / 13; }
}
@media (max-width: 899px) {
	.rt-steps > .rt-steps-title { grid-column: 1 / 13; justify-self: start; margin-bottom: 40px; text-align: left; }
	.rt-steps > .rt-stair { grid-row: 2; }
	.rt-prices .rt-tiles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rt-prices .rt-t1,
	.rt-prices .rt-t2,
	.rt-prices .rt-t3 { min-height: 0; }
	.rt-prices > .rt-prices-title { position: static; margin-bottom: 28px; }
	.rt-rules .rt-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-rules .rt-point:nth-child(n) h3::before { background: var(--rose); }
	.rt-rules .rt-point:nth-child(even) h3::before { background: color-mix(in srgb, var(--rose) 45%, var(--pink-3)); }
	.rt-faq .rt-qa > h3 { grid-column: 1 / 13; }
	.rt-faq .rt-qa > .rt-ans { grid-column: 1 / 13; margin-top: 16px; }
}

/* ---------- telefon ---------- */
@media (max-width: 599px) {
	.rt-top { padding: 12px var(--m); }
	.rt-top .wp-block-navigation,
	.rt-top .wp-block-navigation .wp-block-navigation__container { gap: 0 18px; }
	.rt-top .wp-block-navigation { justify-content: flex-start; }
	.rt-hero { padding-top: 42px; }
	.rt-drawer { width: 66vw; }
	.rt-drawer .rt-meta { display: none; }
	.rt-hero .rt-wordmark { margin-top: 30px; padding-left: 0.1em; font-size: 1.875rem; letter-spacing: 0.1em; }
	.rt-hero .rt-row { flex-direction: column; gap: 14px; width: 100%; }
	.rt-hero .rt-spec-l,
	.rt-hero .rt-spec-r { text-align: center; }
	.rt-hero .rt-cta-wrap { order: -1; width: 100%; }
	.rt-hero .rt-cta,
	.rt-hero .rt-cta .wp-block-button__link { width: 100%; }
	.rt-steps > .rt-stair { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
	.rt-stair > .rt-step:nth-child(n) { grid-column: 1; }
	.rt-stair > .rt-step:nth-child(2) { padding-left: 6vw; }
	.rt-stair > .rt-step:nth-child(3) { padding-left: 12vw; }
	.rt-stair > .rt-step:nth-child(4) { padding-left: 18vw; }
	.rt-stair .rt-step h3 { font-size: 2.125rem; }
	.rt-duo .rt-panel { justify-content: flex-start; min-height: 0; }
	.rt-duo .rt-panel > .rt-panel-title { position: static; width: auto; padding: 28px var(--m) 0; }
	.rt-duo .rt-row { padding: 28px var(--m) var(--m); }
	.rt-checker .rt-big-card { position: relative; top: auto; left: auto; width: auto; height: auto; margin: 24px -40px 0 var(--m); padding: 28px 0 72px 24px; }
	.rt-checker .rt-lines { grid-template-columns: minmax(0, 1fr); gap: 2px; max-width: 72vw; margin-top: 28px; }
	.rt-checker .rt-lines dd { margin-bottom: 12px; }
	.rt-checker .rt-note { display: none; }
	.rt-checker .rt-big-card .rt-stamp { padding: 8px 14px 10px; border-width: 4px; }
	.rt-checker .rt-big-card .rt-stamp b { font-size: 2.25rem; }
	.rt-checker .rt-hole { bottom: 20px; }
	.rt-checker .rt-chip { flex: 1 1 40%; }
	.rt-app { position: relative; top: auto; left: auto; width: auto; height: auto; margin: -24px -60px 0 var(--m); padding: 52px 0 8px; overflow: hidden; }
	.rt-app li { grid-template-columns: minmax(0, 1fr); padding-right: 36%; }
	.rt-app li .rt-tag { grid-column: 1; grid-row: auto; justify-self: start; }
	.rt-duo .rt-acts { width: 100%; }
	.rt-duo .rt-acts .wp-block-button { flex: 1 1 40%; }
	.rt-duo .rt-acts .wp-block-button__link { width: 100%; }
	.rt-prices .rt-tile { padding: 24px 20px 88px; }
	.rt-prices .rt-strip .wp-block-button__link { padding: 0 20px; }
	.rt-rules > :first-child { width: 84vw; }
	.rt-pic { margin-left: calc(-1 * var(--m) - 4vw); }
	.rt-rules .rt-points { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rt-rules .rt-point { padding-left: 1.1em; }
	.rt-rules .rt-point h3::before { margin-left: -1.1em; }
	.rt-faq .rt-faq-head { min-height: 240px; }
	.rt-faq .rt-qa { padding: 32px 20px; }
	.rt-foot .rt-card-back { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 22px 230px; }
	.rt-foot .rt-addr { padding-top: 0; }
	.rt-seal { position: static; justify-self: end; width: 104px; height: 104px; border-width: 3px; }
	.rt-seal b { font-size: 0.875rem; }
	.rt-seal b:first-child { font-size: 1.125rem; }
	.rt-foot .rt-imprint { left: 22px; right: 22px; bottom: 22px; }
	.rt-foot .rt-card-back::after { bottom: 180px; }
}
