/*
 * Рішення для об’єктів — design handoff "Solutions, option 11" (11A index, 11B article).
 *
 * Loaded on `/rishennia/` and the six articles only.
 *
 * THE PALETTE COMES FROM `.nv-brandpage` in components.css — the shared block the approved
 * 4D / 5B / 6A / 7A pages already use, which is what the handoff means by "reuse those tokens".
 * Only the four values this handoff ADDS are declared here: the green CTA and its hover, the
 * tint border, the article's body ink and the photo-caption wash.
 */

.nv-solutions {
	--s-green-cta: #4c9a2a;
	--s-green-cta-hover: #3d7d22;
	--s-tint-line: #cfe0ee;
	--s-text: #26333c;
	--s-caption: rgb(11 60 92 / 85%);
	--s-faint: #8b979f;

	--s-condensed: var(--wp--preset--font-family--body, "Roboto Condensed", system-ui, sans-serif);

	background: #fff;
	color: var(--c-body-soft);
}

/* One 1280px frame, stated once. */
.nv-s__frame {
	max-inline-size: var(--c-frame);
	margin-inline: auto;
	padding-inline: var(--c-gutter);
}

.nv-solutions .nv-s__frame + .nv-s__frame {
	margin-block-start: 34px;
}

/* ------------------------------------------------------------------- the band */

.nv-s__band {
	padding-block: 34px 30px;
	background: var(--c-band);
	color: #fff;
}

.nv-s__band--index {
	padding-block: 36px 32px;
}

.nv-s__crumbs {
	margin-block-end: 12px;
	color: var(--c-on-band-faint);
	font-size: 13.5px;
}

.nv-s__crumbs a {
	color: var(--c-on-band-faint);
	text-decoration: none;
	border-block-end: 1px solid rgb(143 182 206 / 50%);
}

.nv-s__crumbs a:hover {
	color: #fff;
	border-block-end-color: #fff;
}

.nv-s__h1 {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--s-condensed);
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

.nv-s__h1--article {
	max-inline-size: 22ch;
	font-size: 46px;
	line-height: 1.03;
}

.nv-s__lead {
	margin: 0;
	max-inline-size: 76ch;
	color: var(--c-on-band);
	font-size: 16.5px;
	line-height: 1.6;
}

.nv-s__answer {
	margin: 0 0 20px;
	max-inline-size: 60ch;
	color: var(--c-on-band);
	font-size: 16.5px;
	line-height: 1.6;
}

.nv-s__band-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 36px;
	align-items: center;
}

.nv-s__band-media img {
	display: block;
	inline-size: 100%;
	block-size: 250px;
	object-fit: cover;
	border-radius: var(--c-r-card);
	box-shadow: 0 20px 50px rgb(6 28 42 / 35%);
}

.nv-s__band-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------------------------------------------------------------- the buttons */

.nv-s__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: var(--c-r-control);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.nv-s__btn--primary {
	background: var(--c-blue);
	border-color: var(--c-blue);
	color: #fff;
}

.nv-s__btn--primary:hover {
	background: var(--c-blue-hover);
	border-color: var(--c-blue-hover);
	color: #fff;
}

.nv-s__btn--primary:active {
	background: var(--c-blue-active);
	border-color: var(--c-blue-active);
}

/* The article band's first action is GREEN — it goes to the products, and on this page that is
   the action with the money behind it. Blue stays the site's general primary. */
.nv-s__btn--green {
	padding: 14px 24px;
	background: var(--s-green-cta);
	border-color: var(--s-green-cta);
	color: #fff;
}

.nv-s__btn--green:hover {
	background: var(--s-green-cta-hover);
	border-color: var(--s-green-cta-hover);
	color: #fff;
}

.nv-s__btn--ghost {
	padding: 14px 24px;
	border-color: rgb(255 255 255 / 35%);
	color: #fff;
}

.nv-s__btn--ghost:hover {
	background: rgb(255 255 255 / 10%);
	border-color: #fff;
	color: #fff;
}

.nv-s__btn--outline {
	border-color: var(--c-blue);
	color: var(--c-blue);
}

