/*
Theme Name: Bertini Auto Parts
Theme URI: https://bertiniautoparts.com
Author: Bertini Auto Parts
Description: Tema su misura per Bertini Auto Parts: catalogo ricambi senza prezzi, richiesta su WhatsApp.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bertini
License: GPL-2.0-or-later
*/

@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--bg: #0f1112;
	--surface: #181b1d;
	--surface-2: #212528;
	--ink: #f2f2ee;
	--muted: #b3b7bb;
	--accent: #e1141c;
	--accent-press: #b80f16;
	--label: #f2f2f0;
	--label-2: #e4e4e1;
	--label-ink: #111214;
	--label-muted: #45484c;
	--wa: #25d366;
	--wa-ink: #0b2e17;

	--display: "Unbounded", "Arial Black", sans-serif;
	--text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
	--step-hero: clamp(2.6rem, 6.3vw, 6.4rem);

	--gutter: clamp(16px, 3vw, 40px);
	--section: clamp(104px, 13vw, 200px);
	--bar-h: 76px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 var(--step-body)/1.55 var(--text);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, input, select, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(225, 20, 28, .18); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: #3a3f44 var(--bg); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--label); color: var(--label-ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.h2 {
	font-family: var(--display);
	font-weight: 800;
	font-size: var(--step-head);
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 52px; padding: 0 24px;
	font: 600 1rem/1 var(--text);
	text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--wa { background: var(--accent); color: #fff; }
.btn--wa:hover { background: var(--accent-press); }
.btn--wa .icon { width: 22px; height: 22px; }
.btn--solid { background: var(--label); color: var(--label-ink); }
.btn--solid:hover { background: #fff; }
.btn--big { min-height: 60px; font-size: 1.0625rem; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; padding: 10px 0; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------------- bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: background-color .3s; }
.home .bar { position: fixed; left: 0; right: 0; background: transparent; }
.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .bar { top: 46px; } }
.home .bar.is-solid, .home .bar.is-open { background: var(--bg); }
.bar__in { height: var(--bar-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.bar__logo { flex: none; display: block; }
.bar__logo img { width: auto; height: 46px; }
.bar__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.bar__nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.bar__nav .menu a { text-decoration: none; font-weight: 500; font-size: 1rem; padding: 10px 0; }
.bar__nav .menu a:hover, .bar__nav .current-menu-item > a { text-decoration: underline; }
.bar__search { display: flex; align-items: center; background: var(--surface-2); height: 44px; }
.bar__search input { width: 190px; height: 44px; padding: 0 12px; background: transparent; border: 0; outline: 0; font-size: .9375rem; }
.bar__search input::placeholder { color: var(--muted); }
.bar__search:focus-within { outline: 2px solid var(--accent); }
.bar__search button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.btn--bar { min-height: 44px; padding: 0 16px; }
.bar__toggle { display: none; }

/* ------------------------------------------------------------- hero */
.hero { position: relative; height: min(100svh, 980px); min-height: 620px; overflow: hidden; background: var(--bg); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__copy { position: relative; z-index: 2; height: 100%; padding: calc(var(--bar-h) + clamp(36px, 7vh, 88px)) var(--gutter) 0; text-align: center; }
.hero__title {
	font-family: var(--display); font-weight: 800; text-transform: uppercase;
	font-size: var(--step-hero); line-height: .95; letter-spacing: -0.035em;
}
.hero__title span { display: block; }
.hero__line { margin: 26px auto 0; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; color: var(--ink); text-align: center; }
.hero__line span { display: inline-block; }
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 70%; z-index: 1; background: linear-gradient(to bottom, rgba(10,11,12,.82) 0%, rgba(10,11,12,.55) 55%, rgba(10,11,12,0) 100%); pointer-events: none; } /* taste-skill-ignore: neutral scrim under text on the hero photo */
.hero__cta { width: auto; padding: 0 32px; margin-top: 36px; animation: riseIn .9s var(--ease) .9s both; }

/* ------------------------------------------------------------- request label */
.req { position: relative; z-index: 3; padding: 0 var(--gutter); margin-top: clamp(-260px, -22vh, -120px); }
.req__label {
	max-width: 1360px; margin: 0 auto;
	background: var(--label); color: var(--label-ink);
	display: grid; grid-template-columns: 1.25fr 1fr;
}
.req__form { padding: clamp(28px, 4vw, 56px); }
.req__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.req__sub { margin: 16px 0 28px; color: var(--label-muted); max-width: 46ch; }
.req form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--label-muted); }
.field input, .select select {
	width: 100%; height: 54px; padding: 0 14px;
	background: #fff; color: var(--label-ink);
	border: 2px solid var(--label-ink); border-radius: 0;
	font-size: 1.0625rem; appearance: none;
}
.field input::placeholder { color: #6d7074; }
.field input:focus, .select select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.select { position: relative; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.req__err { grid-column: 1 / -1; margin: 0; color: #a00c12; font-weight: 600; }
.req form .btn { grid-column: 1 / -1; margin-top: 6px; }
.req__tag { background: var(--label-ink); color: var(--ink); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.tag__head { margin: 0; font-size: var(--step-small); color: var(--muted); }
.tag__part { margin: 10px 0 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; min-height: 2em; }
.tag__car { margin: 0; font-size: var(--step-lead); color: var(--ink); }
.tag__rows { margin: 8px 0 0; display: grid; gap: 8px; }
.tag__rows div { display: flex; justify-content: space-between; gap: 16px; background: var(--surface-2); padding: 12px 14px; }
.tag__rows dt { color: var(--muted); }
.tag__rows dd { margin: 0; font-weight: 600; text-align: right; }
.tag__msg { margin: auto 0 0; padding-top: 18px; display: grid; gap: 6px; }
.tag__msg span:first-child { font-size: var(--step-small); color: var(--muted); }
.tag__msg span:last-child { font-size: 1rem; line-height: 1.45; }
.is-empty { color: var(--muted); }

/* ------------------------------------------------------------- categories */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); padding: var(--section) var(--gutter) 0; align-items: start; }
.cats__media { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 6vh); aspect-ratio: 688 / 764; background: var(--surface); overflow: hidden; }
.cats__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .4s var(--ease), transform .8s var(--ease); }
.cats__media img.is-on { opacity: 1; transform: none; }
.cats__list { grid-column: 7 / span 6; }
.cats__list .h2 { margin-bottom: 48px; }
.cats__list ul { list-style: none; margin: 0 0 32px; padding: 0; }
.cats__list li a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; min-height: 60px; padding: 14px 0; text-decoration: none; }
.cats__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.0625rem, .8rem + .9vw, 1.5rem); color: var(--muted); transition: color .2s; line-height: 1.15; }
.cats__count { font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.cats__desc { display: none; margin: -4px 0 16px; max-width: 46ch; font-size: 1rem; color: var(--ink); }
.cats__list li.is-on .cats__name { color: var(--ink); }
.cats__list li.is-on .cats__count { color: var(--ink); font-weight: 600; }
.cats__list li.is-on .cats__desc { display: block; animation: rise .35s var(--ease) both; }
.cats__list li a:hover .cats__name, .cats__list li a:focus-visible .cats__name { color: var(--ink); }

/* ------------------------------------------------------------- showcase */
.show { margin-top: var(--section); background: var(--accent-press); color: #fff; min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); padding: clamp(56px, 8vw, 96px) var(--gutter); position: relative; overflow: hidden; }
.show__stage { grid-column: 5 / span 6; grid-row: 1 / span 2; position: relative; aspect-ratio: 1; width: min(64vh, 100%); justify-self: center; align-self: center; }
.show__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--surface); }
.show__obj { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: cover; border-radius: 50%; opacity: 0; transform: scale(.94) rotate(-4deg); transition: opacity .4s var(--ease), transform .7s var(--ease); }
.show__obj.is-on { opacity: 1; transform: none; }
.show__list { grid-column: 1 / span 5; grid-row: 2; align-self: end; position: relative; z-index: 2; }
.show__h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin-bottom: 24px; color: #fff; }
.show__list ul { list-style: none; margin: 0; padding: 0; }
.show__list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer; font: 400 clamp(1.125rem, .9rem + .9vw, 1.75rem)/1.2 var(--text); color: #fff; transition: transform .3s var(--ease); }
.show__list button[aria-selected="true"] { font-weight: 700; transform: translateX(14px); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .28em; }
.show__list button:hover { text-decoration: underline; text-underline-offset: .28em; }
.show__fact { grid-column: 11 / span 2; grid-row: 2; align-self: end; display: grid; gap: 12px; justify-items: start; position: relative; z-index: 2; }
.show__fact p { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.show .btn--wa { background: var(--label-ink); }
.show .btn--wa:hover { background: #000; }
.show .link-arrow { color: #fff; }

/* ------------------------------------------------------------- about */
.about { padding: var(--section) 20px 0; }
.about__panel { background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 64px 64px 0; overflow: hidden; position: relative; }
.about__h { max-width: 14ch; }
.about__left { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.about__fig { margin: 0 0 -8%; width: min(40vw, 660px); aspect-ratio: 1 / .88; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); overflow: hidden; }
.about__fig img { width: 100%; height: 100%; object-fit: cover; }
.about__right { padding: 120px 0 96px 12%; display: flex; flex-direction: column; gap: 48px; justify-content: flex-end; align-items: flex-start; }
.about__block { max-width: 40ch; }
.about__block h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.375rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.about__block p { margin: 0; }

/* ------------------------------------------------------------- steps */
.steps { margin-top: var(--section); }
.step { position: relative; height: 100svh; min-height: 560px; overflow: clip; }
.step__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step::after { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 10, .52); }
.step__word { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.step__word { display: grid; place-items: center; padding: 0 var(--gutter); }
.step__word h2 {
	text-align: center; margin: 0; padding-bottom: 6vh;
	font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1;
	font-size: min(300px, calc(88vw / var(--n, 6) / .9));
}
.step__txt { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(24px, 6vh, 64px); max-width: 38ch; margin: 0; font-size: var(--step-lead); line-height: 1.35; background: var(--bg); padding: 18px 22px; }

/* ------------------------------------------------------------- faq */
.faq { padding: var(--section) var(--gutter) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
.faq__h { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(2.25rem, 5.5vw, 5.75rem); margin-bottom: 80px; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 12px; }
.faq__item { padding: 0 24px; margin: 0 -24px; transition: background-color .25s; }
.faq__item[open] { background: var(--surface); padding-bottom: 24px; }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 64px; padding: 14px 0; cursor: pointer; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .3s var(--ease); width: 24px; height: 24px; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { max-width: 58ch; margin: 0; font-size: 1.0625rem; }

/* ------------------------------------------------------------- visit */
.visit { position: relative; margin-top: var(--section); min-height: 100svh; overflow: clip; }
.visit__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__card { position: relative; z-index: 2; width: 400px; max-width: calc(100% - 2 * var(--gutter)); margin-left: auto; margin-right: clamp(16px, 4vw, 60px); top: 60px; background: var(--label); color: var(--label-ink); padding: 32px 32px 0; }
.visit__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 18px; }
.visit__addr { font-size: 1.0625rem; }
.visit__addr a, .visit__tel a { color: var(--label-ink); }
.visit__hours { margin: 0 0 18px; display: grid; gap: 12px; }
.visit__hours div { display: grid; gap: 0; }
.visit__hours dt { color: var(--label-muted); }
.visit__hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.visit__tel { font-size: 1.0625rem; font-weight: 500; }
.btn--card { width: calc(100% + 64px); margin: 8px -32px 0; min-height: 56px; }

/* ------------------------------------------------------------- footer */
.foot { padding: var(--section) var(--gutter) 0; }
.foot__label {
	position: relative;
	background: var(--label); color: var(--label-ink); padding: 72px clamp(24px, 4vw, 64px) 28px;
}
.foot__label::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Ccircle cx='20' cy='0' r='9' fill='%230f1112'/%3E%3C/svg%3E") top left / 40px 10px repeat-x;
}
.foot__cols { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 48px; }
.foot__sign { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.foot__msg p:not(.foot__sign) { color: var(--label-muted); max-width: 40ch; }
.foot__h { font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.foot__cats ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.foot__cats li { break-inside: avoid; }
.foot__cats a, .foot__addr a { color: var(--label-ink); text-decoration: none; display: inline-block; padding: 5px 0; }
.foot__cats a:hover, .foot__addr a:hover { text-decoration: underline; }
.foot__addr ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.foot__addr li { display: flex; gap: 10px; align-items: center; }
.foot__nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot__name { margin: 56px 0 8px; font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: .8; font-size: clamp(4rem, 19.5vw, 22rem); text-align: center; color: var(--label-ink); }
.foot__imprint { margin: 0; text-align: center; font-size: var(--step-small); color: var(--label-muted); }
.foot__imprint a { color: var(--label-muted); }

/* ------------------------------------------------------------- whatsapp fab */
.fab {
	position: fixed; right: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-right)); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom)); z-index: 60;
	display: inline-flex; align-items: center; gap: 10px;
	height: 64px; padding: 0 22px 0 18px; border-radius: 999px;
	background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem;
	box-shadow: 0 10px 28px -8px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3); /* taste-skill-ignore: the WhatsApp button really floats */
	transition: transform .25s var(--ease), box-shadow .25s;
}
.fab .icon { width: 30px; height: 30px; }
.fab:hover { transform: translateY(-2px); /* taste-skill-ignore: floating button */ box-shadow: 0 16px 34px -8px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.3); }
.fab:active { transform: scale(.97); }

