/* ==========================================================================
   Doktor Richter – styly šablony (frontend i editor)
   Zlomy jako na původním webu: tablet ≤ 1024 px, mobil ≤ 767 px.
   ========================================================================== */

:root {
	--dr-text: #2e3644;
	--dr-heading: #38404d;
	--dr-dark: #2e3644;
	--dr-yellow: #f5ffb2;
	--dr-olive: #757c49;
	--dr-light: #f7fafe;
	--dr-container: 1126px;
	--dr-header-h: 100px;
}

@media (max-width: 1024px) {
	:root { --dr-header-h: 72px; }
}

/* --------------------------------------------------------------------------
   Základ
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

img { max-width: 100%; height: auto; }

.dr-main { position: relative; z-index: 3000; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Bloky skryté na všech zařízeních (převzato z původního obsahu). */
.dr-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Nadpisy sekcí a podtržení tahem
   -------------------------------------------------------------------------- */

.h2-title,
.is-style-section {
	font-weight: 400 !important;
	line-height: 66px !important;
	margin-block-start: 0.43em !important;
	margin-block-end: 0.43em !important;
}

.underline-svg {
	position: relative;
	display: inline-block;
}

.underline-svg::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -35px;
	width: 100%;
	height: 60px;
	background: url("../img/Vector-23.svg") no-repeat center / 100% auto;
	pointer-events: none;
	z-index: -1;
}

.muted {
	opacity: .75;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Obsahová plocha (světlý panel se zaoblenými rohy) a řádky sekcí
   -------------------------------------------------------------------------- */

.cut-edges {
	position: relative !important;
	top: -2em !important;
	z-index: 3000 !important;
	border-top-left-radius: 32px !important;
	border-top-right-radius: 32px !important;
	background: var(--dr-light) !important;
}

.dr-row {
	position: relative;
	padding-block: 24px;
}

.dr-row--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.dr-row--center > .dr-faq { align-self: stretch; }

.dr-row--narrow { max-width: 800px !important; }

@media (max-width: 767px) {
	.dr-row { padding-inline: 24px; }
	.dr-row--m16 { padding-inline: 16px; }
	.dr-row--flush { padding-inline: 0; }
}

/* Řádek s jediným nadpisem sekce (Co o mně říkají klienti) */
.dr-row--heading { padding-block: 48px 72px; }

/* Odstavce a seznamy v sekcích mají běžné okraje (jako dřív uvnitř sloupců Kadence). */
.dr-row.dr-row :is(p, ul, ol),
.dr-book__text.dr-book__text :is(p, ul, ol),
.dr-testimonial__card.dr-testimonial__card > p,
.dr-faq__panel-inner.dr-faq__panel-inner :is(p, ul, ol) {
	margin-block: 1em;
}

/* Perex pod nadpisem */
.dr-perex { padding-top: 16px; }

/* Řádek s jedním tlačítkem uprostřed */
.dr-row--button {
	display: flex;
	justify-content: center;
	gap: 8px;
}

/* --------------------------------------------------------------------------
   Tlačítka
   -------------------------------------------------------------------------- */

.dr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border-radius: 68px;
	border: 0 solid transparent;
	font-family: Cabin, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.63;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all .3s ease;
	position: relative;
	z-index: 1;
}

.dr-btn--w500 { font-weight: 500; }
.dr-btn--lora { font-family: Lora, serif; }

.dr-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.dr-btn__icon svg {
	width: 18px;
	height: 18px;
}

.dr-btn--primary {
	background: var(--dr-yellow);
	color: var(--dr-text);
}

.dr-btn--primary:hover,
.dr-btn--primary:focus-visible {
	background: var(--dr-olive);
	color: #fff !important;
}

.dr-btn--outline-light {
	background: transparent;
	color: #fff;
	border: 1px solid var(--dr-light);
}

.dr-btn--outline-light:hover,
.dr-btn--outline-light:focus-visible {
	background: rgba(247, 250, 254, .2);
	color: #fff;
}

.dr-btn--white {
	background: #fff;
	color: #3f3f3f;
}

.dr-btn--white:hover,
.dr-btn--white:focus-visible {
	background: var(--dr-yellow);
	color: #3f3f3f;
}

.dr-btn--sm { padding: 7.2px 18px; }
.dr-btn--md { padding: 9px 16px; }
.dr-btn--md.dr-btn--outline-light { padding: 8px 16px; }
.dr-btn--lg { padding: 16px 24px; }

