/*
 * Способы перевозки — посадочные страницы (tpl-shipment-type.php).
 * Токены (цвет, радиус, тень) взяты из .sampa24-shipment-types в home.css,
 * чтобы карточный стиль совпадал с блоком "Способы перевозки" на главной.
 */

.sampa24-transport-page {
	padding: 40px 0 0;
}

.sampa24-transport-page__eyebrow {
	margin: 0 0 10px;
	color: #ff4d12;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
}

.sampa24-transport-page h1 {
	margin: 0 0 16px;
	color: #183b5c;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
}

.sampa24-transport-page__intro {
	max-width: 760px;
	margin: 0 0 36px;
	color: #718ba7;
	font-size: 17px;
	line-height: 1.5;
}

/* Контент страницы — тот же .page-content из page.php, но внутри новой обёртки */
.sampa24-transport-page .page-content {
	max-width: 920px;
}

.sampa24-transport-page .page-content > p {
	color: #3c5872;
	font-size: 16px;
	line-height: 1.6;
}

.sampa24-transport-page .page-content > p:first-child {
	max-width: 760px;
	color: #718ba7;
	font-size: 17px;
	line-height: 1.55;
}

.sampa24-transport-page .page-content h2 {
	position: relative;
	margin: 44px 0 18px;
	padding-left: 18px;
	color: #183b5c;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
}
.sampa24-transport-page .page-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 4px;
	background: #ff4d12;
}
.sampa24-transport-page .page-content > h2:first-child {
	margin-top: 0;
}

/* Изображение сразу после вступления */
.sampa24-transport-page .page-content > p > img {
	display: block;
	width: 100%;
	height: auto;
	margin: 8px 0;
	border-radius: 20px;
	box-shadow: 0 12px 30px rgba(38, 97, 148, .08);
}

/* Маркированные списки после заголовков → информационные карточки */
.sampa24-transport-page .page-content ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.sampa24-transport-page .page-content ul li {
	position: relative;
	padding: 18px 20px 18px 54px;
	border: 1px solid #cfe4ff;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(38, 97, 148, .05);
	color: #183b5c;
	font-size: 14.5px;
	line-height: 1.48;
}
.sampa24-transport-page .page-content ul li::before {
	content: '\2713';
	position: absolute;
	left: 18px;
	top: 16px;
	display: flex;
	width: 26px;
	height: 26px;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	background: #fff0ea;
	color: #ff4d12;
	font-size: 13px;
	font-weight: 800;
}
.sampa24-transport-page .page-content ul li strong {
	display: block;
	margin-bottom: 3px;
	color: #183b5c;
}

/* Нумерованный список "Как оформить" → шаги с кружками */
.sampa24-transport-page .page-content ol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	counter-reset: sampa24-transport-step;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.sampa24-transport-page .page-content ol li {
	position: relative;
	padding: 46px 18px 18px;
	border: 1px solid #cfe4ff;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, #f5faff 100%);
	color: #183b5c;
	font-size: 14.5px;
	line-height: 1.48;
}
.sampa24-transport-page .page-content ol li::before {
	counter-increment: sampa24-transport-step;
	content: counter(sampa24-transport-step);
	position: absolute;
	left: 18px;
	top: 16px;
	display: flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ff4d12;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}
.sampa24-transport-page .page-content ol li strong {
	display: block;
	margin-bottom: 3px;
}

/* Галерея фото — оставляем сетку, но подтягиваем визуал к карточному стилю */
.sampa24-transport-page .page-content .gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0 0 20px;
}
.sampa24-transport-page .page-content .gallery-item {
	overflow: hidden;
	border: 1px solid #cfe4ff;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(38, 97, 148, .05);
}
.sampa24-transport-page .page-content .gallery-item img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.sampa24-transport-page .page-content .gallery-item__caption {
	padding: 10px 14px 14px;
	color: #718ba7;
	font-size: 13px;
	line-height: 1.4;
}

/* Последний H2 "Итог" + следующий за ним абзац — подсветить как резюме */
.sampa24-transport-page .page-content > h2:last-of-type {
	margin-bottom: 0;
}
.sampa24-transport-page .page-content > h2:last-of-type + p {
	margin-top: 14px;
	padding: 20px 22px;
	border: 1px solid #cfe4ff;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(38, 97, 148, .05);
	color: #3c5872;
	font-size: 15.5px;
}

/* CTA внизу страницы — тот же язык, что и .sampa24-home-cta на главной */
.sampa24-transport-cta {
	margin: 48px 0;
	padding: 30px 32px;
	border-radius: 22px;
	background: linear-gradient(120deg, #183b5c 0%, #0f2b45 100%);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.sampa24-transport-cta__eyebrow {
	display: block;
	margin: 0 0 8px;
	color: #ff8f5c;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
}
.sampa24-transport-cta__title {
	margin: 0;
	max-width: 520px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}
.sampa24-transport-cta a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 40px;
	background: #ff4d12;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
}
.sampa24-transport-cta a:hover {
	background: #e6430c;
	transform: translateY(-2px);
	color: #fff;
}

/* Похожие способы перевозки — те же карточки, что на главной */
.sampa24-transport-related {
	margin: 0 0 48px;
}
.sampa24-transport-related__title {
	margin: 0 0 16px;
	color: #183b5c;
	font-size: 20px;
	font-weight: 800;
}
.sampa24-transport-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}
.sampa24-transport-related__card {
	display: flex;
	min-height: 110px;
	padding: 18px;
	gap: 12px;
	align-items: flex-start;
	border: 1px solid #cfe4ff;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(38, 97, 148, .05);
	color: #183b5c;
	text-align: left;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sampa24-transport-related__card:hover {
	transform: translateY(-3px);
	border-color: #ff9d79;
	box-shadow: 0 16px 32px rgba(38, 97, 148, .12);
	color: #183b5c;
}
.sampa24-transport-related__card-icon {
	display: flex;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #fff0ea;
	color: #ff4d12;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}
.sampa24-transport-related__card strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 900px) {
	.sampa24-transport-page .page-content ul,
	.sampa24-transport-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sampa24-transport-page h1 {
		font-size: 27px;
	}
	.sampa24-transport-page .page-content ul,
	.sampa24-transport-page .page-content ol,
	.sampa24-transport-related__grid {
		grid-template-columns: 1fr;
	}
	.sampa24-transport-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}