/* ------------------------------------------------------------- catalogue */
.page-head { padding: calc(clamp(48px, 7vw, 104px)) var(--gutter) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--gutter); align-items: end; }
.page-head__title { grid-column: 1 / span 8; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: .98; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem); }
.page-head__side { grid-column: 9 / span 4; display: grid; gap: 16px; justify-items: start; }
.page-head__side p { margin: 0; }
.crumbs { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 40px var(--gutter) 8px; }
@media (max-width: 960px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface-2); text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background-color .2s; }
.chip:hover { background: #2d3236; }
.chip.is-on { background: var(--label); color: var(--label-ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px var(--gutter); padding: 40px var(--gutter) 0; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.card__img { background: var(--surface); aspect-ratio: 688 / 764; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img--none { display: grid; place-items: center; padding: 24px; }
.card__img--none span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 2vw, 1.75rem); text-align: center; color: var(--muted); line-height: 1.05; letter-spacing: -0.02em; }
.card__label { background: var(--label); color: var(--label-ink); padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step-small); color: var(--label-muted); }
.card__cond { font-weight: 700; color: var(--accent-press); }
.card__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.card__name a { text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__name a:hover { text-decoration: underline; }
.card__ask { position: relative; z-index: 2; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9375rem; color: var(--accent-press); text-decoration: none; min-height: 40px; }
.card__ask:hover { text-decoration: underline; }
.card__ask .icon { width: 20px; height: 20px; }
.pager { padding: 56px var(--gutter) 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 48px; height: 48px; display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--label); color: var(--label-ink); }
.empty { padding: 56px var(--gutter) 0; max-width: 60ch; }
.cta-band { margin: var(--section) var(--gutter) 0; background: var(--surface); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; }
.cta-band p { margin: 12px 0 0; color: var(--muted); max-width: 52ch; }

/* ------------------------------------------------------------- single */
.prod { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter); padding: 40px var(--gutter) 0; align-items: start; }
.prod .crumbs { grid-column: 1 / -1; }
.prod__media { grid-column: 1 / span 7; background: var(--surface); position: sticky; top: calc(var(--bar-h) + 20px); }
.prod__media img { width: 100%; aspect-ratio: 688 / 764; object-fit: cover; }
.prod__info { grid-column: 8 / span 5; display: grid; gap: 24px; }
.prod__cond { display: inline-flex; width: fit-content; background: var(--accent); color: #fff; font-weight: 700; padding: 6px 12px; font-size: .9375rem; }
.prod__title { font-size: clamp(1.875rem, 1.2rem + 2vw, 2.875rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.prod__spec { background: var(--label); color: var(--label-ink); padding: 22px 24px; margin: 0; display: grid; gap: 10px; }
.prod__spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; }
.prod__spec dt { color: var(--label-muted); }
.prod__spec dd { margin: 0; font-weight: 600; }
.prod__actions { display: grid; gap: 12px; }
.prod__actions .btn { width: 100%; min-height: 60px; font-size: 1.0625rem; }
.prod__phone { text-align: center; color: var(--muted); font-size: 1rem; margin: 0; }
.prod__phone a { color: var(--ink); font-weight: 600; }
.prod__desc { max-width: 60ch; }
.prod__desc p:last-child { margin-bottom: 0; }
.prod__how { background: var(--surface); padding: 22px 24px; }
.prod__how h2 { font-size: 1.125rem; margin-bottom: 10px; }
.prod__how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.related { padding-top: var(--section); }
.related .h2 { padding: 0 var(--gutter); }

/* ------------------------------------------------------------- pages */
.page-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter); padding: 56px var(--gutter) 0; align-items: start; }
.page-body__text { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.5; }
.page-body__text > *:first-child { margin-top: 0; }
.page-body__text h2 { font-size: 1.75rem; margin: 1.4em 0 .5em; }
.page-body__text a { color: var(--ink); }
.page-body__fig { grid-column: 8 / span 5; margin: 0; background: var(--surface); }
.page-body__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.page-body--plain .page-body__text { grid-column: 1 / span 8; font-size: var(--step-body); }
.err-big { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 22vw, 20rem); line-height: .8; letter-spacing: -0.05em; color: var(--surface-2); margin: 0; }
.searchbox { display: flex; max-width: 560px; }
.searchbox input { flex: 1; height: 56px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; border-right: 0; font-size: 1.0625rem; }
.searchbox input:focus { outline: 3px solid var(--accent); outline-offset: -1px; }
.searchbox button { height: 56px; padding: 0 22px; border: 0; background: var(--label); color: var(--label-ink); font-weight: 700; cursor: pointer; }

