/* Поиск машины по всем странам — строка в меню (23.09.2026), см. inc/site-search.php */

.cfs-nav { flex: 0 1 300px; min-width: 170px; list-style: none; }
.cfs { position: relative; font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-transform: none; letter-spacing: 0; }
.cfs__field { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 10px; background: #fff; border: 1.5px solid #d3dae5; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.cfs__field:focus-within { border-color: #2c5286; box-shadow: 0 0 0 3px rgba(44, 82, 134, .15); }
.cfs-ico { flex: none; color: #7a8698; }
.cfs__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0; font: 500 13.5px/1 Manrope, system-ui, sans-serif; color: #1b2330; }
.cfs__input::placeholder { color: #98a2b3; }
.cfs__input::-webkit-search-cancel-button { cursor: pointer; }

.cfs__drop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1050; width: min(660px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 180px)); overflow-y: auto; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; box-shadow: 0 22px 50px -18px rgba(20, 35, 60, .38); color: #1b2330; text-align: left; }
.cfs__drop[hidden] { display: none !important; }
.cfs__head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 12px; font-weight: 500; color: #667085; border-bottom: 1px solid #e3e7ee; }
.cfs__row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; padding: 12px 16px; border-bottom: 1px solid #e3e7ee; }
.cfs__name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.cfs__name small { display: block; margin-top: 3px; font-weight: 500; font-size: 12px; color: #667085; }
.cfs__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cfs__chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #e3e7ee; border-radius: 8px; background: #f3f6fa; color: #1b2330; font-size: 12.5px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfs__chip b { font-weight: 700; }
.cfs__chip span { color: #667085; }
a.cfs__chip:hover, a.cfs__chip:focus-visible { border-color: #2c5286; background: #fff; color: #1b2330; outline: 0; }
.cfs__chip.is-best { background: #fff7e8; border-color: #f3c46e; }
.cfs__chip.is-off { background: transparent; border-style: dashed; color: #9aa3b1; white-space: normal; }
.cfs__more { padding: 9px 16px; font-size: 12.5px; color: #667085; border-bottom: 1px solid #e3e7ee; }
.cfs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 16px; background: #f3f6fa; font-size: 13px; color: #667085; }
.cfs__foot a { color: #2c5286; font-weight: 700; text-decoration: none; }
.cfs__foot a:hover { text-decoration: underline; }
.cfs__none { padding: 16px 18px 18px; }
.cfs__none b { display: block; margin-bottom: 4px; font-size: 15px; }
.cfs__none p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: #667085; }
.cfs__cta { display: inline-block; padding: 9px 14px; border-radius: 8px; background: #f2a31b; color: #3b2600; font-weight: 700; font-size: 13px; text-decoration: none; }
.cfs__cta:hover { color: #3b2600; filter: brightness(1.05); }

/* В меню ссылки подхватывают «.nav ul li a» (заглавные, разрядка, block, подчёркивание ::after) — гасим */
.nav .cfs a { position: relative; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.nav .cfs a::before, .nav .cfs a::after { content: none; display: none; }
.nav .cfs a.cfs__chip { display: inline-flex; padding: 6px 9px; font-size: 12.5px; font-weight: 500; color: #1b2330; }
.nav .cfs .cfs__foot a { display: inline; padding: 0; font-size: 13px; font-weight: 700; color: #2c5286; }
.nav .cfs a.cfs__cta { display: inline-block; padding: 9px 14px; font-size: 13px; font-weight: 700; color: #3b2600; }

/* флаги стран — CSS, без картинок */
.cfs-fl { position: relative; display: inline-block; flex: none; width: 20px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.cfs-fl--jp { background: radial-gradient(circle at 50% 50%, #bc002d 0 3.4px, #fff 3.9px); }
.cfs-fl--kr { background: #fff; }
.cfs-fl--kr::before { content: ""; position: absolute; left: 6px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(180deg, #cd2e3a 50%, #0047a0 50%); }
.cfs-fl--cn { background: #de2910; }
.cfs-fl--cn::before { content: "★"; position: absolute; left: 2px; top: -3px; font-size: 9px; line-height: 1.6; color: #ffde00; }
.cfs-fl--eu { background: #1f4aa8; }
.cfs-fl--eu::before { content: ""; position: absolute; left: 5px; top: 2px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px dotted #ffd200; box-sizing: border-box; }
.cfs-fl--us { background: repeating-linear-gradient(180deg, #b22234 0 1.08px, #fff 1.08px 2.16px); }
.cfs-fl--us::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 7.5px; background: #3c3b6e; }
.cfs-fl--ae { background: linear-gradient(180deg, #00732f 33.3%, #fff 33.3% 66.6%, #111 66.6%); }
.cfs-fl--ae::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: #ef3340; }

/* узкий десктоп: поле короче, подсказка короче */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.cfs-nav { flex-basis: 170px; min-width: 150px; margin-left: 12px; }
	.nav .nav__menu > ul > li > a { font-size: 13px; letter-spacing: .6px; }
}

/* ——— телефон: лупа в шапке и окно поиска ——— */
.cfs-mbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; margin-right: 8px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f7; color: #1f3d66; cursor: pointer; }
.cfs-mbtn .cfs-ico { color: currentColor; }
.cfs-mbtn:focus-visible { outline: 2px solid #2c6fd6; outline-offset: 2px; }
@media (min-width: 992px) { .cfs-mbtn { display: none !important; } }
@media (max-width: 991.98px) {
	.header__wrapper .logo { min-width: 0; flex-shrink: 1; }
	.header__wrapper .header__right-group { margin-left: 0 !important; }
}
@media (max-width: 389.98px) {
	.header__wrapper .cfk-hdr-usp { display: none; }
}

.cfs-sheet { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: #fff; padding-top: env(safe-area-inset-top, 0px); font-family: Manrope, system-ui, sans-serif; }
.cfs-sheet.is-open { display: flex; }
.cfs-sheet__top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e3e7ee; }
.cfs-sheet__top .cfs__field { flex: 1; height: 46px; }
.cfs-sheet__top .cfs__input { font-size: 16px; }   /* 16px — иначе iOS увеличивает страницу */
.cfs-sheet__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f3f7; color: #667085; font-size: 24px; line-height: 1; cursor: pointer; }
.cfs-sheet__body.cfs__drop { position: static; width: auto; max-height: none; flex: 1; overflow-y: auto; border: 0; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.cfs-sheet__hint { margin: 0; padding: 14px 16px; font-size: 13px; line-height: 1.45; color: #667085; }
.cfs-sheet__body:not([hidden]) + .cfs-sheet__hint { display: none; }
.cfs-sheet .cfs__row { grid-template-columns: 1fr; gap: 8px; }
.cfs-sheet .cfs__chip { font-size: 13px; padding: 8px 10px; }
html.cfs-locked, html.cfs-locked body { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
	.cfs__drop:not([hidden]) { animation: cfs-in .16s ease-out; }
	@keyframes cfs-in { from { opacity: .4; transform: translateY(4px); } }
}
