/* =============================================================================
   Inner pages in the new design (inc/pages.php): „Kainoraštis“, „Atsiliepimai“, „Kontaktai“.
   Loaded only on those templates, after site.css and the home section styles a page reuses.

   1. Page hero (.dz-phero)           4. Kainoraštis: price table, side cards
   2. Shared blocks (.dz-pcard, CTA)  5. Atsiliepimai: Google summary, review wall
   3. Section spacing                 6. Kontaktai
                                      7. Dokumentas (Taisyklės): contents + numbered rules
                                      8. Galerija: photo wall + viewer
   ============================================================================= */

/* 1. Page hero ------------------------------------------------------------------ */
.dz-phero {
	z-index: 1;
	overflow: hidden;
	background-color: var(--dz-night);
	background-image: url("../img/dzungles-fonas-sm.jpg");
	background-image: image-set(url("../img/dzungles-fonas-sm.webp") type("image/webp"), url("../img/dzungles-fonas-sm.jpg") type("image/jpeg"));
	background-size: cover;
	background-position: center 40%;
	color: var(--dz-cream);
}
@media (min-width: 900px) {
	.dz-phero {
		background-image: url("../img/dzungles-fonas.jpg");
		background-image: image-set(url("../img/dzungles-fonas.webp") type("image/webp"), url("../img/dzungles-fonas.jpg") type("image/jpeg"));
	}
}
.dz-phero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 51, 26, .96) 0%, rgba(27, 51, 26, .9) 45%, rgba(27, 51, 26, .55) 100%);
}
.dz-phero__wrap {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 18px;
	justify-items: start;
	padding-top: calc(var(--dz-hdr-top) + var(--dz-hdr-h) + 72px);
	padding-bottom: 120px;
}
.dz-phero__h1 {
	max-width: 15ch;
	margin: 0;
	font-size: clamp(44px, calc(30px + 3.6vw), 84px);
	color: var(--dz-cream);
	text-wrap: balance;
}
.dz-phero__hl { color: var(--dz-sun); }
.dz-phero__lead { max-width: 40rem; margin: 0; color: var(--dz-cream); opacity: .92; }
.dz-phero__btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.dz-phero__mascot {
	position: absolute;
	z-index: 1;
	right: max(2vw, calc((100vw - var(--dz-wrap)) / 2 - 40px));
	bottom: 54px;
	width: 210px;
	pointer-events: none;
}
.dz-phero__mascot--bezdzione { width: 190px; bottom: 50px; }
.dz-phero .dz-wave { z-index: 2; }
@media (max-width: 900px) {
	.dz-phero__wrap { padding-top: calc(var(--dz-hdr-top) + var(--dz-hdr-h) + 40px); padding-bottom: 96px; gap: 14px; }
	.dz-phero__mascot { width: 112px; right: 8px; bottom: 40px; }
	.dz-phero__mascot--bezdzione { width: 96px; }
	.dz-phero__lead { padding-right: 84px; }
}
@media (max-width: 560px) {
	.dz-phero__mascot { width: 88px; bottom: 34px; }
	.dz-phero__mascot--bezdzione { width: 78px; }
	.dz-phero__lead { padding-right: 56px; }
	.dz-phero__btns { width: 100%; }
	.dz-phero__btns .dz-btn { flex: 1 1 100%; }
}

/* 2. Shared blocks ---------------------------------------------------------------- */
.dz-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 28px 30px;
	border-radius: var(--dz-r-lg);
	background: var(--dz-white);
	color: var(--dz-text);
	box-shadow: var(--dz-shadow-card);
	font-family: var(--dz-font-body);
}
.dz-pcard p { margin: 0; padding: 0; line-height: 1.6; }
.dz-pcard__title {
	margin: 0;
	padding: 0;
	font-family: var(--dz-font-display);
	font-size: clamp(26px, calc(20px + 1vw), 32px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--dz-jungle);
}
.dz-pcard--dark { background: var(--dz-jungle); color: var(--dz-cream); }
.dz-pcard--dark .dz-pcard__title { color: var(--dz-cream); }
.dz-pcard--sun { background: var(--dz-sun); color: var(--dz-bark); }
.dz-pcard--sun .dz-pcard__title { color: var(--dz-bark); }
.dz-pcard .dz-btn { align-self: flex-start; margin-top: 4px; }
.dz-pcard__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dz-pcard__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; line-height: 1.5; }
.dz-pcard__list .dz-icon { flex: none; margin-top: 3px; color: var(--dz-sun); }
.dz-pcard__alt { font-size: 15px; opacity: .9; }
.dz-pcard__alt a { color: inherit; font-weight: 800; }
.dz-pcard__img { display: block; width: min(100%, 300px); height: auto; align-self: center; }
.dz-pcard__img img { display: block; width: 100%; height: auto; }

