/* PIT STOP. Mobile first (360px+), app-like: white bar on top, tab bar at the bottom, black block for the one thing that matters.
   Logo palette: black, red, white. Red is only for the main action; black for selection and the hero block. */

@font-face {
	font-family: "Montserrat";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/montserrat-cyrillic-700-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Montserrat";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/montserrat-cyrillic-800-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Montserrat";
	font-weight: 800;
	font-display: swap;
	src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Golos Text";
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/golos-text-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Golos Text";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/golos-text-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #eceef1;
	--surface: #ffffff;
	--ink: #000000;
	--muted: #575d66;
	--line: #d6dae0;
	--field: #aab1ba;
	--accent: #d0021b;
	--accent-press: #a50016;
	--on-accent: #ffffff;
	/* Icons, the current step, the current tab: the logo red. */
	--brand: #d0021b;
	/* Selected chips, current nav item, «Нове» badge. */
	--select: #000000;
	--on-select: #ffffff;
	--on-ink: #ffffff;
	--danger: #d0021b;
	--danger-text: #a50016;
	--green: #0b7a3a;
	--green-soft: #d7efe0;
	--hover: #f6f7f8;
	--track: #dfe2e6;
	--focus: #0a5bd8;

	--font-text: "Golos Text", system-ui, sans-serif;
	--font-head: "Montserrat", system-ui, sans-serif;

	--tabbar-h: 4rem;
	--side: 1rem;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.5 var(--font-text);
	/* room for the fixed tab bar on phones */
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
}

h1 {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

h2 {
	margin-top: 2rem;
	font-size: 1.25rem;
}

p {
	margin: 0 0 1em;
	max-width: 65ch;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.icon {
	width: 1.375rem;
	height: 1.375rem;
	flex: none;
}

/* ---------- App bar ---------- */

.appbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.appbar-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 72rem;
	min-height: 3.5rem;
	margin: 0 auto;
	padding: 0.25rem var(--side);
}

.logo {
	display: block;
	margin-right: auto;
}

.logo img {
	width: auto;
	height: 2.5rem;
}

.topnav {
	display: none;
}

.appbar-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.appbar-phone .icon {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--brand);
}

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	text-decoration: none;
}

.cart-count {
	position: absolute;
	top: 0.1rem;
	right: -0.1rem;
	min-width: 1.25rem;
	padding: 0 0.3rem;
	border-radius: 0.65rem;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-align: center;
}

/* ---------- Tab bar (phones) ---------- */

.tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.tabbar a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: var(--tabbar-h);
	color: var(--muted);
	font-size: 0.8125rem;
	text-decoration: none;
}

.tabbar a[aria-current="page"] {
	color: var(--ink);
	font-weight: 600;
}

.tabbar a[aria-current="page"] .icon {
	color: var(--brand);
}

/* ---------- Buttons ---------- */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.5rem 1.25rem;
	border: 2px solid var(--ink);
	border-radius: 0.625rem;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}

.btn-primary:hover {
	background: var(--accent-press);
	border-color: var(--accent-press);
}

.btn-outline:hover {
	background: var(--ink);
	color: var(--on-ink);
}

.btn-wide {
	width: 100%;
}

.btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.link-button {
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: var(--danger-text);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Home ---------- */

.season {
	margin: 0;
	max-width: none;
	padding: 0.6rem var(--side);
	background: var(--accent);
	color: var(--on-accent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.status::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--field);
}

.status-open {
	color: var(--green);
}

.status-open::before {
	background: var(--green);
	box-shadow: 0 0 0 0.25rem var(--green-soft);
}

/* «З чим допомогти?»: the client's problem as big tiles, two per row on phones. */
.help {
	padding: 1.25rem var(--side) 0.25rem;
}

.help h1 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.75rem, 8vw, 2.25rem);
}

