/* Trafaret.ua — головна, варіант Б «До / Після».
   Усе обмежено блоком .trf-b, щоб не чіпати решту сайту на Woodmart. */

body.trf-home-page { background: #ECEBE7; }
body.trf-home-page .wd-page-content,
body.trf-home-page main.wd-content-layout { max-width: none; width: 100%; padding: 0; margin: 0; background: #ECEBE7; }
body.trf-home-page main.wd-content-layout { display: block; }

.trf-b {
	--plaster: #ECEBE7;
	--sheet: #F8F7F4;
	--ink: #1D1E1B;
	--mortar: #62635D;
	--line: #D5D3CC;
	--orange: #C66A2B;
	--orange-deep: #A3521C;
	--pvc: #D6E7E5;
	--pvc-ink: #2E5451;
	--display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--body: "Onest", "Segoe UI", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	background: var(--plaster);
	color: var(--ink);
	font: 400 16px/1.6 var(--body);
	padding-inline: clamp(16px, 4vw, 40px);
	padding-bottom: clamp(24px, 4vw, 48px);
}
.trf-b *, .trf-b *::before, .trf-b *::after { box-sizing: border-box; }
.trf-b .trf-wrap { max-width: 1240px; margin-inline: auto; }
.trf-b img { max-width: 100%; display: block; }
.trf-b a { color: inherit; text-decoration: none; }
.trf-b p { margin: 0; }
.trf-b figure { margin: 0; }
.trf-b ul, .trf-b ol { list-style: none; margin: 0; padding: 0; }
.trf-b li { margin: 0; }
.trf-b h1, .trf-b h2, .trf-b h3 {
	font-family: var(--display); color: var(--ink); text-wrap: balance;
	margin: 0; letter-spacing: -0.01em; text-transform: none;
}
.trf-b :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.trf-b .trf-eyebrow {
	font: 500 12px/1.2 var(--mono); text-transform: uppercase;
	letter-spacing: 0.12em; color: var(--orange-deep);
}

/* ---------- hero ---------- */
.trf-b .trf-hero {
	padding-block: clamp(32px, 5vw, 64px) 28px;
	display: grid; grid-template-columns: 1.25fr 1fr;
	gap: clamp(24px, 5vw, 72px); align-items: end;
}
.trf-b .trf-hero h1 { font-weight: 700; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; margin-top: 18px; }
.trf-b .trf-hero h1 em { font-style: normal; color: var(--orange); }
.trf-b .trf-hero-side { display: grid; gap: 22px; padding-bottom: 6px; }
.trf-b .trf-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--mortar); max-width: 46ch; }
.trf-b .trf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trf-b .trf-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 22px; border: 0; border-radius: 0; cursor: pointer;
	font: 600 15px/1 var(--body); text-transform: none; letter-spacing: 0;
	transition: background-color .2s ease, color .2s ease;
}
.trf-b .trf-btn-main { background: var(--ink); color: var(--sheet); }
.trf-b .trf-btn-main:hover { background: var(--orange-deep); color: var(--sheet); }
.trf-b .trf-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.trf-b .trf-btn-ghost:hover { background: var(--sheet); color: var(--ink); }
.trf-b .trf-link { font-weight: 600; color: var(--ink); white-space: nowrap; }
.trf-b .trf-link:hover { color: var(--orange-deep); }

/* ---------- scenario switch ---------- */
.trf-b .trf-switch { display: flex; flex-wrap: wrap; margin-top: 8px; border-bottom: 1.5px solid var(--ink); }
.trf-b button.trf-tab {
	appearance: none; -webkit-appearance: none;
	margin: 0; border: 0; border-radius: 0; box-shadow: none; min-height: 0;
	background: transparent; color: var(--mortar); cursor: pointer;
	padding: 14px 22px 13px; text-align: left; text-transform: none; letter-spacing: 0;
	display: grid; gap: 4px; position: relative;
}
.trf-b .trf-tab b { font: 700 clamp(15px, 1.6vw, 18px)/1.1 var(--display); color: inherit; }
.trf-b .trf-tab span { font: 400 12px/1.2 var(--mono); letter-spacing: 0.02em; }
.trf-b button.trf-tab:hover { color: var(--ink); background: transparent; }
.trf-b button.trf-tab[aria-selected="true"] { color: var(--ink); background: var(--sheet); }
.trf-b .trf-tab[aria-selected="true"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 4px; background: var(--orange);
}

