/* Pages «Помост»: home (templates/home-pomost.php) and «О нас» (templates/about-pomost.php). Tokens come from
   brand.css. Everything is scoped to .pm. */

/* The template runs inside WoodMart's 1222px container: let the sections go full width */
.page-template-home-pomost #main-content.container,
.page-template-about-pomost #main-content.container {
	max-width: none;
	padding: 0; /* WoodMart adds 40px on top: a white strip between the page title and the first section */
}

.page-template-home-pomost .wd-content-area,
.page-template-about-pomost .wd-content-area {
	margin-bottom: 0;
}

.pm {
	background: var(--skz-chalk);
	color: var(--skz-ink);
	font: 400 17px/1.6 var(--skz-text);
	/* The header is drawn over the content (WoodMart «overlap»): keep the hero clear of it */
	padding-top: var(--wd-header-h, 105px);
}

.pm *,
.pm *::before,
.pm *::after {
	box-sizing: border-box;
}

.pm img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pm a {
	color: inherit;
}

.pm h1,
.pm h2,
.pm h3,
.pm p,
.pm ul,
.pm ol,
.pm dl,
.pm dd {
	margin: 0;
	padding: 0;
	color: inherit;
}

.pm ul,
.pm ol {
	list-style: none;
}

.pm-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.pm-cover {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.pm-h2 {
	font: 800 clamp(28px, 3.6vw, 44px)/1.08 var(--skz-display);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.pm h3 {
	font: 700 19px/1.3 var(--skz-text);
}

/* Buttons */
.pm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 10px;
	font: 700 17px/1.2 var(--skz-text);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.pm .pm-btn--red {
	background: var(--skz-red);
	color: #fff;
}

.pm .pm-btn--red:hover {
	background: var(--skz-red-dark);
	color: #fff;
}

.pm .pm-btn--line {
	border-color: currentColor;
	color: var(--skz-ink);
}

.pm .pm-btn--line:hover {
	background: var(--skz-ink);
	border-color: var(--skz-ink);
	color: #fff;
}

/* Hero */
.pm-hero {
	padding: 56px 0 88px;
}

.pm-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.pm-hero__org {
	margin-bottom: 18px;
	color: var(--skz-muted);
	font-size: 15px;
	font-weight: 500;
}

.pm-hero__title {
	font: 800 clamp(36px, 5.2vw, 66px)/1.02 var(--skz-display);
	letter-spacing: -0.015em;
}

.pm-lead {
	max-width: 34em;
	margin: 24px 0 32px !important;
	color: var(--skz-muted);
	font-size: 19px;
}

.pm-plates {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px !important;
}

/* A competition plate: coloured disc with a darker rim and a light inner ring */
.pm-plate {
	display: grid;
	place-content: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	color: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: inset 0 0 0 9px rgba(0, 0, 0, .16), inset 0 0 0 11px rgba(255, 255, 255, .3);
}

.pm-plate b {
	display: block;
	font: 800 22px/1.1 var(--skz-display);
}

.pm-plate--red { background: var(--skz-red); }
.pm-plate--blue { background: var(--skz-blue); }
.pm-plate--yellow { background: var(--skz-yellow); color: var(--skz-ink); }
.pm-plate--green { background: var(--skz-green); }

.pm-hero__photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 24px;
	background: var(--skz-line);
}

.pm-hero__photo img {
	object-position: center 30%;
}

/* Why */
.pm-why {
	padding: 88px 0;
	background: var(--skz-paper);
}

.pm-why__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: end;
	margin-bottom: 56px;
}

.pm-why__team {
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	border-radius: 16px;
}

.pm-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 48px;
}

.pm-why__item p {
	margin-top: 8px;
	color: var(--skz-muted);
}

.pm-dot {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 16px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .16), inset 0 0 0 5px rgba(255, 255, 255, .35);
}

.pm-dot--red, .pm-tag--red { background: var(--skz-red); }
.pm-dot--blue, .pm-tag--blue { background: var(--skz-blue); }
.pm-dot--yellow, .pm-tag--yellow { background: var(--skz-yellow); }
.pm-dot--green, .pm-tag--green { background: var(--skz-green); }

/* Ladder of ranks */
.pm-ladder {
	padding: 88px 0 96px;
	background: var(--skz-ink);
	color: #fff;
}

.pm-ladder__lead {
	max-width: 36em;
	margin-top: 14px !important;
	color: #BFC2C9;
	font-size: 18px;
}

.pm-ladder__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: end;
	margin-top: 48px !important;
}

