/* Header windows (2026-12-05, design canvas "CARZRENT — шапка, окна и меню"): the language and currency windows
   (header.php, includes/currency.php cr_render_currency_switcher()) and the menu (includes/menu-window.php).
   Computer: a grey window in the middle of the screen over a light, blurred backdrop.
   Phone (up to 767.98px): a sheet from the bottom.
   Opening and closing are the old ones: custom.js gives .item.language / .item.currency the class .active,
   crOpenMenu() / crCloseMenu() (footer.php) give #cr-menu the class .active. The display rules are critical CSS
   in base.css (.crw hidden until its item is active), so this sheet can load late.
   Every rule starts with :is(#header, #cr-menu) .crw, specificity (1,1,0) + classes: the old window rules of the
   header (#header .language li a, #header .language .close, flag :before images...) must never win. */

:is(#header, #cr-menu) .crw {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(17, 18, 20, .5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #111214;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	white-space: normal;
	cursor: default;
}
:is(#header, #cr-menu) .crw *,
:is(#header, #cr-menu) .crw *::before,
:is(#header, #cr-menu) .crw *::after { box-sizing: border-box; }
:is(#header, #cr-menu) .crw .crw__opt::before,
:is(#header, #cr-menu) .crw .crw__opt::after,
:is(#header, #cr-menu) .crw .crw__opt span::before,
:is(#header, #cr-menu) .crw .crw__opt span::after,
:is(#header, #cr-menu) .crw li::before,
:is(#header, #cr-menu) .crw li::after { content: none !important; display: none !important; }

:is(#header, #cr-menu) .crw .crw__panel {
	position: relative;
	width: 760px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 25px;
	background: #F2F2F3;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
	animation: crw-in .2s ease-out;
}
@keyframes crw-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* The title and the round close button, a white card */
:is(#header, #cr-menu) .crw .crw__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px 12px 12px 18px;
	border-radius: 20px;
	background: #fff;
}
:is(#header, #cr-menu) .crw .crw__title {
	margin: 0;
	padding: 0;
	color: #111214;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
}
:is(#header, #cr-menu) .crw .crw__head .crw__close {
	position: static;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid #E3E3E6;
	border-radius: 50%;
	background: #fff;
	color: #111214;
	box-shadow: 0 2px 12px rgba(17, 18, 20, .05);
	text-indent: 0;
	cursor: pointer;
	transform: none;
	transition: background-color .15s;
}
:is(#header, #cr-menu) .crw .crw__head .crw__close:hover { background: #FDECEE; transform: none; }
:is(#header, #cr-menu) .crw .crw__head .crw__close svg { display: block; }

/* "You pay in euros": a pink note above the currencies */
:is(#header, #cr-menu) .crw .crw__note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 10px 0 0;
	padding: 14px 18px;
	border-radius: 20px;
	background: #FDECEE;
	color: #111214;
	font-size: 14px;
	line-height: 1.45;
}
:is(#header, #cr-menu) .crw .crw__note svg { flex: none; margin-top: 1px; }

/* Languages and currencies: grey tiles with a round badge (language code or currency sign) */
:is(#header, #cr-menu) .crw .crw__card {
	margin: 10px 0 0;
	padding: 16px;
	border-radius: 20px;
	background: #fff;
}
:is(#header, #cr-menu) .crw .crw__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: auto;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
	border-radius: 0;
	background: none;
}
/* A language is li > a.crw__opt; a currency is li.crw__opt itself (custom.js and the switcher script look for
   li[data-currency]), so this rule sets nothing that .crw__opt sets too */
:is(#header, #cr-menu) .crw .crw__grid > li {
	display: flex;
	width: auto;
	margin: 0;
	list-style: none;
	flex-grow: 1;
}
:is(#header, #cr-menu) .crw .crw__opt {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 58px;
	height: auto;
	margin: 0;
	padding: 8px 12px 8px 9px;
	border: 0;
	border-radius: 15px;
	background: #F4F4F5;
	box-shadow: none;
	color: #111214;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	opacity: 1;
	cursor: pointer;
	transition: background-color .15s;
}
:is(#header, #cr-menu) .crw .crw__opt:hover { background: #FDECEE; color: #111214; }
:is(#header, #cr-menu) .crw .crw__opt:focus-visible { outline: 3px solid #D6111E; outline-offset: 2px; }
:is(#header, #cr-menu) .crw .crw__opt[aria-current] { background: #FDECEE; box-shadow: inset 0 0 0 2px #D6111E; }
:is(#header, #cr-menu) .crw .crw__opt .crw__badge {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(17, 18, 20, .07);
	color: #111214;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
}
:is(#header, #cr-menu) .crw .crw__opt .crw__badge--sign { font-size: 15px; letter-spacing: 0; }
:is(#header, #cr-menu) .crw .crw__opt .crw__badge--long { font-size: 13px; }
:is(#header, #cr-menu) .crw .crw__opt[aria-current] .crw__badge { background: #D6111E; color: #fff; box-shadow: none; }
:is(#header, #cr-menu) .crw .crw__opt .crw__name {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: none;
	color: #111214;
	font-size: 15px;
	font-weight: 500;
}
:is(#header, #cr-menu) .crw .crw__opt .crw__name b { color: #111214; font-size: 15px; font-weight: 700; }
:is(#header, #cr-menu) .crw .crw__opt .crw__name small { color: #5F6168; font-size: 13px; font-weight: 400; }
:is(#header, #cr-menu) .crw .crw__opt .crw__tick { flex: none; display: block; margin-left: auto; }

/* ---- Menu: islands with photos, information pages, support, legal pages and social links ---- */
:is(#header, #cr-menu) .crw .crm { width: 880px; }
:is(#header, #cr-menu) .crw .crm__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 10px;
	margin: 10px 0 0;
}
:is(#header, #cr-menu) .crw .crm__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
:is(#header, #cr-menu) .crw .crm__card {
	margin: 0;
	padding: 16px 18px 18px;
	border-radius: 20px;
	background: #fff;
}
:is(#header, #cr-menu) .crw .crm__label {
	margin: 0 0 14px;
	padding: 0;
	color: #5F6168;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
}

:is(#header, #cr-menu) .crw .crm-isl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
:is(#header, #cr-menu) .crw .crm-isl__tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 15px;
	background: #111214;
	color: #fff;
	text-decoration: none;
}
:is(#header, #cr-menu) .crw .crm-isl__tile--main { grid-column: 1 / -1; aspect-ratio: 2.1 / 1; }
:is(#header, #cr-menu) .crw .crm-isl__tile[aria-current] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #D6111E; }
:is(#header, #cr-menu) .crw .crm-isl__tile img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .35s ease;
}
:is(#header, #cr-menu) .crw .crm-isl__tile--main img { object-position: 50% 0; }
:is(#header, #cr-menu) .crw .crm-isl__tile:hover img { transform: scale(1.06); }
:is(#header, #cr-menu) .crw .crm-isl__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17, 18, 20, .82), rgba(17, 18, 20, 0) 62%);
}
:is(#header, #cr-menu) .crw .crm-isl__body {
	position: absolute;
	left: 12px;
	right: 8px;
	bottom: 11px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
:is(#header, #cr-menu) .crw .crm-isl__body b { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
:is(#header, #cr-menu) .crw .crm-isl__tile--main .crm-isl__body { left: 16px; bottom: 13px; }
:is(#header, #cr-menu) .crw .crm-isl__tile--main .crm-isl__body b { font-size: 19px; }
:is(#header, #cr-menu) .crw .crm-isl__body small { color: #fff; font-size: 12.5px; opacity: .88; }
:is(#header, #cr-menu) .crw .crm-isl__arrow {
	position: absolute;
	right: 8px;
	top: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

:is(#header, #cr-menu) .crw .crm-rows { display: flex; flex-direction: column; }
:is(#header, #cr-menu) .crw .crm-rows .crm__label { margin-bottom: 8px; }
:is(#header, #cr-menu) .crw .crm-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 7px 0;
	color: #111214;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}
:is(#header, #cr-menu) .crw .crm-row__ico {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #FDECEE;
	color: #D6111E;
	transition: background-color .15s, color .15s;
}
:is(#header, #cr-menu) .crw .crm-row__chev { flex: none; margin-left: auto; color: #8A8C93; transition: transform .15s, color .15s; }
:is(#header, #cr-menu) .crw .crm-row:hover { color: #C10F1B; }
:is(#header, #cr-menu) .crw .crm-row:hover .crm-row__ico { background: #D6111E; color: #fff; }
:is(#header, #cr-menu) .crw .crm-row:hover .crm-row__chev { color: #D6111E; transform: translateX(3px); }

:is(#header, #cr-menu) .crw .crm__card--contacts { flex: 1 1 auto; display: flex; flex-direction: column; }
:is(#header, #cr-menu) .crw .crm-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:is(#header, #cr-menu) .crw .crm-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 6px 10px;
	border-radius: 15px;
	background: #F4F4F5;
	color: #111214;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-color .15s;
}
:is(#header, #cr-menu) .crw .crm-contact--whatsapp { background: #E8F5EC; }
:is(#header, #cr-menu) .crw .crm-contact:hover { background: #FDECEE; color: #111214; }
:is(#header, #cr-menu) .crw .crm__note {
	margin: auto 0 0;
	padding-top: 12px;
	color: #5F6168;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}
:is(#header, #cr-menu) .crw .crm__note a { color: #5F6168; text-decoration: none; }
:is(#header, #cr-menu) .crw .crm__note a:hover { color: #111214; }

:is(#header, #cr-menu) .crw .crm__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	padding: 12px 8px 4px 10px;
}
:is(#header, #cr-menu) .crw .crm__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
:is(#header, #cr-menu) .crw .crm__legal a { color: #5F6168; text-decoration: none; }
:is(#header, #cr-menu) .crw .crm__legal a:hover { color: #111214; }
:is(#header, #cr-menu) .crw .crm__social { display: flex; flex-wrap: wrap; gap: 6px; }
:is(#header, #cr-menu) .crw .crm__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #111214;
	transition: background-color .15s;
}
:is(#header, #cr-menu) .crw .crm__social a:hover { background: #FDECEE; color: #D6111E; }

/* Tablet: the menu's islands above the rest */
@media (max-width: 900px) {
	:is(#header, #cr-menu) .crw .crm__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone: a sheet from the bottom, one column; the title and the close button stay on top while it scrolls */
@media (max-width: 767.98px) {
	:is(#header, #cr-menu) .crw { align-items: flex-end; padding: 0; overflow: hidden; }
	:is(#header, #cr-menu) .crw .crw__panel,
	:is(#header, #cr-menu) .crw .crm {
		width: 100%;
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		margin: 0;
		padding: 0 10px calc(14px + env(safe-area-inset-bottom));
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
		animation: crw-up .28s cubic-bezier(.2, .8, .2, 1);
	}
	:is(#header, #cr-menu) .crw .crw__head {
		position: sticky;
		top: 0;
		z-index: 2;
		margin-top: 0;
		padding: 10px 10px 10px 16px;
		box-shadow: 0 -10px 0 #F2F2F3, 0 6px 14px rgba(17, 18, 20, .06);
	}
	:is(#header, #cr-menu) .crw .crw__panel::before { content: ""; display: block; height: 10px; }
	:is(#header, #cr-menu) .crw .crw__title { font-size: 20px; }
	:is(#header, #cr-menu) .crw .crw__note { padding: 12px 14px; font-size: 13px; gap: 10px; }
	:is(#header, #cr-menu) .crw .crw__card { padding: 12px; }
	:is(#header, #cr-menu) .crw .crw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	:is(#header, #cr-menu) .crw .crw__opt { min-height: 52px; gap: 10px; padding: 7px 10px 7px 7px; font-size: 14px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__badge { width: 36px; height: 36px; font-size: 12px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__badge--sign { font-size: 13px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__badge--long { font-size: 11px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__name { font-size: 14px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__name b { font-size: 14px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__name small { font-size: 12px; }
	:is(#header, #cr-menu) .crw .crw__opt .crw__tick { display: none; }

	:is(#header, #cr-menu) .crw .crm__card { padding: 14px 14px 16px; }
	:is(#header, #cr-menu) .crw .crm-isl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	:is(#header, #cr-menu) .crw .crm-isl__tile { aspect-ratio: 16 / 11; }
	:is(#header, #cr-menu) .crw .crm-isl__tile--main { aspect-ratio: 1.9 / 1; }
	:is(#header, #cr-menu) .crw .crm-isl__tile--main .crm-isl__body { left: 12px; bottom: 10px; }
	:is(#header, #cr-menu) .crw .crm-isl__tile--main .crm-isl__body b { font-size: 17px; }
	:is(#header, #cr-menu) .crw .crm-isl__body b { font-size: clamp(14px, 4.1vw, 15px); }
	:is(#header, #cr-menu) .crw .crm-isl__arrow { display: none; }
	:is(#header, #cr-menu) .crw .crm-row { padding: 6px 0; }
	:is(#header, #cr-menu) .crw .crm__foot { flex-direction: column-reverse; justify-content: center; padding: 14px 10px 2px; }
	:is(#header, #cr-menu) .crw .crm__legal { justify-content: center; }
	:is(#header, #cr-menu) .crw .crm__social { justify-content: center; gap: 8px; }
	:is(#header, #cr-menu) .crw .crm__social a { width: 44px; height: 44px; }
}
@keyframes crw-up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
	:is(#header, #cr-menu) .crw .crw__panel,
	:is(#header, #cr-menu) .crw .crm { animation: none; }
	:is(#header, #cr-menu) .crw .crm-isl__tile img { transition: none; }
}
