/* The hero sits right under the header: no block gap or top spacing between the header part and the page. */
.wp-site-blocks { gap: 0 !important; }
.dp-hdr-root + .wp-block-template-part,
main.dp-home { margin-top: 0 !important; padding-top: 0 !important; }

/* Front page (home) styles. Moved from the inline styles of the mockup.
   Colours come only from the token variables (--ink, --surface, ...). */

.dp-home {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-giga);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
}

.dp-home-on-ink { color: var(--on-ink); }

/* Hero: one screen (at most 960px) with the header laid over the photo. */
:root { --header-h: 70px; }
.dp-home-hero {
	position: relative;
	min-height: min(100svh, 960px);
	display: flex;
	flex-direction: column;
	color: var(--on-ink);
	overflow: hidden;
}
.dp-home-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dp-home-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--ink) 55%, transparent) 0%,
		transparent 22%,
		transparent 45%,
		color-mix(in srgb, var(--ink) 85%, transparent) 100%
	);
}
.dp-home-hero__body {
	position: relative;
	margin-top: auto;
	padding-bottom: 34px;
}
.dp-home-hero__stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.dp-home-hero__title { max-width: 900px; text-wrap: balance; }
.dp-home-hero__lead { max-width: 720px; }
.dp-home-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 11px 24px;
	margin-top: 6px;
}
.dp-home-hero__label { margin-bottom: 4px; }
.dp-home-hero__hours { font-size: 15px; color: var(--on-ink); }

/* Sections */
.dp-home-sec { padding-top: var(--sec-gap); }
.dp-home-col {
	display: flex;
	flex-direction: column;
	gap: 45px;
}
.dp-home-col--tight { gap: 20px; }
.dp-home-about__head { margin-bottom: 25px; }
.dp-home-about__title { text-wrap: balance; }
.dp-home-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 17px;
}
.dp-home-stack {
	display: flex;
	flex-direction: column;
	gap: 17px;
}
/* The «more» pill sits right after the heading, not at the far edge */
.dp-home-more { margin-right: auto; margin-bottom: 4px; }
.dp-home-news .dp-home-head { align-items: center; }

.dp-home-grid3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dp-home-grid3--activities {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
}
/* Card width on the three-column grid: narrow (2:3 photo) or wide (two columns, 4:3 photo) */
.dp-home-activity--narrow { grid-column: span 1; }
.dp-home-activity--wide { grid-column: span 2; }
.dp-home-grid3--news { gap: 32px; }

/* Activity cards: photo on top, light body below */
.dp-home-activity__img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}
.dp-home-activity__img--right-bottom { object-position: 30% 100%; }
.dp-home-activity__img--left-60 { object-position: 30% 60%; }
.dp-home-activity__body {
	padding: 20px 22px 25px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1;
}
.dp-home-activity,
.dp .dp-home-activity,
.dp a.dp-home-activity { display: flex; flex-direction: column; color: var(--text); }
.dp-home-activity--wide > .dp-home-activity__img { aspect-ratio: 4 / 3; }
.dp-home-activity__title { font: 400 24px/1.2 var(--font-literata); color: var(--ink); }
.dp-home-activity__text {
	line-height: 1.6;
	margin-bottom: 10px;
}
.dp-home-activity__cta {
	align-self: flex-start;
	margin-top: auto;
}
.dp-home-season__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; color: var(--on-ink); }
.dp-home-season__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,.55) 100%); }
.dp-slider-nav { position: absolute; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 14px; }
.dp-slider-nav__dots { display: flex; align-items: center; }
/* Slides, dots and arrows: site.css (the gallery block uses them on other pages too). */
.dp-home-activity__body > .dp-num { align-self: flex-start; }
.dp-home-activity__until { font-size: 14px; font-weight: 600; }