.help-sub {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

.help-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.help-grid a {
	display: grid;
	align-content: start;
	gap: 0.15rem;
	height: 100%;
	min-height: 5.25rem;
	padding: 0.75rem;
	border-radius: 0.875rem;
	background: var(--surface);
	text-decoration: none;
}

.help-grid a:hover {
	box-shadow: inset 0 0 0 2px var(--ink);
}

.help-grid a:active {
	background: var(--hover);
}

.help-grid .icon {
	width: 1.5rem;
	height: 1.5rem;
	margin-bottom: 0.3rem;
	color: var(--brand);
}

.help-grid span {
	font-weight: 600;
	line-height: 1.25;
}

.help-grid small {
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

/* Status, the next free hour and the two ways to book. */
.next {
	order: 1;
	display: grid;
	gap: 1rem;
	margin: 0.75rem;
	padding: 1.25rem;
	border-radius: 1rem;
	background: var(--surface);
}

.next .status {
	margin-bottom: 0.5rem;
}

.next-time {
	margin: 0;
	color: var(--muted);
}

.next-time strong {
	display: block;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: clamp(1.625rem, 7.5vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
}

.next-actions {
	display: grid;
	gap: 0.625rem;
}

.next-actions .btn {
	width: 100%;
	min-height: 3.25rem;
}

.btn-telegram .icon {
	width: 1.375rem;
	height: 1.375rem;
	color: #229ed9;
}

.btn-telegram:hover .icon {
	color: inherit;
}

/* Call is the main way to reach the shop; route and bot sit under it, half width each. */
.reach {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0.75rem;
	border-radius: 1rem;
	background: var(--surface);
	overflow: hidden;
}

.reach a {
	display: grid;
	align-content: start;
	gap: 0.15rem;
	padding: 1rem;
	text-decoration: none;
}

.reach a:hover {
	background: var(--hover);
}

.reach .icon {
	color: var(--brand);
}

.reach-call {
	grid-column: 1 / -1;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 0.75rem;
	border-bottom: 1px solid var(--line);
}

.reach-call .icon {
	grid-row: span 2;
	width: 1.75rem;
	height: 1.75rem;
}

.reach-call span {
	color: var(--muted);
	font-size: 0.9375rem;
}

.reach-call strong {
	font-size: 1.375rem;
	font-variant-numeric: tabular-nums;
}

.reach-item + .reach-item {
	border-left: 1px solid var(--line);
}

.reach-item .icon {
	margin-bottom: 0.4rem;
}

.reach-item span {
	font-weight: 600;
}

.reach-item small {
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

/* Real photo or video of the shop; the block is not rendered until such a file exists. */
.media {
	margin: 0 0.75rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.75rem;
	background: var(--track);
}

.media video,
.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Services and prices: a plain list, the price list's highlights. */
.services {
	margin-top: 1.75rem;
}

.services-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 var(--side);
}

.services-head h2 {
	margin: 0;
}

.services-head a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 600;
}

.services-list {
	margin: 0;
	padding: 0 var(--side);
	list-style: none;
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.services-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 0;
}

.services-list li + li {
	border-top: 1px solid var(--line);
}

.services-name small {
	display: block;
	color: var(--muted);
	font-size: 0.8125rem;
}

.services-price {
	max-width: 55%;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.services-hint {
	margin: 0.6rem 0 0;
	padding: 0 var(--side);
	color: var(--muted);
	font-size: 0.875rem;
}

/* Estimate only: no card, sits on the page background. */
.calc {
	padding: 1.75rem var(--side) 1.5rem;
}

.calc h2 {
	margin: 0 0 0.25rem;
}

.calc-hint {
	color: var(--muted);
	font-size: 0.9375rem;
}

.calc fieldset {
	min-width: 0;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.calc legend {
	margin-bottom: 0.4rem;
	padding: 0;
	color: var(--muted);
	font-size: 0.875rem;
}

/* Car class as one segmented control. */
.calc-class .chips {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding: 0.25rem;
	border-radius: 0.75rem;
	background: var(--track);
}

.calc-class .chip span {
	width: 100%;
	min-width: 0;
	padding-inline: 0.25rem;
	background: transparent;
	font-size: 0.9375rem;
}

.calc-radius .chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
}

.calc-result {
	margin: 1.25rem 0 0;
	font-size: 1.0625rem;
}

.calc-result output {
	display: block;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.calc-note {
	margin: 0.25rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.free-air {
	margin: 0;
	padding: 1rem var(--side) 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

/* Instagram / TikTok: round icon links in the footer, icon + @name on the home page. */
.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.social li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
}

.social li > a:hover {
	background: var(--select);
	color: var(--on-select);
}

.social-block {
	order: 8;
	padding: 1.5rem var(--side) 0;
}

.social-block h2 {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
}

.social-wide {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.625rem;
	margin: 0;
}

.social-wide li > a {
	display: flex;
	justify-content: flex-start;
	gap: 0.6rem;
	width: auto;
	height: auto;
	min-height: 3.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.75rem;
	text-decoration: none;
}

.social-wide .icon {
	width: 1.5rem;
	height: 1.5rem;
}

.social-wide span {
	display: grid;
	min-width: 0;
	font-weight: 600;
	line-height: 1.25;
}

.social-wide small {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

.social-wide a:hover small {
	color: inherit;
}

/* Phones: the two desktop columns dissolve and the blocks interleave in reading order. */
.home {
	display: flex;
	flex-direction: column;
}

.home-col {
	display: contents;
}

.reach {
	order: 2;
}

.media {
	order: 3;
}

.services {
	order: 4;
}

.calc {
	order: 5;
}

.free-air {
	order: 7;
}

/* ---------- Inner pages ---------- */

.page {
	max-width: 72rem;
	margin: 0 auto;
	padding: 1.25rem var(--side) 2.5rem;
}

.lead {
	font-size: 1.125rem;
}

.hint {
	color: var(--muted);
	font-size: 0.875rem;
}

.note,
.message,
.empty {
	max-width: 65ch;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--ink);
	border-radius: 0 0.5rem 0.5rem 0;
	background: var(--surface);
}

.message {
	margin: 1rem 0;
	font-weight: 600;
}

.empty {
	margin-bottom: 1.5rem;
	padding: 1rem;
}

.empty p:last-child,
.note p:last-child {
	margin-bottom: 0;
}

/* Price tables */

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 48rem;
	border-radius: 0.75rem;
	background: var(--surface);
}

.price-table {
	width: 100%;
	min-width: 18rem;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: right;
}

.price-table tbody tr:last-child > * {
	border-bottom: 0;
}

.price-table thead th {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 400;
	vertical-align: bottom;
}

.price-table th[scope="row"],
.price-table thead th:first-child {
	text-align: left;
}

.price-table th[scope="row"] {
	font-weight: 600;
}

/* «Перевзування» on /prices: one table, wheels count as tabs (prices.js). Without JS all tables are listed with headings. */
/* Tabs sit right above the table they switch, not at the far edge of the page. */
.change {
	max-width: 48rem;
}

.change-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin: 2rem 0 0.75rem;
}

.change-head h2 {
	margin: 0;
}

.wheel-tabs {
	display: none;
}

.js .wheel-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
	max-width: 30rem;
	padding: 0.25rem;
	border-radius: 0.75rem;
	background: var(--track);
}

.wheel-tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 0.25rem;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.wheel-tabs a[aria-current] {
	background: var(--surface);
}

.wheels-title {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.0625rem;
}

.js .wheels-panel:not(.is-current),
.js .wheels-title {
	display: none;
}

.wheels-panel .hint {
	margin-top: 0.5rem;
}

/* Five columns must fit a 360px screen; the table scrolls on its own if a phone is narrower still. */
.change .price-table th,
.change .price-table td {
	padding: 0.6rem 0.45rem;
}

.change .price-table th:first-child,
.change .price-table td:last-child {
	padding-inline: 0.75rem;
}

.change .price-table thead th {
	font-size: 0.8125rem;
}

.extra-list {
	max-width: 48rem;
	margin: 0 0 1rem;
	padding: 0 0.75rem;
	list-style: none;
	border-radius: 0.75rem;
	background: var(--surface);
}

.extra-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 0.7rem 0;
}

.extra-list li + li {
	border-top: 1px solid var(--line);
}

.extra-name {
	font-weight: 600;
}

.extra-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-variant-numeric: tabular-nums;
}

