/*
 * return.cz – Portfolio, design D „Příběhy“.
 * Všechny třídy prefixované rtpf-. Mobile first, breakpointy 640 a 991 px.
 * Šablona NORMAN vynucuje barvu na h1..h6, strong přes vysoce specifický
 * selektor (#g-mainbody h1,h2,...,strong{color:#141A3C}); kde potřebujeme jinou
 * barvu nadpisu, přebíjíme přes trik `:not(#_)` (přidá specificitu ID selektoru,
 * aniž by cokoliv vylučoval – žádný prvek nemá id="_").
 */

.rtpf {
	--rtpf-navy: #141A3C;
	--rtpf-indigo: #3D47A0;
	--rtpf-indigo-light: #8F97E6;
	--rtpf-signal: #F2A23C;
	--rtpf-paper: #F5F4EF;
	--rtpf-line: #D9D8D0;
	--rtpf-text: #3E4055;
	--rtpf-muted: #5A5C70;
	--rtpf-teal: #38C8B0;

	background: var(--rtpf-paper);
	color: var(--rtpf-text);
	font-family: 'IBM Plex Sans', sans-serif;
}

.rtpf a {
	color: var(--rtpf-indigo);
}

.rtpf a:hover {
	color: var(--rtpf-navy);
}

.rtpf svg {
	flex: none;
}

/* ----- typografie ----------------------------------------------------- */

.rtpf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--rtpf-indigo);
	text-transform: uppercase;
}

.rtpf-kicker--teal {
	color: var(--rtpf-teal);
}

.rtpf-kicker__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}

.rtpf-year {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: var(--rtpf-muted);
}

/* ----- tlačítka a odkazy ------------------------------------------------ */

.rtpf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	border: 1px solid transparent;
	text-decoration: none;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
}

.rtpf-btn--primary {
	background: var(--rtpf-signal);
	color: var(--rtpf-navy);
}

.rtpf-btn--primary:hover {
	background: #e2921f;
	color: var(--rtpf-navy);
}

.rtpf-btn--ghost {
	min-height: 48px;
	border-color: var(--rtpf-line);
	background: #fff;
	color: var(--rtpf-navy);
	font-weight: 600;
}

.rtpf-btn--navy {
	background: var(--rtpf-navy);
	color: #fff;
}

.rtpf-btn--navy:hover {
	background: #232b63;
	color: #fff;
}

.rtpf-btn--navy svg {
	color: var(--rtpf-signal);
}

.rtpf-btn--teal {
	background: var(--rtpf-teal);
	color: var(--rtpf-navy);
}

.rtpf-btn--teal:hover {
	background: #2fae98;
	color: var(--rtpf-navy);
}

.rtpf-btn--outline-light {
	border-color: rgba(143, 151, 230, 0.4);
	color: var(--rtpf-paper);
	background: transparent;
	font-weight: 600;
}

.rtpf-btn--outline-light:hover {
	border-color: var(--rtpf-paper);
	color: var(--rtpf-paper);
}

.rtpf-link {
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.rtpf-link:hover {
	text-decoration: underline;
}

.rtpf a.rtpf-btn:focus-visible,
.rtpf a.rtpf-link:focus-visible,
.rtpf button:focus-visible,
.rtpf a.rtpf-card:focus-visible {
	outline: 3px solid var(--rtpf-indigo);
	outline-offset: 2px;
}

/* ----- hex podklad (inline SVG, viz partial) ---------------------------- */

/* ----- hero -------------------------------------------------------------- */

.rtpf-hero__main {
	position: relative;
	padding: 48px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	overflow: hidden;
}

.rtpf-hero__col {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rtpf-hero__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--rtpf-navy);
}

.rtpf-hero__lead {
	margin: 0;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--rtpf-text);
}

.rtpf-hero__lead p {
	margin: 0;
}

.rtpf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.rtpf-collage {
	position: relative;
	z-index: 1;
	display: none;
}

/* ----- lišta jmen ---------------------------------------------------------- */

/* ----- příběhy ------------------------------------------------------------- */

.rtpf-stories {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 56px 0 0;
}

.rtpf-story {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.rtpf-story__media {
	border-radius: 20px;
	overflow: hidden;
}

.rtpf-story__media img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.rtpf-story__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rtpf-story__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.rtpf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--obor-soft, #F1F0EA);
	color: var(--obor-ink, var(--rtpf-text));
	font-size: 13px;
	font-weight: 600;
}

