/* Блоки главной (макет 1a). */

.section { padding-block: 72px; }
.section--types { background: var(--c-surface-alt); }
.section--seo-text { padding-block: 56px; border-top: 1px solid var(--c-border); }
/* Хвостовой SEO-текст — это статья, а не секция во всю ширину: держим его
   в читаемой колонке по центру, иначе справа зияет пустота. */
.section--seo-text .entry__content--wide { max-width: 900px; margin-inline: auto; }

.section__head { margin-bottom: 32px; }
.section__head--row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.section__title { margin: 0 0 8px; }
.section__lead { font-size: 16px; color: var(--c-text-muted); margin: 0; }
.section__link { font-size: 15px; font-weight: 600; }

/* --- Заглушка под фото --- */
.media-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	background: repeating-linear-gradient(45deg, #eae7e0, #eae7e0 10px, #e4e0d8 10px, #e4e0d8 20px);
	border: 1px dashed var(--c-border-strong);
	border-radius: var(--r-md);
	color: var(--c-text-dim);
}
.media-slot__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }
.media-slot--inline { width: 100%; aspect-ratio: 4 / 5; }

/* --- Первый экран --- */
.hero { padding-block: 64px 72px; }
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 64px;
	align-items: center;
}
.hero__title { margin: 12px 0 28px; max-width: 12ch; }
.hero__offer {
	border-left: 3px solid var(--c-accent);
	padding-left: 20px;
	margin-bottom: 28px;
}
.hero__price {
	display: block;
	font-family: var(--f-head);
	font-size: 34px;
	margin: 6px 0 8px;
}
.hero__note { font-size: 15px; margin: 0; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { border-radius: var(--r-md); width: 100%; object-fit: cover; }

/* --- Полоса преимуществ --- */
.trust { border-block: 1px solid var(--c-border); background: var(--c-surface); }
.trust__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gap);
	padding-block: 28px;
}
.trust__item { display: flex; flex-direction: column; gap: 4px; }
.trust__title { font-size: 17px; font-weight: 600; }
.trust__text { font-size: 15px; color: var(--c-text-muted); }

/* --- Типы памятников --- */
.type-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	list-style: none;
	margin: 0;
	padding: 0;
}
.type-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow: hidden;
	color: var(--c-text);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.type-card__link:hover { border-color: var(--c-accent); transform: translateY(-2px); color: var(--c-text); }
.type-card__media { display: block; background: var(--c-surface-alt); }
/* В макете фото плитки — 230px при ширине ~430. Вертикальный кадр 4:5
   растягивал секцию вдвое, поэтому режем горизонтально.
   4:3 вместо макетных 3:2: снимки у нас вертикальные, и при более широком
   кадре от памятника остаётся полоса фона. Кадрируем по центру — там изделие. */
.type-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}
.type-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.type-card__title { font-family: var(--f-head); font-size: 21px; }
.type-card__price { font-size: 15px; color: var(--c-accent); }

