/* Страница «Оформление мероприятий» — page-oformlenie.php */

.ofm .s-cms-wysiwyg h2 {
	font-size: 3.6rem;
}

/* ── Первый экран ─────────────────────────────── */
.ofm-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: stretch;
}

/* На ПК фото тянется на высоту тёмного блока (абсолютом внутри ячейки грида) */
.ofm-hero__media {
	position: relative;
}

.ofm-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.ofm-hero__text h3 {
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 2rem;
}

.ofm-hero__text p {
	font-size: 1.7rem;
	line-height: 1.6;
	margin-bottom: 1.6rem;
}

/* Вводный блок: тёмная плашка — единственная на странице, сразу отличается от бежевых карточек */
.ofm-intro {
	background: #1d1d1b;
	color: #f5efe6;
	border-radius: 10px;
	padding: 4rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ofm-intro h3,
.ofm-intro p {
	color: #f5efe6;
}

.ofm-hero__text.ofm-intro h3 {
	font-size: 3.2rem;
	font-weight: 500;
	line-height: 1.2;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(245, 239, 230, 0.3);
}

.ofm-intro .main-button {
	align-self: flex-start;
	border-color: #f5efe6;
}

.ofm-intro .main-button:hover {
	background: #f5efe6;
	border-color: #f5efe6;
	color: #1d1d1b;
}

.ofm-hero__text .ofm-intro__lead {
	font-size: 2rem;
	line-height: 1.5;
}

.ofm-formats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 0 0 1.6rem;
	padding: 0;
}

/* .standart — чтобы перебить `.standart ul li { list-style: disc }` из custom.css */
.standart .ofm-formats li,
.ofm-formats li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Маркер списков s-cms (точка слева) — у плашек не нужен */
.ofm-formats li:before,
.ofm-formats li::marker {
	display: none;
	content: none;
}

.ofm-formats a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: 1.6rem 2rem;
	border-radius: 8px;
	background: url(../images/background-pattern-5.a66f78bc.png);
	color: #1d1d1b;
	font-size: 1.8rem;
	transition: 0.3s;
}

.ofm-formats a:after {
	content: '↓';
}

.ofm-formats a:hover {
	opacity: 0.7;
}

/* ── Форматы: сет / декор под ключ ────────────── */
.ofm-offer__text {
	font-size: 1.7rem;
	line-height: 1.6;
}

.ofm-offer__text p {
	margin-bottom: 1.6rem;
}

.ofm-offer__lead {
	font-size: 2rem;
	line-height: 1.5;
}

.ofm-price {
	font-size: 2rem;
	font-weight: 600;
	margin-top: 2.4rem;
}

.ofm-list {
	list-style: disc;
	margin: 0 0 1.6rem;
	padding-left: 2.2rem;
}

.ofm-list li {
	list-style: disc;
	margin-bottom: 0.6rem;
}

/* ── Шаги ─────────────────────────────────────── */
.ofm-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.ofm-step {
	background: url(../images/background-pattern-5.a66f78bc.png);
	border-radius: 10px;
	padding: 4rem 2.5rem;
	text-align: center;
}

/* Иконки — Phosphor Icons (thin), MIT; инлайн SVG в $ofm_icons */
.ofm-step svg {
	width: 80px;
	height: 80px;
	color: #1d1d1b;
	margin: 1rem auto 2rem;
	display: block;
	transition: 0.6s;
}

.ofm-step:hover img,
.ofm-step:hover svg {
	transform: scale(1.05);
}

.ofm-step h4 {
	font-size: 2rem;
	font-weight: 600 !important;
	line-height: 1.4;
	margin: 1rem 0 2rem;
	min-height: 5.6rem;
}

.ofm-step p {
	font-size: 1.6rem;
	line-height: 1.6;
	position: relative;
	padding-top: 2.5rem;
}

.ofm-step p:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 1px;
	background: #333;
}

.ofm-cta {
	text-align: center;
	margin-top: 3rem;
}

/* ── Фото проекта: мозаика, первое фото крупно ── */
.ofm-project {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 1rem;
	aspect-ratio: 3 / 2;
}

.ofm-project__item {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	min-height: 0;
}

.ofm-project__item:first-child {
	grid-row: 1 / 3;
}

.ofm-project--2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
}

.ofm-project--2 .ofm-project__item:first-child {
	grid-row: auto;
}

.ofm-project__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: 0.6s;
}

.ofm-project__item:hover img {
	transform: scale(1.05);
}

.ofm-set-photos {
	max-width: 80rem;
	margin: 4rem auto 0;
}

/* Портфолио: каждый проект — отдельный блок */
.ofm-projects {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem 2rem;
}

/* ── Адаптив ──────────────────────────────────── */
/* На телефоне --24@sm давала 100% ширины + offset-1 → вылезало вправо.
   Держим 22/24 с отступом, как у шапки: поля ~17px с обеих сторон */
@media (max-width: 47.9375em) {
	.ofm .o-grid__col--24\@sm {
		width: calc(22 * 100% / 24);
	}
}

@media screen and (max-width: 768px) {
	.ofm .s-cms-wysiwyg h2 {
		font-size: 2.8rem;
	}

	.ofm-hero,
	.ofm-steps {
		grid-template-columns: 1fr;
	}

	.ofm-hero__media img {
		position: static;
		height: auto;
		max-height: 42rem;
	}

	.ofm-projects {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.ofm-intro {
		padding: 2.4rem 2rem;
	}

	.ofm-hero__text.ofm-intro h3 {
		font-size: 2.6rem;
	}

	.ofm-formats {
		grid-template-columns: 1fr;
	}

	.ofm-step {
		padding: 3rem 2rem;
	}

	.ofm-step h4 {
		min-height: 0;
	}
}
