/*
 * Dílna u Jasanu — stylesheet.
 *
 * Values are the mockup's own ("Dilna u Jasanu.dc.html", accepted 22.09):
 * container 1440/120, the five colours, Piazzolla 500–600 for headings,
 * Commissioner 400–600 for everything else, 1 px rules at 18–22 % brown,
 * corners 0–2 px, no shadows. Ochre sits only on rules, step numbers and
 * the active chip's border (handoff §4.2); "Detail →" is brown.
 *
 * Breakpoints: 1180 (gutters narrow), 860 (single column, the 390 mockup's
 * header and section layout), 480 (grids collapse).
 */

/* --------------------------------------------------------------- tokens --- */

:root {
	--cream: #F4F0EA;
	--surface: #EAE5E0;
	--brown: #4D3D30;
	--ink: #1A1617;
	--ochre: #A8742A;
	/* Ochre darkened for text under 24 px: #A8742A on cream is 3.55:1, this is 5.1:1 (AA). */
	--ochre-ink: #8A5C1E;

	--line-14: rgb(77 61 48 / 0.14);
	--line-18: rgb(77 61 48 / 0.18);
	--line-20: rgb(77 61 48 / 0.20);
	--line-22: rgb(77 61 48 / 0.22);
	--line-35: rgb(77 61 48 / 0.35);
	--line-40: rgb(77 61 48 / 0.40);

	--display: Piazzolla, Georgia, "Times New Roman", serif;
	--sans: Commissioner, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, Menlo, Consolas, monospace;

	--gutter: 120px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----------------------------------------------------------------- base --- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--brown);
	text-decoration: none;
}

a:hover {
	color: var(--ochre);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-optical-sizing: auto;
	color: var(--brown);
}

p {
	margin: 0;
}

::selection {
	background: var(--brown);
	color: var(--cream);
}

:where(a, button, input, select, textarea, summary, label):focus-visible {
	outline: 2px solid var(--ochre);
	outline-offset: 3px;
}

.container {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.num {
	font-variant-numeric: tabular-nums;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--brown);
	color: var(--cream);
}

.skip-link:focus {
	left: 12px;
	top: 12px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.card,
	.button {
		transition: none;
	}
}

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

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 20px;
	border: 0;
	border-radius: 2px;
	background: var(--brown);
	color: var(--cream);
	font-family: var(--sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.button:hover {
	background: var(--ochre);
	color: var(--cream);
}

.button--lg {
	padding: 17px 28px;
	font-size: 15px;
}

.button--cream {
	background: var(--cream);
	color: var(--brown);
}

.button--cream:hover {
	background: var(--ochre);
	color: var(--cream);
}

.link-ochre {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--ochre);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	color: var(--brown);
}

/* --------------------------------------------------------------- header --- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--cream);
	border-bottom: 1px solid var(--line-22);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 44px;
	height: 84px;
}

.site-header__brand {
	font-family: var(--display);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: -0.01em;
	color: var(--brown);
	white-space: nowrap;
}

.site-header__brand:hover {
	color: var(--brown);
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-block;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: var(--brown);
	white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
	color: var(--ink);
	border-bottom-color: var(--ochre);
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-left: 20px;
	border-left: 1px solid rgb(77 61 48 / 0.25);
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	color: var(--brown);
}

.lang-switch__sep {
	opacity: 0.4;
}

.lang-switch__item {
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}

.lang-switch__item.is-active {
	color: var(--ink);
	border-bottom-color: var(--ochre);
}

/* The mobile menu runs on this checkbox; the label is the "Menu" button.
 * Above 860 px the control does not exist, so it is not a tab stop there. */
.nav-toggle {
	display: none;
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
	pointer-events: none;
}

.nav-toggle__label {
	display: none;
	padding: 7px 9px;
	border: 1px solid var(--line-40);
	border-radius: 2px;
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	color: var(--brown);
	cursor: pointer;
}

.nav-toggle:focus-visible ~ .nav-toggle__label {
	outline: 2px solid var(--ochre);
	outline-offset: 3px;
}

/* ------------------------------------------------------- shared pieces --- */

.section-title {
	margin-bottom: 32px;
	font-size: 34px;
	line-height: 1.15;
}

.section-title--sm {
	font-size: 30px;
}

.section-lead {
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.65;
	text-wrap: pretty;
}