/* ---------- Forms (booking, reservation, request, cart) ---------- */

/* Without JS the form is hidden and the fallback shown; with JS the other way round. */
.js-only {
	display: none;
}

.js .js-only {
	display: block;
}

.js .nojs {
	display: none;
}

.book {
	max-width: 40rem;
}

.step {
	min-width: 0;
	margin: 0 0 0.75rem;
	padding: 1rem;
	border: 0;
	border-radius: 1rem;
	background: var(--surface);
}

/* Float keeps the legend inside the padded panel instead of on its edge. */
.step legend {
	float: left;
	font-family: var(--font-head);
	width: 100%;
	margin-bottom: 0.25rem;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.step legend + * {
	clear: both;
}

.label {
	margin: 1.25rem 0 0.5rem;
	font-weight: 600;
}

.choice-row,
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.choice-radius {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(3.75rem, 1fr));
}

.chip input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.chip span,
.slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.85rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.calc .chip span {
	background: var(--surface);
}

.choice-radius .chip span {
	width: 100%;
}

.chip span:hover,
.slot:hover:not(:disabled) {
	box-shadow: inset 0 0 0 2px var(--ink);
}

.chip input:checked + span,
.slot[aria-pressed="true"] {
	background: var(--select);
	color: var(--on-select);
}