/* ------------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js [data-rise] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js [data-rise].in > * { opacity: 1; transform: none; }
.js [data-rise].in > *:nth-child(2) { transition-delay: .08s; }
.js [data-rise].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-rise].in > *:nth-child(4) { transition-delay: .24s; }
.js [data-rise].in > *:nth-child(5) { transition-delay: .32s; }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__media[data-shutter] { animation: shutter 1.1s var(--ease) .1s both; }
.hero__media[data-shutter] img { animation: settle 1.8s var(--ease) .1s both; }
.hero__title span, .hero__line span { animation: riseIn .9s var(--ease) both; }
.hero__title span:nth-child(1) { animation-delay: .35s; }
.hero__title span:nth-child(2) { animation-delay: .45s; }
.hero__line span { animation-delay: .7s; }
.hero__line span:last-child { animation-delay: .8s; }
.step__img { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.step.in .step__img { transform: scale(1); }
.visit__img { transform-origin: 60% 60%; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-rise] > * { opacity: 1 !important; transform: none !important; }
	.step__img { transform: none; }
}

/* ------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
	.bar__search input { width: 140px; }
	.bar__nav { gap: 18px; }
	.bar__nav .menu { gap: 18px; }
	.grid { grid-template-columns: repeat(3, 1fr); }
	.show__fact { grid-column: 9 / span 4; }
	.foot__cols { grid-template-columns: 1fr 1fr; }
	.foot__msg { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
	:root { --bar-h: 64px; }
	.bar__logo img { height: 38px; }
	.bar__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0; font-weight: 600; cursor: pointer; order: 3; }
	.bar__toggle-close { display: none; }
	.bar.is-open .bar__toggle-open { display: none; }
	.bar.is-open .bar__toggle-close { display: inline; }
	.btn--bar { margin-left: auto; padding: 0 14px; }
	.bar__nav {
		position: fixed; inset: var(--bar-h) 0 0 0; background: var(--bg);
		flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--gutter) 40px; margin: 0;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; overscroll-behavior: contain;
	}
	.bar.is-open .bar__nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
	.bar__nav .menu { flex-direction: column; gap: 0; }
	.bar__nav .menu a { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; letter-spacing: -0.03em; padding: 14px 0; }
	.bar__search { height: 54px; }
	.bar__search input { width: 100%; height: 54px; font-size: 1.0625rem; }
	.bar__search button { width: 54px; height: 54px; }

	.req__label { grid-template-columns: 1fr; }
	.cats { display: block; padding-top: var(--section); }
	.cats__media { position: relative; top: auto; aspect-ratio: 4 / 3; margin: 0 0 8px; }
	.cats__list .h2 { margin: 32px 0 24px; }
	.cats__list li a { min-height: 56px; }
	.show { display: flex; flex-direction: column; min-height: 0; gap: 28px; }
	.show__stage { width: min(86vw, 520px); }
	.show__list ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
	.show__list li { flex: none; }
	.show__list button { font-size: 1.125rem; padding: 10px 0; }
	.show__list button[aria-selected="true"] { transform: none; }
	.show__h { text-align: left; }
	.show__fact { justify-items: start; }
	.about { padding-left: 10px; padding-right: 10px; }
	.about__panel { grid-template-columns: 1fr; padding: 32px 20px; max-height: none; min-height: 0; }
	.about__left { display: contents; }
	.about__h { order: 1; margin-bottom: 16px; }
	.about__right { order: 2; padding: 0; gap: 28px; }
	.about__fig { order: 3; width: 86vw; margin: 0 auto -32px; }
	.faq__list { grid-column: 1 / -1; }
	.faq__h { margin-bottom: 40px; }
	.faq__item { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
	.faq__item[open] { padding-bottom: 20px; }
	.page-head__title, .page-head__side { grid-column: 1 / -1; }
	.prod__media, .prod__info { grid-column: 1 / -1; position: static; }
	.page-body__text, .page-body__fig, .page-body--plain .page-body__text { grid-column: 1 / -1; }
	.cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	:root { --step-hero: min(2.55rem, 8.4vw); }
	.hero { min-height: 640px; height: 92svh; }
	.hero__media img { object-position: 70% 80%; }
	.hero__line { margin-top: 18px; font-size: 1.0625rem; }
	.req { margin-top: -110px; padding: 0 10px; }
	.req form { grid-template-columns: 1fr; }
	.req__form, .req__tag { padding: 26px 18px; }
	.grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
	.card__label { padding: 12px 12px 14px; }
	.card__name { font-size: .9375rem; }
	.card__meta { flex-direction: column; gap: 0; }
	.step__txt { left: 16px; right: 16px; font-size: 1.0625rem; padding: 16px; }
	.step__word h2 { padding-bottom: 22vh; }
	.visit { min-height: 0; padding-bottom: 0; }
	.visit__img { position: relative; height: 70svh; }
	.visit__card { width: auto; margin: -80px 16px 0; top: 0; }
	.foot { padding-left: 0; padding-right: 0; }
	.foot__cols { grid-template-columns: 1fr; gap: 36px; }
	.foot__msg { grid-column: auto; }
	.fab { height: 58px; width: 58px; padding: 0; justify-content: center; }
	.fab__label { display: none; }
	.bar .btn--bar span { display: none; }
	.btn--bar { width: 44px; padding: 0; }
	.prod__spec div { grid-template-columns: 1fr; gap: 0; }
	.visit__hours div { flex-direction: column; gap: 0; }
	.visit__hours dd { text-align: left; }
}
