/* Тук Тук — базовые стили. Гамма и типографика — по утверждённым макетам. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', Arial, system-ui, sans-serif;
  background: #fff;
  color: #0D162E;
  font-size: 14px;
  line-height: 1.45;
}
a { color: #005EDE; text-decoration: none; }
a:hover { color: #0047B3; }
h1, h2 { margin: 0; }
input, button { font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: #737A8E; }
.small { font-size: 12.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  background: #006CFD; color: #fff;
}
.btn:hover { background: #005EDE; color: #fff; }
.btn-sm { height: 36px; font-size: 13px; padding: 0 14px; }
.btn-line { background: #E6F0FF; color: #005EDE; }
.btn-line:hover { background: #D6E6FF; color: #005EDE; }
.btn-white { background: #fff; color: #1B3A6B; }
.btn-white:hover { background: #F0F4FA; color: #1B3A6B; }

/* ===== Шапка ===== */
.site-header { border-bottom: 1px solid #D0D8E9; background: #fff; }
.header-row { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-text { font-weight: 900; font-size: 19px; color: #006CFD; letter-spacing: -.3px; }
.logo-tld { color: #9AA4B5; font-weight: 700; font-size: 12px; }
.city-chip {
  display: flex; align-items: center; gap: 5px; flex: none;
  color: #0D162E; font-weight: 700; font-size: 13px;
  border: 1px solid #D0D8E9; border-radius: 8px; padding: 7px 10px;
  background: #fff; cursor: pointer;
}
.caret, .lang-caret { color: #9AA4B5; }
.main-nav { display: flex; align-items: center; gap: 14px; flex: 1; overflow-x: auto; }
.main-nav a { color: #0D162E; font-weight: 700; font-size: 14px; white-space: nowrap; }
.main-nav a:hover { color: #005EDE; }
.header-icons { display: flex; align-items: center; gap: 13px; color: #737A8E; flex: none; }
.header-icons a { color: #737A8E; display: flex; }
.header-icons a:hover { color: #005EDE; }
.login-link { font-weight: 700; font-size: 13.5px; flex: none; }

/* Выпадающий список языков */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: #0D162E; cursor: pointer;
  padding: 7px 9px; border-radius: 8px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: #E6F0FF; color: #005EDE; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 50;
  width: 240px; background: #fff; border: 1px solid #D0D8E9; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 30, 50, .16); padding: 6px 0; overflow: hidden;
}
.lang-up .lang-menu { top: auto; bottom: calc(100% + 6px); }
.lang-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 16px; font-size: 14px; font-weight: 700; color: #0D162E;
  background: none; border: 0; cursor: pointer; text-align: start;
}
.lang-item:hover { background: #F5F9FF; }
.lang-item.on { background: #E6F0FF; color: #005EDE; }

/* ===== Секции ===== */
.sec { padding: 34px 0; }
.sec-alt { background: #F3F5FA; }
.sec-banner { padding: 6px 0 10px; }
.sec-seo { border-top: 1px solid #EAEEF6; }
h2 { font-size: 24px; font-weight: 900; margin-bottom: 18px; }
.h2-sm { font-size: 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.more-link { font-size: 13px; font-weight: 700; }

/* ===== Хиро и поиск ===== */
.hero { background: linear-gradient(180deg, #F3F6FC, #fff); padding: 46px 0 40px; }
.hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 22px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid #D0D8E9; border-radius: 19px;
  font-size: 13.5px; font-weight: 700; color: #0D162E; background: #fff; cursor: pointer;
}
.chip:hover { border-color: #006CFD; color: #005EDE; }
.chip.on { background: #006CFD; border-color: #006CFD; color: #fff; }
.search-bar {
  display: flex; gap: 12px; background: #fff; border: 1px solid #D0D8E9;
  border-radius: 16px; padding: 12px; box-shadow: 0 8px 24px rgba(20, 30, 50, .07);
}
.search-input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #9AA4B5; }
.search-input input { flex: 1; border: 0; outline: none; font-size: 15px; color: #0D162E; background: none; }
.search-btn { padding: 0 34px; }

/* ===== Баннер ===== */
.promo-banner {
  background: linear-gradient(100deg, #1B3A6B, #2C5AA8); border-radius: 12px;
  padding: 26px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; color: #fff;
}
.promo-label { font-size: 11px; opacity: .65; margin-bottom: 6px; }
.promo-title { font-size: 22px; font-weight: 700; }
.promo-sub { opacity: .8; margin-top: 4px; font-size: 13px; }

/* ===== Карточки ===== */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-4 + .grid-4 { margin-top: 20px; }
.card { background: #fff; border: 1px solid #D0D8E9; border-radius: 10px; overflow: hidden; }
.photo {
  height: 168px; background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center;
}
.photo-sm { height: 132px; }
.photo-fresh { height: 150px; }
.card-body { padding: 14px; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 20px; font-weight: 700; }
.price-md { font-size: 16px; }
.heart { background: none; border: 0; cursor: pointer; display: flex; padding: 2px; }
.heart:hover svg { stroke: #006CFD; }
.usd { color: #737A8E; font-size: 12px; }
.params { margin-top: 8px; font-weight: 700; font-size: 13.5px; }
.street { color: #737A8E; margin-top: 3px; font-size: 13px; }
.tag {
  display: inline-block; background: #F1F4F9; border-radius: 6px;
  padding: 3px 8px; font-size: 12px; color: #4A5568; margin-top: 10px;
}
.jk-name { font-weight: 700; }
.jk-meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; }
.jk-price { margin-top: 8px; font-weight: 700; }
.cta-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 10px; padding: 20px; background: #F5F9FF; border-color: #D0DEF5;
}
.cta-title { font-weight: 700; font-size: 16px; line-height: 1.35; }

/* ===== Подписка ===== */
.subscribe-card {
  background: #F3F5FA; border: 1px solid #D0D8E9; border-radius: 12px;
  padding: 24px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.subscribe-card > div:first-child { flex: 1; min-width: 220px; }
.sub-title { font-weight: 700; font-size: 17px; }
.sub-form { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-form input {
  width: 280px; max-width: 100%; height: 44px; border: 1px solid #D0D8E9;
  border-radius: 8px; background: #fff; padding: 0 14px; font-size: 14px; outline: none;
}

/* ===== SEO-колонки и подвал ===== */
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols a { display: block; font-size: 13px; margin-bottom: 9px; }
.footer-h { font-weight: 700; margin-bottom: 12px; font-size: 13.5px; }
.site-footer { background: #F3F5FA; border-top: 1px solid #D0D8E9; padding: 40px 0 30px; margin-top: 20px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid #E1E6EF; flex-wrap: wrap;
}
.footer-legal { color: #737A8E; font-size: 12px; max-width: 760px; }
.site-footer .lang summary { border: 1px solid #D0D8E9; background: #fff; }

/* ===== Фото в карточках ===== */
.photo img, .hphoto img, .gphoto img, .thumb img, .cab-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gphoto img { border-radius: 12px; }
.thumb { overflow: hidden; }

/* ===== Вход ===== */
.auth-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #F3F5FA; }
.auth-card { width: 400px; max-width: 100%; padding: 28px; border-radius: 12px; }
.auth-logo { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 8px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 900; margin: 14px 0 6px; }
.auth-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.phone-row { display: flex; gap: 10px; align-items: center; }
.phone-prefix { font-weight: 900; font-size: 15px; }
.phone-row .inp { flex: 1; height: 46px; font-size: 15px; }
.code-inp { height: 52px; font-size: 24px; font-weight: 900; text-align: center; letter-spacing: 8px; }
.form-error { color: #C22F2F; font-size: 13px; font-weight: 700; }
.legal-note { margin-top: 16px; line-height: 1.6; }
.dev-code { background: #FDF3E1; color: #8A5A0A; border-radius: 9px; padding: 10px 14px; font-size: 13px; margin-top: 14px; }
.logout-form { display: flex; }
.logout-btn { background: none; border: 0; color: #737A8E; cursor: pointer; display: flex; padding: 4px; }
.logout-btn:hover { color: #C22F2F; }

/* ===== Кабинет ===== */
.cab { padding-top: 24px; padding-bottom: 40px; }
.cab-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cab-head h1 { font-size: 24px; font-weight: 900; }
.cab-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.cab-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
.cab-photo {
  width: 96px; height: 70px; border-radius: 8px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center;
}
.cab-info { flex: 1; min-width: 200px; }
.tag-amber { background: #FDF3E1; color: #8A5A0A; }

/* ===== Подача ===== */
.sub { padding-top: 24px; padding-bottom: 40px; max-width: 900px; }
.sub-h1 { font-size: 24px; font-weight: 900; }
.sub-form-page { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.sub-step { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; margin-bottom: 14px; }
.snum {
  width: 26px; height: 26px; border-radius: 50%; background: #006CFD; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none;
}
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sub-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inp-area { height: auto; padding: 10px 12px; resize: vertical; font-family: inherit; }
.file-inp { font-size: 13px; }
.sub-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-error.card { padding: 14px 18px; border-color: #E8C6C6; }

/* ===== Готово ===== */
.done-card { width: 480px; text-align: center; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: #EAF7E3; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.done-steps { display: flex; justify-content: center; gap: 22px; margin: 22px 0; flex-wrap: wrap; }
.st { font-size: 13px; font-weight: 700; color: #737A8E; }
.st.done { color: #34AC0A; }
.st.on { color: #8A5A0A; }
.done-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== ЖК и ипотека ===== */
.hero-sm { padding: 34px 0 26px; }
.hero-sm h1 { font-size: 28px; margin-bottom: 6px; }
.jk-head-price { text-align: end; }
.planrow { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid #F0F3F8; flex-wrap: wrap; }
.planrow:last-child { border-bottom: 0; }
.plan-info { flex: 1; min-width: 180px; }
.plan-price { text-align: end; }
.ipo { padding-top: 22px; padding-bottom: 40px; }
.ipo-calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; overflow: hidden; }
.ipo-left { padding: 24px; border-inline-end: 1px solid #EEF1F6; }
.ipo-right { padding: 24px; background: #F5F8FF; display: flex; flex-direction: column; }
.ipo-monthly { font-size: 30px; font-weight: 900; margin-top: 4px; }
.ipo-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ipo-rows > div { display: flex; justify-content: space-between; gap: 10px; }
.ipo-tax { margin-top: 16px; background: #EAF7E3; color: #1E6B04; border-radius: 9px; padding: 10px 14px; font-size: 12.5px; }
.bank-stub { height: 76px; display: flex; align-items: center; justify-content: center; color: #8FA0BC; font-weight: 700; }
@media (max-width: 900px) { .ipo-calc { grid-template-columns: 1fr; } .ipo-left { border-inline-end: 0; border-bottom: 1px solid #EEF1F6; } }

/* ===== Избранное и сердечки ===== */
.pos-rel { position: relative; }
.stretched { position: absolute; inset: 0; z-index: 1; }
.mt16 { margin-top: 16px; }
.fav-form { display: flex; position: relative; z-index: 2; }
.listing-card .card-body, .listing-card .photo { position: relative; }
.heart.on svg { fill: #006CFD; stroke: #006CFD; }
.icon-wrap { position: relative; }
.icon-badge {
  position: absolute; top: -7px; inset-inline-end: -9px;
  background: #006CFD; color: #fff; font-size: 10.5px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.fav-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; position: relative; z-index: 2; }
.action-btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: #737A8E; font-size: 13px; font-weight: 700; font-family: inherit; padding: 0;
}
.action-btn:hover, .action-btn.fav-on { color: #006CFD; }
.phone-reveal summary { list-style: none; cursor: pointer; }
.phone-reveal summary::-webkit-details-marker { display: none; }
.phone-number { text-align: center; font-size: 20px; font-weight: 900; padding: 12px 0 4px; }

/* ===== Деньги: прайс, кошелёк, продвижение ===== */
.tag-blue { background: #E6F0FF; color: #005EDE; font-weight: 700; }
.green-text { color: #34AC0A; }
.card-accent { border-color: #006CFD; border-width: 2px; }
.card-dark { background: #0D162E; color: #fff; border-color: #0D162E; }
.card-dark .promo-desc, .card-dark .promo-per { color: rgba(255, 255, 255, .75); }
.price-title { font-size: 19px; font-weight: 900; margin-top: 10px; }
.prows-1 .prow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #F0F3F8; font-size: 13.5px; }
.prows-1 .prow:last-child { border-bottom: 0; }
.promo-name { font-size: 16px; }
.promo-price { font-size: 20px; font-weight: 900; margin-top: 8px; }
.promo-per { font-size: 12.5px; font-weight: 400; color: #737A8E; }
.promo-desc { font-size: 12.5px; color: #737A8E; margin-top: 8px; line-height: 1.55; }
.note-card { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.wallet-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wallet-balance { font-size: 28px; font-weight: 900; }
.wallet-sep { width: 1px; height: 48px; background: #F0F3F8; }
.wallet-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.amount { font-weight: 900; font-size: 15px; margin-inline-start: auto; }
.plus { color: #34AC0A; }
.minus { color: #C22F2F; }
.chips button.chip { cursor: pointer; }
.cab-head-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.promo-list { display: flex; flex-direction: column; gap: 12px; }
.promo-opt { display: flex; gap: 14px; padding: 16px 18px; border: 1.5px solid #D0D8E9; border-radius: 12px; background: #fff; cursor: pointer; }
.promo-opt:hover { border-color: #B9D3FA; }
.promo-opt input { margin-top: 3px; accent-color: #006CFD; }
.promo-opt:has(input:checked) { border-color: #006CFD; background: #F5F9FF; }
.promo-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.promo-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.promo-costs { display: block; margin-top: 4px; }
.promo-pay { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.promo-total { text-align: end; }
.chips label.chip { cursor: pointer; gap: 7px; }

/* ===== Программа лояльности ===== */
.loy-steps { display: flex; gap: 10px; }
.loy-step { flex: 1; text-align: center; }
.loy-dot { width: 36px; height: 36px; border-radius: 50%; background: #E4EAF4; color: #737A8E; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-weight: 900; font-size: 14px; }
.loy-dot.done { background: #34AC0A; color: #fff; }
.loy-dot.now { background: #006CFD; color: #fff; }
.loy-name { font-weight: 700; font-size: 13px; margin-top: 8px; }
.loy-name.now { color: #005EDE; }
.loy-status { margin-top: 18px; padding-top: 16px; border-top: 1px solid #F0F3F8; font-size: 13.5px; }
.loy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.task-title { flex: 1; }
.loy-bonus { display: flex; align-items: center; gap: 14px; }
.loy-bonus-num { font-size: 32px; font-weight: 900; color: #34AC0A; }
.loy-bonus-note { border-top: 1px solid #F0F3F8; padding-top: 12px; }
.loy-perks { display: flex; flex-direction: column; gap: 12px; }
.loy-perks > div { background: #F5F9FF; border-radius: 9px; padding: 12px 14px; }

/* ===== Админка: справочники (цены) ===== */
.settings-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 18px 18px; }
.set-field .flabel { display: block; margin-bottom: 6px; font-size: 12.5px; color: #737A8E; font-weight: 700; }
.set-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.saved-banner { background: #EAF7E3; border-color: #CBE9D4; color: #1E6B04; font-weight: 700; margin-top: 16px; }
@media (max-width: 900px) { .set-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Админка: деньги ===== */
.src-row .bar { height: 8px; border-radius: 4px; background: #E6F0FF; margin-top: 6px; overflow: hidden; max-width: 460px; }
.src-row .bar > div { height: 100%; background: #006CFD; border-radius: 4px; }
.money-date { width: 110px; flex: none; }

@media (max-width: 900px) {
  .wallet-grid, .loy-grid { grid-template-columns: 1fr; }
}

/* ===== Страница продавца ===== */
.seller-head { display: flex; gap: 16px; align-items: center; }
.ava-lg { width: 72px; height: 72px; font-size: 20px; font-weight: 900; }

/* ===== Сравнение и уведомления ===== */
.compare-scroll { overflow-x: auto; }
.ctable { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; border: 1px solid #D0D8E9; border-radius: 12px; }
.ctable td { padding: 11px 14px; border-top: 1px solid #F0F3F8; font-size: 13.5px; vertical-align: top; min-width: 160px; }
.ctable tr:first-child td { border-top: 0; }
.ct-label { color: #737A8E; font-weight: 700; font-size: 12.5px; min-width: 120px; }
.ct-photo { display: flex; width: 150px; height: 100px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #DDE5F1, #C3CFE2); align-items: center; justify-content: center; }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; }
.ct-title { display: block; font-weight: 700; margin-top: 8px; line-height: 1.3; }
.ct-remove { background: none; border: 0; color: #C22F2F; font-size: 18px; cursor: pointer; padding: 4px 0 0; }
.ct-best { background: #EAF7E3; font-weight: 700; }
.notif-row { align-items: center; }
.notif-new { background: #F5F9FF; }
.notif-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.notif-ok { background: #EAF7E3; color: #34AC0A; }
.notif-warn { background: #FDF3E1; color: #8A5A0A; }
.notif-info { background: #E6F0FF; color: #005EDE; }

/* ===== Чат ===== */
.chat-wrap { max-width: 860px; }
.chat-row { align-items: center; }
.chat-preview { font-size: 13px; margin-top: 4px; }
.chat-unread {
  background: #006CFD; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.chat-box { margin-top: 20px; margin-bottom: 40px; display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid #F0F3F8; }
.chat-head-listing { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.chat-warn { background: #FDF3E1; border-bottom: 1px solid #F5E3BC; padding: 9px 16px; font-size: 12.5px; color: #8A5A0A; }
.chat-msgs { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #FAFBFD; min-height: 260px; }
.bubble-row { display: flex; flex-direction: column; align-items: flex-start; }
.bubble-row.mine { align-items: flex-end; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: #F3F5FA; border-end-start-radius: 4px; }
.bubble-row.mine .bubble { background: #006CFD; color: #fff; border-end-start-radius: 14px; border-end-end-radius: 4px; }
.bubble-time { font-size: 11px; margin-top: 4px; }
.chat-send { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #F0F3F8; }
.chat-send .inp { flex: 1; height: 44px; border-radius: 22px; }
.chat-note { padding: 0 16px 12px; }

/* ===== Страница карты ===== */
.map-topbar { border-bottom: 1px solid #D0D8E9; background: #fff; }
.map-topbar-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.mappage { position: relative; height: calc(100vh - 130px); min-height: 480px; }
#map { position: absolute; inset: 0; }
.mpanel {
  position: absolute; inset-inline-start: 14px; top: 14px; bottom: 14px; width: 400px; max-width: calc(100% - 28px);
  z-index: 5; display: flex; flex-direction: column; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(20, 30, 50, .14); overflow: hidden;
}
.mpanel-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #F0F3F8; }
#panelClose { display: none; font-size: 22px; color: #737A8E; cursor: pointer; line-height: 1; padding: 0 6px; }
.mpanel-list { flex: 1; overflow-y: auto; }
.mpanel-empty { padding: 16px; }
.mpanel-foot { padding: 10px 14px; border-top: 1px solid #F0F3F8; }
.mcard { border-bottom: 1px solid #F0F3F8; cursor: pointer; }
.mcard:hover { background: #F8FAFD; }
.mcard.on { background: #E6F0FF; }
.mcard-ph {
  height: 150px; margin: 12px 12px 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center;
}
.mcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.mcard-body { padding: 11px 14px 14px; }
.mcard-price { font-size: 18px; font-weight: 900; }
.mcard-params { font-weight: 700; font-size: 13.5px; margin-top: 3px; }
.mcard-btns { display: flex; gap: 8px; margin-top: 10px; }
.mcard-btns .btn { flex: 1; }
.mpin {
  background: #fff; border: 1px solid #D0D8E9; border-radius: 16px; padding: 5px 11px;
  font-weight: 700; font-size: 12.5px; box-shadow: 0 2px 8px rgba(20, 30, 50, .18);
  white-space: nowrap; cursor: pointer; font-family: 'Lato', sans-serif; color: #0D162E;
}
.mpin.on { background: #006CFD; border-color: #006CFD; color: #fff; }
.mclust {
  width: 44px; height: 44px; background: rgba(0, 108, 253, .92); border: 3px solid #fff;
  border-radius: 50%; color: #fff; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(20, 30, 50, .25); cursor: pointer; font-family: 'Lato', sans-serif;
}
@media (max-width: 700px) { .mpanel { display: none; } }

/* ===== Админка ===== */
.panel-body { background: #F3F5FA; }
.panel-shell { display: flex; min-height: 100vh; }
.panel-side { width: 250px; flex: none; background: #222B3E; padding: 18px 12px; display: flex; flex-direction: column; }
.pside-logo { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; color: #fff; font-weight: 900; font-size: 15px; }
.pside-logo em { color: #8E99AF; font-style: normal; font-weight: 700; }
.pnav { display: flex; flex-direction: column; gap: 2px; }
.pnav a, .pnav .soon {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: #B9C2D4;
}
.pnav a:hover { color: #fff; }
.pnav a.on { background: #323D54; color: #fff; }
.pnav .soon { color: #5B6880; font-weight: 400; cursor: default; }
.pnav .soon em { font-style: normal; font-size: 10.5px; margin-inline-start: auto; border: 1px solid #3A465F; border-radius: 6px; padding: 1px 6px; }
.pbadge { margin-inline-start: auto; background: #006CFD; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 2px 7px; }
.pside-user { margin-top: auto; padding: 12px 14px; background: #2B3549; border-radius: 10px; display: flex; flex-direction: column; }
.pside-user b { color: #fff; font-size: 12.5px; }
.pside-user span { color: #8E99AF; font-size: 11.5px; margin-top: 2px; }
.pside-back { display: block; color: #8E99AF; font-size: 12.5px; font-weight: 700; padding: 12px 14px 2px; }
.pside-back:hover { color: #fff; }
.panel-main { flex: 1; padding: 22px 26px; min-width: 0; }
.ptitle { font-size: 21px; font-weight: 900; margin-bottom: 4px; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pcard { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pcard b { font-size: 24px; font-weight: 900; }
.pcard b.amber { color: #C24F0E; }
.pblock { margin-top: 22px; }
.pblock-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
.mod-row-lite { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid #F0F3F8; flex-wrap: wrap; }
.pblock-empty { padding: 18px; }
.panel-main > .muted.small { margin-top: 18px; display: block; }
.mod-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.mod-row { display: flex; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.mod-photo {
  width: 130px; height: 96px; border-radius: 8px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center;
}
.mod-photo img { width: 100%; height: 100%; object-fit: cover; }
.mod-info { flex: 1; min-width: 260px; }
.mod-desc { margin-top: 6px; }
.mod-actions { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.reason-sel { max-width: 320px; }
.btn-ok { background: #34AC0A; }
.btn-ok:hover { background: #2C9108; }
.btn-no { background: #fff; color: #C22F2F; border: 1px solid #E8C6C6; }
.btn-no:hover { background: #FCF3F3; color: #C22F2F; }
.tag-red { background: #FCECEC; color: #C22F2F; }
.reject-note { width: 100%; }

@media (max-width: 900px) {
  .panel-shell { flex-direction: column; }
  .panel-side { width: 100%; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ===== Телефон и планшет ===== */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Мобильная шапка: меню уходит в бургер ===== */
.mmenu { display: none; }
@media (max-width: 1000px) {
  .wrap { padding: 0 16px; }
  .header-row { height: 56px; gap: 8px; }
  .logo-text { font-size: 17px; }
  .header-row .btn-sm { padding: 0 12px; margin-inline-start: auto; }
  .header-row > .city-chip, .header-row > .main-nav, .header-row > .header-icons,
  .header-row > .login-link, .header-row > .lang, .header-row > .logout-form { display: none; }
  .mmenu { display: block; position: relative; flex: none; }
  .mmenu summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; color: #0D162E; }
  .mmenu summary::-webkit-details-marker { display: none; }
  .mmenu-close { display: none; }
  .mmenu[open] .mmenu-burger { display: none; }
  .mmenu[open] .mmenu-close { display: block; }
  .mmenu-panel {
    position: fixed; top: 57px; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff; overflow-y: auto; padding: 6px 16px 20px;
    display: flex; flex-direction: column;
  }
  .mmenu:not([open]) .mmenu-panel { display: none; }
  .sec-head { flex-wrap: wrap; gap: 4px 14px; }
  .mmenu-city { border: 0; padding: 13px 0; border-bottom: 1px solid #F0F3F8; border-radius: 0; font-size: 14px; }
  .mmenu-nav { display: flex; flex-direction: column; }
  .mmenu-nav a { display: flex; align-items: center; height: 48px; font-weight: 700; font-size: 15px; color: #0D162E; border-bottom: 1px solid #F0F3F8; }
  .mmenu-nav a:last-child { border-bottom: 0; }
  .mmenu-icons { display: flex; gap: 18px; padding: 14px 0 4px; border-top: 1px solid #F0F3F8; margin-top: 4px; flex-wrap: wrap; }
  .mmenu-icons a { display: flex; align-items: center; gap: 6px; color: #737A8E; font-size: 13px; font-weight: 700; }
  .mmenu-bottom { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
  .mmenu-login { width: 100%; }
  .mmenu-logout { background: none; border: 0; cursor: pointer; color: #C22F2F; font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 4px 0; }
  .mmenu-bottom .lang { align-self: flex-start; }
  .mmenu-bottom .lang summary { border: 1px solid #D0D8E9; background: #fff; }
}
/* ===== Выдача поиска ===== */
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; flex-wrap: wrap; }
.search-title { font-size: 22px; font-weight: 900; }
.search-head-right { display: flex; gap: 10px; align-items: center; }
.inp, .inp-select {
  height: 40px; border: 1px solid #D0D8E9; border-radius: 8px; background: #fff;
  padding: 0 12px; font-size: 13.5px; color: #0D162E; outline: none;
}
.inp-select { font-weight: 700; }
.w100 { width: 100%; }
.view-toggle { display: flex; border: 1px solid #D0D8E9; border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 700; }
.vt { padding: 10px 14px; color: #0D162E; }
.vt.on { background: #006CFD; color: #fff; }
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-top: 16px; padding-bottom: 40px; align-items: start; }
.filter-card { background: #fff; border: 1px solid #D0D8E9; border-radius: 10px; padding: 4px 18px 18px; }
.fgroup { padding: 14px 0; border-bottom: 1px solid #EEF1F6; }
.fgroup:last-of-type { border-bottom: 0; }
.flabel { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.minmax { display: flex; gap: 8px; }
.minmax .inp { width: 50%; }
.rooms-row { display: flex; gap: 6px; }
.room input { display: none; }
.room span {
  display: flex; width: 40px; height: 36px; border: 1px solid #D0D8E9; border-radius: 9px;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px; cursor: pointer;
}
.room input:checked + span { background: #006CFD; border-color: #006CFD; color: #fff; }
.fbtns { display: flex; gap: 10px; margin-top: 14px; }
.fbtns .btn { flex: 1; }
.results { display: flex; flex-direction: column; gap: 16px; }
.hcard { display: flex; }
.hphoto {
  width: 280px; min-height: 200px; flex: none;
  background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center;
}
.hbody { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hbody-top { display: flex; justify-content: space-between; gap: 10px; }
.htitle { font-size: 20px; font-weight: 700; line-height: 1.25; display: block; }
.hprice { font-size: 20px; font-weight: 700; margin-top: 6px; }
.hdesc { font-size: 13px; }
.hfoot { display: flex; align-items: center; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.spacer { flex: 1; }
.tag-green { background: #EAF7E3; color: #34AC0A; }
.empty-card { padding: 24px; color: #737A8E; }
.pagination { display: flex; gap: 8px; justify-content: center; padding: 14px 0; align-items: center; flex-wrap: wrap; }
.pg {
  min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid #D0D8E9;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #005EDE; padding: 0 10px;
}
.pg.on { background: #006CFD; border-color: #006CFD; color: #fff; }
.pg-dots { color: #9AA4B5; }

/* ===== Карточка объявления ===== */
.detail-top { padding-top: 18px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.detail-head h1 { font-size: 26px; font-weight: 900; }
.actions { display: flex; gap: 18px; font-size: 13px; font-weight: 700; align-items: center; flex-wrap: wrap; }
.actions span { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-top: 18px; padding-bottom: 40px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 24px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.gphoto {
  height: 420px; border-radius: 12px; background: linear-gradient(135deg, #DDE5F1, #C3CFE2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.gcount {
  position: absolute; inset-inline-start: 14px; bottom: 14px;
  background: rgba(20, 25, 35, .65); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 7px;
}
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.thumb { height: 74px; border-radius: 8px; background: linear-gradient(135deg, #DDE5F1, #C3CFE2); }
.thumb-plan { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #5B6B85; font-weight: 700; background: #EDF1F8; }
.card.pad { padding: 20px; }
.prows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.prow { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F0F3F8; font-size: 13.5px; }
.desc { font-size: 14px; line-height: 1.65; margin: 0; color: #0D162E; }
.map-stub {
  height: 220px; border-radius: 10px; background: linear-gradient(120deg, #F2F3F5, #E8ECF2);
  display: flex; align-items: center; justify-content: center; position: relative;
  margin-top: 12px; border: 1px solid #E4E8F0;
}
.map-note { position: absolute; bottom: 10px; inset-inline-end: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dprice { font-size: 26px; font-weight: 900; }
.card-blue { background: #F5F8FF; border-color: #D7E2F6; }
.mt4 { margin-top: 4px; }
.mt10 { margin-top: 10px; }
.center { text-align: center; }
.seller { display: flex; gap: 12px; align-items: center; }
.ava {
  width: 48px; height: 48px; border-radius: 50%; background: #E4EAF4;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #5B6B85;
}
.verified { color: #34AC0A; font-size: 12px; font-weight: 700; margin-top: 2px; }
.stat-lines { line-height: 1.8; }

@media (max-width: 1000px) {
  .search-layout, .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .hcard { flex-direction: column; }
  .hphoto { width: 100%; height: 180px; min-height: 0; }
  .gphoto { height: 260px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .search-bar { flex-direction: column; }
  .map-btn { display: none; }
  .promo-banner { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ===== Админка: жалобы, контент, аналитика, рассылки ===== */
.pbadge.red { background: #C22F2F; }
.complaint-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.complaint-text { background: #F3F5FA; border-radius: 9px; padding: 11px 13px; margin-top: 10px; font-size: 13.5px; line-height: 1.55; }
.complain { position: relative; }
.complain summary { list-style: none; cursor: pointer; }
.complain summary::-webkit-details-marker { display: none; }
.complain-form { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; width: 320px; padding: 16px; box-shadow: 0 10px 28px rgba(20, 30, 50, .16); }
.banner-list { display: flex; flex-direction: column; gap: 16px; }
.switch-row { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 13.5px; font-weight: 700; }
.pad-x { padding-inline: 18px; }
.pad-b { padding-bottom: 14px; }
.set-actions.pad-x { padding-bottom: 16px; }
.sub-head { border-top: 1px solid #F0F3F8; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.funnel { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.fn-bar { height: 36px; border-radius: 8px; background: #006CFD; color: #fff; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 13px; min-width: 200px; white-space: nowrap; }
.fn-bar.fn-2 { background: #4A90F5; }
.fn-bar.fn-3 { background: #7FB2F9; color: #0D162E; }
.mail-list { display: flex; flex-direction: column; gap: 14px; }
.mail-edit { display: flex; gap: 10px; padding: 0 18px 12px; }
.amber { color: #C24F0E; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ===== Типы аккаунтов и профиль ===== */
.kind-card { width: 440px; }
.kind-list { display: flex; flex-direction: column; gap: 10px; }
.kind-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #D0D8E9; border-radius: 10px; padding: 13px 14px; background: #fff; cursor: pointer; }
.kind-opt:hover { border-color: #B9D3FA; }
.kind-opt:has(input:checked) { border-color: #006CFD; background: #F5F9FF; }
.kind-opt input { margin-top: 3px; accent-color: #006CFD; }
.kind-body { display: flex; flex-direction: column; gap: 2px; }
.auth-card .flabel { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: #737A8E; }
.ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.seller-head-info { flex: 1; min-width: 240px; }
.seller-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; background: #EAF7E3; color: #34AC0A; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 7px; }
.seller-about { margin-top: 10px; font-size: 13.5px; line-height: 1.6; max-width: 640px; }
.seller-stats { display: flex; gap: 26px; margin-top: 14px; flex-wrap: wrap; }
.seller-stats > div { display: flex; flex-direction: column; }
.seller-stats b { font-size: 20px; font-weight: 900; }
.seller-actions { width: 220px; flex: none; }
.doc-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; }
@media (max-width: 700px) { .seller-actions { width: 100%; } .kind-card { width: 100%; } }

/* ===== Поиск на телефоне: фильтры за кнопкой ===== */
.fltoggle { display: none; }
.flt-btn { display: none; }
@media (max-width: 1000px) {
  .flt-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
    border-radius: 8px; font-size: 13px; font-weight: 700; color: #005EDE; background: #E6F0FF; cursor: pointer;
  }
  .flt-count {
    background: #006CFD; color: #fff; font-size: 11px; font-weight: 700; min-width: 17px; height: 17px;
    border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
  }
  .search-layout .filter-card { display: none; }
  .fltoggle:checked ~ .search-layout .filter-card { display: block; }
  .search-head { padding-top: 14px; }
  .search-title { font-size: 20px; }
  .search-head-right { width: 100%; flex-wrap: wrap; }
}

/* ===== Карточка объявления на телефоне ===== */
.mob-price { display: none; }
.mob-cta { display: none; }
@media (max-width: 1000px) {
  .detail-head h1 { font-size: 21px; }
  .mob-price { display: block; background: #fff; border: 1px solid #D0D8E9; border-radius: 10px; padding: 14px 16px; }
  .detail-side .card:first-child, .detail-side .card-blue { display: none; }
  .detail-grid { padding-bottom: 84px; }
  .mob-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid #D0D8E9; box-shadow: 0 -6px 18px rgba(20, 30, 50, .08);
    padding: 10px 16px 12px;
  }
  .mob-cta-chat { flex: 1; }
  .mob-cta-phone { flex: 1.4; position: relative; }
  .mob-cta-phone summary { width: 100%; }
  .mob-phone-pop {
    position: absolute; bottom: calc(100% + 10px); left: 0; right: 0;
    background: #fff; border: 1px solid #D0D8E9; border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 30, 50, .16); padding: 12px 14px;
    display: flex; flex-direction: column; gap: 3px; text-align: center;
  }
  .mob-phone-pop b { font-size: 18px; font-weight: 900; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumb { height: 64px; }
  .thumb-plan { font-size: 11px; }
}

/* ===== Формы и кабинет на телефоне ===== */
@media (max-width: 700px) {
  .sub-grid, .sub-grid-4 { grid-template-columns: 1fr 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sub-grid { grid-template-columns: 1fr; }
}

/* ===== Админка на телефоне: меню в бургере ===== */
.pmob { display: none; }
@media (max-width: 900px) {
  .pmob { display: block; background: #222B3E; }
  .pmob summary { list-style: none; display: flex; align-items: center; gap: 9px; height: 56px; padding: 0 16px; cursor: pointer; }
  .pmob summary::-webkit-details-marker { display: none; }
  .pmob-title { color: #fff; font-weight: 900; font-size: 14px; flex: 1; }
  .pmob-title em { color: #8E99AF; font-style: normal; font-weight: 700; }
  .pmob-close { display: none; }
  .pmob[open] .pmob-burger { display: none; }
  .pmob[open] .pmob-close { display: block; }
  .panel-side { display: none; }
  .pmob[open] ~ .panel-side { display: flex; }
  .pmob[open] ~ .panel-side .pside-logo { display: none; }
  .panel-main { padding: 18px 16px; }
}

/* ===== Логотип: точки-глаза изредка моргают ===== */
.logo-eye {
  transform-box: fill-box; transform-origin: center;
  animation: logo-blink 2.6s infinite;
}
@keyframes logo-blink {
  0%, 87%, 97%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.08); }
}
@media (prefers-reduced-motion: reduce) { .logo-eye { animation: none; } }