/* CTA band at the end of a page */
.dz-page__cta { color: var(--dz-cream); }
.dz-pcta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-top: 132px;
	padding-bottom: 104px;
}
.dz-pcta__title { margin: 0 0 10px; color: var(--dz-cream); }
.dz-pcta .dz-intro { max-width: 38rem; margin: 0; color: var(--dz-cream); opacity: .9; }
.dz-pcta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
	.dz-pcta { padding-top: 96px; padding-bottom: 72px; }
	.dz-pcta__btns, .dz-pcta__btns .dz-btn { width: 100%; }
}

/* 3. Section spacing ---------------------------------------------------------------- */
.dz-page__sec { padding-top: 40px; padding-bottom: 96px; }
@media (max-width: 900px) {
	.dz-page__sec { padding-top: 24px; padding-bottom: 72px; }
}

/* 4. Kainoraštis ---------------------------------------------------------------------- */
.dz-prices {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (min-width: 1080px) {
	.dz-prices { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 36px; }
	.dz-prices__side { position: sticky; top: calc(var(--dz-adminbar) + var(--dz-hdr-top) + var(--dz-hdr-h) + 24px); }
}
.dz-prices__card {
	padding: 12px 28px 24px;
	border-radius: var(--dz-r-lg);
	background: var(--dz-white);
	box-shadow: var(--dz-shadow-card);
	font-family: var(--dz-font-body);
	color: var(--dz-text);
}
.dz-prices__side { display: grid; gap: 24px; }
.dz-prices__notes { display: grid; gap: 6px; padding-top: 14px; color: var(--dz-muted); font-size: 15px; }
.dz-prices__notes p { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; }
.dz-prices__notes .dz-icon { color: var(--dz-leaf-700); }

.dz-ptable { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 16px; }
.dz-ptable th,
.dz-ptable td { padding: 13px 10px; border: 0; border-bottom: 1px solid var(--dz-line); text-align: left; vertical-align: middle; background: none; }
.dz-ptable thead th {
	padding-top: 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--dz-jungle);
	color: var(--dz-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.dz-ptable .dz-ptable__day { width: 7.5em; text-align: center; }
.dz-ptable__dayname {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--dz-r-pill);
	background: var(--dz-mint);
	color: var(--dz-jungle);
	letter-spacing: .04em;
}
.dz-ptable__day--we .dz-ptable__dayname { background: var(--dz-sun); color: var(--dz-bark); }
.dz-ptable__group th {
	padding: 26px 10px 10px;
	border-bottom: 0;
	font-family: var(--dz-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--dz-jungle);
}
.dz-ptable__gico {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--dz-mint);
	color: var(--dz-leaf-700);
	vertical-align: -9px;
}
.dz-ptable th.dz-ptable__what { font-weight: 400; }
.dz-ptable__label { display: block; font-weight: 700; line-height: 1.35; color: var(--dz-text); }
.dz-ptable__sub { display: block; margin-top: 2px; color: var(--dz-muted); font-size: 14.5px; line-height: 1.4; }
.dz-ptable__price {
	text-align: center !important;
	font-family: var(--dz-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--dz-jungle);
	white-space: nowrap;
}
.dz-ptable__price--we { color: var(--dz-bark); }
.dz-ptable tbody tr:not(.dz-ptable__group):hover { background: var(--dz-surface-2); }