.chip input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.slot {
	min-width: 4.5rem;
}

.slot-day {
	flex-direction: column;
	min-width: 5.5rem;
	line-height: 1.2;
}

.slot-day small {
	font-size: 0.8125rem;
	font-weight: 400;
}

.slot:disabled {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--muted);
	cursor: not-allowed;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-height: 2.75rem;
	margin: 0.25rem 0;
	padding-top: 0.6rem;
	cursor: pointer;
}

.check input {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.1rem 0 0;
	accent-color: var(--ink);
}

.field {
	display: block;
	margin: 1rem 0 0.25rem;
}

.field span {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.field input,
.filter input,
select {
	min-height: 3rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--field);
	border-radius: 0.625rem;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: max(16px, 1rem); /* keeps iOS from zooming on focus */
}

.field input {
	width: 100%;
}

.field input:focus,
.filter input:focus,
select:focus {
	border-color: var(--ink);
}

.field input[aria-invalid="true"] {
	border: 2px solid var(--danger);
}

.field-error {
	margin: 0.3rem 0 0.5rem;
	color: var(--danger-text);
	font-size: 0.875rem;
	font-weight: 600;
}

.cf-turnstile {
	min-height: 65px;
	margin: 1.25rem 0;
}

.work {
	padding: 0.15rem 0 0.4rem;
}

/* Under the cleaning item when nothing else is chosen: a direction, not an error. */
.work-note {
	margin: 0 0 0.5rem 1.9rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--brand);
	border-radius: 0 0.5rem 0.5rem 0;
	background: var(--bg);
	font-size: 0.9375rem;
}

.work + .work {
	border-top: 1px solid var(--line);
}

.work .check strong {
	font-weight: 600;
}

.work-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0 0 0.4rem 1.9rem;
}

.work-options select {
	min-height: 2.75rem;
}

.work-options .check {
	width: 100%;
	margin: 0;
}

.quote {
	margin: 1rem 0 0;
}

#quote {
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: var(--bg);
}

#quote small {
	display: block;
	color: var(--muted);
	font-size: 0.875rem;
}

.quote-lines,
.done-lines {
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
}

.quote-lines li,
.done-lines li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--line);
}

.quote-total {
	margin: 0.5rem 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.done {
	max-width: 40rem;
	padding: 1.25rem 1rem;
	border-top: 4px solid var(--green);
	border-radius: 0 0 1rem 1rem;
	background: var(--surface);
}

.done h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

.done-when {
	font-size: 1.375rem;
	font-weight: 600;
}

/* Loading: a turning wheel, CSS only. */
.wheel-spin {
	display: inline-block;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0.5rem 0;
	border: 0.3rem dotted var(--ink);
	border-radius: 50%;
	box-shadow: inset 0 0 0 0.3rem var(--surface), inset 0 0 0 0.55rem var(--ink);
	animation: wheel 0.9s linear infinite;
}

@keyframes wheel {
	to {
		transform: rotate(360deg);
	}
}

/* Step mode (book.js): one fieldset at a time. Without it the form stays one long list. */
.wizard .step {
	display: none;
}

.wizard .step.is-current {
	display: block;
}

.wizard .step:focus {
	outline: none;
}

.step-in-fwd {
	animation: step-in-fwd 0.24s ease-out;
}

.step-in-back {
	animation: step-in-back 0.24s ease-out;
}

@keyframes step-in-fwd {
	from {
		opacity: 0;
		transform: translateX(1.25rem);
	}
}

@keyframes step-in-back {
	from {
		opacity: 0;
		transform: translateX(-1.25rem);
	}
}

.stepper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.375rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
	scroll-margin-top: 4.5rem;
}