.dr-btn--header {
	padding: 12px 18px;
	line-height: 28px;
	color: var(--dr-light);
}

.dr-btn--border-2 { border-width: 2px; }

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */

.dr-header {
	position: relative;
	z-index: 4000;
	font-family: Cabin, sans-serif;
}

.dr-header__inner {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: 1440px;
	min-height: 100px;
	margin: 0 auto;
	padding: 0 15px;
}

.dr-header__logo {
	display: flex;
	align-items: center;
	justify-self: start;
	line-height: 0;
}

.dr-header__logo-img {
	width: 183px;
	height: auto;
	margin-right: 16px;
}

.dr-header__nav { justify-self: center; }

.dr-menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dr-menu > li { margin-right: 40px; }

.dr-menu a {
	display: block;
	padding: 0 10px;
	font-family: Cabin, sans-serif !important;
	font-size: 18px;
	line-height: 40px;
	color: #fff;
	text-decoration: none;
	text-align: center;
	transition: color .2s;
}

.dr-menu a:hover,
.dr-menu a:focus-visible {
	color: var(--dr-yellow);
}

.dr-header__cta {
	justify-self: end;
	display: flex;
}

.dr-header__toggle {
	display: none;
	justify-self: end;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--dr-yellow);
	cursor: pointer;
}

.dr-header__burger {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
	background: url("../img/Menu-Klinika-Jan-Richter.svg") no-repeat center / contain;
	transform: scale(.8);
}

/* Úvodní stránka: hlavička leží přes fotku hero sekce. */
.site-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4000;
}

/* Podstránky: tmavý pruh, při rolování zůstává nahoře. */
.dr-header--solid {
	position: sticky;
	top: 0;
	background: rgb(45, 54, 68);
}

.dr-header--solid .dr-header__inner { grid-template-columns: 1fr auto; }

.admin-bar .dr-header--solid { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header:has(.dr-header--solid) {
	position: sticky;
	top: 0;
	z-index: 4000;
}

.admin-bar .site-header:has(.dr-header--solid) { top: var(--wp-admin--admin-bar--height, 32px); }

@media (max-width: 1024px) {
	.dr-header__inner {
		min-height: 0;
		grid-template-columns: 1fr auto;
		padding: 16px 15px;
	}

	.dr-header__logo-img { width: 120px; }

	.dr-header__nav,
	.dr-header__cta { display: none; }

	.dr-header__toggle { display: block; }

	.dr-header--solid { background: #3f3f3f; }
}

/* Vysouvací mobilní menu */
.dr-offcanvas[hidden] { display: none; }

.dr-offcanvas__overlay {
	position: fixed;
	inset: 0;
	z-index: 4000;
	background: rgba(0, 0, 0, .5);
}

.dr-offcanvas__panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 4001;
	box-sizing: border-box;
	width: 100%;
	max-width: 300px;
	height: 400px;
	max-height: 100vh;
	padding: 5% 10px 10px;
	border-radius: 24px;
	background: var(--dr-light);
	overflow: auto;
}

.dr-offcanvas__close {
	position: fixed;
	top: 8px;
	right: min(calc(100vw - 40px - 15px), 400px);
	right: 15px;
	z-index: 4003;
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: var(--dr-olive);
	cursor: pointer;
}

.dr-offcanvas__close::before,
.dr-offcanvas__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--dr-light);
}

.dr-offcanvas__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dr-offcanvas__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.dr-offcanvas:not([hidden]) .dr-offcanvas__close { display: block; }

.dr-mobile-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
}

.dr-mobile-menu > li { padding: 12px 2px; }

.dr-mobile-menu a {
	display: inline;
	padding: 0 10px;
	font-family: Cabin, sans-serif;
	font-size: 24px;
	line-height: 40px;
	color: var(--dr-text);
	text-decoration: none;
}

.dr-mobile-menu > li:not(:last-child) > a::after {
	content: "";
	display: inline-block;
	margin-left: 8px;
	width: 12px;
	height: 12px;
	background: url("../img/Prava-sipka.svg") no-repeat center / contain;
	transition: transform .2s;
}

.dr-mobile-menu > li:not(:last-child):hover > a::after { transform: translateX(3px); }

/* Poslední položka s třídou cta-mobile = žluté tlačítko s kalendářem. */
.dr-mobile-menu > li.cta-mobile { margin: 0 auto; }

.dr-mobile-menu > li.cta-mobile > a {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 auto;
	padding: 4px 30px;
	border-radius: 999px;
	background: #f7ffa6;
	font-size: 18px;
	font-weight: 500;
	color: #1a1a1a;
}