/* Featured events: the first row of the block, one to three cards in the key colour of the event (or the season) */
.dp-featured-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
	margin-bottom: 25px;
}
.dp-featured-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-featured-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-featured {
	display: flex;
	flex-direction: column;
	background: var(--featured-key, var(--season-key, var(--ink)));
	color: var(--season-on-key, #fff);
	text-decoration: none;
}
.dp-featured__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}
.dp-featured-row--2 .dp-featured__img { aspect-ratio: 4 / 3; }
.dp-featured-row--3 .dp-featured__img { aspect-ratio: 3 / 4; }
.dp-featured__body {
	padding: 20px 22px 25px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.dp-featured__date { font-size: 14px; }
/* Inside an event page the event's link colour reached the text and hid it on the key colour */
.dp .dp-featured, .dp .dp-featured .dp-featured__body * { color: var(--season-on-key, #fff); }
.dp-featured__title { font: 400 24px/1.2 var(--font-literata); }
@media (max-width: 781px) {
	.dp-featured-row--2,
	.dp-featured-row--3 { grid-template-columns: 1fr; }
	.dp-featured__img,
	.dp-featured-row--2 .dp-featured__img,
	.dp-featured-row--3 .dp-featured__img { aspect-ratio: 3 / 4; }
}

/* About card: photo slider with caption, dots and arrows; the poster of the video fades in over it */
.dp-home-about {
	position: relative;
	min-height: 640px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--on-ink);
	border-radius: var(--radius-card);
	overflow: hidden;
}
.dp-home-about > .wp-block-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
}
.dp-home-about > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-home-about > .wp-block-image.dp-slide { opacity: 0; transition: opacity .6s ease; }
.dp-home-about > .wp-block-image.dp-slide.is-on { opacity: 1; }
.dp-home-about__video { opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.dp-home-about.is-playing .dp-home-about__video { opacity: 1; }
.dp-home-about__close {
	position: absolute; top: 24px; right: 24px; z-index: 3; width: 44px; height: 44px; border-radius: 999px;
	border: 1px solid var(--on-ink); background: rgba(18, 37, 28, .35); color: var(--on-ink);
	font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.dp-home-about.is-playing .dp-home-about__close { opacity: 1; pointer-events: auto; }
.dp-home-about.is-playing .dp-home-about__content { opacity: 0; transition: opacity .3s; pointer-events: none; }
.dp-home-about__play {
	display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none;
	font-family: var(--font-literata); font-size: 17px;
}
.dp a.dp-home-about__play { color: var(--ink); }
.dp-home-about__play span { border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
@media (max-width: 781px) { .dp-home-about__below .wp-block-html, .dp-home-about__play { order: -1; } }
.dp-home-about__shade {
	position: absolute;
	inset: 0;
	margin: 0 !important; /* the block gap of the group shifted it down, leaving a light band at the top */
	background: linear-gradient(
		180deg,
		transparent 55%,
		color-mix(in srgb, var(--ink) 70%, transparent) 100%
	);
}
.dp-home-about__content {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding: 40px 48px;
}
.dp-home-about { color: var(--on-ink); }
.dp-home-about .dp-slider-nav { position: static; }
.dp .dp-home-about__caption, .dp-home-about .dp-home-about__caption { color: var(--on-ink); font: 400 26px/1.2 var(--font-literata); margin: 0; }
.dp-home-about__below {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 34px 56px;
	padding: 14px 0 24px;
}
.dp-home-about__lead {
	flex: 1 1 520px;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.dp-home-about__lead p { margin: 0; }

/* Key numbers */
.dp-home-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}
/* WordPress adds a block gap above every card but the first: none here, so all four are the same height. */
.dp-home-stats > .dp-home-stat { margin: 0 !important; }
.dp-home-stat {
	align-self: stretch;
	justify-content: flex-start;
	background: var(--surface);
	border: 0;
	border-radius: var(--radius-card);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}
.dp-home-stat__num {
	font: 400 45px/1 var(--font-literata);
	color: var(--ink);
	white-space: nowrap;
}
.dp-home-stat__num, .dp-home-stat__label { margin: 0; }
.dp-home-stat__label { color: var(--text); }
.dp-home-stat__link {
	align-self: flex-start;
	margin-top: auto;
}

/* Map: the watercolor picture of the park, clipped to the park outline and centred on the soft key colour */
.dp-home-map {
	position: relative;
	height: 600px;
	margin-top: 20px;
	border-radius: var(--radius-card);
	background: var(--accent-soft);
	overflow: hidden;
}
.dp-home-map__img {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 112%;
	width: auto;
	max-width: none;
	transform: translate(-50%, -50%);
	clip-path: polygon(6.75% 62.51%,23.81% 59.03%,19.21% 48.22%,19.49% 47.92%,26.39% 40.51%,33.23% 38.88%,33.10% 38.27%,32.95% 37.53%,32.60% 35.27%,32.04% 31.66%,35.83% 29.11%,23.06% 16.09%,32.19% 7.79%,37.10% 6.88%,38.59% 6.95%,40.47% 13.36%,45.86% 17.36%,46.33% 19.29%,66.67% 16.91%,71.22% 16.38%,73.98% 16.00%,81.73% 22.10%,88.66% 29.38%,98.25% 45.72%,81.78% 60.21%,61.62% 74.67%,45.76% 84.87%,27.19% 93.51%,23.36% 92.56%);
	display: block;
}
.dp-home-map__cta { position: absolute; right: 20px; bottom: 20px; }

/* Nursery */
.dp-home-nursery {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 97px;
}
.dp-home-nursery__media {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dp-home-nursery__img {
	width: 100%;
	max-width: 400px;
	height: auto;
	display: block;
	filter: drop-shadow(0 32px 48px color-mix(in srgb, var(--ink) 22%, transparent));
}
.dp-home-nursery__text {
	flex: 1 1 440px;
	display: flex;
	flex-direction: column;
	gap: 17px;
}
.dp-home-nursery__lead {
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
	color: var(--text);
}
.dp-home-nursery__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

/* Visit: three columns with rules on top */
.dp-home-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 102px;
}
.dp-home-fact {
	border-top: 1px solid var(--border-strong);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dp-home-fact__title {
	margin: 0;
	font: 400 25px/1.2 var(--font-literata);
	color: var(--ink);
}
.dp-home-fact__cta {
	align-self: flex-start;
	margin-top: 6px;
}
.dp-home-fact__link { font-size: 14px; }
.dp-home-price {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid var(--hairline);
}
.dp-home-price--last { border-bottom: 0; }
.dp-home-price__value { font-weight: 600; }
.dp-home-route__label { font-weight: 600; }
.dp-home-route__value { color: var(--text); }
.dp-home-route__note {
	font-size: 13px;
	color: var(--text-muted);
}
.dp-home-phone {
	font: 400 29px/1.2 var(--font-literata);
	color: var(--ink);
	text-decoration: none;
}
.dp-home-hours { color: var(--text); }

/* Investors band */
.dp-home-invest {
	background: var(--ink);
	color: var(--on-ink);
	border-radius: var(--radius-card);
	padding: 34px 45px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 17px 52px;
	box-sizing: border-box;
}
.dp-home-invest__text {
	flex: 1 1 560px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.dp .dp-home-invest__kicker { color: color-mix(in srgb, var(--brass) 45%, #fff) !important; background: none; padding: 0; border-radius: 0; transform: none; align-self: flex-start; }
.dp .dp-home-invest .dp-home-invest__title, .dp .dp-home-invest .dp-home-invest__lead { color: var(--on-ink) !important; }
.dp-home-invest__title {
	margin: 0;
	font: 400 28px/1.15 var(--font-literata);
	color: var(--on-ink);
}
.dp-home-invest__lead {
	margin: 0;
	color: var(--on-ink);
	line-height: 1.6;
}

/* News: the query loop cards */
.dp-home-news { padding-top: var(--sec-gap); padding-bottom: var(--sec-gap); }
.dp-home-news-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: var(--space-5) var(--space-5) var(--space-6, 24px);
	background: var(--surface);
	border-radius: var(--radius-card);
	overflow: hidden;
	color: var(--text);
	text-decoration: none;
}
/* The photo runs to the card edges above the padded text */
.dp-home-news-card .dp-shot { aspect-ratio: 3 / 2; overflow: hidden; margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) 6px !important; max-width: none; width: calc(100% + 2 * var(--space-5)); }
.dp-home-news-card .dp-shot img { width: 100%; height: 100% !important; aspect-ratio: 3 / 2; object-fit: cover; }
/* Only the card rounds and clips the photo: a second rounding on the photo let the light card show through at the corners */
.dp-home-news-card .dp-shot,
.dp-home-news-card .dp-shot img { border-radius: 0; box-shadow: none; }
.dp-home-news-card__date {
	font-size: 15px;
	color: var(--text-muted);
	text-transform: lowercase;
	margin: 0;
}
.dp-home-news-card__title {
	font: 400 26px/1.25 var(--font-literata);
	color: var(--ink);
	margin: -6px 0 0;
}
.dp-home-news-card__title a { color: var(--ink); text-decoration: none; }
.dp-home-news-card__excerpt {
	line-height: 1.6;
	margin: 0;
}
.dp-home-news-card__excerpt p { margin: 0; }
.dp-home-news-query .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.dp-home-news-query .wp-block-post-template.is-layout-grid { gap: 32px; }

/* Core blocks: an image block puts its class on the <figure>, so the <img> fills it here */
.dp-home-about__photo { margin: 0 !important; }
.dp-home-about__photo img,
.dp-home-nursery__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dp-home-nursery__img img { height: auto; }

/* Core button blocks: the .dp-pill look sits on the block wrapper, the link only carries the text */
.wp-block-button.dp-pill { display: inline-flex !important; align-items: center; justify-content: center; }
.wp-block-button.dp-pill .wp-block-button__link {
	display: contents;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: inherit !important;
	font: inherit;
	text-decoration: none !important;
}
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* Phone: stacked grids and smaller paddings (the mockup used inline sizes) */
@media (max-width: 1100px) {
	.dp-home-facts { gap: 0 40px; }
}
@media (max-width: 781px) {
	.dp-home-hero__title { font-size: 44px; line-height: 1.05; }
	.dp-home-hero__lead { font-size: 20px; }
	.dp-home-about { min-height: 560px; }
	.dp-home-about__content { padding: 24px 20px; }
	.dp-home-about__shade {
		/* The photo stays clear; the dark only under the caption, as on the «Сезони» cards */
		background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .6) 100%);
	}
	.dp-home-about__caption { font-size: 22px; }
	.dp-home-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.dp-home-stat { padding: 14px; gap: 2px; }
	.dp-home-stat__num { font-size: 28px; }
	.dp-home-stat__label { font-size: 13px; line-height: 1.35; }
	.dp-home-map { height: 420px; }
	.dp-home-nursery__lead { font-size: 17px; }
	.dp-home-invest { padding: 24px 20px; }
	.dp-home-invest__title { font-size: 24px; }
	.dp-home-facts { row-gap: 40px; }
	.dp-home-grid3--activities,
	.dp-home-grid3--news,
	.dp-home-grid3 {
		grid-template-columns: 1fr;
	}
	.dp-home-activity { grid-column: 1 / -1; }
	.dp-home-news-query .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	.dp-home-grid3--activities,
	.dp-home-grid3--news,
	.dp-home-grid3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.dp-home-activity--narrow { grid-column: span 1; }
	.dp-home-activity--wide { grid-column: span 2; }
	.dp-home-news-query .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* Season gallery: a scroll-snap strip, the buttons and arrow keys scroll it by one photo. */
.dp-gallery__nav { display: flex; gap: 8px; }
.dp-gallery__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.dp-gallery__btn:focus-visible,
.dp-gallery__viewport:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dp-gallery__viewport { margin-top: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.dp-gallery__track { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.dp-gallery__slide { flex: 0 0 min(80%, 520px); margin: 0; scroll-snap-align: start; }
.dp-gallery__slide img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
@media (prefers-reduced-motion: reduce) {
	.dp-gallery__viewport { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.dp-home * { transition: none !important; }
}
/* Current season (dobropark/season-now): photo strip on 2/3, text on 1/3; stacked on narrow screens. */
.dp-season-now { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.dp-season-now--text { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.dp-season-now__media { position: relative; min-width: 0; }
.dp-season-now__media .dp-gallery__viewport { margin-top: 0; border-radius: var(--radius-card); }
.dp-season-now__media .dp-gallery__track { gap: 0; }
.dp-season-now__media .dp-gallery__slide { flex: 0 0 100%; }
.dp-season-now__media .dp-gallery__slide img { aspect-ratio: 3 / 2; }
.dp-season-now__media .dp-gallery__nav { position: absolute; right: 16px; bottom: 16px; }
.dp-season-now__text { display: flex; flex-direction: column; gap: 17px; }
.dp-season-now__text > * { margin: 0; }
.dp-season-now__when { font-weight: 600; }
.dp-season-now__lead { line-height: 1.7; }
.dp-season-now__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 900px) {
	.dp-season-now { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.dp-season-now__media .dp-gallery__slide img { aspect-ratio: 4 / 3; }
}

/* Header over the hero (front page only): transparent, light text, fixed; a dark backing fades in on scroll. */
body.home .dp-hdr-root { min-height: 0 !important; height: 0; background: transparent !important; }
body.home .dp-hdr-root header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
	border-bottom-color: transparent !important;
	animation: dp-hdr-dark linear both;
	animation-timeline: scroll(root);
	animation-range: 0 120px;
}
body.admin-bar.home .dp-hdr-root header { top: var(--wp-admin--admin-bar--height, 32px); }
body.home .dp-hdr-root header,
body.home .dp-hdr-root header a { color: var(--on-ink) !important; }
body.home .dp-hdr-root header .dp-nav a:hover { color: var(--brass) !important; }
body.home .dp-hdr-root header .dp-mnav,
body.home .dp-hdr-root header .dp-mnav a { color: var(--ink) !important; }

/* Seasons turn --on-ink into a dark text colour for the light key; on photos and the dark band the text stays light */
.dp-home-hero, body.home .dp-hdr-root header, .dp-home-about, .dp-home-invest, .dp-home-season__media, .dp-home-activity__media { --on-ink: var(--surface); }
.dp .dp-home-invest .dp-pill--light { background: var(--surface); color: var(--ink) !important; }
.dp .dp-home-invest .dp-pill--light .wp-block-button__link { background: transparent; color: var(--ink) !important; }

/* Дозвілля cards as in the design: the text lies on a dark plate over the photo (.dp-ovl), all cards of one height. */
/* No .dp-event spacing from calendar.css: the photo fills the card to its bottom. */
.dp .dp-home-activity { position: relative; border: 0; overflow: hidden; margin-top: 0; padding-bottom: 0; }
.dp .dp-home-activity > .dp-home-activity__img { aspect-ratio: 2 / 3; height: 100%; width: 100%; object-fit: cover; }
.dp .dp-home-activity--wide > .dp-home-activity__img, .dp .dp-home-season__media { aspect-ratio: auto; height: 100%; min-height: 100%; }
.dp .dp-home-activity__body { --on-ink: var(--surface); position: absolute; left: 0; right: 0; bottom: 0; min-height: 212px; box-sizing: border-box; background: color-mix(in srgb, var(--ink) 72%, transparent); }
/* One text plate for every card: a one-line title and two lines of text, a longer text ends in «…».
   The «Лише взимку» badge sits on the photo, as the season label, so it does not make its card's plate taller. */
.dp .dp-home-activity__body { min-height: 0; }
.dp .dp-home-activity__title { height: 1lh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.dp .dp-home-activity__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; height: 2lh; overflow: hidden; flex: none; }
.dp .dp-home-activity__badge { position: absolute; top: var(--space-5); left: var(--space-5); z-index: 2; }
/* «Сезони» and «Події»: the title takes up to two lines. */
.dp .dp-home-ev__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.dp .dp-home-activity:hover .dp-home-activity__body { background: color-mix(in srgb, var(--ink) 82%, transparent); }
.dp .dp-home-activity__body > *:not(.dp-num) { color: var(--on-ink) !important; }
/* A dark tint, not a light one: white text keeps 4.5:1 on the pale band of a card without a photo. */
.dp .dp-home-activity__body .dp-pill--line { background: color-mix(in srgb, var(--ink) 40%, transparent); border-color: transparent !important; }
.dp .dp-home-season .dp-slider-nav { z-index: 2; }
.dp .dp-home-season__shade { display: none; }
/* As the «Сезони» cards: the photo fills the card, the text lies on a soft dark gradient at the bottom, no plate.
   The text lies on the gradient, not on a plate. */
/* No card ground under a photo: the browser smooths the clipped corner over the card ground, so any colour there
   (white or dark) shows as a thin rim. The photo rounds itself with the card's radius, and the ground stays only for a card without a photo. */
.dp .dp-home-activity { background: transparent; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.dp .dp-home-activity:not(:has(img)) { background: var(--ink); }
.dp .dp-home-activity img, .dp .dp-home-season__media { border-radius: inherit; box-shadow: none; }
.dp .dp-home-activity__body,
.dp .dp-home-activity:hover .dp-home-activity__body { padding-top: var(--space-10, 40px); background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
.dp .dp-home-activity:hover .dp-home-activity__title { text-decoration: underline; }
/* Text close to the bottom edge and larger: a one-line text leaves no empty second line under it. */
.dp .dp-home-activity__body { padding-bottom: 18px; gap: 4px; }
.dp .dp-home-activity__title { font-size: 28px; }
.dp .dp-home-activity__text { height: auto; max-height: 2lh; margin-bottom: 0; font-size: 17px; line-height: 1.45; }
.dp a.dp-home-activity .dp-home-activity__cta { display: none; } /* the whole card is the link */
/* Pills: light text on the accent, as in the design, whatever --on-ink the palette sets. */
.dp .dp-pill:not(.dp-pill--line) { color: var(--surface) !important; }
/* «Сезони» and «Події»: each one row of up to six square cards that share the width, as «Дозвілля»: photo with the title on a dark band. */
.dp-home-ev { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.dp .dp-home-ev__card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-card); background: var(--season-key-small, var(--season-key, var(--ink))); color: var(--season-on-key, #fff); text-decoration: none; transition: box-shadow .2s; }
.dp .dp-home-ev__card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.dp-home-ev__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp-home-ev__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); color: #fff; }
.dp-home-ev__card:not(:has(img)) .dp-home-ev__body { background: none; color: inherit; }
.dp-home-ev__date { font-size: 13px; }
.dp-home-ev__title { font: 400 20px/1.2 var(--font-literata); }
@media (max-width: 1100px) { .dp-home-ev { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) { .dp-home-ev { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .dp-home-ev__title { font-size: 17px; } }
/* Season card: the date label sits at the top left, over the photo. */
.dp .dp-home-season { position: relative; }
.dp .dp-home-season__label { position: absolute; top: var(--space-5); left: var(--space-5); z-index: 2; }
/* The hydrangea globe is a cut-out on a light ground: no shadow. */
.dp main .dp-home-nursery__img img { box-shadow: none !important; }
/* Text over a photo: a soft shadow keeps it readable. */
.dp .dp-home-ev__card { text-shadow: 0 1px 6px rgba(0,0,0,.45); }

/*
 * Card mosaic (blocks «Чим зайнятися», «Усе дозвілля», «Події», «Сезони» with layout=mosaic): the server picks
 * --cols from the number of cards so the block is close to a square; every row is filled to the edge,
 * a short last row stretches its cards. A wide activity takes two places.
 */
/* An integer, so the mosaic script can read the column count the media queries chose. */
@property --c { syntax: '<integer>'; inherits: true; initial-value: 3; }
.dp-mosaic { --c: var(--cols, 3); --gap: 25px; --ratio: 1.25; display: flex; flex-wrap: wrap; gap: var(--gap); container-type: inline-size; list-style: none; margin: 0; padding: 0; }
.dp-mosaic--squares { --gap: 16px; --ratio: 1; }
.dp .dp-mosaic > * { --unit: calc((100cqw - (var(--c) - 1) * var(--gap)) / var(--c)); flex: 1 1 calc(var(--unit) - 1px); min-width: 0; height: calc(var(--unit) * var(--ratio)); min-height: 0; grid-column: auto; }
.dp .dp-mosaic > .dp-home-activity--wide { flex: 2 1 calc(2 * var(--unit) + var(--gap) - 1px); }
.dp .dp-mosaic--squares .dp-home-ev__card { aspect-ratio: auto; height: 100%; }
@media (max-width: 1100px) { .dp-mosaic { --c: min(var(--cols, 3), 2); } }
@media (max-width: 781px) {
	.dp-mosaic--squares { --c: 2; --gap: 12px; }
	.dp .dp-mosaic--activities > * { flex-basis: 100%; height: auto; min-height: 320px !important; } /* beats the 44px tap-target rule for links in site.css */
}
/* Phone: every «Дозвілля» card is one 4:3 photo, so the cards in the column have one height. */
@media (max-width: 781px) {
	.dp .dp-home-activity > .dp-home-activity__img,
	.dp .dp-home-activity--wide > .dp-home-activity__img { aspect-ratio: 4 / 3; height: auto; min-height: 320px; } /* as tall as the card: no dark band under the photo */
}

/* Page «Як доїхати» (block dobropark/route) */
.dp-route { margin-block: var(--space-6, 24px); }
.dp-route .dp-home-route__value { font-size: 18px; }
.dp-route__note { margin: 0 0 var(--space-5); }
.dp-route__cta { margin: 0 0 var(--space-7, 40px); }

/* «Дозвілля» (block activities-all): a sticky filter bar under the header (seasons, then times of year)
   in one row that scrolls sideways when it does not fit, and six cards in a row. */
.dp-activities-all [hidden] { display: none !important; }
.dp-activities-all__bar {
	position: sticky;
	top: var(--header-h, 70px);
	z-index: 5;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	padding: 12px 0;
	overflow-x: auto;
	scrollbar-width: none;
	background: var(--bg, #fff);
}
.dp-activities-all__bar::-webkit-scrollbar { display: none; }
/* Six in a row leaves a narrow card: a smaller title on two lines instead of one cut short. */
@media (min-width: 1101px) {
	.dp .dp-activities-all .dp-home-activity__title { font-size: 20px; white-space: normal; height: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
}
.dp-activities-all__bar .dp-pill { flex: 0 0 auto; }
.dp-activities-all__sep { flex: 0 0 1px; align-self: stretch; margin: 4px 2px; background: currentColor; opacity: .2; }
.dp-activities-all .dp-home-grid3--activities { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.dp-activities-all .dp-home-grid3--activities .dp-home-activity { grid-column: span 1; min-height: 320px; }
@media (max-width: 1100px) {
	.dp-activities-all .dp-home-grid3--activities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.dp-activities-all__bar {
		margin-inline: calc(-1 * var(--gutter, 16px));
		padding-inline: var(--gutter, 16px);
	}
	.dp-activities-all .dp-home-grid3--activities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.dp-activities-all .dp-home-grid3--activities .dp-home-activity { grid-column: span 1; min-height: 260px; }
}