.page-head {
	padding-top: 80px;
}

.page-title {
	margin-bottom: 20px;
	font-size: 52px;
	line-height: 1.08;
}

.page-head--404 {
	padding-bottom: 96px;
}

.page-head--404 .section-lead {
	margin-bottom: 28px;
}

/* Photographs: the slot sets the ratio, the file keeps its own. */
.photo {
	margin: 0;
}

.photo__frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line-20);
	background: var(--surface);
}

.photo__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo--4-3 .photo__frame { aspect-ratio: 4 / 3; }
.photo--3-2 .photo__frame { aspect-ratio: 3 / 2; }
.photo--1-1 .photo__frame { aspect-ratio: 1 / 1; }

.photo__caption {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--brown);
}

.photo__caption--split {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

/* The mockup fades the note to 62 %; at 12 px that is 3.35:1 on cream, so 78 % (5.0:1, AA). */
.photo__note {
	opacity: 0.78;
}

/* Definition lists ruled the mockup's way: label column, rule above each row. */
.spec {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 24px;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

.spec dt,
.spec dd {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--line-20);
}

.spec dt {
	font-weight: 500;
	color: var(--brown);
}

.spec dt:last-of-type,
.spec dd:last-of-type {
	border-bottom: 1px solid var(--line-20);
}

/* Cards: the whole card is the link, hover lifts it 2 px. */
.cards {
	display: grid;
	gap: 32px;
}

.cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	display: block;
	padding: 14px;
	border: 1px solid var(--line-18);
	background: var(--surface);
	color: var(--ink);
	transition: transform 180ms var(--ease);
}

.card:hover {
	transform: translateY(-2px);
	color: var(--ink);
}

.card__frame {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--line-14);
	background: var(--cream);
}

.card__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__body {
	display: block;
}

.card__short {
	display: none;
}

.card__title {
	display: block;
	margin: 16px 0 6px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.2;
	color: var(--brown);
}

.card--pick .card__title {
	margin-bottom: 8px;
	font-size: 21px;
}

.card__category,
.card__material {
	display: block;
	font-size: 13px;
	line-height: 1.6;
}

.card__category {
	margin-bottom: 2px;
	color: var(--brown);
}

.card__material {
	margin-bottom: 6px;
}

.card--pick .card__material {
	margin-bottom: 4px;
}

.card__price {
	display: block;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

.card__link {
	display: inline-block;
	margin-top: 10px;
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	color: var(--brown);
}

.card--pick .card__link {
	margin-top: 12px;
}

/* Inputs, static label above (the mockup's field). */
.input {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--line-40);
	border-radius: 2px;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.4;
}

.input:focus {
	outline: none;
	border-color: var(--brown);
	box-shadow: 0 0 0 1px var(--brown);
}

.input--num {
	font-variant-numeric: tabular-nums;
}

.input--readonly,
.input--prefilled {
	background: var(--surface);
}

textarea.input {
	display: block;
	min-height: 2.6em;
	line-height: 1.5;
	resize: vertical;
}

select.input {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234D3D30' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/*
 * Chrome paints pale blue behind an autofilled value. An inset shadow the
 * colour of the field covers it; the text colour is reasserted the same way.
 */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
	box-shadow: inset 0 0 0 100px var(--cream);
	-webkit-text-fill-color: var(--ink);
	caret-color: var(--ink);
}

.input--readonly:-webkit-autofill,
.input--prefilled:-webkit-autofill {
	box-shadow: inset 0 0 0 100px var(--surface);
}

.choice {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}

.choice input {
	flex: none;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--brown);
}

/* ----------------------------------------------------------------- hero --- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 72px;
	align-items: center;
	padding-block: 96px 80px;
}

.hero__title {
	margin-bottom: 24px;
	font-size: 60px;
	line-height: 1.06;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.hero__lead {
	max-width: 37ch;
	margin-bottom: 36px;
	font-size: 17px;
	line-height: 1.65;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: 28px;
}

/* ---------------------------------------------------------------- offer --- */

.offer {
	background: var(--surface);
	border-top: 1px solid var(--line-18);
	border-bottom: 1px solid var(--line-18);
}

.offer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-block: 34px;
}

.offer__title {
	font-size: 24px;
	line-height: 1.25;
}

.offer__towns {
	font-size: 14px;
}