/* ---------- before / after ---------- */
.trf-b .trf-compare {
	--pos: 50%;
	position: relative; aspect-ratio: 16 / 9; max-width: 100%;
	overflow: hidden; background: #cfcdc6; user-select: none;
}
.trf-b .trf-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trf-b .trf-compare .trf-img-after { clip-path: inset(0 0 0 var(--pos)); }
.trf-b .trf-compare input[type="range"] {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
	appearance: none; -webkit-appearance: none; background: transparent; border: 0;
	opacity: 0; cursor: ew-resize; z-index: 4;
}
.trf-b .trf-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; pointer-events: none; }
.trf-b .trf-divider::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
	background: var(--sheet); box-shadow: 0 0 0 1px rgba(29, 30, 27, .18);
}
.trf-b .trf-grip {
	position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
	background: var(--pvc); color: var(--pvc-ink);
	padding: 10px 12px; display: flex; align-items: center; gap: 8px;
	font: 500 12px/1 var(--mono); white-space: nowrap;
	box-shadow: 0 6px 20px rgba(29, 30, 27, .25);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.trf-b .trf-grip svg { width: 18px; height: 18px; }
.trf-b .trf-compare input:focus-visible ~ .trf-divider .trf-grip { outline: 3px solid var(--orange); outline-offset: 2px; }
.trf-b .trf-tag {
	position: absolute; top: 16px; z-index: 2; pointer-events: none;
	font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
	padding: 9px 12px; background: rgba(29, 30, 27, .72); color: var(--sheet);
}
.trf-b .trf-tag-before { left: 16px; }
.trf-b .trf-tag-after { right: 16px; background: var(--orange); }
.trf-b .trf-note {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
	padding-block: 12px; font: 400 12.5px/1.4 var(--mono); color: var(--mortar);
}

/* ---------- scenario details ---------- */
.trf-b .trf-scn { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px); }
.trf-b .trf-scn[hidden] { display: none; }
.trf-b .trf-scn h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; margin-top: 14px; }
.trf-b .trf-gains { margin-top: 28px; border-top: 1px solid var(--line); }
.trf-b .trf-gains li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.trf-b .trf-gains li::before { content: ""; width: 14px; height: 3px; background: var(--orange); margin-top: 12px; }
.trf-b .trf-gains b { display: block; font-weight: 600; font-size: 17px; }
.trf-b .trf-gains span { color: var(--mortar); font-size: 15px; }
.trf-b .trf-kit { display: grid; gap: 14px; align-content: start; }
.trf-b .trf-item { background: var(--sheet); display: grid; grid-template-columns: 148px 1fr; }
.trf-b .trf-item-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.trf-b .trf-item-body { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.trf-b .trf-item-body h3 { font: 600 16px/1.3 var(--body); letter-spacing: 0; }
.trf-b .trf-item-body h3 a:hover { color: var(--orange-deep); }
.trf-b .trf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trf-b .trf-chip { font: 500 12px/1 var(--mono); background: var(--pvc); color: var(--pvc-ink); padding: 6px 8px; }
.trf-b .trf-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.trf-b .trf-price, .trf-b .trf-price .amount, .trf-b .trf-price bdi {
	font: 700 17px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums;
}
.trf-b .trf-price del { opacity: .5; margin-right: 6px; }
.trf-b .trf-price ins { text-decoration: none; }
.trf-b .trf-more { font-weight: 600; font-size: 14px; color: var(--orange-deep); }
.trf-b .trf-more:hover { text-decoration: underline; color: var(--orange-deep); }

/* ---------- shared section head ---------- */
.trf-b .trf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.trf-b .trf-head h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; margin-top: 14px; }
.trf-b .trf-head .trf-lead { max-width: 44ch; font-size: 16px; }