.nv-s__btn--outline:hover {
	background: var(--c-blue-tint);
	color: var(--c-blue);
}

/* ==========================================================================
 * 11A — the index
 * ========================================================================== */

.nv-s__intro p {
	max-inline-size: 88ch;
	margin: 0 0 12px;
	color: var(--c-body-soft);
	font-size: 15.5px;
	line-height: 1.7;
}

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

.nv-s__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-card);
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.nv-s__card:hover {
	border-color: var(--c-line-hover);
	box-shadow: var(--c-shadow-hover);
}

.nv-s__card-media img {
	display: block;
	inline-size: 100%;
	block-size: 172px;
	object-fit: cover;
}

.nv-s__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.nv-s__card-title {
	margin: 0 0 8px;
	font-family: var(--s-condensed);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.nv-s__card-title a {
	color: var(--c-ink);
	text-decoration: none;
}

.nv-s__card-title a:hover {
	color: var(--c-blue);
}

.nv-s__card-text {
	margin: 0 0 12px;
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.6;
}

.nv-s__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-end: 14px;
}

.nv-s__pill {
	padding: 5px 11px;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-pill);
	color: var(--c-body-soft);
	font-size: 12.5px;
}

/* The meta line is pinned to the bottom so cards of different text length line up. */
.nv-s__card-meta {
	display: flex;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	margin: auto 0 0;
	color: var(--c-muted-soft);
	font-size: 13.5px;
}

.nv-s__card-meta a {
	color: var(--c-blue);
	text-decoration: none;
	white-space: nowrap;
}

.nv-s__panel {
	padding: 26px 28px;
	background: var(--c-field);
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-card);
}

.nv-s__panel h2,
.nv-s__steps-wrap h2 {
	margin: 0 0 12px;
	color: var(--c-ink);
	font-family: var(--s-condensed);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}

.nv-s__panel p {
	max-inline-size: 88ch;
	margin: 0 0 16px;
	color: var(--c-body-soft);
	font-size: 15px;
	line-height: 1.65;
}

.nv-s__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nv-s__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-solutions .nv-s__frame:last-child {
	padding-block-end: 44px;
}

.nv-s__step {
	padding: 16px 18px;
	border: 1px solid var(--c-line);
	border-block-start: 3px solid var(--c-green);
	border-radius: var(--c-r-step);
}

.nv-s__step-n {
	display: block;
	margin-block-end: 6px;
	color: var(--c-blue);
	font-family: var(--s-condensed);
	font-size: 26px;
	line-height: 1;
}

.nv-s__step h3 {
	margin: 0 0 6px;
	color: var(--c-ink);
	font-family: var(--s-condensed);
	font-size: 18px;
	font-weight: 700;
}

.nv-s__step p {
	margin: 0;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.6;
}

/* ==========================================================================
 * 11B — the article
 * ========================================================================== */

.nv-s__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 32px;
	align-items: start;
	padding-block: 30px 44px;
}

/* «Коротко» — the most quotable block on the page, so it opens the article. */
.nv-s__short {
	margin-block-end: 26px;
	padding: 18px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-step);
}

.nv-s__label {
	margin: 0 0 8px;
	color: var(--c-muted-soft);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv-s__short ul {
	margin: 0;
	padding-inline-start: 20px;
}

.nv-s__short li {
	color: var(--s-text);
	font-size: 15px;
	line-height: 1.8;
}

.nv-s__prose h2,
.nv-s__section h2 {
	margin: 26px 0 12px;
	color: var(--c-ink);
	font-family: var(--s-condensed);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	scroll-margin-block-start: 20px;
}

.nv-s__prose p {
	max-inline-size: 80ch;
	margin: 0 0 12px;
	color: var(--s-text);
	font-size: 15.5px;
	line-height: 1.7;
}

.nv-s__section {
	margin-block-start: 26px;
}

/* ---------------------------------------------------------------- products */

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

.nv-s__product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-card);
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.nv-s__product:hover {
	border-color: var(--c-line-hover);
	box-shadow: var(--c-shadow-hover);
}

.nv-s__product-media {
	display: grid;
	place-items: center;
	padding: 10px;
	background: var(--c-field);
}