/* ----------------------------------------------------------- calculator --- */

.calc {
	padding-top: 88px;
}

.calc .section-title {
	margin-bottom: 14px;
}

.calc .section-lead {
	margin-bottom: 40px;
}

.calc__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 56px;
	align-items: start;
}

.calc__form {
	display: grid;
	gap: 26px;
}

.calc__form[hidden] {
	display: none;
}

.calc__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.calc__label {
	display: block;
	margin-bottom: 12px;
	padding: 0;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.3;
	color: var(--brown);
}

.calc__field .calc__label {
	margin-bottom: 7px;
}

.calc__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.calc__choices[hidden],
.calc__field[hidden] {
	display: none;
}

.calc__field .input {
	max-width: 200px;
}

.calc__pair {
	display: flex;
	align-items: center;
	gap: 12px;
}

.calc__pair .input--short {
	width: 96px;
}

.calc__times {
	font-size: 15px;
	line-height: 1;
	color: var(--brown);
}

.calc__error {
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--brown);
}

.calc__error[hidden] {
	display: none;
}

.input[aria-invalid="true"] {
	border-color: var(--ochre);
	box-shadow: 0 0 0 1px var(--ochre);
}

.calc__result {
	padding: 30px;
	border: 1px solid var(--line-18);
	background: var(--surface);
}

.calc__result[hidden] {
	display: none;
}

.calc__kicker {
	margin-bottom: 10px;
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brown);
}

.calc__price {
	margin-bottom: 18px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 38px;
	line-height: 1.15;
	color: var(--brown);
}

.calc__zone {
	margin-bottom: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ochre);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
}

.calc__note {
	margin-bottom: 22px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--brown);
}

.calc__result .button {
	padding: 16px 24px;
	font-size: 15px;
	white-space: normal;
	text-align: center;
}

.pricelist {
	margin-top: 28px;
}

.calc__result[hidden] + .pricelist {
	margin-top: 0;
}

.pricelist__title {
	margin-bottom: 14px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

.pricelist__list {
	display: grid;
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.pricelist__list dt {
	padding-top: 12px;
	border-top: 1px solid var(--line-20);
	font-weight: 500;
	color: var(--brown);
}

.pricelist__list dd {
	margin: 0;
	padding-bottom: 12px;
}

.pricelist__list dd:last-of-type {
	border-bottom: 1px solid var(--line-20);
}

/* ----------------------------------------------------------- categories --- */

.categories {
	padding-top: 88px;
}

.categories__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.cat-card {
	display: block;
	color: var(--ink);
	transition: transform 180ms var(--ease);
}

.cat-card:hover {
	transform: translateY(-2px);
	color: var(--ink);
}

.cat-card__frame {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--line-20);
	background: var(--surface);
}

.cat-card__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cat-card__body {
	display: block;
}

.cat-card__title {
	display: block;
	margin: 14px 0 6px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.2;
	color: var(--brown);
}

.cat-card__line {
	display: block;
	font-size: 13px;
	line-height: 1.6;
	font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- picks --- */

.picks {
	padding-top: 80px;
}

/* ---------------------------------------------------------------- steps --- */

.steps {
	padding-top: 88px;
}

.steps .section-title {
	margin-bottom: 36px;
}

.steps__list {
	display: grid;
	gap: 36px;
	max-width: 820px;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--ochre);
	list-style: none;
}

.step {
	position: relative;
	padding-left: 32px;
}

.step__num {
	position: absolute;
	left: -1px;
	top: 2px;
	transform: translateX(-50%);
	padding: 3px 6px;
	background: var(--cream);
	font-family: var(--mono);
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	color: var(--ochre-ink);
}

.step__title {
	margin-bottom: 8px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.4;
}

.step__text {
	max-width: 64ch;
	font-size: 15px;
	line-height: 1.7;
}

/* ------------------------------------------------------------ materials --- */

.materials {
	margin-top: 88px;
	background: var(--surface);
	border-top: 1px solid var(--line-18);
	border-bottom: 1px solid var(--line-18);
}

.materials__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	padding-block: 64px;
}

.materials .section-title {
	margin-bottom: 28px;
}

/* ------------------------------------------------------------------ faq --- */

.faq {
	max-width: calc(900px + var(--gutter));
	margin-inline: 0;
	padding-top: 88px;
}