.rtpf-chip__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--obor-color, var(--rtpf-muted));
}

.rtpf-story__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.rtpf-story__title:not(#_) {
	color: var(--rtpf-navy);
}

.rtpf-story__title a {
	color: inherit;
	text-decoration: none;
}

.rtpf-story__title a:hover {
	text-decoration: underline;
}

.rtpf-story__dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rtpf-story__row {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 14px;
}

.rtpf-story__row dt {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--rtpf-muted);
	padding-top: 3px;
}

.rtpf-story__row dd {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.rtpf-story__intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--rtpf-muted);
}

.rtpf-story__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 20px;
	padding-top: 16px;
	border-top: 1px solid var(--rtpf-line);
}

/* ----- další práce ----------------------------------------------------------- */

.rtpf-dalsi {
	padding: 64px 0 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	scroll-margin-top: 24px;
}

.rtpf-dalsi__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rtpf-dalsi__head h2 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.015em;
}

.rtpf-dalsi__head h2:not(#_) {
	color: var(--rtpf-navy);
}

.rtpf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rtpf-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--rtpf-line);
	background: #fff;
	color: var(--rtpf-navy);
	font-weight: 600;
	font-size: 14px;
	font-family: inherit;
}

.rtpf-filter__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--obor-color, var(--rtpf-muted));
}

.rtpf-filter.is-active {
	background: var(--rtpf-navy);
	border-color: var(--rtpf-navy);
	color: #fff;
}

.rtpf-filter.is-active .rtpf-filter__dot {
	background: #fff;
}

/* ----- mřížka karet (další práce i podkategorie) ----------------------------- */

.rtpf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.rtpf-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
	color: var(--rtpf-navy);
	border-radius: 4px;
}

.rtpf-card:hover .rtpf-card__title {
	text-decoration: underline;
}

.rtpf-card__media {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--rtpf-line);
	background: #fff;
}

.rtpf-card__media img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	object-position: top;
}

.rtpf-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rtpf-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.rtpf-card__title {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 17px;
}

.rtpf-card__year {
	flex: none;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--rtpf-muted);
}

.rtpf-card__foot {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.rtpf-card__dot {
	flex: none;
	margin-top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--obor-color, var(--rtpf-muted));
}

.rtpf-card__perex {
	font-size: 14px;
	line-height: 1.5;
	color: var(--rtpf-muted);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

/* ----- 3D pruh (tmavý, full-bleed) -------------------------------------------- */

/* ----- závěr ------------------------------------------------------------------ */

.rtpf-zaver {
	margin-top: 72px;
}

.rtpf-zaver__fallback {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 40px 0;
	text-align: center;
	align-items: center;
}

.rtpf-zaver__fallback h2 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.rtpf-zaver__fallback h2:not(#_) {
	color: var(--rtpf-navy);
}

.rtpf-zaver__fallback p {
	margin: 0;
	font-size: 16px;
	color: var(--rtpf-text);
}

/* ----- podkategorie: weby / instalace / ai-projekty / 3d-tisk ------------------ */

.rtpf-sekce,
.rtpf-galerie3d {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 16px 0 48px;
}

.rtpf-sekce__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rtpf-back {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.rtpf-back:hover {
	text-decoration: underline;
}

.rtpf-sekce__head h1 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.02em;
}

.rtpf-sekce__head h1:not(#_) {
	color: var(--rtpf-navy);
}

.rtpf-sekce__lead {
	max-width: 640px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rtpf-text);
}

.rtpf-sekce__lead p {
	margin: 0;
}

.rtpf-empty {
	color: var(--rtpf-muted);
}

/* ----- breakpoint 640 px: mřížky na 2 sloupce ---------------------------------- */

@media (min-width: 640px) {
	.rtpf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	

	.rtpf-hero__title {
		font-size: 44px;
	}

	.rtpf-story__title {
		font-size: 36px;
	}
}

/* ----- breakpoint 991 px: plné rozvržení podle návrhu -------------------------- */