/* ---------- popular products ---------- */
.trf-b .trf-popular { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.trf-b .trf-products { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.trf-b .trf-pcard { display: grid; gap: 10px; align-content: start; }
.trf-b .trf-pcard-media { display: block; background: var(--sheet); aspect-ratio: 1; overflow: hidden; }
.trf-b .trf-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.trf-b .trf-pcard:hover .trf-pcard-media img { transform: scale(1.03); }
.trf-b .trf-pcard h3 { font: 500 15px/1.4 var(--body); letter-spacing: 0; }
.trf-b .trf-pcard h3 a:hover { color: var(--orange-deep); }
.trf-b .trf-pcard .trf-price, .trf-b .trf-pcard .trf-price .amount, .trf-b .trf-pcard .trf-price bdi { font-size: 15px; color: var(--orange-deep); }

/* ---------- real works ---------- */
.trf-b .trf-real { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.trf-b .trf-real-grid {
	margin-top: 32px; display: grid; gap: 12px;
	grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 250px 250px;
}
.trf-b .trf-real-grid figure { position: relative; overflow: hidden; background: #d9d7d0; }
.trf-b .trf-real-grid figure:first-child { grid-row: 1 / 3; }
.trf-b .trf-real-grid figure:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.trf-b .trf-real-grid img { width: 100%; height: 100%; object-fit: cover; }
.trf-b .trf-real-grid figcaption,
.trf-b .trf-master figcaption {
	position: absolute; left: 14px; top: 14px;
	font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
	background: var(--sheet); color: var(--ink); padding: 8px 10px;
}
.trf-b .trf-real-foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.trf-b .trf-real-foot p { color: var(--mortar); max-width: 62ch; }

/* ---------- master ---------- */
.trf-b .trf-master { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--ink); color: var(--sheet); }
.trf-b .trf-master figure { position: relative; min-height: 320px; }
.trf-b .trf-master figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trf-b .trf-master figcaption { top: auto; bottom: 16px; left: 16px; }
.trf-b .trf-master-text { padding: clamp(28px, 5vw, 64px); display: grid; gap: 22px; align-content: center; }
.trf-b .trf-master .trf-eyebrow { color: #E39058; }
.trf-b .trf-master .trf-quote { font: 500 clamp(21px, 2.4vw, 30px)/1.3 var(--display); text-wrap: balance; color: var(--sheet); }
.trf-b .trf-master p { color: #C9C7C0; max-width: 52ch; }

/* ---------- steps ---------- */
.trf-b .trf-steps { padding-block: clamp(48px, 7vw, 88px) clamp(16px, 3vw, 32px); }
.trf-b .trf-steps ol { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: trfstep; }
.trf-b .trf-steps li { counter-increment: trfstep; padding: 22px 22px 6px 0; border-top: 1.5px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.trf-b .trf-steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.trf-b .trf-steps li::before { content: counter(trfstep); font: 700 32px/1 var(--display); color: var(--orange); }
.trf-b .trf-steps b { font-weight: 600; font-size: 17px; }
.trf-b .trf-steps span { color: var(--mortar); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.trf-b .trf-products { grid-template-columns: repeat(3, 1fr); }
	.trf-b .trf-real-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 220px; }
	.trf-b .trf-real-grid figure:first-child { grid-row: auto; }
	.trf-b .trf-real-grid figure:nth-child(4) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 900px) {
	.trf-b .trf-hero, .trf-b .trf-scn, .trf-b .trf-master { grid-template-columns: 1fr; }
	.trf-b .trf-steps ol { grid-template-columns: 1fr 1fr; }
	.trf-b .trf-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
	.trf-b .trf-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.trf-b button.trf-tab { padding: 13px 6px 12px; flex: 1 1 0; justify-items: center; text-align: center; }
	.trf-b .trf-tab b { font-size: 13px; white-space: nowrap; }
	.trf-b .trf-tab span { display: none; }
	.trf-b .trf-compare { aspect-ratio: 4 / 3; }
	.trf-b .trf-item { grid-template-columns: 104px 1fr; }
	.trf-b .trf-grip span { display: none; }
	.trf-b .trf-steps ol { grid-template-columns: 1fr; }
	.trf-b .trf-steps li, .trf-b .trf-steps li + li { padding-left: 0; border-left: 0; }
	.trf-b .trf-tag { top: 10px; font-size: 11px; padding: 7px 9px; }
	.trf-b .trf-tag-before { left: 10px; }
	.trf-b .trf-tag-after { right: 10px; }
	.trf-b .trf-products { gap: 20px 10px; }
	.trf-b .trf-pcard h3 { font-size: 13px; }
	.trf-b .trf-real-grid { grid-template-rows: 220px 160px; }
	.trf-b .trf-real-grid figure:first-child { grid-column: 1 / -1; }
	.trf-b .trf-real-grid figure:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.trf-b .trf-compare img { transition: opacity .3s ease; }
	.trf-b .trf-compare.is-swapping img { opacity: .25; }
}

/* Акція «кешбек 10% за фото» */
.trf-b .trf-cashback { margin-top: clamp(40px, 6vw, 72px); }
.trf-b .trf-cashback-in {
	max-width: 1240px; margin-inline: auto; background: var(--sheet);
	border-top: 3px solid var(--orange); padding: clamp(24px, 4vw, 44px);
}
.trf-b .trf-cashback h2 { font-size: clamp(24px, 3vw, 38px); margin-top: 10px; }
.trf-b .trf-cashback .trf-lead { margin-top: 12px; max-width: 62ch; color: var(--mortar); }
.trf-b .trf-cashback ol { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trf-b .trf-cashback li {
	display: grid; gap: 8px; align-content: start;
	border-top: 1.5px solid var(--ink); padding: 18px 20px 4px 0;
}
.trf-b .trf-cashback li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.trf-b .trf-cashback li b { font: 700 28px/1 var(--display); color: var(--orange); }
.trf-b .trf-cashback li span { font-size: 15px; }
.trf-b .trf-cashback-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.trf-b .trf-cashback .trf-note { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--mortar); max-width: 70ch; }

@media (max-width: 767px) {
	.trf-b .trf-cashback ol { grid-template-columns: 1fr; }
	.trf-b .trf-cashback li + li { padding-left: 0; border-left: 0; }
	.trf-b .trf-cashback-cta a { width: 100%; text-align: center; justify-content: center; }
}
.trf-b .trf-cashback-cta .trf-link { align-self: center; }