.faq .section-title {
	margin-bottom: 28px;
}

.faq__item {
	padding: 18px 0;
	border-top: 1px solid var(--line-22);
}

.faq__item:last-of-type {
	border-bottom: 1px solid var(--line-22);
}

.faq__q {
	font-weight: 500;
	font-size: 17px;
	line-height: 1.4;
	color: var(--brown);
	cursor: pointer;
}

.faq__a {
	max-width: 66ch;
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.7;
}

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

.band {
	margin-top: 88px;
	background: var(--brown);
}

.band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-block: 56px;
}

.band__text {
	max-width: 52ch;
	font-family: var(--display);
	font-weight: 500;
	font-size: 26px;
	line-height: 1.35;
	color: var(--cream);
}

/* -------------------------------------------------------------- catalog --- */

.catalog {
	display: grid;
	padding-block: 44px 96px;
	counter-reset: shown;
}

/* Stays focusable for the keyboard; arrow keys move between chips. */
.catalog__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
	pointer-events: none;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	order: 1;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line-22);
}

.chip {
	padding: 10px 16px;
	border: 1px solid var(--line-35);
	border-radius: 2px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: var(--brown);
	cursor: pointer;
}

.chip:hover {
	border-color: var(--brown);
}

.catalog__count {
	order: 2;
	margin: 20px 0 32px;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: var(--brown);
}

.catalog__count::before {
	content: attr(data-before) counter(shown) attr(data-after);
}

.catalog__grid {
	order: 3;
	gap: 32px 28px;
}

.catalog__grid .card {
	counter-increment: shown;
}

#cat-vse:checked ~ .chips [for="cat-vse"],
#cat-kuchyne:checked ~ .chips [for="cat-kuchyne"],
#cat-skrine:checked ~ .chips [for="cat-skrine"],
#cat-stoly:checked ~ .chips [for="cat-stoly"],
#cat-atyp:checked ~ .chips [for="cat-atyp"] {
	background: var(--brown);
	border-color: var(--brown);
	color: var(--cream);
}

#cat-vse:focus-visible ~ .chips [for="cat-vse"],
#cat-kuchyne:focus-visible ~ .chips [for="cat-kuchyne"],
#cat-skrine:focus-visible ~ .chips [for="cat-skrine"],
#cat-stoly:focus-visible ~ .chips [for="cat-stoly"],
#cat-atyp:focus-visible ~ .chips [for="cat-atyp"] {
	outline: 2px solid var(--ochre);
	outline-offset: 3px;
}

#cat-kuchyne:checked ~ .catalog__grid .card:not([data-cat="kuchyne"]),
#cat-skrine:checked ~ .catalog__grid .card:not([data-cat="skrine"]),
#cat-stoly:checked ~ .catalog__grid .card:not([data-cat="stoly"]),
#cat-atyp:checked ~ .catalog__grid .card:not([data-cat="atyp"]) {
	display: none;
}

/* ----------------------------------------------------------------- model --- */

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 28px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--brown);
}

.crumbs a {
	text-decoration: underline;
	text-decoration-color: var(--line-40);
	text-underline-offset: 2px;
}

.crumbs__sep {
	opacity: 0.5;
}

.crumbs__current {
	color: var(--ink);
}

.gallery {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	padding-top: 32px;
}

.gallery__side {
	display: grid;
	gap: 20px;
}

.gallery__small .photo__caption {
	margin-top: 8px;
}

.model {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 72px;
	align-items: start;
	padding-top: 64px;
}

.model__title {
	margin-bottom: 18px;
	font-size: 46px;
	line-height: 1.08;
}

.model .section-lead {
	max-width: 60ch;
	margin-bottom: 32px;
}

.model__note {
	max-width: 62ch;
	margin-bottom: 28px;
	padding-left: 16px;
	border-left: 1px solid var(--ochre);
	font-size: 14px;
	line-height: 1.7;
	color: var(--brown);
}

.spec--model {
	gap: 0 28px;
}

.spec--model dt,
.spec--model dd {
	padding: 13px 0;
}

.spec__price {
	font-weight: 600;
	color: var(--ink);
}

.related {
	padding-block: 88px 96px;
}

.related .cards {
	gap: 28px;
}

/* ------------------------------------------------------------ realizace --- */

.projects {
	padding-top: 48px;
}