@media (min-width: 991px) {
	.rtpf-hero__main {
		flex-direction: row;
		align-items: center;
		gap: 56px;
		padding: 72px 0 56px;
	}

	.rtpf-hero__col {
		flex: 1 1 auto;
		min-width: 0;
	}

	.rtpf-hero__title {
		font-size: 56px;
	}

	.rtpf-collage {
		display: block;
		position: relative;
		flex: 0 0 420px;
		height: 380px;
	}

	.rtpf-collage__item {
		position: absolute;
		border-radius: 16px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 30px 60px rgba(20, 26, 60, 0.18);
	}

	.rtpf-collage__item img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.rtpf-collage__item--1 {
		left: 0;
		top: 24px;
		width: 280px;
		height: 210px;
		transform: rotate(-4deg);
		z-index: 1;
	}

	.rtpf-collage__item--2 {
		right: 20px;
		top: 0;
		width: 230px;
		height: 180px;
		transform: rotate(3deg);
		z-index: 2;
		border: 4px solid #fff;
	}

	.rtpf-collage__item--3 {
		right: 60px;
		bottom: 0;
		width: 190px;
		height: 190px;
		border-radius: 20px;
		transform: rotate(-2deg);
		z-index: 3;
		border: 4px solid #fff;
	}

	.rtpf-story {
		flex-direction: row;
		align-items: center;
		gap: 56px;
	}

	.rtpf-story > .rtpf-story__media,
	.rtpf-story > .rtpf-story__body {
		flex: 1 1 0;
		min-width: 0;
	}

	.rtpf-story__media img {
		height: 420px;
		border-radius: 26px;
	}

	.rtpf-story--rev {
		flex-direction: row-reverse;
	}

	.rtpf-dalsi__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}

	.rtpf-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	

	

	

	

	

	
}

/* ----- pohyb / kontrast -------------------------------------------------------- */

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

/* ---------- Doplněk: celá dlaždice 3D je odkazem na detail, sdílení nad ním ---------- */

/* Oznámení „Odkaz zkopírován“ (rt-share.js) */
.rtpf-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 12px); padding: 10px 18px; border-radius: 999px; background: #141A3C; color: #F5F4EF; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.rtpf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Galerie 3D tisku (podkategorie): fotka nahoře, popisek pod ní – celá karta je odkaz */