.dr-mobile-menu > li.cta-mobile > a::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url("../img/Klinika-Jan-Richter-1.svg") no-repeat center / contain;
}

html.dr-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.dr-hero {
	position: relative;
	isolation: isolate;
	padding-top: var(--dr-header-h);
	background: var(--dr-hero-bg, none) center / cover no-repeat;
}

.dr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(100deg, rgb(46, 54, 68) 39%, rgba(46, 54, 68, .43) 49%, rgba(46, 54, 68, 0) 67%, rgba(46, 54, 68, .13) 76%, rgba(0, 0, 0, 0) 100%);
}

.dr-hero__grid {
	box-sizing: content-box;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 32px;
	max-width: var(--dr-container);
	margin: 0 auto;
	padding: 0 15px;
}

.dr-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 24px;
}

.dr-hero__title {
	margin: 0.67em 0 0;
	padding-bottom: 0;
	color: #fff;
	font-weight: 400;
	line-height: 1.1em;
}

.dr-hero__text {
	max-width: 400px;
	margin: 0 0 16px;
	color: #fff;
	font-family: Lora, serif;
	font-size: 16px;
	font-weight: 400;
}

.dr-hero__buttons {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
	margin-top: 33px;
}

.dr-hero__buttons > * + * { margin-left: 4px; }

/* Obrysové tlačítko sedí o 3 px níž (zarovnání na účaří jako dřív). */
.dr-hero__buttons > .dr-btn--outline-light { margin-top: 6px; }

.dr-hero__media {
	min-height: 600px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.dr-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.dr-hero__title { margin-top: 0.67em; }
}

@media (max-width: 767px) {
	.dr-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.dr-hero__content { padding-top: 0; }

	.dr-hero__buttons { display: none; }

	/* Tlačítka jsou na mobilu skrytá, mezera pod textem zůstává. */
	.dr-hero__text { margin-bottom: 49px; }

	.dr-hero__media {
		min-height: 0;
		flex-direction: column-reverse;
	}
}

/* Úvodní stránka: hero je první blok obsahu, světlý panel se zaoblenými rohy
   začíná 2em nad spodním okrajem hero (stejně jako dřív panel s top: -2em). */
.dr-home {
	position: relative;
	z-index: 3000;
	background: var(--dr-light);
	/* Dřív byl panel posunutý o -2em, patička proto končí o 2em níž. */
	padding-bottom: calc(var(--wp--preset--spacing--50) + 2em) !important;
}

.dr-home > .dr-hero {
	margin-bottom: -2em;
}

.dr-home > .dr-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2em;
	border-radius: 32px 32px 0 0;
	background: var(--dr-light);
}

.dr-home > .dr-hero + * { margin-top: 24px; }