.nv-s__product-media img {
	display: block;
	inline-size: auto;
	max-inline-size: 100%;
	block-size: 150px;
	object-fit: contain;
}

.nv-s__product-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 14px 16px 16px;
}

.nv-s__product-sku {
	margin: 0 0 4px;
	color: var(--s-faint);
	font-size: 12px;
}

.nv-s__product-name {
	margin: 0 0 6px;
	font-family: var(--s-condensed);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
}

.nv-s__product-name a {
	color: var(--c-ink);
	text-decoration: none;
}

.nv-s__product-name a:hover {
	color: var(--c-blue);
}

.nv-s__product-spec {
	margin: 0 0 12px;
	color: var(--c-muted);
	font-size: 13px;
	line-height: 1.6;
}

.nv-s__product-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-block-start: auto;
}

.nv-s__product-price {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--s-condensed);
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.nv-s__product-foot .nv-preorder__trigger {
	min-block-size: 0;
	padding: 9px 14px;
	background: #fff;
	border: 1px solid var(--c-blue);
	border-radius: var(--c-r-control);
	color: var(--c-blue);
	font-size: 14px;
	font-weight: 600;
}

.nv-s__product-foot .nv-s__btn {
	padding: 9px 14px;
}

/* ------------------------------------------------------------------ photos */

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

.nv-s__photo {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--c-r-step);
}

.nv-s__photo img {
	display: block;
	inline-size: 100%;
	block-size: 150px;
	object-fit: cover;
}

.nv-s__photo figcaption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: 7px 10px;
	background: var(--s-caption);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
}

.nv-s__note {
	margin: 12px 0 0;
	color: var(--c-muted-soft);
	font-size: 13.5px;
}

/* ------------------------------------------- catalogue categories, articles */

.nv-s__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-s__links li {
	padding-block: 7px;
	border-block-end: 1px solid var(--s-tint-line);
	font-size: 15px;
	line-height: 1.5;
}

.nv-s__links a {
	color: var(--c-ink);
	text-decoration: none;
}

.nv-s__links a:hover,
.nv-s__links a:focus-visible {
	text-decoration: underline;
}

.nv-s__link-count {
	color: var(--s-faint);
	font-size: 13px;
	white-space: nowrap;
}