/* --- Цены --- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.price-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 26px;
}
.price-card--custom { background: var(--c-dark); color: var(--c-text-on-dark); border-color: var(--c-dark); }
.price-card--custom .price-card__name { color: var(--c-text-on-dark); }
.price-card--custom .price-card__text { color: #a8a9a2; }
.price-card__head { display: flex; align-items: center; gap: 10px; }
.price-card__name { margin: 0; font-size: 22px; }
.price-card__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--c-text-body); }
.price-card__text { font-size: 15px; margin: 0; }
.price-card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 8px;
}
.price-card__price { font-family: var(--f-head); font-size: 26px; }
.price-card__price--muted { font-size: 19px; color: var(--c-accent-light); }

/* --- Шаги заказа --- */
.steps { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; }
.steps__contacts { margin-top: 28px; }
.steps__phones { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 17px; font-weight: 600; }
.steps__phones a { color: var(--c-text); }
.steps__phones a:hover { color: var(--c-accent); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.step__num { font-size: 13px; color: var(--c-accent); padding-top: 4px; }
.step__title { font-size: 20px; margin: 0 0 4px; }
.step__text { font-size: 15px; margin: 0; }

/* --- Доставка --- */
.delivery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.delivery__list { margin: 20px 0 24px; display: grid; gap: 18px; }
.delivery__list dt { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.delivery__list dd { margin: 0; font-size: 15px; color: var(--c-text-body); }
/* Карта — составной кадр, кроп по фиксированному соотношению срезал бы часть.
   Показываем целиком, высоту задаёт само изображение. */
.delivery__map { width: 100%; height: auto; border-radius: var(--r-md); }

/* --- Видео-каталог --- */
.section--video { border-block: 1px solid var(--c-border); background: var(--c-surface); }
.video-block {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: center;
}
.video-block__text .section__title { margin-top: 10px; }
.video-block__text .btn { margin-top: 20px; }

/* --- Форма заявки --- */
.section--lead { background: var(--c-surface-alt); border-top: 1px solid var(--c-border); }
.lead { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 56px; align-items: start; }
.lead__phone { font-size: 16px; margin-top: 16px; }
.lead__phone a { font-weight: 600; }
.lead__hours { font-size: 15px; color: var(--c-text-muted); margin: 4px 0 0; }
/* Список того, что уточним по телефону: без него левая колонка пустовала
   на высоту всей формы. */
.lead__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.lead__points li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	color: var(--c-text-body);
}
.lead__points li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-accent);
}

.lead-form {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 28px;
}
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.lead-form__status { font-size: 15px; color: var(--c-text-muted); }
.lead-form.is-busy { opacity: 0.7; pointer-events: none; }

.field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field--consent { margin-top: 18px; font-size: 14px; color: var(--c-text-muted); }
.field--consent label { display: flex; gap: 10px; align-items: flex-start; }
.field__label {
	font-family: var(--f-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-text-dim);
}
.field__input {
	font: inherit;
	font-size: 15px;
	padding: 12px 14px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	color: var(--c-text);
	width: 100%;
}
.field__input::placeholder { color: var(--c-text-dim); }
.field__input:focus-visible { border-color: var(--c-accent); }
.field.has-error .field__input { border-color: #b3261e; }
.lead-form__done { display: grid; gap: 8px; }
.lead-form__done strong { font-family: var(--f-head); font-size: 22px; }
.lead-form__done p { margin: 0; font-size: 15px; }
.field__error { font-size: 13px; color: #b3261e; }
.field__hint { font-size: 13px; color: var(--c-text-dim); }
.field--file .field__file {
	font: inherit;
	font-size: 14px;
	padding: 14px;
	border: 1px dashed var(--c-border-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface-alt);
	width: 100%;
	cursor: pointer;
}
.field--file .field__file::file-selector-button {
	font: inherit;
	font-size: 14px;
	margin-right: 12px;
	padding: 7px 14px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	cursor: pointer;
}

/* --- Планшет и мобильный: в макете не нарисованы --- */
@media (max-width: 1100px) {
	.hero__inner { gap: 40px; }
	.type-grid, .price-cards { grid-template-columns: repeat(2, 1fr); }
	.steps, .delivery, .lead, .video-block { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
	.trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	/* В макете мобильная сетка типов — две колонки, а не одна. */
	.type-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.type-card__body { padding: 12px 14px 14px; }
	.type-card__title { font-size: 17px; }
	.type-card__price { font-size: 14px; }
}

@media (max-width: 767px) {
	.section { padding-block: 44px; }
	.hero { padding-block: 32px 44px; }
	.hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.hero__title { max-width: none; }
	.hero__media { order: -1; }
	.price-cards { grid-template-columns: 1fr; }
	.lead-form { padding: 20px; }
	.lead-form__grid { grid-template-columns: 1fr; }
	.step { grid-template-columns: 36px 1fr; gap: 12px; }
	.video-block { gap: 24px; }
	.video-block__text .btn { margin-top: 14px; }
}
