/* ===== ГородЛюдей — сайт: кабинеты, формы, карточка объявления ===== */

/* --- Общие мелочи --- */
.i { width: 1em; height: 1em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }

.layout--single { grid-template-columns: 1fr; max-width: 980px; }

.section-sub { color: var(--gray); font-weight: 600; font-size: 13px; margin-top: 6px; }
.listings--flush { margin-top: 24px; }
.listings__grid--wide { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .listings__grid--wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .listings__grid--wide { grid-template-columns: repeat(2, 1fr); } }

.ad-card__coverlink { display: block; }
.ad-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-card__title a:hover { color: var(--blue); }
.ad-card__price--muted { color: var(--gray); text-decoration: line-through; text-decoration-color: #cfd6e0; }
.ad-card__statusrow { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; }
.ad-card__statusrow .iconact { margin-left: auto; }

.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.st--ok { background: #e6f7ec; color: #1e9e56; }
.st--warn { background: #fef1dc; color: #c77c11; }
.st--views { background: #eef1f5; color: #64748b; display: inline-flex; align-items: center; gap: 4px; }
.st--views .i { width: 12px; height: 12px; }
.st--cat { background: var(--st-bg, #eef1f5); color: var(--st-c, #64748b); }

/* --- Флеш-сообщения --- */
.flashes { margin-top: 18px; display: grid; gap: 10px; }
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid;
}
.flash--ok { background: #e6f7ec; color: #187741; border-color: #bfe8cf; }
.flash--err { background: #fdeaea; color: #c0392b; border-color: #f5c6c0; }
.flash--info { background: #e8f2fe; color: #1e63d6; border-color: #c8ddf8; }

/* --- Категории: иконки с цветом (динамические карточки) --- */
.cat__icon { color: var(--icon-c, var(--blue)); }
.cat__icon .i { width: 24px; height: 24px; }

.ad-card__art { color: #fff; opacity: .95; display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.ad-card__art .i { width: 62px; height: 62px; stroke-width: 1.5; }

/* --- Пустой результат --- */
.empty { text-align: center; padding: 30px 10px 26px; }
.empty__emoji { font-size: 40px; margin-bottom: 8px; }
.empty__title { font-weight: 800; font-size: 16px; }
.empty__text { color: var(--gray); font-weight: 600; margin-top: 6px; font-size: 13.5px; }
.empty__text a { color: var(--blue); }
.empty .btn--inline { margin-top: 14px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  font-size: 14px; font-weight: 800;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .15s, transform .1s;
}
.btn--primary { background: var(--blue, #2f7df6); color: #fff; }
.btn--primary:hover { background: #1e63d6; }
.btn--ghost { background: #fff; color: #2f7df6; border: 1.5px solid #cfe2fb; }
.btn--ghost:hover { background: #f2f8ff; }
.btn--inline { width: auto; }
.btn--auth { width: 100%; margin-top: 6px; }
.btn--danger { background: #fdeaea; color: #c0392b; }
.btn--danger:hover { background: #fadbd7; }

/* --- Хедер: пользователь --- */
.userbox { display: flex; align-items: center; gap: 6px; flex: none; }
.userbox__link { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 11px; }
.userbox__link:hover { background: #f1f5fa; }
.ava {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
  background: var(--ava-bg, linear-gradient(135deg, #2f7df6, #6a4fb0));
  flex: none;
}
.ava--sm { width: 32px; height: 32px; font-size: 12.5px; }
.ava--lg { width: 64px; height: 64px; font-size: 26px; }
.userbox__name { font-weight: 800; font-size: 13.5px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.userbox__quit button {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #8a93a3;
}
.userbox__quit button:hover { background: #fdeaea; color: #c0392b; }

/* --- Панели кабинета --- */
.panel { margin-bottom: 20px; }
.panel .section-title { margin-bottom: 16px; }
.panel .section-head { margin-bottom: 16px; }

.profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile__name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.profile__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--gray); font-weight: 600; font-size: 13px; margin-top: 6px; }
.profile__meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile__meta .i { width: 13px; height: 13px; }
.profile__stats { margin-left: auto; display: flex; gap: 26px; }
.pstat { text-align: center; }
.pstat b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.pstat span { color: var(--gray); font-size: 11.5px; font-weight: 600; }

/* --- Мои объявления --- */
.mine { display: flex; flex-direction: column; }
.mine__row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 2px; border-top: 1px solid #f0f4f9; flex-wrap: wrap;
}
.mine__row:first-child { border-top: none; }
.mine__thumb {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--a-bg, linear-gradient(135deg,#c7d2e0,#97a5b8));
  color: #fff; display: grid; place-items: center; flex: none; overflow: hidden;
}
.mine__thumb .i { width: 24px; height: 24px; }
.mine__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mine__info { flex: 1; min-width: 200px; }
.mine__title { font-weight: 800; font-size: 14px; letter-spacing: -.2px; }
.mine__title:hover { color: var(--blue); }
.mine__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--gray); font-size: 12px; font-weight: 600; margin-top: 5px; }
.mine__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mine__meta .i { width: 12px; height: 12px; }
.mine__right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mine__price { font-weight: 800; font-size: 14px; }
.mine__actions { display: flex; gap: 6px; align-items: center; }
.iconact {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: #5b6a82; background: #f1f5fa; border: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.iconact:hover { background: #e3ecf6; color: var(--blue, #2f7df6); }
.iconact--danger:hover { background: #fdeaea; color: #c0392b; }

/* --- Формы --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--submit { flex-direction: row; align-items: center; gap: 16px; margin-top: 4px; }
.field label { font-size: 12.5px; font-weight: 700; color: #45536b; }
.label-hint { color: var(--gray); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line, #e6ecf4);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #17233b);
  background: #fbfcfe;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue, #2f7df6);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, .14);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--gray); font-size: 12.5px; font-weight: 600; max-width: 420px; }

.file-input { padding: 10px; background: #f6f9fc; }
.file-input::file-selector-button {
  border: none; background: #e8f2fe; color: #1e63d6;
  padding: 9px 16px; border-radius: 9px; font-family: inherit; font-weight: 700;
  margin-right: 12px; cursor: pointer;
}
.photo-preview { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.photo-preview img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; }
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #45536b; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: #2f7df6; }

/* --- Страница объявления --- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--gray); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.crumbs a { color: var(--blue); }
.crumbs .i { width: 12px; height: 12px; }
.listing-full { padding: 0; overflow: hidden; }
.listing-full__cover {
  position: relative;
  aspect-ratio: 16 / 8;
  display: grid; place-items: center;
  background: var(--cover-bg);
}
.listing-full__cover img { width: 100%; height: 100%; object-fit: cover; }
.listing-full__cover .badge { position: absolute; top: 14px; left: 14px; }
.badge--arch { left: auto; right: 14px; background: #64748b; color: #fff; }
.listing-full__body { padding: 22px 24px 24px; }
.listing-full__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.listing-full__title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; }
.listing-full__price { font-size: 21px; font-weight: 800; color: #1e9e56; white-space: nowrap; }
.listing-full__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--gray); font-weight: 600; font-size: 12.5px; margin-top: 8px; }
.listing-full__meta span { display: inline-flex; align-items: center; gap: 5px; }
.listing-full__meta .i { width: 13px; height: 13px; }
.listing-full__desc { margin-top: 16px; line-height: 1.6; color: #2c3a52; font-size: 14.5px; }
.owner-tools { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.author-card__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.author-card__info b { font-size: 15px; }
.author-card__info p { color: var(--gray); font-size: 12.5px; font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.author-card__info .i { width: 13px; height: 13px; }
.author-card__contact { margin-left: auto; }
.muted-note { color: var(--gray); font-size: 13px; font-weight: 600; }
.safety-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f4f9;
  color: #6a7789; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.safety-note .i { width: 14px; height: 14px; color: #1e9e56; flex: none; }

/* --- Hero: селект города в поиске --- */
.hero-search__city--select {
  appearance: none; border: none; background: transparent; outline: none;
  font-size: 15px; font-weight: 700; color: var(--ink, #17233b);
  padding-right: 14px; border-right: 1px solid var(--line, #e6ecf4);
  cursor: pointer; max-width: 190px;
  font-family: inherit;
}
@media (max-width: 560px) { .hero-search__city--select { max-width: 130px; font-size: 13px; } }

.panel-similar { margin-top: 8px; }
.panel-similar .section-head { margin-bottom: 16px; }

/* --- Страницы входа / регистрации --- */
.auth-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 125, 246, .25), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(47, 125, 246, .18), transparent 60%),
    linear-gradient(160deg, #0e1a30 0%, #14213a 55%, #1d3a6e 100%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 30px 80px rgba(6, 15, 33, .45);
  padding: 34px 30px 28px;
}
.auth-card--wide { max-width: 560px; }
.auth-card__brand { display: flex; align-items: center; justify-content: center; gap: 14px; }
.auth-card__title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.auth-card__sub { color: #7d8aa0; font-size: 13.5px; font-weight: 600; }
.auth-form { margin-top: 22px; display: grid; gap: 15px; }
.auth-card .flash { margin-top: 18px; }
.auth-alt { text-align: center; font-size: 13.5px; font-weight: 600; color: #7d8aa0; }
.auth-alt a { color: #2f7df6; font-weight: 800; }
.auth-hint {
  margin-top: 20px; text-align: center;
  font-size: 12.5px; color: #7d8aa0; font-weight: 600;
  background: #f4f7fb; border-radius: 10px; padding: 9px 12px;
}
.auth-hint b { color: #45536b; }
.field select { cursor: pointer; }
.field__wrap { position: relative; display: flex; align-items: center; }
.field__wrap > .i { position: absolute; left: 13px; color: #7d8aa0; width: 17px; height: 17px; pointer-events: none; }
.field__wrap input, .field__wrap select { padding-left: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) {
  .field-row, .form-grid { grid-template-columns: 1fr; }
  .field--submit { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .profile__stats { margin-left: 0; width: 100%; justify-content: space-between; }
  .mine__right { flex-direction: row; align-items: center; }
  .listing-full__cover { aspect-ratio: 16 / 10; }
}

/* ============================================================
   Погода: выбор города
   ============================================================ */
.weather-card__city {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--ink, #17233b);
  padding: 4px 6px 4px 0; border-radius: 8px; margin-left: -6px;
  cursor: pointer; font-family: inherit;
}
.weather-card__city:hover { color: var(--blue, #2f7df6); }
.weather-card__edit { width: 12px; height: 12px; color: var(--gray, #8a93a3); margin-left: auto; }
.weather-card__main { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.weather-card__icon { color: #8a99ad; display: grid; place-items: center; }
.weather-card__icon .i { width: 38px; height: 38px; stroke-width: 1.5; }
.weather-card__wind { color: var(--gray, #8a93a3); font-size: 11.5px; font-weight: 600; margin-top: 4px; min-height: 14px; }

.weather-card__pick { margin-top: 10px; display: grid; gap: 8px; }
.weather-card__pick[hidden] { display: none; }
.weather-card__pick input {
  width: 100%;
  border: 1.5px solid var(--line, #e6ecf4);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #fbfcfe;
}
.weather-card__pick input:focus { border-color: var(--blue, #2f7df6); background: #fff; }
.weather-card__pick .btn { width: 100%; padding: 8px 10px; font-size: 12px; }
.wcity-list { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.wcity-list button {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  border: none; background: none; cursor: pointer; color: var(--ink, #17233b);
}
.wcity-list button:hover { background: #f1f5fa; color: var(--blue, #2f7df6); }
.wcity-empty { padding: 8px 10px; font-size: 13px; color: var(--gray, #8a93a3); font-weight: 600; }

/* Город в hero-поиске: текстовое поле с автоподстановкой */
.hero-search__city--input {
  appearance: none; border: none; background: transparent; outline: none;
  font-size: 15px; font-weight: 700; color: var(--ink, #17233b);
  font-family: inherit; cursor: pointer;
  padding-right: 16px; border-right: 1px solid var(--line, #e6ecf4);
  width: 170px; flex: none;
}
@media (max-width: 560px) { .hero-search__city--input { width: 118px; font-size: 13px; } }

/* ============================================================
   Мобильное меню (бургер)
   ============================================================ */
.burger { display: none; flex-direction: column; gap: 5px; padding: 9px; margin-left: 2px; }
.burger span { width: 21px; height: 2.5px; border-radius: 2px; background: var(--ink, #17233b); display: block; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mmenu {
  display: none;
  border-top: 1px solid var(--line, #e6ecf4);
  background: #fff;
  padding: 10px 18px 16px;
}
.mmenu a, .mmenu button {
  display: block; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--ink, #17233b);
  border: none; background: none; cursor: pointer; font-family: inherit;
}
.mmenu a:hover, .mmenu button:hover { background: #f1f5fa; color: var(--blue, #2f7df6); }
.mmenu form { margin: 4px 0 0; }

@media (max-width: 860px) {
  .burger { display: flex; }
  .mmenu[hidden] { display: none; }
  .mmenu:not([hidden]) { display: block; }
}
@media (min-width: 861px) {
  .mmenu { display: none !important; }
}

/* ============================================================
   Адаптив под все экраны
   ============================================================ */
@media (min-width: 1600px) {
  .container { max-width: 1320px; }
  .listings__grid--wide { grid-template-columns: repeat(5, 1fr); }
  .categories__grid { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero__note { font-size: 22px; }
  .cat__sub { display: none; }
  .cat { min-height: 108px; }
  .ad-card__title { font-size: 13px; }
  .header__inner { gap: 8px; padding: 8px 12px; }
  .logo__name { font-size: 17px; }
  .logo__tagline { display: none; }
  .userbox__name { display: none; }
  .weather-card { padding: 14px 16px; }
  .listing-full__body { padding: 16px; }
  .listing-full__title { font-size: 18px; }
  .listing-full__price { font-size: 17px; }
}

/* Плавные переходы размеров между брейкпоинтами */
.ad-card__cover { transition: opacity .2s; }

/* Фикс: на мобильном hero-контент должен занимать всю ширину, а не ширину строки */
@media (max-width: 860px) {
  .hero__inner { align-items: stretch; }
  .hero__content { max-width: 100%; }
  .hero-search { max-width: 100%; }
}

/* ============================================================
   Иконки в шапке (сообщения, избранное)
   ============================================================ */
.toplink {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #5b6a82;
}
.toplink:hover { background: #f1f5fa; color: var(--blue, #2f7df6); }
.toplink .i { width: 19px; height: 19px; }
.toplink__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e84393;
  color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}

/* Сердечко на карточке — поверх обложки */
.ad-card.has-fav { position: relative; }
.favform { position: absolute; top: 10px; right: 10px; z-index: 3; }
.favform .fav { position: static; }

.st--bad { background: #fdeaea; color: #c0392b; }
.mine__price-m { font-weight: 600; font-size: 12px; color: var(--gray, #8a93a3); }
.profile__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ============================================================
   Сообщения
   ============================================================ */
.msgs { min-height: 420px; }
.dialogs { display: flex; flex-direction: column; }
.dialog {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-top: 1px solid #f0f4f9;
}
.dialog:first-child { border-top: none; }
.dialog:hover { background: #f8fafc; }
.dialog__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dialog__info b { font-size: 14px; }
.dialog__snippet { color: var(--gray, #8a93a3); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dialog__right time { color: var(--gray, #8a93a3); font-size: 11.5px; font-weight: 600; }

.thread-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f4f9; }
.thread-head__info { display: flex; flex-direction: column; }
.thread-head__info b { font-size: 15px; }
.thread-head__info small { color: var(--gray, #8a93a3); font-weight: 600; font-size: 12px; }

.msg-context {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 14px;
  background: #e8f2fe; border-radius: 10px;
  color: #1e63d6; font-size: 13px; font-weight: 700;
}
.msg-context .i { width: 15px; height: 15px; flex: none; }

.thread {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 4px;
  max-height: 460px; overflow-y: auto;
}
.thread__empty { text-align: center; color: var(--gray, #8a93a3); font-weight: 600; padding: 30px 0; }
.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #f1f4f9;
  align-self: flex-start;
}
.bubble p { font-size: 14px; line-height: 1.45; word-break: break-word; }
.bubble time { display: block; font-size: 10.5px; color: var(--gray, #8a93a3); font-weight: 600; margin-top: 3px; }
.bubble--me {
  align-self: flex-end;
  background: var(--blue, #2f7df6);
  border-radius: 14px 14px 4px 14px;
  color: #fff;
}
.bubble--me time { color: rgba(255,255,255,.75); }

.msg-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid #f0f4f9; padding-top: 14px; }
.msg-form textarea {
  flex: 1;
  border: 1.5px solid var(--line, #e6ecf4);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px; font-family: inherit;
  resize: vertical; min-height: 48px;
  outline: none; background: #fbfcfe;
}
.msg-form textarea:focus { border-color: var(--blue, #2f7df6); background: #fff; }
.msg-form .btn { flex: none; }

@media (max-width: 640px) {
  .bubble { max-width: 88%; }
  .msg-form { flex-direction: column; align-items: stretch; }
}

.msg-form .btn { width: auto; flex: none; }

/* ============================================================
   Выпадающий список городов
   ============================================================ */
.citysel { position: relative; }
.citysel__btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border: 1.5px solid var(--line, #e6ecf4);
  border-radius: 11px;
  background: #fbfcfe;
  padding: 11px 14px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  color: var(--ink, #17233b);
  cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.citysel__btn:hover { border-color: #c8ddf8; }
.citysel.is-open .citysel__btn {
  border-color: var(--blue, #2f7df6);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, .14);
  background: #fff;
}
.citysel__btn > .i { width: 16px; height: 16px; color: var(--blue, #2f7df6); flex: none; }
.citysel__btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citysel__btn.is-empty span { color: var(--gray, #8a93a3); font-weight: 600; }
.citysel__chev { width: 14px !important; height: 14px !important; color: var(--gray, #8a93a3) !important; transition: transform .2s; }
.citysel.is-open .citysel__chev { transform: rotate(180deg); }
.citysel.has-error .citysel__btn { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, .15); }

.citysel__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line, #e6ecf4);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 35, 59, .16);
  padding: 10px;
  z-index: 80;
}
.citysel__search {
  width: 100%;
  border: 1.5px solid var(--line, #e6ecf4);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px; font-family: inherit;
  outline: none; background: #fbfcfe;
  margin-bottom: 8px;
}
.citysel__search:focus { border-color: var(--blue, #2f7df6); background: #fff; }
.citysel__list { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.citysel__opt {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 9px;
  border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 700; font-family: inherit;
  color: var(--ink, #17233b);
}
.citysel__opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citysel__opt small { color: var(--gray, #8a93a3); font-weight: 600; font-size: 11px; flex: none; }
.citysel__opt:hover { background: #f1f5fa; color: var(--blue, #2f7df6); }
.citysel__opt.is-selected { background: #e8f2fe; color: var(--blue, #2f7df6); }
.citysel__opt--all { color: var(--blue, #2f7df6); border-bottom: 1px solid var(--line, #e6ecf4); border-radius: 9px 9px 0 0; padding-bottom: 11px; margin-bottom: 4px; }
.citysel__opt--all > .i { width: 16px; height: 16px; flex: none; }
.citysel__opt--all small { display: block; }
.citysel__none { padding: 10px 12px; font-size: 13px; color: var(--gray, #8a93a3); font-weight: 600; }

/* Компактный вариант в hero-поиске */
.citysel--hero { flex: none; width: auto; }
.citysel--hero .citysel__btn {
  border: none; background: transparent; box-shadow: none;
  padding: 10px 14px 10px 4px;
  border-right: 1px solid var(--line, #e6ecf4);
  border-radius: 0;
  font-size: 15px;
  width: auto; max-width: 200px;
}
.citysel--hero .citysel__btn:hover { border-color: var(--line, #e6ecf4); }
.citysel--hero.is-open .citysel__btn { border-color: var(--line, #e6ecf4); box-shadow: none; }
.citysel--hero .citysel__btn.is-empty span { color: var(--ink, #17233b); }
.citysel--hero .citysel__panel {
  left: -10px; right: auto;
  width: 320px;
  top: calc(100% + 14px);
}
@media (max-width: 560px) {
  .citysel--hero .citysel__btn { font-size: 13px; max-width: 128px; padding-right: 10px; }
  .citysel--hero .citysel__panel { width: 290px; left: -14px; }
}