/* Phones: every row becomes a block – the service, then the prices with their days. */
@media (max-width: 640px) {
	.dz-prices__card { padding: 4px 18px 20px; border-radius: var(--dz-r-md); }
	.dz-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dz-ptable,
	.dz-ptable tbody,
	.dz-ptable tr { display: block; }
	.dz-ptable tr { padding: 12px 0; border-bottom: 1px solid var(--dz-line); }
	.dz-ptable tr.dz-ptable__group { padding: 22px 0 4px; border-bottom: 0; }
	.dz-ptable th,
	.dz-ptable td { display: block; padding: 0; border: 0; }
	.dz-ptable__group th { padding: 0; font-size: 21px; }
	.dz-ptable tr:not(.dz-ptable__group) { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
	.dz-ptable tr:not(.dz-ptable__group) > th { flex: 1 1 100%; }
	.dz-ptable__price { display: inline-flex !important; gap: 8px; align-items: baseline; font-size: 20px; }
	.dz-ptable__price::before {
		content: attr(data-days);
		font-family: var(--dz-font-body);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: var(--dz-muted);
	}
	.dz-ptable tbody tr:not(.dz-ptable__group):hover { background: none; }
}

/* 5. Atsiliepimai ---------------------------------------------------------------------- */
.dz-sec--atsiliepimai .dz-rpage { display: flex; flex-direction: column; gap: 36px; padding-bottom: 0; }
.dz-gsum {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 48px;
	padding: 28px 32px;
	border-radius: var(--dz-r-lg);
	background: var(--dz-white);
	box-shadow: var(--dz-shadow-card);
	font-family: var(--dz-font-body);
}
.dz-gsum__score { display: flex; align-items: center; gap: 18px; }
.dz-gsum__num { margin: 0; padding: 0; font-family: var(--dz-font-display); font-size: 72px; font-weight: 700; line-height: 1; color: var(--dz-jungle); }
.dz-gsum__count { margin: 6px 0 0; padding: 0; color: var(--dz-muted); font-size: 15px; font-weight: 700; }
.dz-gsum__text { display: grid; gap: 6px; justify-items: start; }
.dz-gsum__text p { margin: 0; padding: 0; }
.dz-gsum__title { margin: 0; padding: 0; font-family: var(--dz-font-display); font-size: 26px; font-weight: 700; color: var(--dz-jungle); }
.dz-gsum .dz-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; }
.dz-sec--atsiliepimai .dz-rpage__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }

.dz-rpage__head { display: grid; gap: 14px; justify-items: start; }
/* All the parents' reviews: a wall of notes (columns, each card as tall as its text). */
.dz-rpage__wall { columns: 3 300px; column-gap: 26px; margin: 0; padding: 8px 4px 0; list-style: none; }
.dz-rpage__wall .dz-rev__item { break-inside: avoid; margin: 0 0 26px; padding: 4px 2px; }
@media (max-width: 640px) {
	.dz-rpage__wall { columns: 1; }
	.dz-gsum { padding: 22px 20px; }
	.dz-gsum__num { font-size: 60px; }
}

