/* Pages «Про парк» and «Інвесторам» (template page-landing): the sections of season-page.css plus
   pills, figures, chips, the dark mission block and the investors' contact form. */
.dp-landing-main .wp-block-post-content > * { margin-block: 0; }
.dp-landing .dp-season-sec:last-child { padding-bottom: 0; }
.dp-landing-main > .wp-block-post-content > :last-child { padding-bottom: 101px; }
.dp-landing-hero { padding-top: 48px; }
.dp-landing-hero .dp-display { margin: 0; text-wrap: balance; }
.dp-landing-hero img { aspect-ratio: 4 / 5; }
/* A place for a photo not uploaded yet (the founder): an empty frame of the photo's size. */
.dp-landing .dp-photo-slot {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card);
	border: 1px dashed color-mix(in srgb, var(--ink, #1a2018) 25%, transparent);
	background: var(--surface-2, #eef0ea);
	display: grid;
	place-items: center;
}
.dp-landing .dp-photo-slot::after {
	content: "Фото";
	color: color-mix(in srgb, var(--ink, #1a2018) 55%, transparent);
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.dp-landing-pills { display: flex; flex-wrap: wrap; gap: 11px; }
.dp-landing-pills > p { margin: 0; }

.dp-landing-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; }
.dp-landing-stats > * { border-top: 1px solid var(--hairline); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.dp-landing-stats > * > * { margin: 0; }
/* Every figure starts at the same line: no flow margin on the cells after the first. */
.dp-landing-stats > * { margin: 0 !important; }
/* Figures that follow figures read as one table: the same gap as between their rows. */
.dp-season-sec:has(.dp-landing-stats) + .dp-season-sec:has(> .dp-in > .dp-landing-stats:only-child) { padding-top: 40px; }
.dp-landing-stat__n { font: 400 44px/1.05 var(--font-literata); color: var(--ink); }

.dp .dp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dp .dp-chips li { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); font-size: 15px; line-height: 1.2; }

.dp-in.dp-landing-dark { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-card); padding: 64px; display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: end; }
.dp-landing-dark .dp-title, .dp-landing-dark p:not(.dp-num) { color: var(--on-ink); }
.dp-landing-mission { display: flex; flex-direction: column; gap: 17px; align-items: flex-start; border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 32px; }
.dp-landing-mission > * { margin: 0; }

.dp-landing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dp-landing-plans > * { border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.dp-landing-plans > * > * { margin: 0; }

.dp-contact__form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 32px; }
.dp-contact__form > p { margin: 0; }
.dp-contact__field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.dp-contact__field small { color: var(--text-muted); font-size: inherit; }
.dp-contact__field input, .dp-contact__field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg, #fff); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px; box-sizing: border-box; width: 100%; }
.dp-contact__field textarea { resize: vertical; }
.dp-contact__field input:focus-visible, .dp-contact__field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.dp-contact__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dp-contact__legal { font-size: 14px; color: var(--text-muted); }
.dp-contact__note { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.dp-contact__note--error { outline: 1px solid currentColor; }
.dp-contact button.dp-pill { border: 0; cursor: pointer; }
.dp-contact .dp-split { align-items: start; }

@media (max-width: 900px) {
	.dp-landing-hero { padding-top: 24px; }
	.dp-landing-hero img { aspect-ratio: 4 / 3; }
	.dp-landing-stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.dp-landing-stat__n { font-size: 34px; }
	.dp-in.dp-landing-dark { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
	.dp-landing-mission { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); padding: 24px 0 0; }
	.dp-landing-plans { grid-template-columns: 1fr; }
	.dp-contact__form { padding: 20px; }
	.dp-landing-main > .wp-block-post-content > :last-child { padding-bottom: 64px; }
}

/* Activity pages (plugin inc/activity-layout.php): a text without a picture keeps a readable width;
   sublists and smaller headings inside a section; a video beside the text is cut to the photo's shape. */
.dp-activity-text .dp-season-text { max-width: 760px; }
.dp-activity-page .dp-season-text h3 { margin: 8px 0 0; font: 400 22px/1.25 var(--font-giga); color: var(--ink); }
.dp-activity-page .dp-season-text ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.dp-activity-page .dp-split { align-items: start; }
.dp-activity-page .dp-split .wp-block-video { margin: 0; }
.dp-activity-page .dp-split .wp-block-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5 !important; object-fit: cover; border-radius: var(--radius-card); }
/* Pages like «Про парк» (it, «Інвесторам», activities, events, seasons, news): the plain text a third larger than
   the site's 16px (owner, 27.11). */
.dp-landing .dp-season-text > p:not(.dp-num):not(.dp-lead),
.dp-landing .dp-season-text > [class*="dp-only-"] > p:not(.dp-num):not(.dp-lead),
.dp-landing .dp-season-text > ul,
.dp-landing .dp-season-text > ol { font-size: 21px; line-height: 1.6; }
/* The winter text and the warm months' text (one of them shown) lay out as if their paragraphs stood in the text. */
.dp-landing .dp-season-text > [class*="dp-only-"] { display: contents; }
.dp-landing .dp-season-text > [class*="dp-only-"] > * { margin: 0; }
@media (max-width: 781px) {
	.dp-landing .dp-season-text > p:not(.dp-num):not(.dp-lead),
	.dp-landing .dp-season-text > [class*="dp-only-"] > p:not(.dp-num):not(.dp-lead),
	.dp-landing .dp-season-text > ul,
	.dp-landing .dp-season-text > ol { font-size: 18px; }
}
/* Event dates, hours and place under the title. */
.dp-article-facts { display: flex; flex-direction: column; gap: 2px; }
.dp-article-facts > p { margin: 0; font-size: 21px; line-height: 1.5; color: var(--text); }
@media (max-width: 781px) { .dp-article-facts > p { font-size: 18px; } }
.dp-article-facts strong { font-weight: 600; margin-right: .4em; }

/* A season location without a photo yet, as a section of the season's page: the frame of the photo. */
.dp-split .dp-shot--soon { box-sizing: border-box; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: var(--space-4); border-radius: var(--radius-card); text-align: center; background: color-mix(in srgb, var(--season-key, var(--ink)) 20%, #fff); color: var(--season-key-text, var(--ink)); }
.dp-split .dp-shot--soon p { margin: 0; font: 400 24px/1.2 var(--font-giga); }

/* Plain pages, events and news laid out like «Про парк»: the text inside groups, lists and questions the same size,
   subheadings, questions that open, buttons as pills. */
.dp-article-page .dp-season-text :is(p, li):not(.dp-num):not(.dp-lead) { font-size: 21px; line-height: 1.6; }
.dp-article-page .dp-season-text > .wp-block-group, .dp-article-page .dp-season-text > .wp-block-details { width: 100%; }
.dp-article-page .dp-season-text .wp-block-group > * + * { margin-top: 12px; }
.dp-article-page .dp-season-text :is(h2, h3, h4):not(.dp-title):not(.dp-display) { margin: 16px 0 0; font: 400 26px/1.25 var(--font-giga); color: var(--ink); }
.dp-article-page .wp-block-details { border-bottom: 1px solid var(--border-strong); padding: 14px 0; }
.dp-article-page .wp-block-details > summary { display: flex; justify-content: space-between; gap: 16px; font: 400 21px/1.4 var(--font-giga); color: var(--ink); }
.dp-article-page .wp-block-details > summary::after { content: "+"; flex: none; }
.dp-article-page .wp-block-details[open] > summary::after { content: "−"; }
.dp-article-page .wp-block-details > * + * { margin-top: 10px; }
/* Questions beside a photo would leave the photo's column empty down the long list: the photo goes above as a
   wide band and the questions take the whole width. */
.dp-article-page .dp-split:has(> .dp-season-text > .wp-block-details) { grid-template-columns: 1fr; }
.dp-article-page .dp-split:has(> .dp-season-text > .wp-block-details) > figure img { aspect-ratio: 3 / 1; }
@media (max-width: 781px) { .dp-article-page .dp-split:has(> .dp-season-text > .wp-block-details) > figure img { aspect-ratio: 16 / 9; } }
.dp-article-page .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
/* Buttons as the site's pills (.dp-pill in site.css): the season colour, no shadow. */
.dp .dp-article-page .wp-block-button__link { display: inline-flex; align-items: center; height: 45px; padding: 0 24px; border-radius: 999px; background: var(--accent-small, var(--accent)); color: var(--surface) !important; font: 600 14px/1 var(--font-giga); text-decoration: none; white-space: nowrap; box-shadow: none; transition: background .15s; }
.dp .dp-article-page .wp-block-button__link:hover { background: var(--ink); color: var(--surface) !important; }
@media (max-width: 781px) { .dp .dp-article-page .wp-block-button__link { height: 52px; font-size: 16px; } }
/* The page's last section keeps a section gap above the footer (blocks after the text, as «Інші події», have their own). */
.dp-landing-main > .dp-landing:last-child > .dp-season-sec:last-child { padding-bottom: var(--sec-gap); }
@media (max-width: 781px) {
	.dp-article-page .dp-season-text :is(p, li):not(.dp-num):not(.dp-lead), .dp-article-page .wp-block-details > summary { font-size: 18px; }
	.dp-article-page .dp-season-text :is(h2, h3, h4):not(.dp-title):not(.dp-display) { font-size: 22px; }
}
/* More titles in one section's text («Графік роботи», «Вартість катання»): all of them subheadings, space above. */
.dp-landing .dp-season-text:has(> .dp-title ~ .dp-title) > .dp-title { font-size: 30px !important; line-height: 1.2; }
.dp-landing .dp-season-text:has(> .dp-title ~ .dp-title) > .dp-title:not(:first-child):not(.dp-num + *) { margin-top: 24px; }
@media (max-width: 781px) {
	.dp-landing .dp-season-text:has(> .dp-title ~ .dp-title) > .dp-title { font-size: 24px !important; }
	.dp-landing .dp-season-text:has(> .dp-title ~ .dp-title) > .dp-title:not(:first-child):not(.dp-num + *) { margin-top: 16px; }
}
/* A price list written as a heading and a one-item list each («дорослий» / «200 грн»): rows of a price table,
   the name left, the price right. The text turns into a two-column grid; everything else spans both columns. */
.dp-season-text:has(> h3:not([class*="dp-"]) + ul > li:only-child) { display: grid; grid-template-columns: 1fr auto; gap: 0; align-items: stretch; }
.dp-season-text:has(> h3:not([class*="dp-"]) + ul > li:only-child) > * { grid-column: 1 / -1; margin-bottom: 17px; }
.dp-landing .dp-season-text > h3:not([class*="dp-"]):has(+ ul > li:only-child),
.dp-landing .dp-season-text > h3:not([class*="dp-"]) + ul:has(> li:only-child) { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dp-landing .dp-season-text > h3:not([class*="dp-"]):has(+ ul > li:only-child) { grid-column: 1; padding-right: 24px; font: 400 21px/1.4 var(--font-giga); color: var(--text); }
.dp-landing .dp-season-text > h3:not([class*="dp-"]):has(+ ul > li:only-child)::first-letter { text-transform: uppercase; }
.dp-landing .dp-season-text > h3:not([class*="dp-"]) + ul:has(> li:only-child) { grid-column: 2; display: block; list-style: none; text-align: right; white-space: nowrap; line-height: 1.4; }
.dp-landing .dp-season-text > h3:not([class*="dp-"]) + ul:has(> li:only-child) > li { font-weight: 600; color: var(--ink); }
@media (max-width: 781px) { .dp-landing .dp-season-text > h3:not([class*="dp-"]):has(+ ul > li:only-child) { font-size: 18px; } }
/* A block of the site inside a section of the page: the section gives the page edges. */
.dp-article-wide > .dp-wrap, .dp-article-wide > section { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; max-width: none; }
/* Captions under photos (owner, 27.11: often important); a captioned photo inside the text takes the column. */
.dp-landing figure.wp-block-image { margin: 0; }
.dp-landing .dp-season-text > figure.wp-block-image { width: 100%; }
.dp-landing .dp-season-text > figure.wp-block-image img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; }
.dp-landing figure.wp-block-image figcaption { margin: 10px 0 0; font: 400 15px/1.45 var(--font-giga); color: var(--text-muted); text-align: left; }
/* Cards (class dp-tile: «card» in a class name gets the shadow of site.css) of a page like «Про парк»: the animals of Dobrodvir four in a row, the locations of a winter walk three. */
.dp-tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 40px 24px; margin-top: 40px; }
/* The flow layout gives every child but the first a top margin: in a grid that would push all but the first card down. */
.dp-tiles > * { margin-block-start: 0 !important; }
.dp-tiles--3 { --n: 3; }
.dp-tile { display: flex; flex-direction: column; gap: 10px; }
.dp-tile > * { margin: 0; }
.dp-tile figure.wp-block-image img, .dp-tile .dp-shot--soon { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius-card); }
.dp-tile .dp-shot--soon { box-sizing: border-box; display: grid; place-items: center; background: color-mix(in srgb, var(--season-key, var(--ink)) 20%, #fff); color: var(--season-key-text, var(--ink)); }
.dp-tile .dp-shot--soon p { margin: 0; font: 400 22px/1.2 var(--font-giga); }
.dp-tile__title { margin-top: 6px !important; font: 400 24px/1.25 var(--font-giga); color: var(--ink); }
.dp-tile > p { font-size: 18px; line-height: 1.55; color: var(--text); }
.dp-tiles--3 .dp-tile > p { font-size: 21px; line-height: 1.6; }
@media (max-width: 1100px) { .dp-tiles, .dp-tiles--3 { --n: 2; } }
@media (max-width: 600px) { .dp-tiles, .dp-tiles--3 { --n: 1; } .dp-tiles--3 .dp-tile > p { font-size: 18px; } }