.projects__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 32px;
}

.about {
	margin-top: 88px;
	margin-bottom: 96px;
	background: var(--surface);
	border-top: 1px solid var(--line-18);
	border-bottom: 1px solid var(--line-18);
}

.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: start;
	padding-block: 64px;
}

.about .section-title {
	margin-bottom: 24px;
}

.about__text {
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.7;
	text-wrap: pretty;
}

.about__text + .about__text {
	margin-top: 18px;
}

.about__photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.about__photos .photo__caption {
	margin-top: 8px;
}

/* -------------------------------------------------------------- enquiry --- */

.enquiry {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 72px;
	align-items: start;
	padding-block: 48px 96px;
}

.form {
	display: grid;
	gap: 22px;
}

.form__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.field {
	display: grid;
	gap: 7px;
}

.field--psc {
	max-width: 220px;
}

.field__label {
	font-weight: 500;
	font-size: 14px;
	line-height: 1.3;
	color: var(--brown);
}

.field__label abbr {
	text-decoration: none;
}

.files {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 11px 12px;
	border: 1px solid var(--line-40);
	border-radius: 2px;
	background: var(--cream);
}

.files__button {
	padding: 13px 16px;
	border: 1px solid var(--line-40);
	border-radius: 2px;
	background: var(--surface);
	color: var(--brown);
	font-family: var(--sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.files__button:hover {
	border-color: var(--brown);
}

.files__status {
	font-size: 14px;
	line-height: 1.4;
	color: var(--brown);
}

.choice--consent {
	align-items: flex-start;
	gap: 11px;
	font-size: 14px;
	line-height: 1.6;
}

.choice--consent input {
	margin-top: 3px;
}

.form__demo {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--brown);
}

.aside {
	padding: 32px;
	border: 1px solid var(--line-18);
	background: var(--surface);
}

.aside__title {
	margin-bottom: 20px;
	font-size: 24px;
	line-height: 1.2;
}

.aside__list {
	display: grid;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

.aside__list dt {
	padding-top: 14px;
	border-top: 1px solid var(--line-20);
	font-weight: 500;
	color: var(--brown);
}

.aside__list dd {
	margin: 0;
	padding-bottom: 14px;
}

.aside__list a {
	color: var(--ink);
}

.aside__list a:hover {
	color: var(--ochre);
}

/* --------------------------------------------------------------- footer --- */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--line-22);
	font-size: 14px;
	line-height: 1.75;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	padding-block: 52px;
}

.site-footer__brand {
	margin-bottom: 10px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	color: var(--brown);
}

.site-footer__text {
	font-variant-numeric: tabular-nums;
}

.site-footer__text a {
	color: var(--brown);
}

.site-footer__text a:hover {
	color: var(--ochre);
}

.site-footer__legal {
	margin-bottom: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line-20);
	font-size: 13px;
	line-height: 1.6;
	color: var(--brown);
}

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

@media (max-width: 1180px) {
	:root {
		--gutter: 64px;
	}

	.hero {
		gap: 48px;
	}

	.hero__title {
		font-size: 48px;
	}

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

	.calc__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.site-header__inner {
		gap: 28px;
	}
}