/* 6. Kontaktai ---------------------------------------------------------------------------- */
/* The home contacts section follows the hero directly: no cream wave on top, less space. */
.dz-page--kontaktai .dz-sec--kontaktai > .dz-wave--top { display: none; }
.dz-page--kontaktai .dz-kont__titles .dz-eyebrow { display: none; } /* the hero already says „Kontaktai“ */
.dz-page--kontaktai .dz-sec--kontaktai .dz-pad-wave { padding-top: 48px; padding-bottom: 120px; }
@media (max-width: 900px) {
	.dz-page--kontaktai .dz-sec--kontaktai .dz-pad-wave { padding-top: 32px; padding-bottom: 96px; }
}
.dz-kinfo { padding-top: 112px; }
.dz-kinfo__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: stretch; }
@media (min-width: 900px) {
	.dz-kinfo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dz-kinfo__dl { display: grid; gap: 12px; margin: 4px 0 0; }
.dz-kinfo__dl div { display: grid; gap: 2px; }
.dz-kinfo__dl dt { color: var(--dz-muted); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dz-kinfo__dl dd { margin: 0; font-weight: 700; line-height: 1.5; }
.dz-kinfo__award { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.dz-kinfo__award .dz-pcard__body { display: grid; gap: 12px; flex: 1 1 260px; }
.dz-kinfo__medal { width: min(100%, 230px); flex: 0 1 230px; }

/* 7. Dokumentas ------------------------------------------------------------------------------ */
.dz-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; font-family: var(--dz-font-body); }
@media (min-width: 1000px) {
	.dz-doc--toc { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
	.dz-doc__toc { position: sticky; top: calc(var(--dz-adminbar) + var(--dz-hdr-top) + var(--dz-hdr-h) + 24px); }
}
.dz-doc__toc {
	padding: 22px 22px 18px;
	border-radius: var(--dz-r-md);
	background: var(--dz-jungle);
	color: var(--dz-cream);
	box-shadow: var(--dz-shadow-card);
}
.dz-doc__toc-title { margin: 0 0 10px; padding: 0; color: var(--dz-sun); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dz-doc__toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dz-doc__toc a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--dz-r-xs);
	color: var(--dz-cream);
	font-weight: 800;
	text-decoration: none;
}
.dz-doc__toc a:hover,
.dz-doc__toc a:focus-visible { background: rgba(250, 247, 201, .1); color: var(--dz-sun); }
.dz-doc__toc a span { color: var(--dz-sage); font-weight: 600; font-size: 14px; }
.dz-doc__body { display: grid; gap: 28px; min-width: 0; }
.dz-doc__sec {
	scroll-margin-top: calc(var(--dz-adminbar) + var(--dz-hdr-top) + var(--dz-hdr-h) + 24px);
	padding: 30px 32px 26px;
	border-radius: var(--dz-r-lg);
	background: var(--dz-white);
	color: var(--dz-text);
	box-shadow: var(--dz-shadow-card);
}
.dz-doc__h { margin: 0 0 18px; padding: 0; font-family: var(--dz-font-display); font-size: clamp(28px, calc(20px + 1.2vw), 38px); font-weight: 700; line-height: 1.1; color: var(--dz-jungle); }
.dz-doc__text { font-size: 16.5px; line-height: 1.65; }
.dz-doc__text p { margin: 0 0 12px; padding: 0; }
.dz-doc__text strong { font-weight: 800; color: var(--dz-jungle); }
.dz-doc__text a { color: var(--dz-jungle); font-weight: 700; }
/* Rules: numbered per section, each in its own row. */
.dz-doc__text ul,
.dz-doc__text ol { counter-reset: dz-rule; margin: 0 0 12px; padding: 0; list-style: none; }
.dz-doc__text li {
	counter-increment: dz-rule;
	position: relative;
	margin: 0;
	padding: 12px 0 12px 52px;
	border-top: 1px solid var(--dz-line);
}
.dz-doc__text li:first-child { border-top: 0; }
.dz-doc__text li::before {
	content: counter(dz-rule);
	position: absolute;
	left: 0;
	top: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--dz-mint);
	color: var(--dz-leaf-700);
	font-family: var(--dz-font-display);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}
.dz-doc__note {
	margin: 20px 0 0 !important;
	padding: 18px 20px !important;
	border-radius: var(--dz-r);
	background: var(--dz-sun);
	color: var(--dz-bark);
	font-weight: 800;
}
@media (max-width: 640px) {
	.dz-doc__sec { padding: 22px 18px 18px; border-radius: var(--dz-r-md); }
	.dz-doc__text { font-size: 16px; }
	.dz-doc__text li { padding-left: 44px; }
	.dz-doc__text li::before { width: 30px; height: 30px; font-size: 14px; }
}

/* 8. Galerija ------------------------------------------------------------------------------------ */
.dz-gal { columns: 3 300px; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.dz-gal__item { break-inside: avoid; margin: 0 0 20px; padding: 0; }
.dz-gal__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--dz-r-md);
	background: var(--dz-mint);
	box-shadow: var(--dz-shadow-card);
}
.dz-gal__img { display: block; width: 100%; height: auto; transition: transform .5s var(--dz-ease); }
.dz-gal__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(27, 51, 26, .78);
	color: var(--dz-cream);
	opacity: 0;
	transition: opacity .2s;
}
.dz-gal__link:hover .dz-gal__img,
.dz-gal__link:focus-visible .dz-gal__img { transform: scale(1.04); }
.dz-gal__link:hover .dz-gal__zoom,
.dz-gal__link:focus-visible .dz-gal__zoom { opacity: 1; }
.dz-gal__link:focus-visible { outline: 4px solid var(--dz-focus-light); outline-offset: 3px; }
@media (max-width: 560px) {
	.dz-gal { columns: 2; column-gap: 12px; }
	.dz-gal__item { margin-bottom: 12px; }
	.dz-gal__link { border-radius: var(--dz-r-sm); }
	.dz-gal__zoom { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.dz-gal__img { transition: none; }
}

/* Viewer (js/galerija.js) */
html.dz-lb-open { overflow: hidden; }
.dz-lb {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 20, 10, .94);
	color: var(--dz-cream);
	font-family: var(--dz-font-body);
}
.dz-lb::backdrop { background: rgba(10, 20, 10, .7); }
.dz-lb__fig {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 64px 76px 56px;
	box-sizing: border-box;
}
.dz-lb__img { display: block; max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; border-radius: var(--dz-r-sm); object-fit: contain; transition: opacity .2s; }
.dz-lb__img.is-loading { opacity: .4; }
.dz-lb__cap { max-width: 60ch; text-align: center; font-size: 15px; line-height: 1.4; opacity: .85; }
.dz-lb__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(250, 247, 201, .14);
	color: var(--dz-cream);
	cursor: pointer;
}
.dz-lb__btn:hover,
.dz-lb__btn:focus-visible { background: var(--dz-sun); color: var(--dz-bark); outline: none; }
.dz-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.dz-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.dz-lb__close { right: 14px; top: 14px; }
.dz-lb__count { position: absolute; left: 20px; top: 26px; margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
@media (max-width: 640px) {
	.dz-lb__fig { padding: 64px 12px 96px; }
	.dz-lb__prev,
	.dz-lb__next { top: auto; bottom: 18px; transform: none; }
	.dz-lb__prev { left: calc(50% - 64px); }
	.dz-lb__next { right: calc(50% - 64px); }
}