@media (max-width: 45rem) {
	.nv-s__links {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * The «схема розстановки» slot. NOT USED YET, and that is the point: the handoff requires a
 * drawn plan with mount points and viewing cones, there is none, and a photograph in this slot
 * would be read as the plan. The styles are here so that adding the drawings is a content job
 * rather than a CSS one — see design_handoff_solutions/image-todo.md.
 */
.nv-s__scheme {
	margin: 16px 0 0;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-step);
}

.nv-s__scheme img {
	display: block;
	inline-size: 100%;
	block-size: 280px;
	object-fit: cover;
	background: var(--c-field);
}

.nv-s__scheme figcaption {
	padding: 12px 16px;
	border-block-start: 1px solid #eef1f3;
	color: var(--c-muted);
	font-size: 13.5px;
}

/* --------------------------------------------------------------------- FAQ */

.nv-s__faq-item {
	padding-block: 14px;
	border-block-start: 1px solid var(--c-line-row, #eef1f3);
}

.nv-s__faq-item summary {
	color: var(--c-ink);
	cursor: pointer;
	font-family: var(--s-condensed);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
}

.nv-s__faq-item summary::-webkit-details-marker {
	display: none;
}

.nv-s__faq-item summary::after {
	content: "";
	float: inline-end;
	inline-size: 0.5em;
	block-size: 0.5em;
	margin-block-start: 0.35em;
	border-inline-end: 2px solid var(--c-muted);
	border-block-end: 2px solid var(--c-muted);
	transform: rotate(45deg);
	transition: transform 150ms ease;
}

.nv-s__faq-item[open] summary::after {
	transform: rotate(-135deg);
}

.nv-s__faq-answer p {
	max-inline-size: 76ch;
	margin: 8px 0 0;
	color: var(--c-body-soft);
	font-size: 14.5px;
	line-height: 1.65;
}

/* --------------------------------------------------------------------- CTA */

.nv-s__cta {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: center;
	margin-block-start: 30px;
	padding: 28px 30px;
	background: var(--c-panel);
	border-radius: var(--c-r-card);
	color: #fff;
}

.nv-s__cta h2 {
	margin: 0 0 8px;
	color: #fff;
	font-family: var(--s-condensed);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}

.nv-s__cta p {
	margin: 0;
	color: var(--c-on-panel);
	font-size: 15px;
	line-height: 1.6;
}

.nv-s__cta-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ----------------------------------------------------------------- sidebar */

.nv-s__side {
	position: sticky;
	inset-block-start: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nv-s__side-card {
	padding: 16px 18px;
	border: 1px solid var(--c-line);
	border-radius: var(--c-r-step);
}

.nv-s__side-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-s__side-card li + li {
	margin-block-start: 8px;
}

.nv-s__side-card a {
	color: var(--c-ink);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
}

.nv-s__side-card a:hover {
	color: var(--c-blue);
}

.nv-s__side-card--tool {
	background: var(--c-blue-tint);
	border-color: var(--s-tint-line);
}

.nv-s__side-title {
	margin: 0 0 6px;
	color: var(--c-ink);
	font-family: var(--s-condensed);
	font-size: 18px;
	font-weight: 700;
}

.nv-s__side-card--tool p {
	margin: 0 0 12px;
	color: var(--c-body-soft);
	font-size: 14px;
	line-height: 1.6;
}

.nv-s__side-card--tool .nv-s__btn {
	inline-size: 100%;
}

.nv-s__side-card--meta {
	border-block-start: 3px solid var(--c-green);
}

.nv-s__side-card--meta p {
	margin: 0;
	color: var(--c-body-soft);
	font-size: 14px;
}

/* ------------------------------------------------------------ interaction */

.nv-solutions a {
	color: var(--c-blue);
}

.nv-solutions .nv-s__prose a:hover,
.nv-solutions .nv-s__side a:hover,
.nv-solutions .nv-s__card-meta a:hover {
	color: var(--s-green-cta);
}

.nv-solutions :is(a, button, summary):focus-visible {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
}

.nv-s__band :is(a, button):focus-visible {
	outline-color: #fff;
}

/* The lightbox: one dialog, opened by solutions.js, closed by click or Escape. */
.nv-s__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgb(11 35 44 / 88%);
	border: 0;
}

.nv-s__lightbox img {
	max-inline-size: min(1100px, 92vw);
	max-block-size: 88vh;
	inline-size: auto;
	block-size: auto;
	border-radius: var(--c-r-step);
}

.nv-s__lightbox::backdrop {
	background: rgb(11 35 44 / 88%);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 64rem) {
	.nv-s__frame {
		padding-inline: 24px;
	}

	.nv-s__band-grid,
	.nv-s__layout,
	.nv-s__cta {
		grid-template-columns: minmax(0, 1fr);
	}

	.nv-s__h1 {
		font-size: 36px;
	}

	.nv-s__h1--article {
		font-size: 34px;
	}

	.nv-s__side {
		position: static;
	}

	.nv-s__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nv-s__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 45rem) {
	.nv-s__grid,
	.nv-s__steps,
	.nv-s__products {
		grid-template-columns: minmax(0, 1fr);
	}

	.nv-s__photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nv-s__band-media img {
		block-size: 180px;
	}
}

/*
 * ---------------------------------------------------------------- touch floor
 *
 * Mobile handoff rule 2. Measured before this block: the primary CTA 36.8, the green and ghost
 * buttons 46.8, the FAQ summaries 24.7. The primary button is the "request a quote" action, so it
 * was the smallest target on the page carrying the most intent.
 */
@media (max-width: 1024px) {
	.nv-solutions .nv-s__btn,
	.nv-solutions .nv-s__q,
	.nv-solutions summary {
		min-block-size: var(--wp--custom--touch--target);
	}

	.nv-solutions .nv-s__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.nv-solutions .nv-s__q,
	.nv-solutions summary {
		display: flex;
		align-items: center;
	}
}