@media (max-width: 860px) {
	:root {
		--gutter: 18px;
	}

	/* Header as the 390 mockup draws it: wordmark, "CS | DE", Menu. */
	.site-header__inner {
		flex-wrap: wrap;
		gap: 12px;
		height: auto;
		min-height: 52px;
		padding-block: 14px;
	}

	.site-header__brand {
		font-size: 16px;
	}

	.site-nav {
		display: none;
		order: 10;
		flex-basis: 100%;
		margin: 0;
		padding-top: 14px;
		border-top: 1px solid var(--line-22);
	}

	.site-nav__list {
		flex-direction: column;
		gap: 14px;
	}

	.site-nav__list a {
		font-size: 15px;
	}

	.site-header__cta {
		display: none;
		order: 11;
		flex-basis: 100%;
		margin-top: 4px;
	}

	.nav-toggle:checked ~ .site-nav,
	.nav-toggle:checked ~ .site-header__cta {
		display: flex;
	}

	.lang-switch {
		margin-left: auto;
		padding-left: 0;
		border-left: 0;
		font-size: 12px;
	}

	.nav-toggle {
		display: block;
	}

	.nav-toggle__label {
		display: inline-block;
	}

	.nav-toggle:checked ~ .nav-toggle__label .nav-toggle__open,
	.nav-toggle:not(:checked) ~ .nav-toggle__label .nav-toggle__close {
		display: none;
	}

	.section-title {
		margin-bottom: 18px;
		font-size: 24px;
	}

	.section-title--sm {
		font-size: 20px;
	}

	.section-lead {
		font-size: 15px;
		line-height: 1.6;
	}

	.page-head {
		padding-top: 40px;
	}

	.page-title {
		margin-bottom: 14px;
		font-size: 31px;
	}

	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding-block: 22px 26px;
	}

	.hero__title {
		margin-bottom: 14px;
		font-size: 31px;
		line-height: 1.1;
		letter-spacing: 0;
	}

	.hero__lead {
		max-width: none;
		margin-bottom: 18px;
		font-size: 15px;
		line-height: 1.6;
	}

	.hero__actions {
		display: grid;
		gap: 12px;
	}

	.hero__actions .button {
		padding: 16px;
	}

	.hero__secondary {
		padding: 16px;
		border: 1px solid var(--line-35);
		border-radius: 2px;
		text-align: center;
	}

	.hero .photo__caption--split {
		display: block;
		margin-top: 8px;
		font-size: 11px;
	}

	.photo__caption--split .photo__note {
		display: block;
	}

	.offer__inner {
		display: block;
		padding-block: 20px;
	}

	.offer__title {
		margin-bottom: 8px;
		font-size: 19px;
	}

	.offer__towns {
		font-size: 13px;
		line-height: 1.6;
	}

	.calc {
		padding-block: 26px;
		border-bottom: 1px solid var(--line-18);
	}

	.calc .section-title {
		margin-bottom: 10px;
	}

	.calc .section-lead {
		margin-bottom: 20px;
		font-size: 14px;
	}

	.calc__grid,
	.calc__form {
		gap: 18px;
	}

	.calc__label {
		margin-bottom: 9px;
		font-size: 13px;
	}

	.calc__choices {
		display: grid;
		gap: 9px;
	}

	.choice {
		font-size: 14px;
	}

	.calc__field .input {
		max-width: none;
		padding: 14px;
	}

	.calc__pair .input--short {
		width: 100%;
	}

	.calc__result {
		padding: 20px;
	}

	.calc__kicker {
		margin-bottom: 8px;
		font-size: 11px;
	}

	.calc__price {
		margin-bottom: 14px;
		font-size: 27px;
	}

	.calc__zone {
		margin-bottom: 10px;
		padding-top: 12px;
		font-size: 14px;
	}

	.calc__note {
		margin-bottom: 16px;
		font-size: 12px;
	}

	.calc__result .button {
		display: flex;
		padding: 15px;
		font-size: 14px;
		line-height: 1.3;
	}

	.pricelist {
		margin-top: 18px;
	}

	.pricelist__title {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.pricelist__list {
		font-size: 13px;
		line-height: 1.65;
	}

	.pricelist__list dt {
		padding-top: 10px;
	}

	.pricelist__list dd {
		padding-bottom: 10px;
	}

	/* Categories as rows: 88 px square, title and line beside it. */
	.categories {
		padding-top: 26px;
	}

	.categories__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.cat-card {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 14px 0;
		border-top: 1px solid var(--line-20);
	}

	.cat-card:last-child {
		border-bottom: 1px solid var(--line-20);
	}

	.cat-card:hover {
		transform: none;
	}

	.cat-card__frame {
		flex: none;
		width: 88px;
		border-color: var(--line-18);
	}

	.cat-card__title {
		margin: 0 0 4px;
		font-size: 17px;
	}

	.picks {
		padding-top: 26px;
	}

	.cards--3 {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.steps {
		padding-top: 26px;
	}

	.steps__list {
		gap: 20px;
	}

	.step {
		padding-left: 20px;
	}

	.step__num {
		position: static;
		display: block;
		transform: none;
		margin-bottom: 4px;
		padding: 0;
		font-size: 11px;
	}

	.step__title {
		margin-bottom: 4px;
		font-size: 15px;
	}

	.step__text {
		font-size: 14px;
		line-height: 1.6;
	}

	.materials {
		margin-top: 26px;
	}

	.materials__inner,
	.about__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding-block: 26px;
	}

	.spec {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		font-size: 14px;
		line-height: 1.6;
	}

	.spec dt {
		padding: 11px 0 0;
	}

	.spec dd {
		padding: 0 0 11px;
		border-top: 0;
	}

	.spec dt:last-of-type {
		border-bottom: 0;
	}

	.faq {
		max-width: none;
		padding-top: 26px;
	}

	.faq__q {
		font-size: 15px;
	}

	.faq__a {
		font-size: 14px;
	}

	.band {
		margin-top: 26px;
	}

	.band__inner {
		display: block;
		padding-block: 26px;
	}

	.band__text {
		max-width: none;
		margin-bottom: 16px;
		font-size: 19px;
	}

	.band .button {
		display: flex;
		padding: 16px;
	}

	.catalog {
		padding-block: 24px 40px;
	}

	.catalog__count {
		margin: 16px 0 20px;
	}

	/* Model page as the 390 mockup draws it. */
	.crumbs {
		gap: 6px;
		/* Block padding only: the shorthand would zero the .container gutters. */
		padding-block: 12px;
		border-bottom: 1px solid rgb(77 61 48 / 0.15);
		font-size: 12px;
	}

	.crumbs a {
		text-decoration: none;
	}

	.gallery {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding-top: 18px;
	}

	.gallery__main .photo__frame {
		aspect-ratio: 4 / 3;
	}

	.gallery__main .photo__caption--split {
		display: block;
		margin-top: 8px;
		font-size: 11px;
	}

	.gallery__side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.gallery__small .photo__frame {
		aspect-ratio: 1 / 1;
	}

	.gallery__small .photo__caption {
		margin-top: 6px;
		font-size: 11px;
		line-height: 1.4;
	}

	.model {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding-top: 22px;
	}

	.model__title {
		margin-bottom: 12px;
		font-size: 27px;
		line-height: 1.12;
	}

	.model .section-lead {
		margin-bottom: 0;
	}

	.model__body {
		display: contents;
	}

	.model .spec--model {
		order: 1;
	}

	.model__note {
		order: 2;
		margin-bottom: 0;
		padding-left: 14px;
		font-size: 13px;
	}

	.model__body .button {
		order: 3;
		display: flex;
		padding: 16px;
	}

	.related {
		padding-block: 26px;
	}

	.related .section-title {
		margin-bottom: 14px;
	}

	.related .cards {
		gap: 0;
	}

	.card--related {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 14px 0;
		border: 0;
		border-top: 1px solid var(--line-20);
		background: transparent;
	}

	.card--related:last-child {
		border-bottom: 1px solid var(--line-20);
	}

	.card--related:hover {
		transform: none;
	}

	.card--related .card__frame {
		flex: none;
		width: 96px;
	}

	.card--related .card__title {
		margin: 0 0 3px;
		font-size: 16px;
	}

	.card--related .card__material,
	.card--related .card__price,
	.card--related .card__link {
		display: none;
	}

	.card--related .card__short {
		display: block;
		font-size: 12px;
		line-height: 1.5;
		font-variant-numeric: tabular-nums;
	}

	.projects {
		padding-top: 22px;
	}

	.projects__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.about {
		margin-block: 26px 40px;
	}

	.about__text {
		font-size: 15px;
	}

	.enquiry {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		padding-block: 22px 40px;
	}

	.form__pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.field--psc {
		max-width: none;
	}

	.files {
		flex-wrap: wrap;
		gap: 10px;
	}

	.form__submit .button {
		display: flex;
		width: 100%;
		padding: 16px;
	}

	.aside {
		padding: 22px 18px;
	}

	.site-footer {
		font-size: 13px;
		line-height: 2;
	}

	/* 24 px touch targets: the phone and mail links sit on their own lines. */
	.site-footer__text a,
	.aside__list a {
		display: inline-block;
		min-height: 24px;
	}

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-block: 22px 10px;
	}

	.site-footer__brand {
		margin-bottom: 8px;
		font-size: 16px;
	}

	.site-footer__legal {
		margin-bottom: 22px;
		padding-top: 10px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.hero__title {
		font-size: 29px;
	}

	.chips {
		gap: 8px;
	}

	.chip {
		padding: 9px 12px;
		font-size: 13px;
	}
}