.stepper button {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.25rem 0 0.4rem;
	border: 0;
	border-bottom: 3px solid var(--line);
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}

.stepper button:disabled {
	cursor: default;
}

.stepper-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--field);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.stepper .is-done button {
	border-bottom-color: var(--ink);
	color: var(--ink);
}

.stepper .is-done .stepper-n {
	background: var(--select);
	box-shadow: none;
	color: var(--on-select);
}

.stepper .is-current button {
	border-bottom-color: var(--brand);
	color: var(--ink);
	font-weight: 600;
}

.stepper .is-current .stepper-n {
	box-shadow: inset 0 0 0 2px var(--brand);
	color: var(--brand);
}

.step-nav {
	display: flex;
	gap: 0.625rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.step-nav .btn {
	flex: 1;
}

.step-nav .btn-outline {
	flex: 0 0 auto;
}

/* Radio groups have no box of their own: the red ring goes on the chips. */
.choice-row:has(input[aria-invalid="true"]) .chip span {
	box-shadow: inset 0 0 0 2px var(--danger);
}

.summary {
	margin: 0.25rem 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: var(--bg);
}

.summary dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 1rem;
	margin: 0 0 0.75rem;
}

.summary dt {
	color: var(--muted);
}

.summary dd {
	margin: 0;
	font-weight: 600;
}

/* ---------- Catalog ---------- */

.tabs {
	display: grid;
	max-width: 24rem;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 0;
	margin: 0.25rem 0 1rem;
	padding: 0.25rem;
	border-radius: 0.75rem;
	background: var(--track);
}

.tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.25rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
}

.tabs a[aria-current="page"] {
	background: var(--surface);
}

.filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	align-items: end;
	margin: 0 0 1rem;
	padding: 1rem;
	border-radius: 1rem;
	background: var(--surface);
}

.filters .btn {
	grid-column: 1 / -1;
}

.filter span {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.filter select,
.filter input {
	width: 100%;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.card a,
.card-static > div {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 0.875rem;
	background: var(--surface);
	text-decoration: none;
}

.card a:hover {
	box-shadow: inset 0 0 0 2px var(--ink);
}

.card img,
.card-nophoto {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--track);
}

.card-nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 0.875rem;
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0.9rem 0.9rem;
}

.card-body small {
	color: var(--muted);
}

.card-price,
.item-price {
	margin-top: auto;
	padding-top: 0.4rem;
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.card-price small,
.item-price small {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.item-price {
	font-size: 1.75rem;
}

/* Condition: new is black, used is outlined. Red stays for actions. */
.badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0.25rem;
	padding: 0.1rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.badge-new {
	background: var(--select);
	color: var(--on-select);
}

.badge-used {
	box-shadow: inset 0 0 0 1px var(--field);
	color: var(--ink);
}

.pager {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0;
}

.pager a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 600;
}

.back {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-bottom: 0.25rem;
	color: var(--muted);
}

.gallery {
	display: flex;
	gap: 0.5rem;
	margin: 0 calc(-1 * var(--side)) 1rem;
	padding: 0 var(--side);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.gallery img {
	flex: 0 0 88%;
	max-width: 36rem;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.75rem;
	background: var(--track);
	scroll-snap-align: start;
}

.specs {
	max-width: 36rem;
	margin: 0 0 1rem;
	padding: 0 0.9rem;
	border-radius: 0.75rem;
	background: var(--surface);
}

.specs > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
}

.specs > div + div {
	border-top: 1px solid var(--line);
}

.specs dt {
	color: var(--muted);
}

.specs dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.buy {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}

.buy:empty {
	display: none;
}

.item-ask {
	color: var(--muted);
}

.cart-lines {
	margin: 0 0 1rem;
	padding: 0 0.9rem;
	list-style: none;
	border-radius: 0.75rem;
	background: var(--surface);
}

.cart-lines li {
	padding: 0.75rem 0;
}

.cart-lines li + li {
	border-top: 1px solid var(--line);
}

.cart-lines a {
	font-weight: 600;
}

.reserve-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 40rem;
	margin-bottom: 0.75rem;
	padding: 0.75rem;
	border-radius: 1rem;
	background: var(--surface);
}

.reserve-item img {
	width: 7rem;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.5rem;
}

