/*
 * Раздел «Покупателям» в новом виде (редизайн 2026): «Как заказать» и
 * «Оплата и доставка». Шапка раздела — Element/v26/buyers-head.ctp, крошки
 * и заголовок — about.css и catalog.css.
 */

/* подводка — под заголовком, а не в строку с ним, как счётчик в лентах */
.buyers-head {
	display: block;
}

.v26 .buyers-head__lead {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.55;
}

/* Шаги заказа ------------------------------------------------- */

.buyers-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.buyers-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 24px 22px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

/* стрелка к следующему шагу */
.buyers-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 42px;
	right: -13px;
	z-index: 1;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--border-strong);
	border-right: 2px solid var(--border-strong);
	transform: rotate(45deg);
}

.buyers-step__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent-soft, color-mix(in srgb, var(--accent) 18%, transparent));
	color: var(--accent-text);
	font-family: var(--font-display, var(--font));
	font-size: 22px;
	line-height: 1;
}

.v26 .buyers-step__title {
	margin: 4px 0 0;
	font-family: var(--font-display, var(--font));
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}

.v26 .buyers-step__text {
	flex: 1;
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

/* ссылка-стрелка */
.buyers-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	color: var(--brand);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.buyers-link svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}

@media (hover: hover) {
	.buyers-link:hover svg {
		transform: translateX(3px);
	}
}

/* Карточки ---------------------------------------------------- */

.buyers-grid,
.buyers-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.buyers-grid {
	margin-top: 40px;
}

.buyers-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 24px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.v26 .buyers-card p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.buyers-card--help {
	background: var(--surface-sunken);
}

.buyers-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	background: var(--brand-soft);
	color: var(--brand);
}

.buyers-card__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.v26 .buyers-card__title {
	margin: 4px 0 0;
	font-family: var(--font-display, var(--font));
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}

.v26 .buyers-card__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.buyers-card__list li {
	position: relative;
	padding-left: 18px;
}

.buyers-card__list li::before {
	content: "";
	position: absolute;
	top: .62em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.v26 .buyers-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 4px 0 0;
}

.buyers-contacts a {
	color: var(--ink);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

@media (hover: hover) {
	.buyers-contacts a:hover {
		color: var(--brand);
	}
}

.buyers-card .btn {
	margin-top: auto;
}

/* Разделы «Оплата», «Доставка» --------------------------------- */

.buyers-section {
	margin-top: 40px;
}

.v26 .buyers-section__title {
	margin: 0 0 16px;
	font-family: var(--font-display, var(--font));
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 400;
}

.v26 .buyers-note {
	max-width: 760px;
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

/* за рубеж — одной широкой плашкой: значок слева, текст справа */
.buyers-abroad {
	display: grid;
	grid-template-columns: 44px minmax(0, 760px);
	gap: 18px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--surface-sunken);
}

.buyers-abroad .buyers-section__title {
	margin-bottom: 12px;
}

.v26 .buyers-abroad .buyers-contacts {
	margin-top: 14px;
}

.v26 .buyers-more {
	margin: 32px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.buyers-more a {
	color: var(--brand);
}

/* Адаптив ----------------------------------------------------- */

@media (max-width: 1100px) {
	.buyers-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.buyers-step:nth-child(2n)::after {
		display: none;
	}
}

@media (max-width: 900px) {
	.buyers-grid,
	.buyers-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
}

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

	.buyers-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-top: 24px;
	}

	/* на телефоне — номер слева, текст справа, шаги друг под другом */
	.buyers-step {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 6px;
		padding: 18px 16px;
	}

	.buyers-step__num {
		grid-row: span 3;
	}

	.v26 .buyers-step__title {
		margin: 0;
		font-size: 18px;
	}

	.buyers-step::after,
	.buyers-step:nth-child(2n)::after {
		display: none;
	}

	.buyers-card {
		padding: 18px 16px;
	}

	.buyers-abroad {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 16px;
	}
}