/* Editor: kroky konzultace vedle sebe, všechny texty viditelné. */
.dr-steps-edit > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.dr-step-edit {
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.dr-step-edit__title {
	font-size: 20px;
	font-weight: 700;
	color: #3a3d41;
	margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Text + obrázek (Medicínu stavím na datech a prevenci)
   -------------------------------------------------------------------------- */

.wp-block-columns.dr-split {
	gap: 32px;
	margin: 0;
	flex-wrap: nowrap !important;
}

.wp-block-columns.dr-split > .wp-block-column {
	flex-basis: 0 !important;
	flex-grow: 1;
}

.dr-split__text { padding-top: 24px; }

.dr-split__media {
	min-height: 530px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.dr-split__media .wp-block-image { margin: 0 0 1em; }

.dr-split__media img {
	border-radius: 22px;
	vertical-align: baseline;
}

@media (max-width: 767px) {
	.wp-block-columns.dr-split {
		flex-wrap: wrap !important;
		flex-direction: column;
	}

	.wp-block-columns.dr-split > .wp-block-column { flex-basis: 100% !important; }

	.dr-split__media { min-height: 220px; }

	.dr-split__text {
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

/* --------------------------------------------------------------------------
   Kniha
   -------------------------------------------------------------------------- */

.dr-book {
	box-sizing: border-box;
	min-height: 498px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	padding: 24px;
	border-radius: 20px;
	background: #fff;
}

.dr-book__cover {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dr-book__img {
	position: relative;
	top: -60px;
	display: block;
	max-width: 100%;
	height: auto;
}

.dr-book__text h3 {
	margin: 16px 0 0;
	font-family: Lora, serif;
	font-weight: 400;
	line-height: 1.63;
}

.dr-book__footer {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 32px;
	padding: 24px 0;
}

.dr-book__cell img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 1em;
}

.dr-book__cell:nth-child(2) img {
	max-width: calc(100% - 2 * 10.72px);
	margin-inline: 10.72px;
}

.dr-book__cell--btn {
	align-self: center;
	display: flex;
	justify-content: flex-end;
}

.dr-book__cell--btn .dr-btn { margin-right: 32px; }

@media (max-width: 767px) {
	.dr-book { grid-template-columns: minmax(0, 1fr); }

	.dr-book__cover { order: 2; }

	.dr-book__img {
		top: 20px;
		max-width: 220px;
	}

	.dr-book__footer {
		grid-template-columns: minmax(0, 1fr);
		gap: 0 32px;
	}

	.dr-book__cell { align-items: center; justify-content: center; }

	.dr-book__cell--btn .dr-btn { margin: 0 0 24px; }
}

/* --------------------------------------------------------------------------
   Služby
   -------------------------------------------------------------------------- */

.dr-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 16px;
}

.dr-service {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0 16px;
	padding: 0 16px;
	border-radius: 20px;
	background: #fff;
	text-align: center;
}

.dr-service__icon {
	max-width: 50px;
	margin: 0;
}

.dr-service__icon img {
	display: inline;
	vertical-align: baseline;
	width: 100%;
	height: auto;
	padding-top: 24px;
	box-sizing: content-box;
}

.dr-service__title {
	margin: 0 0 16px;
	font-family: Lora, serif;
	font-weight: 400;
	line-height: 1.63;
}

@media (max-width: 767px) {
	.dr-services { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Reference
   -------------------------------------------------------------------------- */

.dr-testimonials {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px 16px;
	align-items: center;
}

.dr-testimonial { display: contents; }

.dr-testimonial__photo {
	position: relative;
	margin: 0 0 1em;
	aspect-ratio: 1;
}

.dr-testimonial__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

.dr-testimonial__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 20px;
	background: #fff;
}

.dr-testimonial__name {
	margin: 0;
	padding: 24px 48px 0 32px;
	font-family: Lora, serif;
	font-weight: 400;
	line-height: var(--dr-name-lh, 1.1);
}

@media (max-width: 767px) {
	.dr-testimonials { grid-template-columns: minmax(0, 1fr); }

	.dr-testimonial__photo { max-width: 320px; width: 100%; }

	.dr-testimonial__name { padding-top: 0; line-height: 1.2; }
}

/* --------------------------------------------------------------------------
   Napsali o mně (zmínky v médiích)
   -------------------------------------------------------------------------- */

:root {
	--icon-video: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	--icon-clanek: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
	--icon-clanek-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.jr-media-section {
	padding: 80px 20px;
	font-family: Lora, serif;
	text-align: center;
}

.jr-media-inner {
	max-width: 1140px;
	margin: 0 auto;
}

.jr-media-header {
	text-align: center;
	margin-bottom: 48px;
}

.jr-media-title {
	font-weight: 400;
	margin: 0 0 12px;
	color: #2c3e50;
}

/* Řada log médií (volitelná) */
.jr-media-section ul.jr-media-logos.jr-media-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px 48px;
	margin: -16px 0 48px;
	padding: 0;
	list-style: none;
}

.jr-media-logos__item img {
	display: block;
	height: var(--jr-logo-h, 40px);
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .7;
	transition: filter .3s ease, opacity .3s ease;
}

.jr-media-logos__item a:hover img,
.jr-media-logos__item a:focus-visible img {
	filter: none;
	opacity: 1;
}

@media (max-width: 767px) {
	.jr-media-section ul.jr-media-logos.jr-media-logos {
		gap: 16px 28px;
		margin: -24px 0 32px;
	}

	.jr-media-logos__item img {
		height: calc(var(--jr-logo-h, 40px) * .75);
		max-width: 120px;
	}
}

.jr-media-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.jr-media-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
	transition: box-shadow .3s ease, transform .3s ease;
}

.jr-media-item:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
	transform: translateY(-3px);
}

.jr-media-item__link {
	display: block;
	color: inherit;
	text-decoration: none;
	font-family: Cabin, sans-serif;
}

.jr-media-item__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e8ecf4;
	border-radius: 16px 16px 0 0;
}

.jr-media-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.jr-media-item:hover .jr-media-item__thumb img { transform: scale(1.05); }

.jr-media-item__video-embed {
	width: 100%;
	height: 100%;
}

.jr-media-item__video-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 250px;
	border: none;
}

.jr-media-item__placeholder {
	width: 100%;
	height: 100%;
	background: #e8ecf4 no-repeat center / 48px 48px;
}

.jr-media-item__overlay {
	position: absolute;
	inset: 0;
	background: rgba(44, 62, 80, .4) no-repeat center / 48px 48px;
	border-radius: 16px 16px 0 0;
	opacity: 0;
	transition: opacity .3s ease;
}

.jr-media-item:hover .jr-media-item__overlay { opacity: 1; }

.jr-media-item__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	line-height: 1.63;
	padding: 3px 10px;
	border-radius: 20px;
	color: #fff;
	pointer-events: none;
	z-index: 2;
}