.reserve-item .item-price {
	margin: 0;
	font-size: 1.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
	padding: 2rem 0 1.25rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

.home + .site-footer {
	margin-top: 1rem;
	border-top: 1px solid var(--line);
}

/* Phones: one column per section, stacked. */
.footer-cols {
	display: grid;
	gap: 1.5rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 var(--side);
}

.site-footer h2 {
	margin: 0 0 0.25rem;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 0.9375rem;
	font-weight: 600;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
}

.site-footer li small {
	display: block;
	margin: -0.35rem 0 0.35rem;
	font-size: 0.8125rem;
}

.footer-social .icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--ink);
}

.footer-note {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.5rem;
	/* The rule lines up with the columns above, not the full container. */
	margin: 1.5rem max(var(--side), calc((100% - 72rem) / 2 + var(--side))) 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
}

.footer-bottom a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

/* ---------- Breadcrumbs, contacts, SEO text ---------- */

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 0.5rem;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.875rem;
}

.crumbs li + li::before {
	content: "/";
	margin: 0 0.5rem;
	color: var(--field);
}

.crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

.crumbs [aria-current] {
	color: var(--ink);
}

/* Phones: the current page is the h1 right below, no need to repeat it. */
@media (max-width: 47.99rem) {
	.crumbs li:last-child {
		display: none;
	}
}

.contacts {
	display: grid;
	gap: 0.75rem;
}

.contact-card {
	padding: 1.25rem;
	border-radius: 1rem;
	background: var(--surface);
}

.contact-card h2 {
	margin: 0 0 0.5rem;
	color: var(--muted);
	font-family: var(--font-text);
	font-size: 0.9375rem;
	font-weight: 600;
}

.contact-big {
	margin: 0 0 0.25rem;
	font-size: 1.375rem;
	font-weight: 600;
}

.contact-big a {
	text-decoration: none;
}

.contact-card .btn {
	margin-top: 0.5rem;
}

.contact-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	font-weight: 600;
}

.contact-card .social-wide {
	margin-bottom: 0.25rem;
}

.contact-card .social-wide li > a {
	background: var(--bg);
}

.reviews-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

.seo-text {
	max-width: 65ch;
	margin-top: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9375rem;
}

.seo-text h2 {
	margin: 0 0 0.5rem;
	color: var(--ink);
	font-size: 1.0625rem;
}

/* Header messenger icons and «Наверх»: desktop only (see the wide-screen blocks). */
.appbar-messengers,
.to-top {
	display: none;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
	.filters {
		grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
	}

	.filters .btn {
		grid-column: auto;
	}
}

@media (min-width: 60rem) {
	:root {
		--side: 1.5rem;
	}

	body {
		padding-bottom: 0;
	}

	.tabbar {
		display: none;
	}

	.appbar-row {
		min-height: 4.25rem;
		gap: 2rem;
	}

	.logo {
		margin-right: 0;
	}

	.logo img {
		height: 3rem;
	}

	.topnav {
		display: flex;
		gap: 0.25rem;
		margin-right: auto;
	}

	.topnav a {
		display: flex;
		align-items: center;
		min-height: 2.75rem;
		padding: 0 0.85rem;
		border-radius: 0.5rem;
		font-weight: 600;
		text-decoration: none;
	}

	.topnav a:hover {
		background: var(--bg);
	}

	.topnav a[aria-current="page"] {
		background: var(--select);
		color: var(--on-select);
	}

	h1 {
		font-size: 2.25rem;
	}

	/* Home: booking and prices on the left, how to reach us and the estimate on the right; columns flow independently. */
	.home {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: start;
		gap: 1.25rem 1.5rem;
		max-width: 72rem;
		margin: 0 auto;
		padding: 1.5rem var(--side) 0;
	}

	.home-col {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.season {
		grid-column: 1 / -1;
		border-radius: 0.625rem;
	}

	.help {
		padding: 0;
	}

	.help-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.75rem;
	}

	.next {
		margin: 0;
		padding: 1.75rem 2rem;
	}

	.next-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.next-actions .btn {
		width: auto;
		padding: 0 1.75rem;
	}

	.media {
		margin: 0;
		border-radius: 1rem;
	}

	.reach {
		margin: 0;
	}

	.calc {
		padding: 0.25rem 0 0;
	}

	.services {
		margin: 0;
	}

	.services-head,
	.services-hint {
		padding: 0;
	}

	.services-list {
		padding: 0 1.25rem;
		border: 0;
		border-radius: 1rem;
	}

	.free-air {
		padding: 0;
	}

	.page {
		padding-top: 2rem;
	}

	.footer-cols {
		grid-template-columns: 1fr 1fr 1.6fr 1.2fr;
		gap: 2rem;
	}

	.contacts {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.appbar-messengers {
		display: flex;
		gap: 0.25rem;
		margin-left: -1rem;
	}

	.appbar-messengers a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 50%;
		color: var(--muted);
	}

	.appbar-messengers a:hover {
		background: var(--bg);
		color: var(--ink);
	}

	.gallery {
		margin: 0 0 1rem;
		padding: 0;
	}

	.gallery img {
		flex-basis: 30rem;
	}
}