/* Závěr – modul „Portfolio – závěr“ (pozice portfolio-zaver) */
.rtpf-me { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; justify-items: center; text-align: center; padding: 56px 0 72px; }
.rtpf-me__photo { display: block; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 6px solid #F2A23C; }
.rtpf-me__text { display: flex; flex-direction: column; gap: 12px; }
.rtpf-me__text h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.08; letter-spacing: -0.025em; }
.rtpf-me__text h2:not(#_) { color: #141A3C; }
.rtpf-me__text p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: #3E4055; }
.rtpf-me__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.rtpf-me__cta:not(#_) { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 22px; border-radius: 14px; background: #F2A23C; color: #141A3C; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.rtpf-me__cta:hover { background: #e2921f; }
.rtpf-me__tel:not(#_) { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; border: 1px solid #D9D8D0; background: #fff; color: #141A3C; text-decoration: none; font-weight: 600; font-size: 16px; }
.rtpf-me__tel:hover { border-color: #141A3C; }
.rtpf-me a:focus-visible { outline: 3px solid #3D47A0; outline-offset: 3px; }
@media (min-width: 991px) {
	.rtpf-me { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 48px; justify-items: start; text-align: left; padding: 96px 0; }
	.rtpf-me__photo { width: 240px; height: 240px; }
	.rtpf-me__text h2 { font-size: 48px; }
	.rtpf-me__text p { font-size: 18px; }
	.rtpf-me__actions { min-width: 280px; }
}

/* ---------- Rozvržení v šabloně Gantry/NORMAN ---------- */
#g-mainbody:has(.rtpf) { padding-top: 0; padding-bottom: 0; }
.g-content:has(.rtpf) { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.rtpf:not(#_) {
	box-sizing: border-box;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: max(16px, calc(50vw - 600px));
	padding-right: max(16px, calc(50vw - 600px));
}

/* NORMAN barví odkazy v #g-mainbody – tlačítka a odkazy portfolia potřebují vyšší specificitu */
.rtpf a.rtpf-btn--primary:not(#_), .rtpf a.rtpf-btn--teal:not(#_), .rtpf a.rtpf-btn--ghost:not(#_) { color: #141A3C; }
.rtpf a.rtpf-btn--navy:not(#_) { color: #fff; }
.rtpf a.rtpf-btn--outline-light:not(#_) { color: #F5F4EF; }
.rtpf a.rtpf-link:not(#_), .rtpf a.rtpf-back:not(#_) { color: #3D47A0; }
.rtpf a.rtpf-link:not(#_):hover, .rtpf a.rtpf-back:not(#_):hover { color: #141A3C; }
.rtpf a.rtpf-card:not(#_) { color: inherit; text-decoration: none; }
.rtpf-story__title a:not(#_) { color: #141A3C; text-decoration: none; }
.rtpf-story__title a:not(#_):hover { color: #3D47A0; }
/* Snímky webů bývají vysoké – ořez od horního okraje */
.rtpf-story__media img, .rtpf-card__media img, .rtpf-collage__item img { object-position: center top; }

/* =====================================================================
   D2 (2026-09-27): hero s interaktivní mřížkou, rozcestník, AI pruh,
   klikací karty 3D tisku, tlačítko poptávky volitelné
   ===================================================================== */

/* ----- hero přes celou šířku, světlá mřížka (rt-hero-grid.js, data-rt-tone="light") ----- */
.rtpf-hero {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 40px max(16px, calc(50vw - 600px)) 40px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	overflow: hidden;
	isolation: isolate;
}
.rtpf-hero.rt-grid-host:not(#_) { background: #F5F4EF; }
.rtpf-hero.rt-grid-host::after {
	background:
		linear-gradient(90deg, rgba(245, 244, 239, 0.85), transparent 14%, transparent 86%, rgba(245, 244, 239, 0.85)),
		linear-gradient(0deg, rgba(245, 244, 239, 0.9), transparent 30%);
}
.rtpf-hero > :not(canvas) { position: relative; z-index: 2; }
.rtpf-hero__main { padding: 0; }
.rtpf-hero--sub { padding-top: 32px; padding-bottom: 40px; }
.rtpf-hero--sub .rtpf-hero__col { max-width: 760px; gap: 14px; }
.rtpf-hero .rtpf-back:not(#_) { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; align-self: flex-start; font-weight: 600; text-decoration: none; }

/* ----- rozcestník ----- */
.rtpf-roz { display: flex; flex-direction: column; gap: 10px; }
.rtpf a.rtpf-roz__item:not(#_) {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 68px;
	padding: 10px 14px;
	border-radius: 16px;
	border: 1px solid #D9D8D0;
	background: #fff;
	color: #141A3C;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rtpf a.rtpf-roz__item:not(#_):hover { border-color: #141A3C; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 26, 60, 0.12); }
.rtpf a.rtpf-roz__item.is-active:not(#_) { background: #141A3C; border-color: #141A3C; color: #F5F4EF; box-shadow: 0 18px 40px rgba(20, 26, 60, 0.18); }
.rtpf-roz__item:focus-visible { outline: 3px solid #F2A23C; outline-offset: 3px; }
.rtpf-roz__thumbs { display: flex; flex: none; }
.rtpf-roz__thumbs img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; border: 2px solid #fff; background: #ECEBE4; }
.rtpf-roz__thumbs img + img { margin-left: -14px; }
.rtpf-roz__item.is-active .rtpf-roz__thumbs img { border-color: #141A3C; }
.rtpf-roz__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.rtpf-roz__title { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; }
.rtpf-roz__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--obor-color, #8A8C9C); }
.rtpf-roz__desc { font-size: 14px; line-height: 1.35; color: #5A5C70; }
.rtpf-roz__item.is-active .rtpf-roz__desc { color: #C9CADB; }
.rtpf-roz__arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F5F4EF; color: #141A3C; }
.rtpf-roz__item.is-active .rtpf-roz__arrow { background: #F2A23C; }

/* ----- příběhy: tlačítka a odkaz na web ----- */
.rtpf-stories { padding-top: 72px; }
a.rtpf-story__media { display: block; }
.rtpf a.rtpf-btn--outline:not(#_) { border: 1.5px solid #141A3C; background: transparent; color: #141A3C; }
.rtpf a.rtpf-btn--outline:not(#_):hover { background: #141A3C; color: #fff; }
.rtpf-link--ext { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ----- AI pruh ----- */
.rtpf-aiband {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	margin: 80px 0 0 calc(50% - 50vw);
	padding: 56px max(16px, calc(50vw - 600px));
	background: #EFEAFF;
	overflow: hidden;
}
.rtpf-aiband { isolation: isolate; }
.rtpf-aiband.rt-grid-host:not(#_) { background: #EFEAFF; }
.rtpf-aiband.rt-grid-host::after {
	background:
		linear-gradient(90deg, rgba(239, 234, 255, 0.8), transparent 14%, transparent 86%, rgba(239, 234, 255, 0.8)),
		linear-gradient(0deg, rgba(239, 234, 255, 0.6), transparent 25%);
}
.rtpf-aiband > :not(canvas) { position: relative; z-index: 2; }
.rtpf-aiband__inner { position: relative; display: flex; flex-direction: column; gap: 32px; }
.rtpf-aiband__intro { display: flex; flex-direction: column; gap: 16px; }
.rtpf-kicker--ai { color: #3D2A8C; }
.rtpf-kicker--ai .rtpf-kicker__dot { background: #B298FF; }
.rtpf-aiband h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; }
.rtpf-aiband h2:not(#_) { color: #141A3C; }
.rtpf-aiband__intro p { margin: 0; font-size: 17px; line-height: 1.6; color: #3E4055; }
.rtpf-aiband__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rtpf-aiband .rtpf-btn--ghost:not(#_) { border-color: #C9BDF5; }
.rtpf-btn__icon--ai { display: inline-flex; color: #B298FF; }
.rtpf-aiband__list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rtpf a.rtpf-aicard:not(#_) {
	display: flex;
	flex-direction: column;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #DCD2FF;
	box-shadow: 0 24px 50px rgba(61, 42, 140, 0.14);
	color: #141A3C;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
.rtpf a.rtpf-aicard:not(#_):hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(61, 42, 140, 0.2); }
.rtpf-aicard:focus-visible { outline: 3px solid #6A4FD6; outline-offset: 4px; }
.rtpf-aicard__media { position: relative; display: block; height: 200px; background: #E4DCFF; }
.rtpf-aicard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rtpf-aicard__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #141A3C; color: #F5F4EF; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; }
.rtpf-aicard__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 22px; }
.rtpf-aicard__meta { display: flex; align-items: center; gap: 12px; }
.rtpf-aicard__title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.rtpf-aicard__rows { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: #3E4055; }
.rtpf-aicard__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.rtpf-aicard__label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #5A5C70; padding-top: 3px; }
.rtpf-aicard__intro { font-size: 15px; line-height: 1.55; color: #3E4055; }
.rtpf-aicard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rtpf-aicard__tags span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid #DCD2FF; font-size: 13px; color: #3D2A8C; }
.rtpf-aicard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: #3D2A8C; }
.rtpf-aiband__more { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rtpf a.rtpf-aimini:not(#_) { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #DCD2FF; color: #141A3C; text-decoration: none; }
.rtpf-aimini img { display: block; width: 100%; height: 110px; object-fit: cover; }
.rtpf-aimini__title { padding: 10px 14px 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }

/* ----- 3D pruh (tmavý, interaktivní mřížka) ----- */
.rtpf-3dband {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	margin: 0 0 0 calc(50% - 50vw);
	padding: 56px max(16px, calc(50vw - 600px)) 64px;
	background: #141A3C;
	color: #F5F4EF;
	overflow: hidden;
	isolation: isolate;
}
.rtpf-3dband > :not(canvas) { position: relative; z-index: 2; }
.rtpf-3dband__inner { display: flex; flex-direction: column; gap: 32px; }
.rtpf-3dband__head { display: flex; flex-direction: column; gap: 20px; }
.rtpf-3dband__intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.rtpf-3dband h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -0.02em; }
.rtpf-3dband h2:not(#_) { color: #F5F4EF; }
.rtpf-3dband__intro p { margin: 0; font-size: 17px; line-height: 1.6; color: #C9CADB; }
.rtpf-3dband__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rtpf-3dband__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rtpf-3dband__grid > :nth-child(5) { display: none; }

/* ----- karta 3D výtisku (pruh i galerie) ----- */
.rtpf-pcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.rtpf-pcard--dark { background: #232B63; }
.rtpf-pcard--light { background: #fff; border: 1px solid #D9D8D0; }
.rtpf-pcard:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28); }
.rtpf-pcard--light:hover { box-shadow: 0 22px 44px rgba(20, 26, 60, 0.16); }
.rtpf-pcard:has(.rtpf-pcard__link:focus-visible) { outline: 3px solid #38C8B0; outline-offset: 3px; }
.rtpf a.rtpf-pcard__link:not(#_) { display: flex; flex-direction: column; flex-grow: 1; color: inherit; text-decoration: none; }
.rtpf-pcard__link:focus-visible { outline: none; }
.rtpf-pcard--dark .rtpf-pcard__link:not(#_) { color: #F5F4EF; }
.rtpf-pcard--light .rtpf-pcard__link:not(#_) { color: #141A3C; }
.rtpf-pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1B2150; }
.rtpf-pcard--light .rtpf-pcard__media { background: #ECEBE4; }
.rtpf-pcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rtpf-pcard:hover .rtpf-pcard__media img { transform: scale(1.05); }
.rtpf-pcard__more { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #38C8B0; color: #141A3C; font-weight: 700; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.rtpf-pcard:hover .rtpf-pcard__more, .rtpf-pcard:has(.rtpf-pcard__link:focus-visible) .rtpf-pcard__more { opacity: 1; transform: none; }
.rtpf-pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.rtpf-pcard__title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.25; }
.rtpf-pcard__meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #C9CADB; }
.rtpf-pcard--light .rtpf-pcard__meta { color: #5A5C70; }
.rtpf-pcard__share { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F5F4EF; color: #141A3C; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.rtpf-pcard--light .rtpf-pcard__share { background: #141A3C; color: #F5F4EF; }
.rtpf-pcard__share:hover { background: #38C8B0; color: #141A3C; }
.rtpf-pcard__share:focus-visible { outline: 3px solid #38C8B0; outline-offset: 2px; }

/* ----- podstránky: mřížka karet, galerie 3D, výzva ----- */
.rtpf-sekce, .rtpf-galerie3d { padding-top: 0; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.rtpf-sekce__grid { margin-top: 8px; }
.rtpf-3dgallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.rtpf-cta-block { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; border-radius: 22px; background: #141A3C; color: #F5F4EF; overflow: hidden; }
.rtpf-cta-block::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75'%3E%3Cpath d='M0 12.12 7 0h14l7 12.12-7 12.13H7zM28 12.12h14M7 24.25 0 36.37M21 24.25l7 12.12h14' fill='none' stroke='%238F97E6' stroke-opacity='0.14'/%3E%3C/svg%3E"); pointer-events: none; }
.rtpf-cta-block > * { position: relative; }
.rtpf-cta-block__text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.rtpf-cta-block h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; }
.rtpf-cta-block h2:not(#_) { color: #F5F4EF; }
.rtpf-cta-block p { margin: 0; font-size: 17px; line-height: 1.6; color: #C9CADB; }

@media (min-width: 640px) {
	.rtpf-roz { flex-direction: row; flex-wrap: wrap; }
	.rtpf a.rtpf-roz__item:not(#_) { flex: 1 1 260px; }
	.rtpf-3dband__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rtpf-3dband__grid > :nth-child(5) { display: flex; }
	.rtpf-3dgallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.rtpf-aicard__media { height: 260px; }
}

@media (min-width: 991px) {
	.rtpf-hero { padding-top: 64px; padding-bottom: 48px; gap: 48px; }
	.rtpf-hero--sub { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
	.rtpf a.rtpf-roz__item:not(#_) { min-height: 88px; padding: 12px 18px; gap: 16px; border-radius: 18px; }
	.rtpf-roz__thumbs img { width: 44px; height: 44px; border-radius: 12px; }
	.rtpf-roz__title { font-size: 19px; }
	.rtpf-roz__arrow { width: 40px; height: 40px; }
	.rtpf-stories { padding-top: 88px; }
	.rtpf-aiband { margin-top: 96px; padding-top: 88px; padding-bottom: 88px; }
	.rtpf-aiband__inner { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: center; }
	.rtpf-aiband h2 { font-size: 42px; }
	.rtpf a.rtpf-aicard:not(#_) { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
	.rtpf-aicard__media { height: auto; min-height: 400px; }
	.rtpf-aicard__body { padding: 30px 30px 26px; }
	.rtpf-aicard__title { font-size: 30px; }
	.rtpf-3dband { padding-top: 88px; padding-bottom: 96px; }
	.rtpf-3dband__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
	.rtpf-3dband__actions { flex: none; }
	.rtpf-3dband h2 { font-size: 44px; }
	.rtpf-3dband__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
	.rtpf-3dgallery { gap: 24px; }
	.rtpf-cta-block { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 56px; }
	.rtpf-cta-block h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.rtpf-pcard, .rtpf-pcard__media img, .rtpf-pcard__more, .rtpf a.rtpf-roz__item:not(#_), .rtpf a.rtpf-aicard:not(#_) { transition: none; }
	.rtpf-pcard:hover, .rtpf a.rtpf-roz__item:not(#_):hover, .rtpf a.rtpf-aicard:not(#_):hover { transform: none; }
	.rtpf-pcard:hover .rtpf-pcard__media img { transform: none; }
}