.pm-step {
	overflow: hidden;
	border-radius: 16px;
	background: #23262D;
}

/* Each step stands higher than the previous one, like the rank it shows */
.pm-step:nth-child(2) { margin-bottom: 28px; }
.pm-step:nth-child(3) { margin-bottom: 56px; }
.pm-step:nth-child(4) { margin-bottom: 84px; }

.pm-step__photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center 20%;
}

.pm-step__body {
	padding: 16px 18px 20px;
}

.pm-step__body h3 {
	margin-top: 10px !important;
	font-size: 17px;
}

.pm-step__body p {
	color: #BFC2C9;
	font-size: 15px;
}

.pm-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 99px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.pm-tag--yellow {
	color: var(--skz-ink);
}

/* Hall */
.pm-hall {
	padding: 88px 0;
}

.pm-hall__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
}

.pm-hall__text > p {
	margin: 16px 0 24px !important;
	color: var(--skz-muted);
}

.pm-list li {
	position: relative;
	padding: 10px 0 10px 34px;
	border-top: 1px solid var(--skz-line);
}

.pm-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--skz-green);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .15);
}

.pm-hall__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 220px 220px;
	gap: 10px;
}

.pm-hall__photos img {
	border-radius: 14px;
}

.pm-hall__photos img:first-child {
	grid-column: 1 / -1;
}

/* How to start: a real sequence of steps */
.pm-start {
	padding: 88px 0;
	background: var(--skz-paper);
	scroll-margin-top: 80px;
}

.pm-start__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px !important;
	counter-reset: pm-step;
}

.pm-start__steps > li {
	padding: 28px;
	border: 2px solid var(--skz-line);
	border-radius: 16px;
	counter-increment: pm-step;
}

.pm-start__steps > li::before {
	content: counter(pm-step);
	display: grid;
	place-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--skz-ink);
	color: #fff;
	font: 800 18px/1 var(--skz-display);
}

.pm-start__steps > li:first-child {
	border-color: var(--skz-red);
}

.pm-start__steps p {
	margin-top: 8px !important;
	color: var(--skz-muted);
}

.pm-start__steps .pm-actions {
	margin-top: 20px;
}

.pm-start__steps .pm-btn {
	min-height: 48px;
	padding: 0 18px;
	font-size: 16px;
}

/* News */
.pm-news {
	padding: 88px 0;
}

.pm-news__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 36px;
}

.pm .pm-more {
	color: var(--skz-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pm-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pm-card__link {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: var(--skz-paper);
	text-decoration: none;
}

.pm-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.pm-card time {
	display: block;
	padding: 18px 20px 0;
	color: var(--skz-muted);
	font-size: 14px;
}

.pm-card h3 {
	padding: 6px 20px 22px;
	font-size: 18px;
}

.pm-card__link:hover h3 {
	color: var(--skz-red);
}

/* Contacts */
.pm-contacts {
	padding: 88px 0;
	background: var(--skz-ink);
	color: #fff;
}

.pm-contacts__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: start;
}

.pm-dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 14px 24px;
	margin-top: 32px !important;
}

.pm-dl dt {
	color: #BFC2C9;
}

.pm-dl a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pm-map {
	min-height: 420px;
	overflow: hidden;
	border-radius: 16px;
	background: #23262D;
}

.pm-map iframe,
.pm-map .skz-embed {
	width: 100%;
	max-width: none !important;
	height: 420px !important;
	border: 0;
}

@media (max-width: 1024px) {
	.pm-hero__grid,
	.pm-why__head,
	.pm-hall__grid,
	.pm-contacts__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pm-hero__photo {
		aspect-ratio: 4 / 3;
	}

	.pm-why__grid,
	.pm-start__steps,
	.pm-news__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pm-ladder__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pm-step:nth-child(n) {
		margin-bottom: 0;
	}
}

@media (max-width: 1024px) {
	.pm {
		padding-top: var(--wd-header-sm-h, 60px);
	}
}