/* Large screens (1024px+): wider container, more air, bigger targets. Phones never reach this block. */
@media (min-width: 64rem) {
	:root {
		--side: 2rem;
	}

	.appbar-row,
	.home,
	.page,
	.footer-cols {
		max-width: 80rem;
	}

	.footer-bottom {
		margin-inline: max(var(--side), calc((100% - 80rem) / 2 + var(--side)));
	}

	.to-top {
		position: fixed;
		right: 1.5rem;
		bottom: 1.5rem;
		z-index: 15;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3.25rem;
		height: 3.25rem;
		border: 1px solid var(--line);
		border-radius: 50%;
		background: var(--surface);
		color: var(--ink);
		cursor: pointer;
	}

	.to-top:hover {
		background: var(--select);
		color: var(--on-select);
	}

	.appbar-row {
		min-height: 4.75rem;
	}

	.logo img {
		height: 3.25rem;
	}

	.topnav a {
		min-height: 3rem;
		padding: 0 1.1rem;
		font-size: 1.0625rem;
	}

	.appbar-phone {
		font-size: 1.125rem;
	}

	/* Home: three tracks — the booking block and prices take two, contacts and the estimate one. */
	.home {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 2rem 2.5rem;
		padding-top: 2.5rem;
	}

	.home-col {
		gap: 2rem;
	}

	.help h1 {
		font-size: 2.5rem;
	}

	.help-grid a {
		min-height: 6.75rem;
		padding: 1rem 1.125rem;
	}

	.help-grid .icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	.help-grid span {
		font-size: 1.0625rem;
	}

	.next-time {
		font-size: 1.0625rem;
	}

	.next-time strong {
		font-size: 2.5rem;
	}

	.next-actions .btn {
		min-height: 3.5rem;
		font-size: 1.0625rem;
	}

	.reach a {
		padding: 1.5rem;
	}

	.reach .icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	.reach-call .icon {
		width: 2.25rem;
		height: 2.25rem;
	}

	.reach-call strong {
		font-size: 1.625rem;
	}

	.reach-item span {
		font-size: 1.125rem;
	}

	.reach-item small {
		font-size: 0.875rem;
	}

	/* Prices in two columns, read row by row. */
	.services-head h2 {
		font-size: 1.5rem;
	}

	.services-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2.5rem;
		padding: 0.5rem 1.75rem;
	}

	.services-list li {
		padding: 1rem 0;
	}

	.services-list li + li {
		border-top: 0;
	}

	.services-list li:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.calc h2 {
		font-size: 1.375rem;
	}

	.calc-result output {
		font-size: 2.75rem;
	}

	.social-block {
		padding: 0;
	}

	.social-wide li > a {
		min-height: 4rem;
		padding: 0.75rem 1rem;
	}

	.social-wide .icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	/* Inner pages */
	.page {
		padding-top: 2.75rem;
		padding-bottom: 3.5rem;
	}

	/* Forms read best in one comfortable column, centred under the header. */
	.page:has(.book) {
		max-width: 52rem;
	}

	.step {
		padding: 1.5rem 1.75rem;
	}

	.price-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 3rem;
		align-items: start;
	}

	.price-grid .table-scroll,
	.price-grid .extra-list {
		max-width: none;
	}

	.cards {
		grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
		gap: 1.25rem;
	}

	.site-footer {
		padding: 3rem 0 2.5rem;
		font-size: 0.9375rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
