/* KARLUSON · волна 10 (01.12.2026): полоса города над шапкой, модалка выбора
   города, геометка у полей адреса. Палитра сайта: графит #14161b / #1d2027,
   жёлтый акцент #ffc42e, текст #fff. Никакого синего. */

/* 1) Плавающий блок города из тела страницы больше не нужен — его заменяет полоса */
.kc-citysel { display: none !important; }

/* 2) Полоса над шапкой */
.kc-topbar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 18px;
  background: #14161b;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 500 13px/1.2 Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.kc-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #f4f6f8;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.kc-topbar__btn:hover { background: rgba(255, 196, 46, .16); border-color: rgba(255, 196, 46, .55); color: #fff; }
.kc-topbar__btn:focus-visible { outline: 2px solid #ffc42e; outline-offset: 2px; }
.kc-topbar__pin { display: inline-flex; color: #ffc42e; }
.kc-topbar__chev { opacity: .7; }
.kc-topbar__txt { letter-spacing: .01em; }
.kc-topbar.is-empty .kc-topbar__txt { color: #ffc42e; font-weight: 600; }

/* 3) Модалка */
html.kc-modal-open { overflow: hidden; }
.kc-citymodal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 10, 14, .62);
  backdrop-filter: blur(3px);
}
.kc-citymodal.is-open { display: flex; }
.kc-citymodal__dlg {
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  background: #1d2027;
  color: #eef1f5;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.kc-citymodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}
.kc-citymodal__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.kc-citymodal__x {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: transparent;
  color: #eef1f5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.kc-citymodal__x:hover { background: rgba(255, 255, 255, .1); }
.kc-citymodal__tools { display: flex; gap: 8px; padding: 0 18px 10px; }
.kc-citymodal__q {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #14161b;
  color: #fff;
  font: inherit;
}
.kc-citymodal__q:focus { outline: 2px solid #ffc42e; outline-offset: 1px; border-color: #ffc42e; }
.kc-citymodal__geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 196, 46, .55);
  background: rgba(255, 196, 46, .14);
  color: #ffd977;
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.kc-citymodal__geo:hover { background: rgba(255, 196, 46, .24); }
.kc-citymodal__hint { margin: 0 18px 8px; font-size: 12.5px; color: #cbd3dd; }
.kc-citymodal__hint.is-error { color: #ff9d8f; }
.kc-citymodal__list { padding: 4px 10px 12px; overflow-y: auto; }
.kc-cityrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #eef1f5;
  font: 500 15px/1.25 inherit;
  text-align: left;
  cursor: pointer;
}
.kc-cityrow:hover, .kc-cityrow:focus-visible { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); outline: none; }
.kc-cityrow.is-active { background: rgba(255, 196, 46, .14); border-color: rgba(255, 196, 46, .5); color: #fff; }
.kc-cityrow.is-active .kc-cityrow__name::after { content: ' ✓'; color: #ffc42e; }
.kc-cityrow__badge { font-size: 12px; color: #ffd977; white-space: nowrap; }
.kc-citymodal__empty { margin: 10px 12px; font-size: 13.5px; color: #a9b3bf; }

/* 4) Геометка у полей адреса */
.kc-addr-wrap { position: relative; }
.kc-addr-wrap .addr__input { padding-right: 44px; }
.kc-addr-geo {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(20, 22, 27, .16);
  background: #fff;
  color: #4a5260;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.kc-addr-geo:hover { color: #14161b; border-color: #ffc42e; background: #fffdf5; }
.kc-addr-geo.is-busy { color: #b58112; border-color: #ffc42e; }
.kc-addr-geo.is-busy svg { animation: kc-geo-spin 1.1s linear infinite; }
.kc-addr-geo.is-done { color: #2f8f4e; border-color: #57b566; }
@keyframes kc-geo-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .kc-topbar { padding: 5px 12px; }
  .kc-topbar__btn { padding: 5px 10px; font-size: 12.5px; }
  .kc-citymodal { padding: 10px; align-items: flex-end; }
  .kc-citymodal__dlg { border-radius: 14px; max-height: 86vh; }
  .kc-citymodal__geo span { display: none; }
  .kc-citymodal__geo { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-addr-geo.is-busy svg { animation: none; }
}

/* заголовок и панель поиска не сжимаются при длинном списке городов */
.kc-citymodal__head, .kc-citymodal__tools, .kc-citymodal__hint { flex: 0 0 auto; }
.kc-citymodal__list { flex: 1 1 auto; min-height: 0; }

/* полоса: информация слева, город справа */
.kc-topbar { justify-content: space-between; gap: 14px; }
.kc-topbar__info { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.kc-topbar__link { color: #fff; font-weight: 700; text-decoration: none; }
.kc-topbar__link:hover { color: #ffc42e; }
.kc-topbar__sep, .kc-topbar__hours { color: #9aa3ae; }
.kc-topbar__courier { color: #ffc42e; text-decoration: none; border-bottom: 1px dashed rgba(255,196,46,.5); }
.kc-topbar__courier:hover { border-bottom-color: #ffc42e; }
@media (max-width: 980px) {
  .kc-topbar__hours { display: none; }
  .kc-topbar__sep { display: none; }
}
@media (max-width: 640px) {
  .kc-topbar { padding: 5px 10px; }
  .kc-topbar__info { gap: 6px; }
  .kc-topbar__link { font-size: 12.5px; }
  .kc-topbar__courier { display: none; }
}