@media (max-width: 640px) {
	.pm {
		font-size: 16px;
	}

	.pm-wrap {
		padding: 0 16px;
	}

	.pm-hero {
		padding: 24px 0 56px;
	}

	.pm-lead {
		font-size: 17px;
	}

	.pm-actions .pm-btn {
		flex: 1 1 100%;
	}

	.pm-plates {
		gap: 10px;
		justify-content: space-between;
	}

	.pm-plate {
		width: calc(25% - 8px);
		height: auto;
		aspect-ratio: 1;
		font-size: 11px;
		box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .16), inset 0 0 0 7px rgba(255, 255, 255, .3);
	}

	.pm-plate b {
		font-size: 15px;
	}

	.pm-why,
	.pm-ladder,
	.pm-hall,
	.pm-start,
	.pm-news,
	.pm-contacts {
		padding: 56px 0;
	}

	.pm-why__grid,
	.pm-start__steps,
	.pm-news__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pm-hall__photos {
		grid-template-rows: 180px 140px;
	}

	.pm-dl {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.pm-dl dd {
		margin-bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pm-btn {
		transition: none;
	}
}

.pm-nowrap {
	white-space: nowrap;
}

.pm-hero__place {
	margin-top: 18px !important;
	color: var(--skz-muted);
	font-size: 15px;
}

.pm-dl dd {
	max-width: 30em;
}

/* ---------- Inner pages («О нас»): the WoodMart page title sits above, no header offset needed ---------- */
.pm--inner {
	padding-top: 0;
}

@media (max-width: 1024px) {
	.pm.pm--inner {
		padding-top: 0;
	}
}

.pm-about {
	padding: 72px 0;
}

.pm-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

/* Coach */
.pm-coach {
	padding: 88px 0;
	background: var(--skz-paper);
}

.pm-coach__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: start;
}

.pm-coach__photo {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 20px;
	background: var(--skz-line);
}

.pm-coach__role {
	margin-bottom: 10px !important;
	color: var(--skz-red);
	font-weight: 700;
}

.pm-facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 24px;
	margin: 28px 0 !important;
	padding: 20px 0;
	border-block: 1px solid var(--skz-line);
}

.pm-facts dt {
	color: var(--skz-muted);
}

.pm-facts dd {
	font-weight: 600;
}

.pm-quote {
	margin: 0 0 24px;
	padding: 0 0 0 20px;
	border-left: 6px solid var(--skz-yellow);
	font: 700 clamp(18px, 1.8vw, 22px)/1.4 var(--skz-text);
}

.pm-coach__text > p:not(.pm-coach__role) {
	margin-bottom: 14px !important;
	color: var(--skz-muted);
}

.pm-coach__awards-title {
	margin: 64px 0 20px !important;
}

.pm-awards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.pm-awards__item {
	display: block;
	overflow: hidden;
	border: 1px solid var(--skz-line);
	border-radius: 12px;
	background: var(--skz-chalk);
}

.pm-awards__item img {
	width: 100%;
	aspect-ratio: 1810 / 2560;
	object-fit: cover;
}

.pm-awards__item:hover {
	border-color: var(--skz-ink);
}

/* Trust: the same grid as the home page reasons, four columns, on chalk */
.pm-why--plain {
	background: var(--skz-chalk);
}

.pm-why--plain .pm-h2 {
	margin-bottom: 48px !important;
}

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

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

/* Collapsible lists: benefits, myths, questions */
.pm-faqs {
	padding: 88px 0;
}

.pm-faqs__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.pm-faq {
	padding: 0 0 96px;
}

.pm-details {
	margin-top: 28px;
	border-top: 2px solid var(--skz-ink);
}

.pm-details--wide {
	max-width: 880px;
}

.pm-details details {
	border-bottom: 1px solid var(--skz-line);
}

.pm-details summary {
	position: relative;
	padding: 18px 44px 18px 0;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.pm-details summary::-webkit-details-marker {
	display: none;
}

/* A small plate as the open/closed marker */
.pm-details summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--skz-ink);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

.pm-details details[open] summary::after {
	content: "−";
	background: var(--skz-red);
}

.pm-details details p {
	margin: 0 0 20px !important;
	color: var(--skz-muted);
}

@media (max-width: 1024px) {
	.pm-about__grid,
	.pm-coach__grid,
	.pm-faqs__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pm-coach__photo {
		max-width: 420px;
	}

	.pm-why__grid--4,
	.pm-start__steps--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pm-about,
	.pm-coach,
	.pm-faqs {
		padding: 56px 0;
	}

	.pm-faq {
		padding-bottom: 56px;
	}

	.pm-why__grid--4,
	.pm-start__steps--4 {
		grid-template-columns: 1fr;
	}

	.pm-awards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.pm-facts {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.pm-facts dd {
		margin-bottom: 10px !important;
	}
}

/* The club's promise is a sentence, not a title: a smaller size keeps it to four lines */
.pm-about .pm-h2 {
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.18;
}

.pm-awards {
	max-width: 900px;
}
