:root{
  --accent: #16A34A;
  --accent-2: #4ADE80;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --accent-soft: #E3F7E9;
  --danger: #FF5C7A;
  --success: #16A34A;
  --warning: #FFB020;

  --bg: #F4FAF6;
  --surface: #FFFFFF;
  --surface-2: #F2FAF4;
  --border: #DFF0E4;
  --text: #142019;
  --text-dim: #5E6D64;
  --text-faint: #9CACA1;
  --shadow-sm: 0 2px 8px rgba(16, 44, 26, .06);
  --shadow-md: 0 8px 24px rgba(16, 44, 26, .10);
  --shadow-lg: 0 20px 48px rgba(16, 44, 26, .18);
  --overlay: rgba(10, 24, 16, .48);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root[data-theme="dark"]{
  --accent: #4ADE80;
  --accent-2: #86EFAC;
  --accent-soft: #16321F;
  --bg: #0B140F;
  --surface: #121C16;
  --surface-2: #16221A;
  --border: #223226;
  --text: #F1FBF4;
  --text-dim: #AFC2B5;
  --text-faint: #6C8574;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 56px rgba(0,0,0,.55);
  --overlay: rgba(0,0,0,.6);
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}
img,svg{ display:block; }
button{ font-family: inherit; }
input{ font-family: inherit; }
svg{ fill:none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg[fill]{ stroke:none; }
::-webkit-scrollbar{ width:0; height:0; }

.backdrop{
  position: fixed; inset: 0;
  background:
    radial-gradient(1000px 600px at 15% -10%, #DCF5E3 0%, transparent 60%),
    radial-gradient(900px 700px at 110% 10%, #E8FBEF 0%, transparent 55%),
    var(--bg);
  z-index: 0;
  transition: background .4s var(--ease);
}
:root[data-theme="dark"] .backdrop{
  background:
    radial-gradient(1000px 600px at 15% -10%, #123322 0%, transparent 60%),
    radial-gradient(900px 700px at 110% 10%, #0f2a1c 0%, transparent 55%),
    var(--bg);
}

.app-frame{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.app-body{
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-body.pull-anim{ transition: transform .28s var(--ease-spring); }

.pull-refresh{
  position: absolute; top: 0; left: 0; right: 0; height: 64px; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-64px);
  pointer-events: none;
  opacity: 0;
}
.pull-refresh.pull-anim{ transition: transform .28s var(--ease-spring), opacity .2s var(--ease); }
.pull-refresh-spinner{
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.pull-refresh-spinner svg{ transition: transform .15s var(--ease); }
.pull-refresh.ready .pull-refresh-spinner{ color: var(--accent); }
.pull-refresh.spinning .pull-refresh-spinner svg{ animation: pullRefreshSpin .7s linear infinite; }
@keyframes pullRefreshSpin{ to{ transform: rotate(360deg); } }

@media (min-width: 560px){
  body{ display:flex; align-items:center; justify-content:center; }
  .app-frame{
    height: min(910px, 94vh);
    margin-top: 3vh;
    border-radius: 44px;
    box-shadow: var(--shadow-lg), 0 0 0 10px #0d0b18, 0 0 0 12px #34304a;
    border: 2px solid rgba(255,255,255,.04);
  }
  .app-frame::before{
    content:"";
    position:absolute; top:14px; left:50%; translate:-50% 0;
    width: 110px; height: 26px; border-radius: 20px;
    background:#0d0b18; z-index: 50;
  }
}

.app-header{
  padding: calc(16px + var(--safe-top)) 16px 10px;
  background: var(--bg);
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  transition: background .35s var(--ease), box-shadow .34s var(--ease);
}

.header-collapsible{
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 2px 16px 12px;
  background: var(--bg);
  z-index: -1;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    transform .44s cubic-bezier(.32, .72, 0, 1),
    opacity .30s cubic-bezier(.4, 0, .3, 1);
}
.app-header.collapsed .header-collapsible{
  transform: translateY(-101%);
  opacity: 0;
  pointer-events: none;
}
.app-header.collapsed{ box-shadow: 0 5px 16px rgba(16,44,26,.08); }
:root[data-theme="dark"] .app-header.collapsed{ box-shadow: 0 5px 16px rgba(0,0,0,.45); }

@media (min-width: 560px){ .app-header{ padding-top: 46px; } }

.header-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom: 0; }
.brand{ display:flex; align-items:center; gap:9px; min-width:0; }
.brand-button{
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  appearance: none;
  box-shadow: none !important;
  outline: none !important;
}
.brand-mark{
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-grad);
  color:#fff; font-weight: 800; font-size: 16px;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 12px rgba(22,163,74,.4);
}
.online-indicator{
  display:flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0;
  height:38px; padding:0 13px;
  font-size:12px; font-weight:700; color: var(--text-dim);
  background: var(--surface); border:1px solid var(--border); border-radius:999px;
  white-space:nowrap;
  transition: background .2s, border-color .2s;
}
.online-dot{ width:7px; height:7px; border-radius:50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.18); animation: pulseDot 1.8s infinite; }

.news-item{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.news-item:last-child{ border-bottom:none; }
.news-icon{ width:40px; height:40px; border-radius:12px; background: var(--accent-soft); display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0; }
.news-title{ font-weight:700; font-size:13.5px; }
.news-text{ font-size:12.5px; color: var(--text-dim); margin-top:3px; line-height:1.45; }
.news-time{ font-size:11px; color: var(--text-faint); margin-top:5px; }

.brand-logo{ height:29px; width:auto; object-fit:contain; flex-shrink:0; }
.brand-logo-dark{ display:none; }
:root[data-theme="dark"] .brand-logo-light{ display:none; }
:root[data-theme="dark"] .brand-logo-dark{ display:block; }
.brand-name{ font-weight: 800; font-size: 17.5px; letter-spacing: -.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-actions{ display:flex; gap:8px; flex-shrink:0; }

.icon-btn{
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: transform .18s var(--ease-spring), background .2s, border-color .2s, box-shadow .2s;
}
.icon-btn:hover{ box-shadow: var(--shadow-sm); border-color: var(--accent); color: var(--accent); }
.icon-btn:active{ transform: scale(.88); }

.icon-sun, .icon-moon{ position:absolute; transition: transform .5s var(--ease-spring), opacity .35s var(--ease); }
.icon-sun{ opacity:1; transform: rotate(0) scale(1); }
.icon-moon{ opacity:0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .icon-sun{ opacity:0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .icon-moon{ opacity:1; transform: rotate(0) scale(1); }
.icon-moon path{ fill: currentColor; stroke:none; }

.dot-badge{
  position:absolute; top:7px; right:7px;
  width:8px; height:8px; border-radius:50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25); } }

.search-row{ display:flex; gap:8px; }
.search-box{
  flex:1; display:flex; align-items:center; gap:8px;
  background: var(--surface); border:1px solid var(--border);
  border-radius: 16px; padding: 11px 14px;
  color: var(--text-dim);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within{ border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box svg{ flex-shrink:0; }
.search-box input{
  border:none; outline:none; background:transparent; color:var(--text);
  font-size: 14.5px; width:100%; font-weight:500;
}
.search-box input::placeholder{ color: var(--text-faint); }
.clear-btn{
  border:none; background: var(--border); color: var(--text-dim);
  width:20px; height:20px; border-radius:50%; font-size:11px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.filter-btn{
  width: 42px; flex-shrink:0; border-radius:16px;
  border:1px solid var(--border); background: var(--surface); color: var(--text);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: transform .18s var(--ease-spring), border-color .2s;
}
.filter-btn:hover{ border-color: var(--accent); color:var(--accent); }
.filter-btn:active{ transform: scale(.9); }
.filter-btn.has-active{ background: var(--accent-grad); border-color: transparent; color:#fff; }

/* ───────── ПРОМО-БАННЕР ───────── */
.promo-banner{ position:relative; margin-top:12px; }
.promo-track{
  display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory;
  border-radius: var(--radius-md); cursor:grab;
  -webkit-overflow-scrolling:touch;
  align-items: flex-start;
}
.promo-track.dragging{ cursor:grabbing; scroll-snap-type:none; }
.promo-slide{
  scroll-snap-align:start; flex:0 0 100%;
  border-radius: var(--radius-md); position:relative; overflow:hidden;
  display:flex; align-items:center; padding:0 16px; color:#fff; user-select:none;
  aspect-ratio: 3 / 1;
  background: var(--surface-2);
}
.promo-slide::after{ content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); pointer-events:none; }
.promo-slide-text{ position:relative; z-index:1; max-width:72%; }
.promo-slide-title{ font-weight:800; font-size:14px; line-height:1.25; }
.promo-slide-sub{ font-size:11px; opacity:.92; margin-top:3px; font-weight:600; }
.promo-slide-emo{ position:absolute; right:8px; bottom:-6px; font-size:46px; opacity:.35; z-index:1; }

/* Слайд со своей картинкой-баннером: картинка заполняет всю ширину,
   ничего не обрезается, убираем тёмный градиент-оверлей */
.promo-slide.has-img{ padding:0; }
.promo-slide.has-img::after{ display:none; }
.promo-slide-img{
  display:block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.promo-dots{ display:flex; justify-content:center; gap:6px; margin-top:7px; }
.promo-dot{ width:6px; height:6px; border-radius:50%; background: var(--border); transition: all .25s var(--ease); }
.promo-dot.active{ background: var(--accent); width:16px; border-radius:999px; }

.quick-filter-row{ display:flex; gap:8px; overflow-x:auto; margin-top:14px; padding-bottom:2px; scroll-snap-type:x proximity; }
.qf-btn{
  scroll-snap-align:start; flex-shrink:0; display:flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:999px; background: var(--surface); border:1px solid var(--border);
  color: var(--text-dim); font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap;
  transition: all .2s var(--ease);
}
.qf-btn:hover{ border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.qf-btn:active{ transform: scale(.96); }
.qf-btn.active{ background: var(--accent-grad); color:#fff; border-color:transparent; box-shadow: 0 6px 16px rgba(22,163,74,.3); }
.qf-emo{ font-size:14px; }

.qf-chev{ font-size:10px; opacity:.55; margin-left:1px; }


.confirm-body{ text-align:center; padding: 6px 6px 18px; }
.confirm-emo{ font-size:40px; margin-bottom:10px; }
.confirm-body h3{ margin:0 0 8px; font-size:18px; font-weight:800; }
.confirm-body p{ margin:0; font-size:13.5px; color: var(--text-dim); line-height:1.55; }

.option-list{ display:flex; flex-direction:column; gap:2px; }
.option-item{
  display:flex; align-items:center; gap:12px; padding:14px 10px; border-radius:12px;
  cursor:pointer; font-size:14.5px; font-weight:600; color: var(--text); transition: background .15s;
}
.option-item:hover{ background: var(--surface-2); }
.option-item.active{ color: var(--accent); }
.option-item .opt-emo{ font-size:17px; width:22px; text-align:center; }
.option-item .opt-name{ flex:1; }
.option-item .check{ color: var(--accent); font-weight:800; opacity:0; }
.option-item.active .check{ opacity:1; }

.location-list{ display:flex; flex-direction:column; gap:2px; }
.location-item{
  display:flex; align-items:center; gap:10px; padding:12px 10px; border-radius:12px;
  cursor:pointer; font-size:14px; font-weight:600; color: var(--text); transition: background .15s;
}
.location-item:hover{ background: var(--surface-2); }
.location-item.active{ color: var(--accent); }
.location-item .loc-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.location-item .loc-count{ font-size:12px; font-weight:700; color: var(--text-faint); }
.location-item .check{ color: var(--accent); font-weight:800; opacity:0; width:12px; }
.location-item.active .check{ opacity:1; }
.location-group-label{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color: var(--text-faint); margin: 14px 6px 4px; }
.location-group-label:first-child{ margin-top:4px; }

.chip-row{
  display:flex; gap:8px; overflow-x:auto; margin-top:12px; padding-bottom:2px;
  scroll-snap-type: x proximity;
}
.chip{
  scroll-snap-align:start;
  flex-shrink:0; display:flex; align-items:center; gap:6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border:1px solid var(--border);
  color: var(--text-dim); font-size: 13.5px; font-weight:600;
  cursor:pointer; white-space:nowrap;
  transition: all .2s var(--ease);
}
.chip:hover{ border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip.active{
  background: var(--accent-grad); color:#fff; border-color:transparent;
  box-shadow: 0 6px 16px rgba(22,163,74,.35);
}

.app-main{
  flex:1; overflow-y:auto;
  padding: calc(var(--header-h, 300px) + 4px) 16px calc(96px + var(--safe-bottom));
  scroll-behavior:smooth;
}
.tab-view{ display:none; animation: fadeUp .38s var(--ease); }
.tab-view.active{ display:block; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform:none; } }

.section-title-row{ display:flex; align-items:baseline; justify-content:space-between; margin: 10px 0 14px; }
.section-title{ font-size: 19px; font-weight:800; margin:0; letter-spacing:-.3px; }
.section-count{ font-size: 12.5px; color: var(--text-faint); font-weight:600; }

.grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.card{
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow:hidden; cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease-spring), box-shadow .28s var(--ease), border-color .2s;
  animation: cardIn .45s var(--ease) both;
  display:flex; flex-direction:column;
}
.card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card:active{ transform: translateY(-1px) scale(.98); }
@keyframes cardIn{ from{ opacity:0; transform: translateY(14px) scale(.97); } to{ opacity:1; transform:none; } }

.card-photo{
  position:relative; aspect-ratio: 1/1; width:100%;
  display:flex; align-items:center; justify-content:center;
  font-size: 42px;
  overflow:hidden; background: var(--surface-2);
}
.card-photo::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(0,0,0,.14) 100%);
  pointer-events:none;
}
.card-photo-main,
.card-photo-main img,
.card-photo-fallback,
.card-photo-fallback span {
  position:absolute; inset:0;
}
.card-photo-main{
  overflow:hidden;
  background: var(--surface-2);
}
.card-photo-track{ display:flex; width:100%; height:100%; transition:transform .25s var(--ease); }
.card-photo-slide{ min-width:100%; height:100%; position:relative; }
/* Возвращено: фото заполняет карточку целиком, аккуратный кроп по центру */
.card-photo-main img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: center center;
  display:block; position:absolute; inset:0;
  opacity:0; transition: opacity .35s var(--ease);
  max-width:none; max-height:none;
}
.card-photo-main img.loaded{ opacity:1; }
.card-photo-dots{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  display:flex; align-items:center; gap:6px; z-index:2;
  padding:4px 8px; border-radius:999px; background: rgba(8,11,12,.36);
  backdrop-filter: blur(4px);
}
.card-photo-dot{
  width:7px; height:7px; border:0; padding:0; border-radius:50%; background: rgba(255,255,255,.6);
  display:block; box-shadow: 0 0 0 1px rgba(255,255,255,.25); cursor:pointer;
}
.card-photo-dot.active{ background: #fff; width:9px; height:9px; }
.photo-skeleton{
  position:absolute; inset:0; z-index:0;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--border) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
  transition: opacity .35s var(--ease);
}
.photo-skeleton.done{ opacity:0; pointer-events:none; }
.photo-fallback{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: var(--surface-2); color: var(--text-faint); font-size:13px; font-weight:700;
}

.zoom-overlay{
  position:absolute; inset:0; z-index:80; background: rgba(6,10,8,.95);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  opacity:0; pointer-events:none; transition: opacity .25s var(--ease); touch-action:none;
}
.zoom-overlay.open{ opacity:1; pointer-events:auto; }
.zoom-overlay img{ max-width:100%; max-height:100%; touch-action:none; will-change:transform; cursor:grab; }
.zoom-overlay img:active{ cursor:grabbing; }
.zoom-close{
  position:absolute; top:calc(14px + var(--safe-top)); right:14px; z-index:2;
  width:38px; height:38px; border-radius:50%; border:none; background: rgba(255,255,255,.16); color:#fff;
  font-size:16px; display:flex; align-items:center; justify-content:center; cursor:pointer; backdrop-filter: blur(6px);
}
.zoom-hint{
  position:absolute; bottom:calc(20px + var(--safe-bottom)); left:50%; transform:translateX(-50%); z-index:2;
  color:rgba(255,255,255,.75); font-size:11.5px; font-weight:600; background:rgba(0,0,0,.35);
  padding:6px 14px; border-radius:999px; backdrop-filter: blur(6px); white-space:nowrap;
  transition: opacity .3s var(--ease);
}
.pd-map-section{ margin: 4px 0 22px; }
.pd-map-head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:9px; }
.pd-map-head h4{ font-size:13px; color: var(--text); margin:0; }
.pd-map-place{ font-size:12px; color: var(--text-faint); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.pd-map-card{
  position:relative; border-radius: var(--radius-md); overflow:hidden;
  border:1px solid var(--border); box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.pd-map{ width:100%; height:190px; background: var(--surface-2); }
:root[data-theme="dark"] .pd-map .leaflet-tile-pane{ filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.7); }
.pd-map .leaflet-control-attribution{ font-size:9px; background: rgba(255,255,255,.7); }
:root[data-theme="dark"] .pd-map .leaflet-control-attribution{ background: rgba(0,0,0,.5); color:#9fb3a6; }
.pd-map .leaflet-control-attribution a{ color: inherit; }

.geran-pin{ background:none; border:none; }
.geran-pin .pin-body{
  width:28px; height:28px; border-radius:50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, #16A34A, #4ADE80);
  border:2.5px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.geran-pin .pin-ring{
  position:absolute; left:50%; top:100%; translate:-50% -6px;
  width:26px; height:10px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(22,163,74,.35), transparent);
  animation: pinPulse 2.2s ease-in-out infinite;
}
@keyframes pinPulse{ 0%,100%{ transform: scale(1); opacity:.75; } 50%{ transform: scale(1.5); opacity:.3; } }

.pd-map-bar{
  display:flex; align-items:center; gap:10px;
  padding:11px 13px; border-top:1px solid var(--border); background: var(--surface);
}
.pd-map-bar .mb-pin{ font-size:15px; }
.pd-map-bar .mb-text{ flex:1; min-width:0; }
.pd-map-bar .mb-place{ font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pd-map-bar .mb-coords{ font-size:11px; color: var(--text-faint); margin-top:1px; }
.pd-map-bar .mb-open{
  flex-shrink:0; font-size:12px; font-weight:700; color: var(--accent);
  background: var(--accent-soft); border:1px solid transparent; border-radius:999px;
  padding:7px 13px; text-decoration:none; transition: all .2s var(--ease);
}
.pd-map-bar .mb-open:hover{ border-color: var(--accent); transform: translateY(-1px); }

.pd-map-offline{
  height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  color: var(--text-faint); font-size:12.5px; text-align:center; padding:0 20px;
  background:
    radial-gradient(420px 160px at 30% 20%, var(--accent-soft), transparent 70%),
    var(--surface-2);
}
.pd-map-offline .off-emo{ font-size:26px; }

.pd-gallery{
  position:relative; width:100%; overflow:hidden; background: var(--surface-2);
  touch-action: pan-y; cursor:zoom-in; z-index:1;
}
.pd-gallery-viewport{
  position:relative; width:100%; height:100%; overflow:hidden; background: var(--surface-2);
}
.pd-gallery-track{
  display:flex; width:100%; height:100%; transition: transform .3s ease; will-change: transform;
}
.pd-gallery-slide{
  position:relative; flex:0 0 100%; width:100%; min-width:100%; height:100%;
  overflow:hidden; background: var(--surface-2); display:flex; align-items:center; justify-content:center;
}
/* Возвращено: фото целиком и аккуратно, по центру */
.pd-gallery-slide img{
  width:100%; height:100%; display:block;
  object-fit: cover;
  object-position: center center;
  transition: transform .5s var(--ease);
  pointer-events:auto;
  max-width:none; max-height:none;
}
.pd-gallery-slide span{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:46px; }
.pd-gallery-dots{
  position:absolute; left:50%; bottom:12px; transform:translateX(-50%);
  display:flex; align-items:center; justify-content:center; gap:5px; z-index:3;
  padding:3px 6px; border-radius:999px; background: rgba(8,11,12,.28);
  backdrop-filter: blur(6px);
}
.pd-gallery-dot{
  width:5px; height:5px; padding:0; border:none; border-radius:50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.2);
  cursor:pointer; transition: all .2s ease;
}
.pd-gallery-dot.active{ width:7px; height:7px; background:#fff; }

.card-photo span{ position:relative; z-index:1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); transition: transform .35s var(--ease); }
.card:hover .card-photo span{ transform: scale(1.12) rotate(-4deg); }

.fav-btn{
  position:absolute; top:8px; right:8px; z-index:2;
  width:30px; height:30px; border-radius:50%;
  border:none; background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#8a86a0;
  transition: transform .2s var(--ease-spring), color .2s;
}
:root[data-theme="dark"] .fav-btn{ background: rgba(25,21,39,.75); color:#a5a0c0; }
.fav-btn svg{ width:16px; height:16px; }
.fav-btn:active{ transform: scale(.8); }
.fav-btn.active{ color: var(--danger); }
.fav-btn.active svg{ fill: var(--danger); stroke: var(--danger); }
.fav-btn.pop svg{ animation: favPop .45s var(--ease-spring); }
@keyframes favPop{ 0%{ transform:scale(1); } 35%{ transform:scale(1.5); } 60%{ transform:scale(.85); } 100%{ transform:scale(1); } }

.badge-sold{
  position:absolute; inset:0; z-index:1;
  background: rgba(15,13,27,.55); backdrop-filter: blur(1px);
  display:flex; align-items:center; justify-content:center;
}
.badge-sold span{
  background:#fff; color:#1B1730; font-weight:800; font-size:12px;
  padding:5px 14px; border-radius:999px; transform: rotate(-8deg);
  letter-spacing:.3px;
}

.card.card-vip{
  border: 2px solid #FFD700 !important;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.22) !important;
}
.badge-vip{
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #111; font-weight: 900; font-size: 11px;
  padding: 3px 8px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: .5px; text-transform: uppercase;
}

.card-body{ padding: 10px 11px 8px; }
.card-price{ font-weight:800; font-size:15.5px; letter-spacing:-.2px; }
.card-title{
  font-size:13px; color: var(--text-dim); margin-top:3px; font-weight:500;
  display:-webkit-box; line-clamp:2; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35;
  min-height: 2.7em;
}
.card-meta{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; font-size:11px; color: var(--text-faint); }
.card-meta .dot{ margin: 0 4px; }

/* Продавец внизу карточки */
.card-seller{
  display:flex; align-items:center; gap:7px;
  padding:8px 11px 10px; border-top:1px solid var(--border);
  cursor:pointer; transition: background .15s;
  margin-top: auto;
}
.card-seller:hover{ background: var(--surface-2); }
.card-seller-avatar{
  width:22px; height:22px; border-radius:50%;
  background: var(--accent-grad); color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; overflow:hidden;
}
.card-seller-avatar.has-img{ background:#fff; padding:0; border:1px solid var(--border); }
.card-seller-avatar img{ width:100%; height:100%; object-fit:cover; }
.card-seller-name{
  font-size:11.5px; font-weight:600; color: var(--text-dim);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.empty-state{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding: 50px 20px; color: var(--text-dim); gap:4px;
}
.empty-emoji{ font-size:44px; margin-bottom:6px; }
.empty-state p{ font-weight:700; font-size:16px; margin:0; color:var(--text); }
.empty-state span{ font-size:13px; color: var(--text-faint); max-width:240px; }
.empty-state .btn{ margin-top:16px; }

.btn{
  border:none; border-radius: 14px; padding: 13px 20px; font-weight:700; font-size:14.5px;
  cursor:pointer; transition: transform .18s var(--ease-spring), box-shadow .2s, opacity .2s, background .2s;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none;
}
.btn:active{ transform: scale(.96); }
.btn-primary{ background: var(--accent-grad); color:#fff; box-shadow: 0 10px 24px rgba(22,163,74,.35); }
.btn-primary:hover{ box-shadow: 0 12px 28px rgba(22,163,74,.5); filter:brightness(1.04); }
.btn-primary:disabled{ opacity:.5; cursor:not-allowed; box-shadow:none; }
.btn-ghost{ background: var(--surface-2); color: var(--text); border:1px solid var(--border); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn-danger{ background: rgba(255,92,122,.12); color: var(--danger); }
.btn-danger:hover{ background: rgba(255,92,122,.2); }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 14px; font-size:13px; border-radius:11px; }

.my-list{ display:flex; flex-direction:column; gap:10px; }
.my-item{
  display:flex; gap:12px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px; cursor:pointer;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-spring), box-shadow .2s;
  animation: cardIn .4s var(--ease) both;
}
.my-item:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.my-thumb{
  width:64px; height:64px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:26px; position:relative;
}
.my-info{ flex:1; min-width:0; }
.my-title{ font-weight:700; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.my-price{ font-weight:800; margin-top:2px; }
.my-status{
  display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700;
  margin-top:6px; padding:3px 9px; border-radius:999px;
}
.my-status.active{ background: rgba(34,197,139,.14); color: var(--success); }
.my-status.sold{ background: rgba(166,162,188,.16); color: var(--text-dim); }
.my-actions{ display:flex; flex-direction:column; gap:6px; justify-content:center; }
.icon-action{
  width:32px; height:32px; border-radius:10px; border:1px solid var(--border); background: var(--surface-2);
  color: var(--text-dim); cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: color .2s, border-color .2s, transform .15s var(--ease-spring);
}
.icon-action:hover{ color: var(--accent); border-color: var(--accent); }
.icon-action.danger:hover{ color: var(--danger); border-color: var(--danger); }
.icon-action:active{ transform: scale(.88); }
.icon-action svg{ width:15px; height:15px; }

.profile-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 20px 20px; text-align:center; margin-top:6px; box-shadow: var(--shadow-sm);
  position:relative; overflow:hidden;
}
.profile-card::before{
  content:""; position:absolute; top:-60px; left:-30px; width:200px; height:140px;
  background: var(--accent-grad); opacity:.15; filter: blur(30px); border-radius:50%;
}

/* Кликабельный аватар профиля */
.profile-avatar-btn{
  border:none; background:none; padding:0; cursor:pointer; display:inline-block;
  position:relative; z-index:1;
}
.profile-avatar{
  width:84px; height:84px; border-radius:50%; margin:0 auto 14px;
  background: var(--accent-grad); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:40px; position:relative; z-index:1;
  box-shadow: 0 10px 26px rgba(22,163,74,.28);
  border:1px solid var(--border); overflow:hidden;
  transition: transform .2s var(--ease-spring);
}
.profile-avatar-btn:hover .profile-avatar{ transform: scale(1.04); }
.profile-avatar.has-img{ background:#fff; padding:0; }
.profile-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.profile-logo-badge{
  width:84px; height:84px; border-radius:50%; margin:0 auto 14px;
  background: var(--surface); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(22,163,74,.28); position:relative; z-index:1;
  border: 1px solid var(--border);
}
.profile-logo-img{ width:56px; height:56px; object-fit:contain; }
.profile-name-btn{
  border:none; background:none; cursor:pointer; font:inherit; color:inherit;
  display:inline-flex; align-items:center; gap:7px; padding:2px 4px;
  position:relative; z-index:1;
}
.name-edit-pencil{ font-size:12px; color: var(--text-faint); }
.profile-name-btn:hover .name-edit-pencil{ color: var(--accent); }

.row-value{
  font-size:13px; font-weight:600; color: var(--text-faint);
  max-width:52%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.avatar-preview-big{
  width:96px; height:96px; border-radius:50%; margin:4px auto 18px;
  background: var(--accent-grad); background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center; font-size:44px;
  box-shadow: 0 12px 30px rgba(22,163,74,.35);
}
.avatar-emoji-grid{ display:grid; grid-template-columns: repeat(6, 1fr); gap:8px; }
.avatar-emoji-opt{
  aspect-ratio:1/1; border-radius:14px; border:1px solid var(--border); background: var(--surface);
  display:flex; align-items:center; justify-content:center; font-size:21px; cursor:pointer;
  transition: all .18s var(--ease);
}
.avatar-emoji-opt:hover{ border-color: var(--accent); transform: translateY(-2px); }
.avatar-emoji-opt.active{ border-color:transparent; background: var(--accent-grad); box-shadow: 0 6px 14px rgba(22,163,74,.35); }

.profile-name{ font-weight:800; font-size:19px; position:relative; z-index:1; }
.profile-meta{ display:flex; align-items:center; justify-content:center; gap:6px; margin-top:6px; font-size:13px; color: var(--text-dim); position:relative; z-index:1; }
.stars{ color:#FFB020; letter-spacing:1px; font-size:13px; }
.profile-city{ margin-top:4px; font-size:12.5px; color: var(--text-faint); position:relative; z-index:1; }
.profile-stats{ display:flex; margin-top:20px; border-top:1px solid var(--border); padding-top:16px; position:relative; z-index:1; }
.stat{ flex:1; display:flex; flex-direction:column; gap:2px; }
.stat b{ font-size:17px; font-weight:800; }
.stat span{ font-size:11.5px; color: var(--text-faint); font-weight:600; }

.settings-list{ margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.settings-row{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--surface); border:1px solid var(--border); border-radius: 16px;
  padding: 13px 16px; font-size:14.5px; font-weight:600;
}
.settings-row-btn{ width:100%; border:1px solid var(--border); color: var(--text); cursor:pointer; transition: border-color .2s, transform .15s; text-decoration:none; }
.settings-row-btn:hover{ border-color: var(--accent); }
.settings-row-btn:active{ transform: scale(.98); }
.settings-row.settings-row-danger{ color: var(--danger); }
.settings-row.settings-row-danger:hover{ border-color: var(--danger); }
.settings-row.settings-row-danger .chev{ color: var(--danger); opacity:.6; }

.sponsor-card{ margin-top:16px; border:1px solid var(--border); border-radius:18px; background: var(--surface-2); padding:14px; }
.sponsor-card h3{ margin:0 0 10px; font-size:17px; }
.sponsor-card .sponsor-intro{ color: var(--text-dim); font-size:13px; line-height:1.5; margin-bottom:12px; }
.sponsor-meta{ display:flex; flex-direction:column; gap:8px; margin:10px 0 14px; font-size:13px; }
.sponsor-meta div{ display:flex; justify-content:space-between; gap:10px; }
.sponsor-meta b{ font-weight:700; }
.sponsor-form{ display:flex; flex-direction:column; gap:10px; }
.sponsor-form input, .sponsor-form textarea{ width:100%; border-radius:12px; border:1px solid var(--border); background: var(--surface); color: var(--text); padding:10px 12px; font: inherit; }
.sponsor-form textarea{ min-height:82px; resize:vertical; }
.sponsor-form .sponsor-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.sponsor-form .sponsor-actions a, .sponsor-form .sponsor-actions button{ flex:1; min-width:120px; }
.sponsor-preview{ margin-top:10px; }
.sponsor-preview img{ width:100%; max-height:180px; object-fit:cover; border-radius:12px; border:1px solid var(--border); }

.settings-row-left{ display:flex; align-items:center; gap:11px; }
.settings-icon{ font-size:17px; }
.chev{ color: var(--text-faint); font-size:18px; }
.profile-footnote{ text-align:center; color: var(--text-faint); font-size:11.5px; margin: 22px 10px 6px; line-height:1.5; }

.switch{ position:relative; display:inline-block; width:44px; height:26px; }
.switch input{ opacity:0; width:0; height:0; position:absolute; }
.switch-track{
  position:absolute; inset:0; border-radius:999px; background: var(--border); cursor:pointer;
  transition: background .3s var(--ease);
}
.switch-thumb{
  position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%;
  background:#fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .32s var(--ease-spring);
}
.switch input:checked + .switch-track{ background: var(--accent-grad); }
.switch input:checked + .switch-track .switch-thumb{ transform: translateX(18px); }

.tab-bar{
  position:absolute; left:0; right:0; bottom:0; z-index:20;
  display:flex; align-items:flex-end; justify-content:space-around;
  padding: 8px 6px calc(10px + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--border);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.tab-btn{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; color: var(--text-faint); cursor:pointer;
  padding: 6px 2px; border-radius:12px; position:relative;
  transition: color .22s var(--ease), transform .18s var(--ease-spring);
}
.tab-btn span{ font-size:10.5px; font-weight:700; }
.tab-btn svg{ transition: transform .3s var(--ease-spring); }
.tab-btn:hover{ color: var(--text-dim); }
.tab-btn:active{ transform: scale(.9); }
.tab-btn.active{ color: var(--accent); }
.tab-btn.active svg{ transform: translateY(-1px) scale(1.08); }
.tab-btn.active::after{
  content:""; position:absolute; top:-2px; width:4px; height:4px; border-radius:50%;
  background: var(--accent);
}

.tab-btn-add{ flex: .9; }
.add-fab{
  width:48px; height:48px; border-radius:16px;
  background: var(--accent-grad); color:#fff; font-size:26px; font-weight:400;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 22px rgba(22,163,74,.45);
  transform: translateY(-7px);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.tab-btn-add:hover .add-fab{ transform: translateY(-9px) scale(1.06) rotate(90deg); }
.tab-btn-add:active .add-fab{ transform: translateY(-4px) scale(.92) rotate(90deg); }

.screen-stack{ position:absolute; inset:0; pointer-events:none; z-index:30; }
.screen{
  position:absolute; inset:0; background: var(--bg);
  display:flex; flex-direction:column;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  pointer-events:auto;
  overflow:hidden;
}
.screen.enter{ transform: translateX(0); }
.screen.leaving{ transform: translateX(100%); }

.screen-header{
  display:flex; align-items:center; gap:10px;
  padding: calc(16px + var(--safe-top)) 16px 12px; flex-shrink:0;
  background: var(--surface); border-bottom:1px solid var(--border);
}
@media (min-width:560px){ .screen-header{ padding-top: 46px; } }
.back-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background: var(--surface-2);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text); flex-shrink:0;
  transition: transform .15s var(--ease-spring), border-color .2s;
}
.back-btn:hover{ border-color: var(--accent); color: var(--accent); }
.back-btn:active{ transform: scale(.88) translateX(-2px); }
.screen-title{ font-weight:800; font-size:16.5px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.screen-body{ flex:1; overflow-y:auto; padding: 16px 16px calc(24px + var(--safe-bottom)); }

.pd-gallery{
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center; font-size:88px;
  margin-bottom:16px; box-shadow: var(--shadow-md);
}
.pd-gallery span{ filter: drop-shadow(0 10px 16px rgba(0,0,0,.18)); animation: floatIcon 3.2s ease-in-out infinite; }
@keyframes floatIcon{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
.pd-top-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.pd-price{ font-size:25px; font-weight:800; letter-spacing:-.4px; }
.pd-condition{ display:inline-block; margin-top:6px; font-size:12px; font-weight:700; color: var(--accent); background: var(--accent-soft); padding:4px 10px; border-radius:999px; }
.pd-title{ font-size:17px; font-weight:700; margin: 12px 0 4px; line-height:1.35; }
.pd-meta{ font-size:12.5px; color: var(--text-faint); display:flex; gap:10px; align-items:center; margin-bottom:16px; flex-wrap:wrap; }
.pd-desc{ font-size:14px; color: var(--text-dim); line-height:1.6; margin-bottom:20px; }
.pd-desc h4{ font-size:13px; color:var(--text); margin: 0 0 6px; }

/* Счётчик просмотров и лайк рядом с ним */
.pd-meta-views{ display:inline-flex; align-items:center; gap:3px; }
.pd-meta-views svg{ flex-shrink:0; }
.pd-meta-fav{
  display:inline-flex; align-items:center; gap:3px;
  border:none; background:none; padding:0; margin:0;
  font: inherit; font-size:12.5px; font-weight:600; color: var(--text-faint);
  cursor:pointer; transition: color .18s;
}
.pd-meta-fav svg{ fill:none; stroke: currentColor; stroke-width:1.8; }
.pd-meta-fav.active{ color: var(--danger); }
.pd-meta-fav.active svg{ fill: var(--danger); stroke: var(--danger); }
.pd-meta-fav.pop svg{ animation: favPop .45s var(--ease-spring); }

.seller-card{
  display:flex; align-items:center; gap:12px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-md); padding:14px; cursor:pointer; transition: border-color .2s, transform .2s var(--ease-spring);
}
.seller-card:hover{ border-color: var(--accent); transform: translateY(-2px); }
.seller-avatar{ width:46px; height:46px; border-radius:50%; background: var(--accent-grad); display:flex; align-items:center; justify-content:center; font-size:21px; flex-shrink:0; overflow:hidden; }
.avatar-img{ width:100%; height:100%; object-fit:cover; border-radius:50%; background:#fff; }
.seller-avatar.has-img, .seller-hero-avatar.has-img, .chat-list-avatar.has-img{ background:#fff; padding:0; overflow:hidden; border:1px solid var(--border); }

.seller-info{ flex:1; min-width:0; }
.seller-name{ font-weight:700; font-size:14px; display:flex; align-items:center; gap:5px; }
.verified-badge{ color:#fff; background: var(--success); width:15px; height:15px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:9px; flex-shrink:0; }
.seller-rating{ font-size:12px; color: var(--text-dim); margin-top:2px; }

.pd-actions{ display:flex; gap:8px; margin-top:18px; align-items:stretch; }
.pd-actions .btn{
  flex:1; min-width:0; height:48px; padding:0 10px;
  font-size:14px; gap:7px;
  white-space:nowrap; overflow:hidden;
}
.pd-actions .btn svg{ flex-shrink:0; width:17px; height:17px; }

.btn-call{
  background: var(--accent-soft); color: var(--accent);
  border:1px solid transparent;
}
.btn-call svg{ stroke: currentColor; }
.btn-call:hover{ border-color: var(--accent); transform: translateY(-1px); }

.btn-whatsapp{
  background: #25D366; color:#fff;
  box-shadow: 0 8px 20px rgba(37,211,102,.32);
}
.btn-whatsapp:hover{ filter: brightness(1.05); box-shadow: 0 10px 24px rgba(37,211,102,.45); transform: translateY(-1px); }
.btn-whatsapp svg{ fill: currentColor; stroke:none; }

.fav-square{
  flex:0 0 48px; width:48px; height:48px; border-radius:14px;
  border:1px solid var(--border); background: var(--surface-2); color: var(--text-faint);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: color .2s, border-color .2s, background .2s, transform .18s var(--ease-spring);
}
.fav-square:hover{ border-color: var(--danger); color: var(--danger); }
.fav-square:active{ transform: scale(.9); }
.fav-square.active{ color: var(--danger); border-color: transparent; background: rgba(255,92,122,.12); }
.fav-square.active svg{ fill: var(--danger); stroke: var(--danger); }
.fav-square.pop svg{ animation: favPop .45s var(--ease-spring); }

.seller-hero{ text-align:center; padding: 8px 0 18px; }
.seller-hero-avatar{ width:82px; height:82px; border-radius:50%; background: var(--accent-grad); font-size:36px; display:flex; align-items:center; justify-content:center; margin: 0 auto 12px; box-shadow: 0 10px 26px rgba(22,163,74,.35); overflow:hidden; }
.seller-hero-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.seller-hero-name{ font-weight:800; font-size:19px; display:flex; align-items:center; justify-content:center; gap:6px; }
.seller-hero-about{ font-size:13px; color: var(--text-dim); margin-top:6px; max-width:280px; margin-inline:auto; }
.review-item{ padding:14px 0; border-bottom:1px solid var(--border); }
.review-item:last-child{ border-bottom:none; }
.review-top{ display:flex; align-items:center; gap:8px; }
.review-avatar{ width:30px; height:30px; border-radius:50%; background: var(--surface-2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:15px; }
.review-name{ font-weight:700; font-size:13.5px; flex:1; }
.review-stars{ color:#FFB020; font-size:12px; }
.review-text{ font-size:13.5px; color: var(--text-dim); margin: 8px 0 2px; line-height:1.5; }
.review-time{ font-size:11px; color: var(--text-faint); }

.chat-list-item{
  display:flex; gap:12px; align-items:center; padding:12px 4px; border-radius:16px; cursor:pointer;
  transition: background .2s;
}
.chat-list-item:hover{ background: var(--surface-2); }
.chat-list-avatar{ width:48px; height:48px; border-radius:50%; background: var(--accent-grad); display:flex; align-items:center; justify-content:center; font-size:21px; flex-shrink:0; position:relative; overflow:hidden; }
.chat-list-avatar img{ width:100%; height:100%; object-fit:cover; }
.chat-unread-dot{ position:absolute; top:-2px; right:-2px; width:12px; height:12px; border-radius:50%; background: var(--danger); border:2px solid var(--bg); }
.chat-list-info{ flex:1; min-width:0; }
.chat-list-name{ font-weight:700; font-size:14px; }
.chat-list-preview{ font-size:12.5px; color: var(--text-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }
.chat-list-time{ font-size:11px; color: var(--text-faint); flex-shrink:0; }

.chat-screen-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.bubble{ max-width:75%; padding:10px 14px; border-radius:18px; font-size:13.5px; line-height:1.45; animation: bubbleIn .3s var(--ease); }
@keyframes bubbleIn{ from{ opacity:0; transform: translateY(8px) scale(.96); } to{ opacity:1; transform:none; } }
.bubble.them{ align-self:flex-start; background: var(--surface); border:1px solid var(--border); border-bottom-left-radius:4px; }
.bubble.me{ align-self:flex-end; background: var(--accent-grad); color:#fff; border-bottom-right-radius:4px; }
.bubble-time{ font-size:10px; opacity:.7; margin-top:4px; display:block; text-align:right; }
.typing-indicator{ align-self:flex-start; display:flex; gap:4px; padding:12px 16px; background:var(--surface); border:1px solid var(--border); border-radius:18px; border-bottom-left-radius:4px; }
.typing-indicator span{ width:6px; height:6px; border-radius:50%; background: var(--text-faint); animation: typingBounce 1.2s infinite; }
.typing-indicator span:nth-child(2){ animation-delay:.15s; }
.typing-indicator span:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform: translateY(0); opacity:.5; } 30%{ transform: translateY(-4px); opacity:1; } }

.chat-input-row{ display:flex; gap:8px; padding: 10px 16px calc(14px + var(--safe-bottom)); background: var(--surface); border-top:1px solid var(--border); flex-shrink:0; }
.chat-input-row input{
  flex:1; border:1px solid var(--border); background: var(--surface-2); border-radius:20px; padding:11px 16px;
  font-size:14px; color:var(--text); outline:none; transition: border-color .2s;
}
.chat-input-row input:focus{ border-color: var(--accent); }
.send-btn{
  width:42px; height:42px; border-radius:50%; background: var(--accent-grad); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition: transform .18s var(--ease-spring);
}
.send-btn:active{ transform: scale(.85); }
.send-btn svg{ stroke:#fff; }

.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:13px; font-weight:700; margin-bottom:8px; color: var(--text); }
.form-hint{ font-size:11.5px; color: var(--text-faint); margin-top:6px; }
.label-opt{ font-size:11px; font-weight:600; color: var(--text-faint); background: var(--surface-2, rgba(127,127,127,.12)); padding:2px 7px; border-radius:8px; margin-left:6px; vertical-align:middle; }
.form-input, .form-textarea, .form-select{
  width:100%; border:1px solid var(--border); background: var(--surface); border-radius:14px;
  padding:13px 15px; font-size:14.5px; color: var(--text); outline:none; font-family:inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus{ border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-textarea{ resize:vertical; min-height:90px; line-height:1.5; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.photo-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:9px; }
.photo-slot{
  aspect-ratio:1/1; border-radius:14px; border:1.5px dashed var(--border); background: var(--surface-2);
  display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; overflow:hidden;
  transition: border-color .2s, transform .18s var(--ease-spring);
  color: var(--text-faint); font-size:22px;
}
.photo-slot:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.photo-slot img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.photo-remove{
  position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%; background:rgba(0,0,0,.55);
  color:#fff; border:none; font-size:10px; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2;
}

.category-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:8px; }
.category-opt{
  border:1px solid var(--border); background: var(--surface); border-radius:14px; padding:10px 6px;
  display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; font-size:11px; font-weight:600; color: var(--text-dim);
  transition: all .2s var(--ease);
}
.category-opt span.emo{ font-size:19px; }
.category-opt:hover{ border-color: var(--accent); }
.category-opt.active{ border-color: transparent; background: var(--accent-grad); color:#fff; }

.form-picker{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  border:1px solid var(--border); background: var(--surface); border-radius:14px;
  padding:13px 15px; font-size:14.5px; color: var(--text); font-family:inherit; font-weight:600;
  cursor:pointer; text-align:left; transition: border-color .2s, transform .15s var(--ease-spring);
}
.form-picker:hover{ border-color: var(--accent); }
.form-picker:active{ transform: scale(.99); }
.form-picker .fp-left{ display:flex; align-items:center; gap:9px; min-width:0; }
.form-picker .fp-emo{ font-size:15px; }

.cond-toggle{ display:flex; gap:8px; }
.cond-toggle button{
  flex:1; padding:11px; border-radius:14px; border:1px solid var(--border); background: var(--surface);
  font-size:13.5px; font-weight:600; color: var(--text-dim); cursor:pointer; transition: all .2s var(--ease);
}
.cond-toggle button.active{ background: var(--accent-grad); color:#fff; border-color:transparent; }

.sheet-overlay{
  position:absolute; inset:0; background: var(--overlay); z-index:40;
  opacity:0; pointer-events:none; transition: opacity .3s var(--ease);
}
.sheet-overlay.open{ opacity:1; pointer-events:auto; }
.sheet{
  position:absolute; left:0; right:0; bottom:0; background: var(--surface);
  border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + var(--safe-bottom));
  max-height: 82%; overflow-y:auto;
  transform: translateY(100%); transition: transform .38s var(--ease-spring);
  box-shadow: 0 -20px 50px rgba(0,0,0,.25);
}
.sheet-overlay.open .sheet{ transform: translateY(0); }
.sheet-handle{ width:38px; height:4px; background: var(--border); border-radius:99px; margin: 4px auto 14px; }
.sheet-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.sheet-header h3{ margin:0; font-size:17px; font-weight:800; }
.sheet-header-left{ display:flex; align-items:center; gap:8px; min-width:0; }
.sheet-header-left h3{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#locationBackBtn{ font-size:20px; }
.filter-block{ margin-bottom:20px; }
.filter-block label{ display:block; font-size:12.5px; font-weight:700; color: var(--text-dim); margin-bottom:9px; text-transform:uppercase; letter-spacing:.3px; }
.price-inputs{ display:flex; align-items:center; gap:10px; color: var(--text-faint); }
.price-inputs input{
  flex:1; border:1px solid var(--border); background: var(--surface-2); border-radius:12px; padding:11px 13px;
  font-size:14px; color: var(--text); outline:none;
}
.price-inputs input:focus{ border-color: var(--accent); }
.pill-group{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  padding:9px 14px; border-radius:999px; border:1px solid var(--border); background: var(--surface-2);
  font-size:13px; font-weight:600; color: var(--text-dim); cursor:pointer; transition: all .2s var(--ease);
}
.pill:hover{ border-color: var(--accent); }
.pill.active{ background: var(--accent-grad); color:#fff; border-color:transparent; }
.sheet-footer{ display:flex; gap:10px; margin-top:6px; }
.sheet-footer .btn{ flex:1; }

.toast{
  position:absolute; left:50%; bottom:96px; translate:-50% 16px; z-index:60;
  background: #1B1730; color:#fff; padding:12px 20px; border-radius:14px; font-size:13.5px; font-weight:600;
  box-shadow: var(--shadow-lg); opacity:0; pointer-events:none; display:flex; align-items:center; gap:8px;
  transition: opacity .3s var(--ease), translate .3s var(--ease); white-space:nowrap;
}
.toast.show{ opacity:1; translate:-50% 0; }

/* ───────── PWA install banner ───────── */
.install-banner{
  position:absolute; left:12px; right:12px; bottom: calc(90px + var(--safe-bottom));
  z-index:55; display:flex; align-items:center; gap:10px;
  background: var(--surface); border:1px solid var(--border);
  border-radius: 18px; padding: 10px 12px;
  box-shadow: var(--shadow-lg);
  animation: installBannerIn .45s var(--ease-spring) both;
}
@keyframes installBannerIn{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform:none; }
}
.install-banner[hidden]{ display:none; }
.install-banner-icon{
  width:40px; height:40px; border-radius:12px; flex-shrink:0;
  background: var(--accent-soft); display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.install-banner-icon img{ width:28px; height:28px; object-fit:contain; }
.install-banner-text{ flex:1; min-width:0; }
.install-banner-title{
  font-size:13.5px; font-weight:800; color: var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.install-banner-sub{
  font-size:11.5px; color: var(--text-dim); margin-top:1px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.install-banner-btn{
  flex-shrink:0; border:none; border-radius:12px; padding:9px 14px;
  background: var(--accent-grad); color:#fff; font-weight:700; font-size:12.5px;
  cursor:pointer; font-family:inherit;
  box-shadow: 0 6px 16px rgba(22,163,74,.35);
  transition: transform .15s var(--ease-spring), filter .2s;
}
.install-banner-btn:active{ transform: scale(.94); }
.install-banner-btn:hover{ filter: brightness(1.05); }
.install-banner-close{
  flex-shrink:0; width:26px; height:26px; border-radius:50%;
  border:none; background: var(--surface-2); color: var(--text-dim);
  font-size:12px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.install-banner-close:active{ transform: scale(.9); }

.skeleton{
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--border) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer{ from{ background-position: 150% 0; } to{ background-position: -50% 0; } }

.splash{
  position:fixed; inset:0; z-index:1000;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background: linear-gradient(160deg, #1BB35A 0%, #16A34A 45%, #0D7C3B 100%);
  overflow:hidden;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.splash-glow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.28), transparent 70%) 20% 18%/60% 55% no-repeat,
    radial-gradient(closest-side, rgba(190,255,215,.22), transparent 70%) 85% 80%/65% 60% no-repeat;
  animation: splashDrift 9s ease-in-out infinite alternate;
}
@keyframes splashDrift{ from{ transform: translate3d(-2%,-2%,0) scale(1); } to{ transform: translate3d(3%,3%,0) scale(1.12); } }

.splash-inner{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; width:min(320px, 78vw); }

.splash-logo-card{
  width:96px; height:96px; border-radius:26px; background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 24px 50px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.35);
  animation: splashPop .8s var(--ease-spring) both, splashFloat 3.4s ease-in-out 1s infinite;
}
.splash-logo-card img{ width:66px; height:auto; }
@keyframes splashPop{ 0%{ opacity:0; transform: scale(.55) translateY(18px); } 100%{ opacity:1; transform: scale(1) translateY(0); } }
@keyframes splashFloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }

.splash-wordmark{
  width:132px; height:auto; margin-top:24px;
  animation: splashFade .7s var(--ease) .28s both;
}
@keyframes splashFade{ from{ opacity:0; transform: translateY(12px); } to{ opacity:1; transform:none; } }

.splash-progress{
  width:190px; height:4px; border-radius:99px; margin-top:30px; overflow:hidden;
  background: rgba(255,255,255,.28);
  animation: splashFade .7s var(--ease) .45s both;
}
.splash-progress-bar{
  height:100%; width:0%; border-radius:99px;
  background: linear-gradient(90deg, #fff, #D8FFE8);
  box-shadow: 0 0 12px rgba(255,255,255,.7);
  transition: width .45s var(--ease);
}
.splash-status{
  margin-top:14px; font-size:12.5px; font-weight:600; letter-spacing:.2px;
  color: rgba(255,255,255,.92); min-height:17px;
  animation: splashFade .7s var(--ease) .55s both;
}
.splash-foot{
  position:absolute; bottom: calc(26px + var(--safe-bottom)); z-index:1;
  font-size:11.5px; font-weight:600; color: rgba(255,255,255,.7);
  animation: splashFade .8s var(--ease) .8s both;
}

.auth-screen{
  position:fixed; inset:0; z-index:900;
  display:none; flex-direction:column;
  background: var(--bg);
}
.auth-screen.show{ display:flex; animation: authIn .45s var(--ease) both; }
@keyframes authIn{ from{ opacity:0; } to{ opacity:1; } }

.auth-close{
  position:absolute; top: calc(14px + var(--safe-top)); right:14px; z-index:2;
  width:36px; height:36px; border-radius:50%; border:none;
  background: rgba(255,255,255,.22); color:#fff; font-size:17px; line-height:1;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.auth-close:active{ background: rgba(255,255,255,.34); }

.auth-hero{
  flex:0 0 auto; padding: calc(58px + var(--safe-top)) 24px 54px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(160deg, #1BB35A 0%, #16A34A 55%, #0D7C3B 100%);
  border-radius: 0 0 30px 30px;
}
.auth-logo{ width:172px; height:auto; animation: splashFade .6s var(--ease) .1s both; }

.auth-sheet{
  flex:1; margin-top:-16px; padding: 26px 22px calc(24px + var(--safe-bottom));
  background: var(--bg); border-radius: 26px 26px 0 0;
  animation: authSheetUp .5s var(--ease) .12s both;
  overflow-y:auto;
}
@keyframes authSheetUp{ from{ opacity:0; transform: translateY(22px); } to{ opacity:1; transform:none; } }
.auth-title{ margin:0; font-size:22px; font-weight:800; letter-spacing:-.4px; }
.auth-sub{ margin:8px 0 24px; font-size:13.5px; color: var(--text-dim); line-height:1.5; }
.auth-label{ display:block; font-size:12.5px; font-weight:700; margin-bottom:9px; }

.auth-phone-row{
  display:flex; align-items:center; gap:10px;
  background: var(--surface); border:1.5px solid var(--border); border-radius:16px;
  padding: 4px 14px 4px 14px; height:56px;
  transition: border-color .2s, box-shadow .2s;
}
.auth-phone-row.focus{ border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.auth-phone-row.invalid{ border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,92,122,.14); }
.auth-prefix{
  font-size:16px; font-weight:800; color: var(--text); flex-shrink:0;
  padding-right:11px; border-right:1px solid var(--border); line-height:1.2;
  display:flex; align-items:center; gap:4px;
  background:none; border-top:none; border-left:none; border-bottom:none; cursor:pointer;
  font-family:inherit; -webkit-tap-highlight-color:transparent;
}
.auth-prefix .chev{ font-size:13px; margin-left:-1px; }
.auth-prefix:active{ opacity:.65; }
.auth-phone-row input{
  flex:1; min-width:0; border:none; outline:none; background:transparent;
  font-size:18px; font-weight:700; letter-spacing:.6px; color: var(--text); font-family:inherit;
}
.auth-phone-row input::placeholder{ color: var(--text-faint); font-weight:600; letter-spacing:.4px; }

.auth-error{ min-height:18px; margin-top:8px; font-size:12.5px; font-weight:600; color: var(--danger); }

.auth-submit{ position:relative; height:54px; font-size:15.5px; margin-top:6px; }
.auth-submit:disabled{ opacity:.45; cursor:not-allowed; box-shadow:none; }
.auth-btn-spinner{
  display:none; width:19px; height:19px; border-radius:50%;
  border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff;
  animation: spin .7s linear infinite;
}
.auth-submit.loading .auth-btn-label{ display:none; }
.auth-submit.loading .auth-btn-spinner{ display:block; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.auth-note{ margin-top:18px; font-size:11.5px; line-height:1.55; color: var(--text-faint); text-align:center; }

.auth-code-row input{ text-align:center; letter-spacing:9px; font-size:22px; font-weight:800; }
.auth-code-actions{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; }
.auth-link-btn{
  background:none; border:none; padding:6px 2px; margin:0;
  font-size:12.5px; font-weight:700; color: var(--accent); cursor:pointer; font-family:inherit;
}
.auth-link-btn:disabled{ color: var(--text-faint); cursor:default; }
#recaptchaContainer{ position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

@keyframes appHeaderIn{
  from{ opacity:0; transform: translateY(-22px); }
  to{ opacity:1; transform:none; }
}
@keyframes appMainIn{
  from{ opacity:0; transform: translateY(18px); }
  to{ opacity:1; transform:none; }
}
@keyframes appBarIn{
  from{ opacity:0; transform: translateY(26px); }
  to{ opacity:1; transform:none; }
}
.app-frame.entering .app-header{ animation: appHeaderIn .6s var(--ease) both; }
.app-frame.entering .app-main{ animation: appMainIn .62s var(--ease) .07s both; }
.app-frame.entering .tab-bar{ animation: appBarIn .55s var(--ease-spring) .14s both; }
.app-frame.entering .card{ animation: cardIn .5s var(--ease) both; }
.app-frame.entering .card:nth-child(1){ animation-delay: .20s; }
.app-frame.entering .card:nth-child(2){ animation-delay: .26s; }
.app-frame.entering .card:nth-child(3){ animation-delay: .32s; }
.app-frame.entering .card:nth-child(4){ animation-delay: .38s; }
.app-frame.entering .card:nth-child(5){ animation-delay: .44s; }
.app-frame.entering .card:nth-child(6){ animation-delay: .50s; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* Старые костыли img[src*="nn.png"] и div:has(...) удалены:
   теперь и слайд, и картинка баннера корректно стилизованы выше. */