.jr-media-item__badge--video { background: #e74c3c; }
.jr-media-item__badge--clanek { background: #4a6fa5; }
.jr-media-item__badge--podcast { background: #7c5cbf; }

.jr-media-item__info {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.jr-media-item__info > span {
	font-family: Lora, serif;
	font-weight: 700;
}

.jr-media-item__zdroj {
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #9aa5b4;
	line-height: 1.63;
}

.jr-media-item__popisek {
	font-size: .75rem;
	color: #7a8a9a;
	line-height: 1.4;
	margin-top: 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 767px) {
	.jr-media-section { padding: 60px 16px; }
	.jr-media-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 479px) {
	.jr-media-grid { gap: 10px; }
}

/* --------------------------------------------------------------------------
   Kroky konzultace
   -------------------------------------------------------------------------- */

.steps {
	--gap: 24px;
	--radius: 16px;
	display: flex;
	gap: var(--gap);
	align-items: stretch;
	justify-content: center;
	max-width: var(--dr-container);
	margin: 0 auto;
	padding: 24px;
	border-radius: 24px;
	box-sizing: border-box;
}

.step {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	min-width: 0;
	cursor: pointer;
	user-select: none;
	padding: 32px 32px 72px;
	transition: flex-grow .35s ease, box-shadow .25s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
	box-sizing: border-box;
}

.step.is-open {
	box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
	z-index: 2;
}

.step__head {
	display: flex;
	align-items: flex-start;
	margin-bottom: 24px;
}

.step__icon {
	width: 56px;
	height: 56px;
	opacity: .9;
}

.step__toggle {
	position: absolute;
	right: 24px;
	font-size: 28px;
	font-weight: 300;
	color: #9aa3ad;
	line-height: 1;
	z-index: 10;
	pointer-events: none;
	transition: opacity .25s ease;
}

.step__label {
	position: relative;
	font-size: 20px;
	font-weight: 700;
	color: #3a3d41;
	pointer-events: none;
}

.step__body {
	overflow: hidden;
	height: 0;
	opacity: 0;
	display: none;
	padding: 0 6px 0 0;
}

.step.is-open .step__body {
	height: auto;
	opacity: 1;
	display: block;
}

@media (min-width: 801px) {
	.step.is-open { flex-grow: 2.6; }
}

@media (max-width: 800px) {
	.steps {
		flex-direction: column;
		padding: 16px;
		overflow: hidden;
		width: 100%;
	}

	.step {
		width: 100%;
		flex: none;
		min-width: unset;
		max-width: 100%;
		padding: 24px 24px 64px;
	}
}

/* Editor: ukázka kroků bez interakce. */
.editor-styles-wrapper .step { cursor: default; }

/* --------------------------------------------------------------------------
   Časté dotazy (FAQ)
   -------------------------------------------------------------------------- */

.dr-faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 40px;
}

.dr-faq__q {
	margin: 0;
	font-family: Cabin, sans-serif;
}

.dr-faq__button {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid #eee;
	border-radius: 20px 20px 0 0;
	background: transparent;
	color: #444;
	font-family: Lora, serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
	transition: all .2s ease-in-out;
}

.dr-faq__button:hover,
.dr-faq__button:focus-visible,
.dr-faq__item.is-open .dr-faq__button {
	background: #fff;
	color: #444;
	border-bottom-color: #878787;
}

.dr-faq__item.is-open .dr-faq__button { border-bottom-color: #eee; }

.dr-faq__title {
	flex: 1;
	padding-right: 10px;
}

.dr-faq__icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-left: auto;
}

.dr-faq__icon::before,
.dr-faq__icon::after {
	content: "";
	position: absolute;
	top: 11px;
	left: 6px;
	width: 12px;
	height: 2px;
	background: #444;
	transition: transform .2s ease-in-out;
}

.dr-faq__icon::after { transform: rotate(90deg); }

.dr-faq__item.is-open .dr-faq__icon::after { transform: rotate(0deg); }

.dr-faq__panel {
	overflow: hidden;
	transition: height .25s ease-in-out;
}

.dr-faq__panel-inner {
	padding: 20px;
	border: 1px solid transparent;
	border-top-width: 0;
	border-radius: 0 0 20px 20px;
	background: #fff;
}

.dr-faq__panel-inner > :first-child { margin-top: 0; }
.dr-faq__panel-inner > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
	.dr-faq__button { font-size: 16px; }
}

/* V editoru jsou odpovědi vidět kvůli úpravám. */
.dr-faq.is-editor .dr-faq__panel { height: auto; }

/* --------------------------------------------------------------------------
   Sledujte mě (Instagram)
   -------------------------------------------------------------------------- */

.dr-row.dr-row .dr-handle {
	margin: 0;
	font-size: 32px;
	line-height: 1.63;
	color: var(--dr-text);
}

#sb_instagram #sbi_images .sbi_item { border-radius: 20px; overflow: hidden; }

@media (max-width: 768px) {
	#sbi_images .sbi_item { display: none !important; }
	#sbi_images .sbi_item:nth-child(-n+2) { display: block !important; }
}

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */

.cut-edges-ft {
	position: relative !important;
	top: -4em !important;
	z-index: 3000 !important;
	border-top-left-radius: 32px !important;
	border-top-right-radius: 32px !important;
	background: var(--dr-dark) !important;
	margin-bottom: -4em !important;
	overflow: auto;
}

.site-footer {
	background: var(--dr-dark);
	color: #fff;
}

.dr-footer__top {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 3fr 1fr;
	align-items: center;
	gap: 0 64px;
	max-width: 1310px;
	margin: 0 auto;
	padding: 64px 15px 24px;
}

.dr-footer__logo { margin: 0; }
.dr-footer__logo img { display: block; width: 184px; max-width: 100%; height: auto; }

.dr-footer__contact {
	display: flex;
	column-gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

h2.contact-heading {
	display: inline-block;
	margin: 0 24px 0 0;
	font-family: Lora, serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.63;
	color: #fff;
}

p.mail-footer,
p.phone-footer {
	display: inline-block;
	margin: 0 24px 0 0;
}

p.mail-footer a,
p.phone-footer a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: Lora, serif !important;
	color: #fff;
	text-decoration: none;
}

p.mail-footer a::before,
p.phone-footer a::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	background: url("../img/email-7-1.svg") no-repeat center / contain;
	vertical-align: middle;
}

p.phone-footer a::before {
	width: 22px;
	height: 22px;
	background-image: url("../img/phone-call-7-1.svg");
}

.dr-footer__social { justify-self: end; }

.wp-block-social-links .wp-social-link svg {
	width: 32px !important;
	height: 32px !important;
}

.dr-footer__bottom {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: 1310px;
	margin: 42px auto 0;
	padding: 24px 15px;
}

.dr-footer__bottom.dr-footer__bottom > p { margin: 1em 0; }
.dr-footer__bottom > p:last-child { justify-self: end; }

@media (max-width: 1024px) {
	.dr-footer__top { gap: 0 64px; }
}

@media (max-width: 767px) {
	.dr-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-top: 64px;
	}

	.dr-footer__contact { display: block; }

	.dr-footer__contact h2.contact-heading { display: block; }

	.dr-footer__social { justify-self: start; }

	.wp-block-social-links .wp-social-link svg {
		width: 18px !important;
		height: 18px !important;
	}

	.dr-footer__bottom {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		margin-top: 6px;
		padding: 0 15px;
	}

	.dr-footer__bottom > p:last-child { justify-self: start; }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.dr-404 {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-height: 70vh;
	box-sizing: content-box;
	padding: 104px 15px 24px;
	background: #3f3f3f;
}

.dr-404__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.dr-404__title {
	margin: 0.67em 0;
	color: #fff;
	font-weight: 700;
}

.dr-404__text {
	margin: 18px 0;
	color: #fff;
	font-size: 18px;
}

.dr-404__logo { margin: 0 auto 1em; }

/* Editor: nadpis „Napsali o mně“ vycentrovaný jako na webu. */
.dr-media-mentions__editor-title {
	display: block;
	width: fit-content;
	margin-inline: auto !important;
}
