/*
 * Storefront components that block content renders.
 *
 * Loaded on the front end right after style.css and inside the block editor canvas
 * through add_editor_style(), so a page body built from blocks looks the same in
 * both places. Storefront chrome stays in style.css.
 */

/* Call to action: used by templates and by migrated content. */
.cb-button {
	display: inline-flex;
	min-height: var(--cb-control-height, 44px);
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	border: 0;
	border-radius: var(--cb-radius, 9px);
	background: var(--cb-accent);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	text-decoration: none;
}

.cb-button--ghost {
	border: 1px solid var(--cb-stroke, #e4eaf2);
	background: transparent;
	color: var(--cb-ink, #172537);
}

/*
 * Editorial primitives: the section rhythm of the About and Delivery pages, scoped
 * to `.cb-editorial-page` so the storefront shell keeps its own compact type scale.
 * Support and legal pages compose these blocks; controls stay storefront components.
 */
.cb-editorial-page {
	display: grid;
	gap: 24px;
	align-content: start;
}

.cb-editorial-prose {
	max-width: var(--cb-content-max, 820px);
	font: 400 16px/1.55 Roboto, Arial, sans-serif;
}

.cb-editorial-prose > *:first-child {
	margin-top: 0;
}

.cb-editorial-prose > *:last-child {
	margin-bottom: 0;
}

.cb-editorial-prose h2 {
	margin: 30px 0 12px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

.cb-editorial-prose h3 {
	margin: 24px 0 10px;
	font-size: 18px;
	font-weight: 700;
}

.cb-editorial-prose p,
.cb-editorial-prose li {
	line-height: 1.6;
}

.cb-editorial-prose img {
	height: auto;
	border-radius: var(--cb-radius, 9px);
}

.cb-editorial-prose a {
	color: #1487ea;
}

.cb-editorial-prose table {
	width: 100%;
	border-collapse: collapse;
}

.cb-editorial-prose th,
.cb-editorial-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--cb-stroke, #e4eaf2);
	text-align: left;
}

.cb-editorial-hero {
	display: grid;
	gap: 14px;
	padding: 44px 48px;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(115deg, #fff 0%, #fff 62%, #fff0ea 100%);
}

.cb-editorial-hero h1,
.cb-editorial-hero h2 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(32px, 4.5vw, 54px);
	font-weight: 400;
	line-height: 1.06;
}

.cb-editorial-hero p {
	max-width: 680px;
	margin: 0;
	color: var(--cb-muted, #6d7b8c);
	font-size: 17px;
}

.cb-editorial-kicker {
	display: block;
	margin: 0;
	color: var(--cb-accent, #fa4c17);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cb-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.cb-feature-grid article {
	padding: 26px;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--cb-shadow, 0 1px 10px rgba(31, 58, 83, .06));
}

.cb-feature-grid h3,
.cb-feature-grid strong {
	display: block;
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
}

.cb-feature-grid p {
	margin: 0;
	color: var(--cb-muted, #6d7b8c);
}

.cb-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--cb-stroke, #e4eaf2);
}

.cb-steps article {
	padding: 28px;
	background: #fff;
}

.cb-steps h3,
.cb-steps strong {
	display: block;
	margin: 0 0 7px;
	font-size: 17px;
	font-weight: 700;
}

.cb-steps p {
	margin: 0;
	color: var(--cb-muted, #6d7b8c);
}

.cb-contact-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 32px 38px;
	border-radius: 10px;
	background: #172537;
	color: #fff;
}

.cb-contact-panel h2 {
	margin: 0 0 7px;
	font-size: 27px;
	font-weight: 400;
}

.cb-contact-panel p {
	margin: 0;
	color: #c2cad3;
	font-size: 16px;
}

.cb-contact-panel__links {
	display: grid;
	gap: 5px;
	text-align: right;
}

.cb-contact-panel a {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.cb-legal-prose {
	max-width: var(--cb-content-max, 820px);
	font: 400 16px/1.6 Roboto, Arial, sans-serif;
}

.cb-legal-prose h2 {
	margin: 32px 0 12px;
	font-size: 22px;
	font-weight: 400;
}

.cb-legal-prose h2:first-child {
	margin-top: 0;
}

.cb-legal-prose ul,
.cb-legal-prose ol {
	padding-left: 22px;
}

.cb-legal-prose li {
	margin-bottom: 6px;
}

.cb-legal-prose a {
	color: #1487ea;
}

/*
 * A button block keeps the storefront class on its wrapper, so the anchor drops the
 * core button skin and fills the wrapper box.
 */
.wp-block-button.cb-button > .wp-block-button__link,
.wp-block-button.btn > .wp-block-button__link {
	display: inline-flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: inherit;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: none;
}

/* Delivery page: `.cb-delivery-page` is the template shell, the rest is page body. */
.cb-delivery-page {
	display: grid;
	gap: 24px;
}

/*
 * Core gives classic themes a block gap (`html :where(.wp-block)`), while the
 * templates and their components own the spacing here: `.cb-delivery-page` is a
 * 24px grid and the landing spaces its own sections. `:where()` keeps this reset
 * below the component rules, so their own margins still win.
 */
:where(.cb-delivery-page, .cb-landing-embed) .wp-block {
	margin-top: 0;
	margin-bottom: 0;
}

/*
 * For classic themes WordPress re-wraps group content in the legacy
 * `.wp-block-group__inner-container`. The section components are the grid
 * containers here, so the wrapper must not interrupt their layout.
 */
:where(.cb-delivery-page, .cb-landing-embed) .wp-block-group__inner-container {
	display: contents;
}

.cb-delivery-hero {
	display: grid;
	min-height: 330px;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
	align-items: center;
	gap: 30px;
	padding: 46px 54px;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(115deg, #fff 0%, #fff 62%, #fff0ea 100%);
}

.cb-delivery-kicker {
	display: block;
	margin: 0 0 8px;
	color: var(--cb-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cb-delivery-hero h1 {
	max-width: 700px;
	margin: 8px 0 16px;
	font-size: clamp(36px, 5vw, 62px);
	font-weight: 400;
	line-height: 1.04;
}

/*
 * WordPress 6.6+ prints `.wp-block-buttons .wp-block-button__link{width:100%}`, which
 * stretched the «Перейти в каталог» call to action across the whole delivery hero. The
 * container is a start-aligned row, the wrapper keeps its own width, and the surface
 * (padding, colour, radius) moves onto the link itself: with the wrapper owning the
 * padding the 20px side bands were not part of the link and did not respond to a click.
 * The section itself still stacks on a 390px screen (see the media query below).
 */
.cb-delivery-hero .wp-block-buttons {
	display: flex;
	justify-content: flex-start;
}

.cb-delivery-hero .wp-block-buttons .wp-block-button {
	display: flex;
	width: auto;
	align-self: start;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.cb-delivery-hero .wp-block-buttons .wp-block-button__link {
	display: inline-flex;
	width: auto;
	height: auto;
	min-height: var(--cb-control-height, 44px);
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	border-radius: var(--cb-radius, 9px);
	background: var(--cb-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.cb-delivery-lead {
	max-width: 680px;
	margin: 0 0 25px;
	color: var(--cb-muted);
	font-size: 17px;
}

.cb-delivery-hero__mark {
	display: grid;
	grid-template-rows: auto auto;
	align-content: center;
	justify-items: center;
	width: 230px;
	height: 230px;
	margin: 0;
	justify-self: center;
	padding: 0 16px;
	border-radius: 50%;
	background: var(--cb-accent);
	color: #fff;
	text-align: center;
	box-shadow: 0 22px 50px rgba(250, 76, 23, .22);
}

.cb-delivery-hero__mark strong {
	font-size: 72px;
	line-height: 1;
	font-weight: 700;
}

.cb-delivery-hero__mark span {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.cb-delivery-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.cb-delivery-benefits article {
	padding: 26px;
	border-radius: 10px;
	background: #fff;
}

.cb-delivery-benefits strong {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
}

.cb-delivery-benefits p,
.cb-delivery-steps p,
.cb-delivery-contact p {
	margin: 0;
	color: var(--cb-muted);
}

.cb-delivery-benefits p.cb-delivery-benefits__title,
.cb-delivery-steps p.cb-delivery-steps__title {
	color: var(--cb-ink);
}

.cb-delivery-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--cb-stroke);
}

.cb-delivery-steps__item {
	padding: 28px;
	background: #fff;
}

.cb-delivery-steps p.cb-delivery-steps__num {
	display: grid;
	width: 38px;
	height: 38px;
	margin: 0 0 15px;
	place-items: center;
	border-radius: 50%;
	background: #fff0ea;
	color: var(--cb-accent);
	font-weight: 700;
}

.cb-delivery-steps strong {
	display: block;
	margin-bottom: 7px;
	font-size: 17px;
}

.cb-delivery-contact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 32px 38px;
	border-radius: 10px;
	background: #172537;
	color: #fff;
}

.cb-delivery-contact h2 {
	margin: 0 0 7px;
	font-size: 27px;
	font-weight: 400;
}

.cb-delivery-contact p {
	color: #c2cad3;
}

.cb-delivery-contact > div:last-child {
	display: grid;
	gap: 5px;
	text-align: right;
}

.cb-delivery-contact a {
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 680px) {
	.cb-delivery-hero {
		min-height: 0;
		grid-template-columns: 1fr;
		padding: 28px 22px;
	}

	.cb-delivery-hero h1 {
		font-size: 38px;
	}

	.cb-delivery-hero__mark {
		width: 150px;
		height: 150px;
	}

	.cb-delivery-hero__mark strong {
		font-size: 48px;
	}

	.cb-delivery-hero__mark span {
		margin-top: 3px;
		font-size: 13px;
	}

	.cb-delivery-benefits,
	.cb-delivery-steps {
		grid-template-columns: 1fr;
	}

	.cb-delivery-contact {
		display: grid;
		padding: 25px;
	}

	.cb-delivery-contact > div:last-child {
		text-align: left;
	}

	.cb-editorial-hero {
		padding: 28px 22px;
	}

	.cb-editorial-hero h1,
	.cb-editorial-hero h2 {
		font-size: 32px;
	}

	.cb-feature-grid,
	.cb-steps {
		grid-template-columns: 1fr;
	}

	.cb-contact-panel {
		display: grid;
		padding: 25px;
	}

	.cb-contact-panel__links {
		text-align: left;
	}
}

/*
 * Contact details shared by the About and Contacts pages. The component lives in
 * content.css because both pages render it and content.css is loaded everywhere;
 * the About page keeps its landing section around it, Contacts uses the card layout
 * below.
 */
.cb-contact-details {
	display: grid;
	gap: 6px;
}

.cb-contact-details__name {
	margin: 0 0 4px;
	color: var(--cb-accent, #fa4c17);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.4;
}

.cb-contact-details__phone,
.cb-contact-details__email {
	display: block;
	color: var(--cb-ink, #172537);
	font-size: 26px;
	font-weight: 300;
	line-height: 1.45;
	text-decoration: none;
}

.cb-contact-details__email {
	color: var(--cb-accent, #fa4c17);
}

.cb-contact-details__phone:hover,
.cb-contact-details__email:hover {
	color: var(--cb-accent, #fa4c17);
}

.cb-contact-details__address {
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.55;
}

.cb-contact-details__socials {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.cb-contact-details__socials a {
	display: block;
	width: 30px;
	height: 30px;
	color: var(--cb-accent, #fa4c17);
}

.cb-contact-details__socials a:hover {
	opacity: .75;
}

.cb-contact-details__socials svg {
	display: block;
	width: 30px;
	height: 30px;
}

/* Contacts page: details and the managed feedback form side by side. */
.cb-contact-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.cb-contact-page__card {
	padding: 30px 34px;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--cb-shadow, 0 1px 10px rgba(31, 58, 83, .06));
}

.cb-contact-page__card h2 {
	margin: 0 0 14px;
	font-size: 27px;
	font-weight: 400;
}

.cb-contact-page__lead {
	margin: 0 0 18px;
	color: var(--cb-muted, #6d7b8c);
}

.cb-contact-map {
	margin-top: 8px;
}

.cb-contact-map iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
	border-radius: 10px;
}

/*
 * Contact Form 7: the managed feedback form wears the storefront control look.
 * Validation text and the response output stay visible — they are the form's only
 * error channel.
 */
.cb-contact-page .wpcf7-form {
	display: grid;
	gap: 14px;
}

.cb-contact-page .wpcf7-form p {
	margin: 0;
}

.cb-field-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.cb-required {
	color: var(--cb-accent, #fa4c17);
}

.cb-contact-page .wpcf7 input.cb-field,
.cb-contact-page .wpcf7 textarea.cb-field {
	display: block;
	width: 100%;
	min-height: var(--cb-control-height, 44px);
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid var(--cb-stroke, #e4eaf2);
	border-radius: var(--cb-radius, 9px);
	background: #fff;
	color: var(--cb-ink, #172537);
	font: inherit;
}

.cb-contact-page .wpcf7 input.cb-field:focus,
.cb-contact-page .wpcf7 textarea.cb-field:focus {
	border-color: var(--cb-accent, #fa4c17);
	outline: none;
	box-shadow: 0 0 0 3px rgba(250, 76, 23, .18);
}

.cb-contact-page .wpcf7 textarea.cb-field {
	min-height: 130px;
	resize: vertical;
}

.cb-consent {
	font-size: 15px;
	line-height: 1.5;
}

.cb-consent a {
	color: var(--cb-accent, #fa4c17);
}

/* The honeypot stays in the form but out of the visual and accessible flow. */
.cb-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cb-form-row--submit .wpcf7-submit {
	min-width: 220px;
}

.cb-contact-page .wpcf7-spinner {
	margin: 0 0 0 10px;
}

.cb-contact-page .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #d63638;
	font-size: 13px;
	line-height: 1.4;
}

.cb-contact-page .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--cb-stroke, #e4eaf2);
	border-radius: var(--cb-radius, 9px);
	background: #fff6f2;
	font-size: 15px;
	line-height: 1.5;
}

.cb-contact-page :is(.wpcf7.sent, .wpcf7 form.sent) .wpcf7-response-output {
	border-color: #2f9e44;
	background: #f2fbf4;
}

.cb-contact-page :is(.wpcf7.failed, .wpcf7 form.failed, .wpcf7.aborted, .wpcf7 form.aborted) .wpcf7-response-output {
	border-color: #d63638;
	background: #fdf2f2;
}

.cb-contact-page :is(.wpcf7.invalid, .wpcf7 form.invalid, .wpcf7.spam, .wpcf7 form.spam, .wpcf7.unaccepted, .wpcf7 form.unaccepted) .wpcf7-response-output {
	border-color: var(--cb-accent, #fa4c17);
}

.cb-form-unavailable {
	padding: 18px 20px;
	border-left: 4px solid var(--cb-accent, #fa4c17);
	background: #fff6f2;
}

@media (max-width: 900px) {
	.cb-contact-page__grid {
		grid-template-columns: 1fr;
	}

	.cb-contact-page__card {
		padding: 24px 22px;
	}
}
