/* InnovaAuto public — premium marketplace */

:root {
  --ia-bg: #ffffff;
  --ia-surface: #ffffff;
  --ia-card: #ffffff;
  --ia-border: #dbe2ec;
  --ia-text: #111827;
  --ia-muted: #667085;
  --ia-accent: #3d7eff;
  --ia-accent-hover: #5b92ff;
  --ia-cta: #e63946;
  --ia-cta-hover: #ff4d5c;
  --ia-radius: 14px;
  --ia-radius-lg: 18px;
  --ia-shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --ia-shadow-md: 0 12px 28px rgba(16, 24, 40, 0.1);
  --ia-pro-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #2563eb 100%);
  --ia-pro-gradient-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* FINAL mobile readability pass (all pages, all themes) */
@media (max-width: 991.98px) {
  html[data-bs-theme='light'] body.ia-site {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-site-main,
  html[data-bs-theme='light'] body.ia-site .ia-page-section,
  html[data-bs-theme='light'] body.ia-site .ia-catalog-page-section,
  html[data-bs-theme='light'] body.ia-site .ia-cabinet-page {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  html[data-bs-theme='light'] body.ia-site .text-secondary {
    color: #64748b !important;
  }

  html[data-bs-theme='light'] body.ia-site .form-control,
  html[data-bs-theme='light'] body.ia-site .form-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }

  html[data-bs-theme='light'] body.ia-site .form-control::placeholder {
    color: #94a3b8 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site {
    background: #f3ebd9 !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-site-main,
  html[data-ia-palette='sepia'] body.ia-site .ia-page-section,
  html[data-ia-palette='sepia'] body.ia-site .ia-catalog-page-section,
  html[data-ia-palette='sepia'] body.ia-site .ia-cabinet-page {
    background: #f3ebd9 !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .text-secondary {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .form-control,
  html[data-ia-palette='sepia'] body.ia-site .form-select {
    background: #fffdf7 !important;
    color: #3a3228 !important;
    border-color: #d8c8ae !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .form-control::placeholder {
    color: #9a876f !important;
  }

  html[data-bs-theme='dark'] body.ia-site .form-control,
  html[data-bs-theme='dark'] body.ia-site .form-select {
    background: #131a23 !important;
    color: #e8edf4 !important;
    border-color: #2d3d52 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .form-control::placeholder {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section h2,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .letter-spacing,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brand-card {
    color: #0f172a !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brand-card-count,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .text-secondary {
    color: #64748b !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brand-card-mark {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cat-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cat-label {
    color: #0f172a !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cat-count {
    color: #64748b !important;
  }
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-more {
    color: #2563eb !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section {
    background: #f3ebd9 !important;
    border-color: #d8c8ae !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section .letter-spacing,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section .ia-brand-card {
    color: #3a3228 !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section .ia-brand-card-count,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section .text-secondary {
    color: #6e5f4e !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section .ia-brand-card-mark {
    background: rgba(110, 95, 78, 0.08) !important;
    border-color: rgba(110, 95, 78, 0.2) !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
    box-shadow: 0 10px 20px rgba(58, 50, 40, 0.08) !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-item {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-label {
    color: #3a3228 !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-count {
    color: #6e5f4e !important;
  }
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-more {
    color: #8b5e3c !important;
  }

  .ia-site-header--compact .ia-mobile-header-sell {
    gap: 0.28rem;
  }
  .ia-site-header--compact .ia-mobile-header-sell i {
    font-size: 0.86rem;
    line-height: 1;
  }
}

/* FINAL override (keep at file end): mobile themes must follow selected theme */
@media (max-width: 991.98px) {
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.1) !important;
  }
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search,
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-header-btn {
    background: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: #0f172a !important;
  }
  html[data-bs-theme='light'] body.ia-site .ia-mobile-header-badge {
    border-color: #ffffff !important;
  }
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search-input { color: #0f172a !important; }
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search-input::placeholder { color: #64748b !important; }
  html[data-bs-theme='light'] body.ia-site .ia-mobile-tabbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top-color: rgba(15, 23, 42, 0.1) !important;
  }
  html[data-bs-theme='light'] body.ia-site .ia-mobile-tab { color: #64748b !important; }
  html[data-bs-theme='light'] body.ia-site .ia-footer-pro {
    background: #f8fafc !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-nav {
    background: rgba(255, 251, 242, 0.97) !important;
    border-bottom-color: rgba(110, 95, 78, 0.24) !important;
    box-shadow: 0 1px 12px rgba(58, 50, 40, 0.12) !important;
  }
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search,
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-header-btn {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
    color: #3a3228 !important;
  }
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search-input,
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search-input::placeholder { color: #6e5f4e !important; }
  html[data-ia-palette='sepia'] body.ia-site .ia-mobile-tabbar {
    background: rgba(255, 251, 242, 0.98) !important;
    border-top-color: rgba(110, 95, 78, 0.2) !important;
  }
  html[data-ia-palette='sepia'] body.ia-site .ia-mobile-tab { color: #6e5f4e !important; }
  html[data-ia-palette='sepia'] body.ia-site .ia-footer-pro {
    background: #f3ebd9 !important;
    border-top-color: rgba(110, 95, 78, 0.2) !important;
    color: #3a3228 !important;
  }
}

/* FINAL mobile theme fix: do not force dark for light/sepia */
@media (max-width: 991.98px) {
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.1) !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search,
  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-header-btn {
    background: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: #0f172a !important;
  }
  html[data-bs-theme='light'] body.ia-site .ia-mobile-header-badge {
    border-color: #ffffff !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search-input {
    color: #0f172a !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-site-header--compact .ia-mobile-search-input::placeholder {
    color: #64748b !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-mobile-tabbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top-color: rgba(15, 23, 42, 0.1) !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-mobile-tab {
    color: #64748b !important;
  }

  html[data-bs-theme='light'] body.ia-site .ia-footer-pro {
    background: #f8fafc !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-nav {
    background: rgba(255, 251, 242, 0.97) !important;
    border-bottom-color: rgba(110, 95, 78, 0.24) !important;
    box-shadow: 0 1px 12px rgba(58, 50, 40, 0.12) !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search,
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-header-btn {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search-input,
  html[data-ia-palette='sepia'] body.ia-site .ia-site-header--compact .ia-mobile-search-input::placeholder {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-mobile-tabbar {
    background: rgba(255, 251, 242, 0.98) !important;
    border-top-color: rgba(110, 95, 78, 0.2) !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-mobile-tab {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-site .ia-footer-pro {
    background: #f3ebd9 !important;
    border-top-color: rgba(110, 95, 78, 0.2) !important;
    color: #3a3228 !important;
  }
}

/* Mobile theme parity with desktop: light + sepia overrides */
@media (max-width: 991.98px) {
  html[data-bs-theme='light'] body.ia-site,
  html[data-bs-theme='light'] body.ia-site .ia-site-main {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-page-section,
  html[data-bs-theme='light'] body.ia-page-home .ia-quick-cats,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section,
  html[data-bs-theme='light'] body.ia-page-home .ia-vip-section,
  html[data-bs-theme='light'] body.ia-page-home .ia-home-media,
  html[data-bs-theme='light'] body.ia-page-home .ia-why-section {
    background: #f8fafc !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cat-label,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section h2,
  html[data-bs-theme='light'] body.ia-page-home .ia-page-section h2,
  html[data-bs-theme='light'] body.ia-page-home .ia-page-section .h5 {
    color: #0f172a !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-pop-cats-more,
  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brands-more {
    color: #2563eb !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brand-card,
  html[data-bs-theme='light'] body.ia-page-home .ia-page-section .text-secondary {
    color: #475569 !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-brands-section .ia-brand-card-mark {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
  }

  html[data-bs-theme='light'] body.ia-page-home .ia-listing-card,
  html[data-bs-theme='light'] body.ia-page-home .ia-listing-card-vip,
  html[data-bs-theme='light'] body.ia-page-home .ia-why-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  }

  html[data-ia-palette='sepia'] body.ia-site,
  html[data-ia-palette='sepia'] body.ia-site .ia-site-main {
    background: #f3ebd9 !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-page-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-quick-cats,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-vip-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-why-section {
    background: #f3ebd9 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-label,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-page-section h2 {
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-listing-card,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-listing-card-vip,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-why-card {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.ia-site {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--ia-bg);
  color: var(--ia-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
  overflow-x: hidden;
}

.ia-container,
.container.ia-container {
  width: 100%;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
  padding-right: clamp(1rem, 2.5vw, 2.25rem);
}

/* Узкие формы рядом с .ia-container */
.ia-container.ia-narrow-form {
  max-width: 560px;
}

.ia-page-section {
  width: 100%;
}

/* Header */
.ia-site-header {
  z-index: 1030;
  max-width: 100%;
}

@media (min-width: 992px) {
  .ia-site-header {
    contain: layout style;
    overflow-x: clip;
  }
}

.ia-nav {
  background: var(--ia-surface) !important;
  border-bottom: 1px solid var(--ia-border) !important;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.ia-nav .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 9.5rem;
}

.ia-site.ia-has-logo .ia-nav {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.ia-nav .container {
  row-gap: 0.5rem;
}

.ia-nav-collapse {
  flex-grow: 1;
  align-items: center;
}

@media (min-width: 1200px) {
  .ia-nav-collapse {
    flex-wrap: nowrap !important;
  }
}

.ia-nav-primary {
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

.ia-nav-tools {
  width: 100%;
}

@media (min-width: 1200px) {
  .ia-nav-tools {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center !important;
  }
}

.ia-nav-auth {
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .ia-nav-auth {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
}

.ia-nav-user-btn {
  max-width: 9rem;
}

.ia-nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  color: var(--ia-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ia-nav-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ia-nav-icon-btn.dropdown-toggle::after {
  display: none;
}

.ia-nav-icon-btn:hover {
  color: #1d4ed8;
  border-color: var(--ia-accent);
  background: rgba(61, 126, 255, 0.08);
}

.ia-nav-icon-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
}

.ia-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(145deg, #1e3a8a 0%, var(--ia-accent) 48%, #6d28d9 100%);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ia-brand-wordmark {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(220px, 52vw);
  flex-shrink: 0;
}

.ia-brand-wordmark-innova {
  fill: var(--ia-text);
}

.ia-brand-wordmark-auto {
  fill: url(#iaLogoAccentGrad);
}

.ia-brand-logo {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: min(232px, 52vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  vertical-align: middle;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  outline: none;
  box-shadow: none;
  filter: none;
  flex-shrink: 0;
}

/* Загруженный логотип: без дублирования текста */
.ia-brand-shell--logo .ia-brand-text {
  display: none !important;
}

.ia-brand-shell--logo-failed .ia-brand-text {
  display: inline !important;
}

.ia-brand-shell--logo {
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  line-height: normal;
  background: transparent !important;
}

.ia-brand-shell:not(.ia-brand-shell--logo) .ia-brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991.98px) {
  .ia-brand-wordmark {
    height: 38px;
    max-width: min(190px, 54vw);
  }

  .ia-brand-logo {
    max-height: 42px;
    max-width: min(200px, 54vw);
  }
}

@media (max-width: 575.98px) {
  .ia-brand-wordmark {
    height: 34px;
    max-width: min(160px, 64vw);
  }

  .ia-brand-logo {
    max-height: 36px;
    max-width: min(168px, 64vw);
  }
}

.ia-brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--ia-text) !important;
}

.ia-brand-shell {
  padding: 0.2rem 0.35rem;
  border-radius: 12px;
}

.ia-brand-shell:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* Боло аз ин: .ia-brand-shell--logo:hover бо !important — ин ҷо танҳо агар лозим шавад */
.ia-brand-shell.ia-brand-shell--logo:hover {
  background: rgba(15, 23, 42, 0.05) !important;
  border-radius: 10px;
}

[data-bs-theme='dark'] .ia-brand-shell.ia-brand-shell--logo:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-ia-palette='sepia'] .ia-brand-shell.ia-brand-shell--logo:hover {
  background: rgba(139, 90, 43, 0.08) !important;
}

.navbar-brand:hover .ia-brand-text {
  color: var(--ia-text) !important;
}

.ia-nav .nav-link {
  color: #4b5563 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
}

.ia-nav .nav-link:hover {
  color: #111827 !important;
  background: #eef3ff;
}

.ia-nav .nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(61, 126, 255, 0.12);
}

.ia-mini-search {
  align-items: center;
  background: var(--ia-card);
  border: 1px solid var(--ia-border);
  border-radius: 999px;
  padding: 0.18rem 0.22rem 0.18rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ia-mini-search .form-control {
  background: transparent;
  border: 0;
  color: var(--ia-text);
  border-radius: 999px;
  min-width: 0;
  flex: 1 1 9rem;
  max-width: 240px;
  font-size: 0.875rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  box-shadow: none !important;
}

.ia-mini-search .form-control:focus {
  box-shadow: none !important;
  background: transparent;
}

.ia-mini-search .btn {
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ia-btn-post-listing {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 0;
  background: var(--ia-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ia-btn-post-listing:hover,
.ia-btn-post-listing:focus-visible {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}

.ia-btn-post-listing-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

@media (max-width: 575.98px) {
  .ia-btn-post-listing {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }
}

.ia-fav-hidden-list .list-group-item {
  background: var(--ia-card);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

.ia-catalog-fuzzy-hint {
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: var(--ia-text);
}

.ia-catalog-suggest h2 {
  letter-spacing: 0.06em;
  font-weight: 600;
}

.ia-catalog-suggest-grid {
  margin-top: 0.25rem;
}

.ia-mini-search .form-control::placeholder {
  color: var(--ia-muted);
}

.ia-btn-accent {
  background: var(--ia-accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(61, 126, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ia-btn-accent:hover {
  background: var(--ia-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(61, 126, 255, 0.3);
}

.ia-btn-cta {
  background: linear-gradient(135deg, var(--ia-cta), #b8323f);
  border: none;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}

.ia-btn-cta:hover {
  background: linear-gradient(135deg, var(--ia-cta-hover), var(--ia-cta));
  color: #fff !important;
}

.navbar-toggler-icon {
  filter: none;
}

[data-bs-theme='dark'] .ia-nav .navbar-toggler-icon {
  filter: invert(1) brightness(1.15);
}

.ia-site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Hero */
.ia-hero {
  position: relative;
  overflow: hidden;
}

.ia-hero.ia-hero-premium {
  padding: clamp(1.25rem, 3vw, 2rem) 0 calc(clamp(1.25rem, 2.5vw, 2rem) + 8px);
}

/* Компактный главный баннер: контент ниже и аккуратнее */
.ia-hero-compact {
  min-height: calc(clamp(240px, 36vh, 400px) + 8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + 8px);
}

.ia-hero-compact .ia-hero-premium-inner {
  margin-top: clamp(1.25rem, 5vh, 3.5rem);
}

.ia-hero-compact .ia-hero-premium-title {
  font-size: clamp(1.05rem, 2.6vw, 1.65rem);
  margin-bottom: 0.35rem;
}

.ia-hero-compact .ia-hero-premium-lead {
  font-size: clamp(0.78rem, 1.35vw, 0.9rem);
  margin-bottom: 0.85rem;
  max-width: 32rem;
}

.ia-hero.ia-hero-premium::before {
  display: none;
}

.ia-hero-premium-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #06080c;
  background-image:
    linear-gradient(120deg, rgba(6, 8, 12, 0.88) 0%, rgba(12, 15, 20, 0.75) 45%, rgba(6, 8, 12, 0.9) 100%),
    url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
}

.ia-hero-mobile-banner-bg {
  display: none;
}

.ia-hero-premium-inner {
  position: relative;
  z-index: 1;
}

.ia-hero-premium-title {
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.5rem;
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.ia-hero-premium-lead {
  font-size: clamp(0.9375rem, 1.85vw, 1.1rem);
  color: rgba(232, 234, 239, 0.92);
  margin-bottom: 1.25rem;
  max-width: 36rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.ia-hero-search {
  background: rgba(15, 19, 26, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  margin-top: 5px;
}

.ia-hero-search .form-control,
.ia-hero-search .form-select {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--ia-text);
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  min-height: 30px;
  height: 30px;
  border-radius: 7px;
}

.ia-hero-search .form-control::placeholder {
  font-size: 0.76rem;
}

.ia-hero-search-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(203, 213, 225, 0.85);
  margin-bottom: 0.18rem;
  font-weight: 600;
}

.ia-hero-search-btn {
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.8rem;
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  min-height: 30px;
  height: 30px;
  line-height: 1;
}

@media (max-width: 1199.98px) {
  .ia-hero-search-btn {
    margin-top: 0.25rem;
  }
}

.letter-spacing {
  letter-spacing: 0.08em;
}

/* Popular categories — на всю ширину экрана, крупная сетка */
.ia-quick-cats--bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

.ia-quick-cats--bleed > .ia-container {
  max-width: 100% !important;
  padding-left: clamp(0.75rem, 2.5vw, 2.25rem);
  padding-right: clamp(0.75rem, 2.5vw, 2.25rem);
}

.ia-quick-cats--bleed .ia-pop-cats-panel {
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: clamp(1rem, 2.2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
}

.ia-quick-cats {
  background: var(--ia-bg);
}

.ia-pop-cats-panel {
  background: var(--ia-card);
  border: 1px solid var(--ia-border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: var(--ia-shadow-sm);
}

.ia-pop-cats-panel > .d-flex h2 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ia-text);
}

.ia-pop-cats-more {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ia-pop-cats-more:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

.ia-pop-cats-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1.15rem);
  align-items: stretch;
}

.ia-pop-cats-slider {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  max-width: 100%;
}

.ia-pop-cats-slider::-webkit-scrollbar {
  display: none;
}

.ia-pop-cats-slider > .ia-pop-cats-row,
.ia-pop-cats-slider .ia-pop-cats-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  width: max-content;
  min-width: 100%;
  grid-template-columns: unset;
}

.ia-pop-cats-slider .ia-pop-cats-col {
  flex: 0 0 clamp(6.5rem, 14vw, 10.5rem);
  max-width: clamp(6.5rem, 14vw, 10.5rem);
  scroll-snap-align: start;
}

.ia-pop-cats-col {
  min-width: 0;
  display: flex;
}

.ia-pop-cat-item {
  text-decoration: none;
  color: var(--ia-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem 0.35rem;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.ia-pop-cat-item:hover {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--ia-text);
}

.ia-pop-cat-thumb {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: transparent;
  box-sizing: border-box;
  padding: clamp(6px, 1.4vw, 12px);
  min-height: 0;
  transition: transform 0.25s ease;
}

.ia-pop-cat-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 2 * clamp(6px, 1.4vw, 12px));
  max-height: calc(100% - 2 * clamp(6px, 1.4vw, 12px));
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.09));
  transition: filter 0.25s ease;
}

.ia-pop-cat-item:hover .ia-pop-cat-thumb {
  transform: translateY(-3px);
}

.ia-pop-cat-item:hover .ia-pop-cat-img {
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.12));
}

.ia-pop-cat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--ia-text);
  transition: color 0.2s ease;
}

.ia-pop-cat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}

.ia-pop-cat-count {
  font-size: 0.72rem;
  color: var(--ia-text-muted, #8a93a7);
  line-height: 1.2;
}

.ia-pop-cat-item:hover .ia-pop-cat-label {
  color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
  .ia-pop-cats-more,
  .ia-pop-cat-item,
  .ia-pop-cat-thumb,
  .ia-pop-cat-img,
  .ia-pop-cat-label {
    transition: none;
  }

  .ia-pop-cats-more:hover {
    transform: none;
  }

  .ia-pop-cat-item:hover .ia-pop-cat-thumb {
    transform: none;
  }

  .ia-pop-cat-item:hover .ia-pop-cat-img {
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.09));
  }
}

@media (max-width: 991.98px) {
  .ia-pop-cats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ia-pop-cats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .ia-pop-cat-label {
    font-size: 0.72rem;
  }
}

@media (max-width: 575.98px) {
  .ia-page-home .ia-pop-cats-slider .ia-pop-cats-row {
    gap: 0.45rem;
    width: 100%;
    min-width: 100%;
  }

  .ia-page-home .ia-pop-cats-slider .ia-pop-cats-col {
    flex: 0 0 calc((100% - 0.9rem) / 3);
    max-width: calc((100% - 0.9rem) / 3);
  }

  .ia-page-home .ia-pop-cat-item {
    align-items: stretch;
    justify-content: space-between;
    min-height: 164px;
    padding: 0.52rem 0.46rem 0.42rem;
    border-radius: 12px;
  }

  .ia-page-home .ia-pop-cat-head {
    align-items: flex-start;
    gap: 0.2rem;
  }

  .ia-page-home .ia-pop-cat-label {
    font-size: 0.78rem;
    text-align: left;
    line-height: 1.25;
  }

  .ia-page-home .ia-pop-cat-count {
    font-size: 0.68rem;
  }

  .ia-page-home .ia-pop-cat-thumb {
    aspect-ratio: 16 / 10;
    padding: 0;
    border-radius: 10px;
    margin-top: 0.2rem;
    min-height: 82px;
    overflow: hidden;
  }

  .ia-page-home .ia-pop-cat-img {
    position: static;
    transform: scale(1.28);
    transform-origin: center bottom;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin-left: 0;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* VIP grid */
.ia-vip-section {
  border-top: 1px solid var(--ia-border);
}

.ia-listing-card-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1e2533 0%, #141922 100%);
}

.ia-listing-card-img-wrap .ia-listing-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: unset;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ia-listing-card-img-wrap--square {
  aspect-ratio: 1 / 1;
  background: #eef2f8;
}

.ia-listing-card--catalog .ia-listing-card-img {
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  transform: translateZ(0);
  background: #f3f6fb;
  padding: 4px;
}

.ia-badge-vip-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: auto;
  z-index: 4;
}

.ia-listing-badges-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 1.3rem);
  pointer-events: none;
}

.ia-badge-360 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.32rem 0.58rem;
  border-radius: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  line-height: 1;
}

.ia-badge-360-overlay {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  left: auto;
  z-index: 4;
}

@media (max-width: 575.98px) {
  .ia-badge-360-overlay {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.62rem;
    padding: 0.28rem 0.5rem;
  }
}

/* === Messages page (premium chat) === */
.ia-chat-page {
  --ia-chat-radius: 16px;
  --ia-chat-bg: var(--ia-bg);
  --ia-chat-card: var(--ia-card);
  --ia-chat-border: var(--ia-border);
  --ia-chat-text: var(--ia-text);
  --ia-chat-muted: var(--ia-muted);
  --ia-chat-accent: var(--ia-accent);
  --ia-chat-mine: linear-gradient(135deg, #3d7eff, #6d5cf0);
  --ia-chat-mine-text: #ffffff;
  --ia-chat-theirs: #f4f6fb;
  --ia-chat-theirs-text: #0f172a;
}

.ia-chat-title {
  letter-spacing: -0.01em;
}

.ia-chat-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  height: min(780px, max(460px, calc(100dvh - 11rem)));
  background: transparent;
  min-height: 0;
}

.ia-chat-shell > * {
  min-height: 0;
}

.ia-chat-shell .ia-chat-main.ia-chat-main--active {
  height: 100%;
  max-height: 100%;
}

@media (max-width: 991.98px) {
  .ia-chat-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ia-chat-shell--has-active .ia-chat-sidebar {
    display: none;
  }

  .ia-chat-shell:not(.ia-chat-shell--has-active) .ia-chat-main {
    display: none;
  }

  .ia-chat-main {
    height: clamp(540px, 78vh, 780px);
  }
}

/* Sidebar */
.ia-chat-sidebar {
  background: var(--ia-chat-card);
  border: 1px solid var(--ia-chat-border);
  border-radius: var(--ia-chat-radius);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.ia-chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--ia-chat-border);
}

.ia-chat-sidebar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ia-chat-text);
  letter-spacing: -0.005em;
}

.ia-chat-sidebar-counter {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 126, 255, 0.12);
  color: #2952c6;
}

.ia-chat-thread-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.4rem;
  scrollbar-width: thin;
}

.ia-chat-thread-list::-webkit-scrollbar { width: 8px; }
.ia-chat-thread-list::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.16); border-radius: 6px; }

.ia-chat-thread {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ia-chat-text);
  transition: background 0.18s ease, transform 0.18s ease;
  position: relative;
}

.ia-chat-thread + .ia-chat-thread {
  margin-top: 2px;
}

.ia-chat-thread:hover {
  background: rgba(61, 126, 255, 0.08);
  color: var(--ia-chat-text);
}

.ia-chat-thread.is-active {
  background: rgba(61, 126, 255, 0.14);
  color: var(--ia-chat-text);
}

.ia-chat-thread.is-unread .ia-chat-thread-name,
.ia-chat-thread.is-unread .ia-chat-thread-preview {
  color: var(--ia-chat-text);
  font-weight: 600;
}

.ia-chat-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #3d7eff, #7c3aed 60%, #ec4899);
  box-shadow: 0 4px 12px rgba(61, 126, 255, 0.22);
  text-transform: uppercase;
}

.ia-chat-thread-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.ia-chat-thread-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.ia-chat-thread-row:first-child {
  justify-content: space-between;
}

.ia-chat-thread-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ia-chat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.ia-chat-thread-time {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--ia-chat-muted);
  font-weight: 500;
}

.ia-chat-thread.is-unread .ia-chat-thread-time {
  color: var(--ia-chat-accent);
  font-weight: 600;
}

.ia-chat-thread-listing {
  font-size: 0.75rem;
  color: var(--ia-chat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-chat-thread-preview {
  font-size: 0.82rem;
  color: var(--ia-chat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.ia-chat-thread-preview--muted {
  font-style: italic;
  opacity: 0.7;
}

.ia-chat-thread-prefix {
  color: var(--ia-chat-muted);
  margin-right: 0.2rem;
  font-weight: 500;
}

.ia-chat-thread-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ia-chat-accent);
  color: #fff;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Empty thread list */
.ia-chat-empty-list {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ia-chat-muted);
}

.ia-chat-empty-list-icon,
.ia-chat-placeholder-icon,
.ia-chat-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(61, 126, 255, 0.10);
  color: var(--ia-chat-accent);
  margin-bottom: 0.75rem;
}

.ia-chat-empty-list .ia-chat-empty-title,
.ia-chat-placeholder-title,
.ia-chat-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ia-chat-text);
  margin-bottom: 0.3rem;
}

.ia-chat-empty-list .ia-chat-empty-text,
.ia-chat-placeholder-text,
.ia-chat-empty-text {
  font-size: 0.875rem;
  color: var(--ia-chat-muted);
  max-width: 28rem;
  margin: 0 auto;
}

/* Main chat panel */
.ia-chat-main {
  background: var(--ia-chat-card);
  border: 1px solid var(--ia-chat-border);
  border-radius: var(--ia-chat-radius);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

/* Активный диалог: шапка + скролл сообщений + панель ввода (закреплена внизу) */
.ia-chat-main.ia-chat-main--active {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ia-chat-main.ia-chat-main--active .ia-chat-head {
  flex: 0 0 auto;
}

.ia-chat-main.ia-chat-main--active .ia-chat-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 5.75rem;
}

.ia-chat-main.ia-chat-main--active .ia-chat-composer-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  flex: 0 0 auto;
}

.ia-chat-placeholder {
  margin: auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* Chat head */
.ia-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ia-chat-border);
  background: var(--ia-chat-card);
  z-index: 1;
  flex: 0 0 auto;
}

.ia-chat-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ia-chat-text);
  text-decoration: none;
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .ia-chat-back { display: inline-flex; }
}

.ia-chat-head-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.ia-chat-head-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ia-chat-head-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ia-chat-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-chat-head-sub {
  font-size: 0.78rem;
  color: var(--ia-chat-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-chat-head-listing {
  display: inline-block;
  max-width: 100%;
}

.ia-chat-head-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--ia-chat-border);
  background: transparent;
  color: var(--ia-chat-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.ia-chat-head-action:hover {
  border-color: var(--ia-chat-accent);
  color: var(--ia-chat-accent);
  background: rgba(61, 126, 255, 0.08);
}

@media (max-width: 575.98px) {
  .ia-chat-head-action span { display: none; }
}

/* Chat body / messages */
.ia-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.1rem 0.5rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(61, 126, 255, 0.06), transparent 65%),
    radial-gradient(circle at 82% 88%, rgba(124, 58, 237, 0.05), transparent 60%),
    var(--ia-chat-bg);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
}

.ia-chat-body::-webkit-scrollbar { width: 8px; }
.ia-chat-body::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.16); border-radius: 6px; }

.ia-chat-day-sep {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.5rem;
}

.ia-chat-day-sep span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ia-chat-muted);
  background: var(--ia-chat-card);
  border: 1px solid var(--ia-chat-border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.02em;
}

.ia-chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.ia-chat-msg--mine {
  justify-content: flex-end;
}

.ia-chat-msg--theirs {
  justify-content: flex-start;
}

.ia-chat-msg-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.ia-chat-bubble {
  position: relative;
  max-width: min(78%, 560px);
  padding: 0.55rem 0.85rem 0.45rem;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.ia-chat-msg--mine .ia-chat-bubble {
  background: var(--ia-chat-mine);
  color: var(--ia-chat-mine-text);
  border-bottom-right-radius: 4px;
}

.ia-chat-msg--theirs .ia-chat-bubble {
  background: var(--ia-chat-theirs);
  color: var(--ia-chat-theirs-text);
  border-bottom-left-radius: 4px;
}

.ia-chat-bubble-text {
  white-space: pre-wrap;
}

.ia-chat-bubble-text a {
  color: inherit;
  text-decoration: underline;
}

.ia-chat-bubble-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 500;
  opacity: 0.78;
  float: right;
  margin-left: 0.55rem;
}

.ia-chat-bubble-time {
  letter-spacing: 0.02em;
}

.ia-chat-tick {
  display: inline-flex;
  align-items: center;
  color: var(--ia-chat-muted);
  flex: 0 0 auto;
}

.ia-chat-tick--read {
  color: var(--ia-chat-accent);
}

.ia-chat-msg--mine .ia-chat-bubble-tick {
  color: rgba(255, 255, 255, 0.85);
}

.ia-chat-empty {
  margin: auto;
  padding: 2.5rem 1rem;
  text-align: center;
}

/* Composer */
.ia-chat-composer-wrap {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 4.25rem;
  border-top: 1px solid var(--ia-chat-border);
  background: var(--ia-chat-card);
  position: relative;
  z-index: 20;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ia-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.65rem;
  flex-wrap: nowrap;
  min-height: 3.5rem;
}

/* Панель вложений — скрыта, открывается по кнопке «+» */
.ia-chat-tools-panel {
  display: none;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem 0.25rem;
  border-bottom: 1px solid var(--ia-chat-border);
  background: var(--ia-chat-card);
}

.ia-chat-tools-panel.is-open {
  display: flex;
}

.ia-chat-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--ia-chat-border);
  border-radius: 999px;
  background: var(--ia-chat-bg);
  color: var(--ia-chat-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ia-chat-attach-btn:hover,
.ia-chat-attach-btn.is-open {
  color: var(--ia-chat-accent);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.1);
}

.ia-chat-attach-ico--close {
  display: none;
}

.ia-chat-attach-btn.is-open .ia-chat-attach-ico--plus {
  display: none;
}

.ia-chat-attach-btn.is-open .ia-chat-attach-ico--close {
  display: block;
}

.ia-chat-emoji-panel[hidden],
.ia-chat-tools-panel[hidden],
.ia-chat-voice-rec[hidden] {
  display: none !important;
}

.ia-chat-emoji-panel.is-open {
  display: flex !important;
}

.ia-chat-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--ia-chat-border);
  border-radius: 10px;
  background: var(--ia-chat-bg);
  color: var(--ia-chat-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ia-chat-tool-btn:hover {
  color: var(--ia-chat-accent);
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.ia-chat-tool-btn.is-recording {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.ia-chat-emoji-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.45rem 0.65rem 0.25rem;
  max-height: 7rem;
  overflow-y: auto;
  border-bottom: 1px solid var(--ia-chat-border);
  background: var(--ia-chat-card);
}

.ia-chat-emoji-btn {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem;
  border-radius: 8px;
  cursor: pointer;
}

.ia-chat-emoji-btn:hover {
  background: rgba(59, 130, 246, 0.12);
}

.ia-chat-voice-rec {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.5rem;
  font-size: 0.78rem;
  color: var(--ia-chat-muted);
}

.ia-chat-voice-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  animation: ia-chat-pulse 1s ease-in-out infinite;
}

@keyframes ia-chat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ia-chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.ia-chat-avatar-initials {
  display: block;
}

.ia-chat-bubble-media {
  display: block;
  margin-bottom: 0.35rem;
}

.ia-chat-bubble-media--image img {
  max-width: min(100%, 240px);
  max-height: 220px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.ia-chat-bubble-media--voice audio {
  width: min(100%, 220px);
  max-width: 100%;
  height: 36px;
}

.ia-chat-bubble-file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  max-width: 100%;
}

.ia-chat-bubble-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ia-chat-msg-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ia-chat-muted);
  cursor: pointer;
  opacity: 0.75;
}

.ia-chat-msg-menu-btn:hover {
  opacity: 1;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.ia-chat-msg--mine .ia-chat-msg-menu-btn {
  color: rgba(255, 255, 255, 0.85);
}

.ia-chat-composer .ia-chat-attach-btn {
  order: 1;
}

.ia-chat-composer .ia-chat-input {
  flex: 1 1 8rem;
  min-width: 0;
  width: auto;
  order: 2;
  display: block;
}

.ia-chat-composer .ia-chat-send {
  order: 3;
}

.ia-chat-input {
  flex: 1 1 auto;
  resize: none;
  border: 1px solid var(--ia-chat-border);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  font-size: 0.93rem;
  line-height: 1.4;
  min-height: 2.65rem;
  max-height: 160px;
  background: var(--ia-chat-bg);
  color: var(--ia-chat-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ia-chat-input:focus {
  outline: none;
  border-color: var(--ia-chat-accent);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.18);
}

.ia-chat-send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d7eff, #6d5cf0);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(61, 126, 255, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ia-chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(61, 126, 255, 0.40);
}

@media (max-width: 575.98px) {
  .ia-chat-composer { flex-wrap: nowrap; }
  .ia-chat-send-label { display: none; }
  .ia-chat-send { padding: 0.6rem; }
  .ia-chat-tools-panel {
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
  }
  .ia-chat-tool-btn {
    width: 2.45rem;
    height: 2.45rem;
  }
  .ia-chat-head-action span { display: none; }
}

/* Messages: активный диалог — чат на всю высоту, ввод всегда виден */
body.ia-page-messages.ia-chat-open {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
}

body.ia-page-messages.ia-chat-open > header.ia-site-header {
  flex: 0 0 auto;
}

body.ia-page-messages.ia-chat-open > main.ia-site-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.ia-page-messages.ia-chat-open .ia-footer-pro {
  display: none;
}

body.ia-page-messages.ia-chat-open .ia-chat-page.ia-page-section {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 0.65rem !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

body.ia-page-messages.ia-chat-open .ia-chat-page .container.ia-container {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.ia-page-messages.ia-chat-open .ia-chat-page .ia-chat-title {
  flex: 0 0 auto;
  margin-bottom: 0.5rem;
}

body.ia-page-messages.ia-chat-open .ia-chat-page .alert {
  flex: 0 0 auto;
}

body.ia-page-messages.ia-chat-open .ia-chat-shell--has-active {
  flex: 1 1 0;
  min-height: 0;
  height: 100% !important;
  max-height: 100% !important;
}

body.ia-page-messages.ia-chat-open .ia-chat-main.ia-chat-main--active {
  min-height: 0;
  height: 100% !important;
  max-height: 100% !important;
}

body.ia-page-messages.ia-chat-open .ia-chat-composer-wrap {
  flex-shrink: 0;
  z-index: 30;
}

@media (max-width: 991.98px) {
  body.ia-page-messages.ia-chat-open .ia-mobile-tabbar {
    display: none;
  }

  body.ia-page-messages.ia-chat-open .ia-chat-page .ia-chat-title {
    display: none;
  }

  body.ia-page-messages.ia-chat-open .ia-chat-composer-wrap {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Dark mode */
[data-bs-theme='dark'] .ia-chat-page {
  --ia-chat-card: #161a26;
  --ia-chat-bg: #0e1320;
  --ia-chat-border: rgba(255, 255, 255, 0.08);
  --ia-chat-theirs: rgba(255, 255, 255, 0.08);
  --ia-chat-theirs-text: #e5e7eb;
}

[data-bs-theme='dark'] .ia-chat-thread:hover {
  background: rgba(61, 126, 255, 0.12);
}

[data-bs-theme='dark'] .ia-chat-thread.is-active {
  background: rgba(61, 126, 255, 0.20);
}

[data-bs-theme='dark'] .ia-chat-back {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

[data-bs-theme='dark'] .ia-chat-day-sep span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
}

[data-bs-theme='dark'] .ia-chat-input {
  background: #0e1320;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.10);
}

[data-bs-theme='dark'] .ia-chat-sidebar-counter {
  background: rgba(61, 126, 255, 0.20);
  color: #a8c0ff;
}

/* Account page */
.ia-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d7eff, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  overflow: hidden;
  flex: 0 0 56px;
}

.ia-cabinet-avatar {
  position: relative;
}

.ia-cabinet-avatar--editable {
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.15s ease;
}

.ia-cabinet-avatar--editable:hover {
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.28);
}

.ia-cabinet-avatar--editable:active {
  transform: scale(0.97);
}

.ia-cabinet-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.ia-cabinet-avatar-actions .btn {
  border-radius: 10px;
  font-size: 0.82rem;
}

.ia-nav-user-btn--avatar {
  padding: 2px !important;
  overflow: hidden;
}

.ia-nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* === Card hover photo cycle === */
.ia-card-hover {
  position: relative;
  display: block;
  overflow: hidden;
}

.ia-card-hover .ia-listing-card-img {
  transition: opacity 0.18s ease;
}

.ia-card-hover-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 2;
}

.ia-card-hover.has-hover-thumbs:hover .ia-card-hover-dots,
.ia-card-hover.has-hover-thumbs:focus-within .ia-card-hover-dots {
  opacity: 1;
}

.ia-card-hover-dot {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.18s ease, transform 0.18s ease;
}

.ia-card-hover-dot.is-active {
  background: #fff;
  transform: scaleY(1.4);
}

@media (hover: none) {
  .ia-card-hover-dots { display: none; }
}

/* === Car spec sheet === */
.ia-car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.ia-car-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ia-border);
  border-radius: 12px;
  background: var(--ia-card);
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ia-car-spec-card:hover {
  border-color: rgba(61, 126, 255, 0.35);
  box-shadow: var(--ia-shadow-sm);
}

.ia-car-spec-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 126, 255, 0.1);
  color: var(--ia-accent);
  font-size: 1.05rem;
}

.ia-car-spec-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ia-car-spec-label {
  font-size: 0.78rem;
  color: var(--ia-muted);
  font-weight: 500;
  line-height: 1.25;
}

.ia-car-spec-value {
  font-size: 0.95rem;
  color: var(--ia-text);
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.ia-car-prepay {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ia-car-prepay-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  display: inline-block;
}

[data-bs-theme='dark'] .ia-car-prepay {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}

@media (max-width: 575.98px) {
  .ia-car-specs-grid:not(.ia-car-specs-grid--force-2) {
    grid-template-columns: 1fr;
  }
}

/* === Description with collapse === */
.ia-car-desc-block {
  position: relative;
}

.ia-car-desc {
  position: relative;
  color: var(--ia-muted);
  white-space: pre-wrap;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.ia-car-desc.is-collapsed {
  max-height: 240px;
  overflow: hidden;
}

.ia-car-desc-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--ia-card) 90%);
  pointer-events: none;
  display: none;
}

.ia-car-desc.is-collapsed .ia-car-desc-fade {
  display: block;
}

.ia-car-desc-toggle {
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  color: var(--ia-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ia-car-desc-toggle:hover {
  border-color: var(--ia-accent);
  color: var(--ia-accent);
  background: rgba(61, 126, 255, 0.08);
}

[data-bs-theme='dark'] .ia-car-desc-fade {
  background: linear-gradient(to bottom, rgba(22, 26, 38, 0), #161a26 90%);
}

/* === Car detail header (title + share) === */
.ia-car-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.ia-car-detail-head .ia-car-title {
  flex: 1 1 auto;
  min-width: 0;
}

.ia-car-detail-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.ia-car-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  color: var(--ia-text);
  cursor: pointer;
  flex: 0 0 auto;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ia-car-share-btn:hover {
  color: var(--ia-accent);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.ia-car-share-btn:active {
  transform: scale(0.96);
}

.ia-car-share-btn.is-copied {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.ia-car-share-btn svg {
  display: block;
}

/* —— Поделиться: панель у иконки, только по клику —— */
.ia-car-share-wrap {
  position: relative;
  flex: 0 0 auto;
}

.ia-car-share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ia-car-share-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ia-car-share-flyout {
  position: fixed;
  z-index: 1105;
  width: min(380px, calc(100vw - 16px));
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ia-border, #dbe2ec);
  background: var(--ia-card, #fff);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  max-height: min(85vh, 520px);
  overflow: auto;
}

.ia-car-share-flyout.is-open {
  animation: iaCarShareIn 0.18s ease-out;
}

@keyframes iaCarShareIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ia-car-share-flyout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ia-car-share-flyout__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ia-text);
}

.ia-car-share-flyout__close {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ia-muted, #64748b);
  cursor: pointer;
}

.ia-car-share-flyout__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ia-text);
}

body.ia-car-share-open {
  overflow: hidden;
}

.ia-car-share-native-cta {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .ia-car-share-flyout {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0;
    width: 100% !important;
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    animation: iaCarShareSheetIn 0.22s ease-out;
  }

  @keyframes iaCarShareSheetIn {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

.ia-car-share-preview {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--ia-border, #e2e8f0);
  background: var(--ia-card, #fff);
}

.ia-car-share-preview-icon {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-size: 1.05rem;
}

.ia-car-share-preview-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ia-car-share-preview-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ia-text);
}

.ia-car-share-preview-url {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--ia-muted, #64748b);
  word-break: break-all;
}

.ia-car-share-preview-copy {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ia-muted, #64748b);
  cursor: pointer;
}

.ia-car-share-preview-copy:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #2563eb;
}

.ia-car-share-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  border: 1px solid #f0d060;
  background: #fff8d6;
  color: #3f3f3f;
}

.ia-car-share-notice-icon {
  flex: 0 0 auto;
  color: #ca8a04;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.05rem;
}

.ia-car-share-notice-heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.ia-car-share-notice-line {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #4b5563;
}

.ia-car-share-apps-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ia-muted, #64748b);
}

.ia-car-share-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.25rem;
}

.ia-car-share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0.2rem;
  text-decoration: none !important;
  color: var(--ia-text) !important;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.ia-car-share-app:hover {
  background: rgba(15, 23, 42, 0.05);
}

.ia-car-share-app-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ia-car-share-app-icon--system {
  background: #e8edf4;
  color: #2563eb;
  font-size: 1rem;
}

.ia-car-share-app-icon--wa {
  background: #25d366;
  color: #fff;
}

.ia-car-share-app-icon--tg {
  background: #229ed9;
  color: #fff;
  font-size: 1.1rem;
}

.ia-car-share-app-icon--copy {
  background: #e2e8f0;
  color: #334155;
  font-size: 1rem;
}

.ia-car-share-app-label {
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-bs-theme='dark'] .ia-car-share-flyout {
  background: #1a222e;
  border-color: #2d3d52;
  color: #e8edf4;
}

[data-bs-theme='dark'] .ia-car-share-flyout__title {
  color: #f8fafc;
}

[data-bs-theme='dark'] .ia-car-share-flyout__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e8edf4;
}

[data-bs-theme='dark'] .ia-car-share-preview {
  background: #131a23;
  border-color: #2d3d52;
}

[data-bs-theme='dark'] .ia-car-share-preview-title {
  color: #f8fafc;
}

[data-bs-theme='dark'] .ia-car-share-preview-url {
  color: #94a3b8;
}

[data-bs-theme='dark'] .ia-car-share-notice {
  border-color: #a16207;
  background: #422006;
  color: #fef3c7;
}

[data-bs-theme='dark'] .ia-car-share-notice-line {
  color: #fde68a;
}

[data-bs-theme='dark'] .ia-car-share-app:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-ia-palette='sepia'] .ia-car-share-notice {
  border-color: #d4a017;
  background: #fff6d8;
}

/* === Car detail page action buttons (compare / fav) === */
.ia-car-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ia-car-actions-primary,
.ia-car-actions-secondary {
  display: contents;
}

.ia-car-actions-form {
  display: inline-block;
}

.ia-car-cta {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ia-car-cta-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.ia-car-cta-stack-label {
  font-size: 0.9em;
}

.ia-car-cta-stack-value {
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.9;
}

.ia-car-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  color: var(--ia-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.34, 1.56, .64, 1), background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.ia-car-action-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ia-car-action-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.ia-car-action-btn:active {
  transform: scale(0.97);
}

.ia-car-action-btn--compare:hover { color: #2563eb; border-color: #c7d8fe; }
.ia-car-action-btn--compare.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: rgba(29, 78, 216, 0.7);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.32);
}

.ia-car-action-btn--fav:hover { color: #e11d48; border-color: #ffd4df; }
.ia-car-action-btn--fav.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  border-color: rgba(190, 18, 60, 0.6);
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.32);
}

[data-bs-theme='dark'] .ia-car-action-btn {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

@media (max-width: 575.98px) {
  .ia-car-action-btn { padding: 0.45rem 0.75rem; font-size: 0.85rem; }
}

/* === Hero VIP/TOP badge on car page === */
.ia-vip-hero-badge {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
}

.ia-vip-hero-badge svg {
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.ia-vip-hero-badge span {
  flex: 0 0 auto;
}

.ia-vip-hero-badge:not(.ia-vip-hero-badge--top) {
  right: 14px;
  left: auto;
}

.ia-vip-hero-badge--top {
  left: 14px;
  right: auto;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (max-width: 575.98px) {
  .ia-vip-hero-badge {
    top: 10px;
    padding: 0.28rem 0.52rem;
    font-size: 0.66rem;
    gap: 0.24rem;
  }

  .ia-vip-hero-badge:not(.ia-vip-hero-badge--top) {
    right: 10px;
  }

  .ia-vip-hero-badge--top {
    left: 10px;
    right: auto;
  }

  .ia-vip-hero-badge svg {
    width: 11px;
    height: 11px;
  }
}

.ia-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #ffffff !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  line-height: 1;
}

.ia-badge-top::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.4H22l-6 4.6 2.3 7-6.3-4.6L5.7 21l2.3-7-6-4.6h7.6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.4H22l-6 4.6 2.3 7-6.3-4.6L5.7 21l2.3-7-6-4.6h7.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
  flex: 0 0 12px;
}

.ia-listing-badges-overlay .ia-badge-vip,
.ia-listing-badges-overlay .ia-badge-top,
.ia-badge-vip-overlay.ia-badge-vip,
.ia-badge-top-overlay.ia-badge-top {
  font-size: 0.74rem;
  padding: 0.4rem 0.78rem;
  border-radius: 10px;
  letter-spacing: 0.18em;
}

.ia-listing-badges-overlay .ia-badge-vip {
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ia-listing-badges-overlay .ia-badge-top,
.ia-badge-top-overlay.ia-badge-top {
  box-shadow: 0 8px 22px rgba(67, 56, 202, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ia-listing-badges-overlay .ia-badge-vip::before,
.ia-badge-vip-overlay.ia-badge-vip::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ia-listing-badges-overlay .ia-badge-top::before,
.ia-badge-top-overlay.ia-badge-top::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ia-badge-top-overlay {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: auto;
  z-index: 4;
}

@media (max-width: 575.98px) {
  .ia-listing-badges-overlay,
  .ia-badge-top-overlay {
    top: 0.5rem;
    left: 0.5rem;
    gap: 0.3rem;
  }

  .ia-listing-badges-overlay .ia-badge-vip,
  .ia-listing-badges-overlay .ia-badge-top,
  .ia-badge-vip-overlay.ia-badge-vip,
  .ia-badge-top-overlay.ia-badge-top {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.14em;
  }

  .ia-listing-badges-overlay .ia-badge-vip::before,
  .ia-badge-vip-overlay.ia-badge-vip::before,
  .ia-listing-badges-overlay .ia-badge-top::before,
  .ia-badge-top-overlay.ia-badge-top::before {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
  }
}

/* === Hero zoom button === */
.ia-car-hero {
  position: relative;
  cursor: zoom-in;
}

.ia-car-hero-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ia-car-hero-zoom:hover {
  background: rgba(15, 23, 42, 0.75);
  transform: scale(1.05);
}

.ia-car-map-wrap {
  background: #f3f6fb;
}

.ia-car-map {
  display: block;
  width: 100%;
  min-height: 220px;
  height: 260px;
  border: 0;
}

@media (min-width: 992px) {
  .ia-car-map {
    height: 280px;
  }
}

.ia-car-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.ia-car-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ia-border);
  border-radius: 12px;
  background: var(--ia-card);
}

.ia-car-meta-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 126, 255, 0.1);
  color: var(--ia-accent);
  font-size: 1.15rem;
}

.ia-car-meta-icon--status {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.ia-car-meta-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ia-car-meta-label {
  font-size: 0.75rem;
  color: var(--ia-muted);
  font-weight: 500;
}

.ia-car-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ia-text);
  line-height: 1.3;
  word-break: break-word;
}

.ia-car-status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.ia-car-status-pill.is-active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.ia-car-status-pill.is-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ia-car-status-pill.is-sold,
.ia-car-status-pill.is-expired {
  background: rgba(148, 163, 184, 0.2);
  color: var(--ia-muted);
}

.ia-car-status-pill.is-blocked {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

@media (max-width: 575.98px) {
  .ia-car-meta-strip {
    grid-template-columns: 1fr;
  }
}

.ia-car-map-wrap {
  position: relative;
  isolation: isolate;
  background: #e8eef5;
  min-height: 380px;
  height: 380px;
}

.ia-car-nearby-map-el {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: #e8eef5;
  z-index: 0;
}

/* Bootstrap img { max-width:100% } сжимает тайлы Leaflet до нуля — карта серая */
.leaflet-container img,
.leaflet-container img.leaflet-tile,
.leaflet-tile-pane img,
.ia-car-map-wrap img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.ia-car-nearby-map-el.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px;
  font-family: inherit;
}

.ia-car-nearby-map-el .leaflet-tile-pane {
  z-index: 1;
}

.ia-car-nearby-map-el .leaflet-marker-pane {
  z-index: 5;
}

.ia-car-nearby-map-el .leaflet-popup-pane {
  z-index: 6;
}

.ia-car-map-cta {
  display: flex;
  align-items: center;
}

.ia-car-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border: 1px solid rgba(61, 126, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.1), rgba(99, 102, 241, 0.06));
  color: var(--ia-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.ia-car-map-btn:hover {
  border-color: var(--ia-accent);
  box-shadow: 0 4px 14px rgba(61, 126, 255, 0.18);
  transform: translateY(-1px);
}

.ia-car-map-btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3d7eff, #6366f1);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(61, 126, 255, 0.35);
}

.ia-car-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ia-muted);
}

.ia-car-map-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ia-car-map-dot--home {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.ia-car-map-dot--near {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

[data-bs-theme='dark'] .ia-car-map-btn {
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.16), rgba(99, 102, 241, 0.1));
  border-color: rgba(91, 146, 255, 0.4);
}

.ia-leaflet-car-pin {
  background: transparent !important;
  border: none !important;
}

.ia-leaflet-car-pin svg {
  display: block;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.4));
}

.ia-car-geo-zone-scroll {
  max-height: 168px;
  overflow-y: auto;
}

/* === Lightbox === */
body.ia-no-scroll {
  overflow: hidden;
}

.ia-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-lightbox[hidden] { display: none; }

.ia-lightbox-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.ia-lightbox-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
  line-height: 1;
}

.ia-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ia-lightbox-zoom,
.ia-lightbox-counter {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.6rem;
  min-width: 56px;
  text-align: center;
}

.ia-lightbox-close {
  background: rgba(220, 38, 38, 0.55) !important;
}

.ia-lightbox-close:hover {
  background: rgba(220, 38, 38, 0.85) !important;
}

.ia-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 80px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s ease;
}

.ia-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ia-lightbox-prev { left: 16px; }
.ia-lightbox-next { right: 16px; }

.ia-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 80px 24px 24px;
  cursor: grab;
}

.ia-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 575.98px) {
  .ia-lightbox-nav { width: 38px; height: 64px; font-size: 1.6rem; }
  .ia-lightbox-prev { left: 6px; }
  .ia-lightbox-next { right: 6px; }
  .ia-lightbox-toolbar { gap: 0.2rem; padding: 0.3rem 0.4rem; }
  .ia-lightbox-btn { width: 34px; height: 34px; }
}

/* === Listing photos: high-quality rendering === */
.ia-listing-card-img,
.ia-listing-card-img-wrap img,
.ia-cabinet-item-photo img,
.ia-compare-photo img,
.ia-pop-cat-thumb img,
.ia-listing-thumb img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  background: rgba(15, 23, 42, 0.04);
}

.ia-listing-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.ia-listing-card-img-wrap > .ia-listing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Compare page === */
.ia-compare-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--ia-border);
  border-radius: 16px;
  background: var(--ia-card);
}

.ia-compare-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(61, 126, 255, 0.10);
  color: var(--ia-accent);
  margin-bottom: 0.75rem;
}

.ia-catalog-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--ia-border);
  border-radius: 16px;
  background: var(--ia-card);
}

.ia-catalog-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(61, 126, 255, 0.10);
  color: var(--ia-accent);
  margin-bottom: 0.75rem;
}

.ia-compare-wrap {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.ia-compare-grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) repeat(var(--cmp-cols), minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--ia-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ia-card);
}

.ia-compare-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ia-border);
}

.ia-compare-col:last-child { border-right: none; }

.ia-compare-col--head {
  background: rgba(61, 126, 255, 0.04);
  font-weight: 500;
}

.ia-compare-card {
  padding: 0.85rem;
  border-bottom: 1px solid var(--ia-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ia-compare-card-spacer {
  border-bottom: 1px solid var(--ia-border);
  min-height: 1px;
}

.ia-compare-photo {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
}

.ia-compare-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ia-compare-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ia-compare-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.ia-compare-title a {
  color: var(--ia-text);
  text-decoration: none;
}

.ia-compare-title a:hover {
  color: var(--ia-accent);
}

.ia-compare-row-label,
.ia-compare-row-cell {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--ia-border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ia-compare-row-label {
  color: var(--ia-muted);
  font-weight: 500;
}

.ia-compare-col:not(.ia-compare-col--head) .ia-compare-row-cell:nth-of-type(2n) {
  background: rgba(15, 23, 42, 0.02);
}

.ia-compare-col--head .ia-compare-row-label:nth-of-type(2n) {
  background: rgba(15, 23, 42, 0.02);
}

.ia-compare-col:last-child .ia-compare-row-cell:last-child,
.ia-compare-col--head .ia-compare-row-label:last-child {
  border-bottom: none;
}

[data-bs-theme='dark'] .ia-compare-grid {
  background: #161a26;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme='dark'] .ia-compare-col {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme='dark'] .ia-compare-col--head {
  background: rgba(61, 126, 255, 0.10);
}

[data-bs-theme='dark'] .ia-compare-col:not(.ia-compare-col--head) .ia-compare-row-cell:nth-of-type(2n),
[data-bs-theme='dark'] .ia-compare-col--head .ia-compare-row-label:nth-of-type(2n) {
  background: rgba(255, 255, 255, 0.03);
}

.ia-compare-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ia-compare-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.ia-compare-page-sub {
  font-size: 0.88rem;
  color: var(--ia-muted);
}

/* ===== Сравнение — мобильная вёрстка ===== */
@media (max-width: 991.98px) {
  .ia-page-compare .ia-compare-page-section {
    padding-top: 0.65rem !important;
    padding-bottom: 1rem !important;
  }

  .ia-page-compare .ia-compare-page-section > .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .ia-compare-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .ia-compare-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.15rem;
  }

  .ia-compare-page-sub {
    font-size: 0.76rem;
    color: var(--ia-muted);
  }

  .ia-compare-clear-form {
    flex: 0 0 auto;
  }

  .ia-compare-clear-btn {
    font-size: 0.72rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .ia-page-compare .alert {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
  }

  .ia-compare-empty {
    padding: 1.5rem 0.85rem;
    border-radius: 14px;
  }

  .ia-compare-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .ia-compare-empty h2 {
    font-size: 1rem;
  }

  .ia-compare-empty p {
    font-size: 0.82rem;
    margin-bottom: 0.85rem !important;
  }

  .ia-compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .ia-compare-mobile-card {
    border: 1px solid var(--ia-border);
    border-radius: 14px;
    background: var(--ia-card);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  }

  .ia-compare-mobile-card-top {
    display: flex;
    gap: 0.55rem;
    padding: 0.65rem;
    border-bottom: 1px solid var(--ia-border);
    background: rgba(59, 130, 246, 0.04);
  }

  .ia-compare-mobile-photo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: rgba(15, 23, 42, 0.05);
  }

  .ia-compare-mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ia-compare-mobile-card-intro {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .ia-compare-mobile-num {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
  }

  .ia-compare-mobile-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
  }

  .ia-compare-mobile-title a {
    color: var(--ia-text);
    text-decoration: none;
  }

  .ia-compare-mobile-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ia-text);
    margin-top: 0.1rem;
  }

  .ia-compare-mobile-avail {
    margin-top: 0.05rem;
  }

  .ia-compare-mobile-avail .ia-badge-availability {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  .ia-compare-mobile-specs {
    margin: 0;
    padding: 0.45rem 0.65rem 0.55rem;
  }

  .ia-compare-mobile-spec-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.38rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .ia-compare-mobile-spec-row:last-child {
    border-bottom: 0;
  }

  .ia-compare-mobile-spec-row dt {
    flex: 0 0 42%;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ia-muted);
    line-height: 1.3;
  }

  .ia-compare-mobile-spec-row dd {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
    line-height: 1.35;
    color: var(--ia-text);
  }

  .ia-compare-mobile-remove {
    padding: 0 0.65rem 0.65rem;
  }

  .ia-compare-mobile-remove .btn {
    min-height: 38px;
    font-size: 0.8rem;
    border-radius: 10px;
  }
}

[data-bs-theme='dark'] .ia-compare-mobile-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

[data-bs-theme='dark'] .ia-compare-mobile-card-top {
  background: rgba(59, 130, 246, 0.08);
}

[data-bs-theme='dark'] .ia-compare-mobile-spec-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.ia-cab-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--ia-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 126, 255, 0.06);
}

.ia-cab-stat svg {
  opacity: 0.78;
}

.ia-stat-mini--wide {
  grid-column: span 2;
}

.ia-listing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ia-listing-tab {
  font-size: 0.8rem;
  color: var(--ia-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

.ia-listing-tab.active {
  color: #fff;
  border-color: var(--ia-accent);
}

a.ia-listing-tab {
  text-decoration: none;
  cursor: pointer;
}

a.ia-listing-tab:hover {
  color: var(--ia-text);
}

/* Превью размещения: сетка миниатюр + одно видео */
.ia-add-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (min-width: 1200px) {
  .ia-add-thumb-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ia-add-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8dee9;
  background: #eef1f6;
}

.ia-add-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ia-add-preview-item {
  border: 1px solid #d8dee9;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ia-add-preview-media {
  background: #eef1f6;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
}

.ia-add-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ia-add-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
}

.ia-add-preview-actions .btn {
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .ia-add-preview-media {
    aspect-ratio: 1 / 1;
  }
}

.ia-add-video-shell {
  border-radius: var(--ia-radius);
  overflow: hidden;
  border: 1px solid #d8dee9;
  background: #0f1219;
}

.ia-photo-progress .progress {
  height: 0.55rem;
  background: rgba(61, 126, 255, 0.12);
}

.ia-photo-progress .progress-bar {
  background: linear-gradient(90deg, #3d7eff, #2563eb);
}

.ia-photo-studio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ia-photo-studio-lead,
.ia-video-studio-lead {
  color: #5c6577;
}

.ia-photo-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.ia-photo-checklist-item .bi {
  color: #3d7eff;
  font-size: 1rem;
}

.ia-photo-checklist-item.is-pass {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.ia-photo-checklist-item.is-pass .bi {
  color: #16a34a;
}

.ia-photo-checklist-item.is-fail {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.ia-photo-checklist-item.is-fail .bi {
  color: #dc2626;
}

.ia-photo-slot--sample-overlay .ia-photo-slot-head {
  display: none;
}

.ia-photo-workspace {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1200px) {
  .ia-photo-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }
}

.ia-photo-workspace .ia-photo-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .ia-photo-workspace .ia-photo-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .ia-photo-workspace .ia-photo-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ia-photo-studio-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ia-photo-hero-preview {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}

.ia-photo-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.ia-photo-hero-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.ia-photo-thumb-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.ia-photo-thumb-tile {
  border: 1px solid #d8dee9;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  aspect-ratio: 1 / 1;
}

.ia-photo-thumb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ia-photo-tips,
.ia-photo-help,
.ia-photo-studio-how,
.ia-photo-progress {
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.ia-photo-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #4b5563;
  margin-bottom: 0.45rem;
}

.ia-photo-tips-list li:last-child {
  margin-bottom: 0;
}

.ia-photo-tips-list .bi {
  color: #16a34a;
  margin-top: 0.1rem;
}

.ia-photo-how-steps {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .ia-photo-how-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ia-photo-how-steps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: #374151;
}

.ia-photo-how-num {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(61, 126, 255, 0.12);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ia-photo-preview-col {
  position: sticky;
  top: 1rem;
}

.ia-photo-preview-panel {
  border: 1px solid #d8dee9;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fafc;
}

.ia-photo-slot {
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.ia-photo-slot-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
  pointer-events: none;
}

.ia-photo-slot-num {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #3d7eff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ia-photo-slot-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.ia-photo-slot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 168px;
  background: #f3f4f6;
}

.ia-photo-slot-example {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 0;
  background: #f3f4f6;
  border: 0;
  pointer-events: none;
  overflow: hidden;
}

.ia-photo-slot-example--raster {
  padding: 6px;
}

.ia-photo-slot-example svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.ia-photo-slot-example-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ia-photo-slot-btn {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: rgba(61, 126, 255, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.ia-photo-slot-btn .bi {
  font-size: 0.9rem;
}

.ia-photo-slot.is-filled,
.ia-photo-slot--accepted {
  border-color: rgba(34, 197, 94, 0.55);
}

.ia-photo-slot--checking {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.ia-photo-slot--seq-locked:not(.ia-photo-slot--accepted):not(.ia-photo-slot--error) {
  opacity: 0.74;
}

.ia-photo-slot--seq-locked .ia-photo-slot-btn:disabled,
.ia-photo-slot--seq-locked .ia-photo-slot-input:disabled {
  cursor: not-allowed;
}

.ia-photo-slot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f4f6;
}

.ia-photo-slot-status[data-status='pending'] {
  color: #6b7280;
}

.ia-photo-slot-status[data-status='checking'] {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.ia-photo-slot-status[data-status='accepted'] {
  color: #fff;
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.ia-photo-slot-status[data-status='accepted'] .ia-photo-slot-status-icon::before {
  content: '✓';
  font-weight: 700;
}

.ia-photo-slot-status[data-status='error'] {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

.ia-photo-slot-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.ia-photo-slot-preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ia-photo-slot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  line-height: 1;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ia-photo-slot-error {
  min-height: 1.25rem;
  line-height: 1.35;
  font-size: 0.875rem;
  font-weight: 500;
}

.ia-photo-slot--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.ia-photo-slot--error .ia-photo-slot-error {
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem 0;
}

.ia-photo-slot--attention {
  animation: ia-photo-slot-attn 1.6s ease-in-out 1;
}

@keyframes ia-photo-slot-attn {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18); }
}

.ia-add-video-shell video {
  width: 100%;
  display: block;
  max-height: 220px;
  vertical-align: middle;
}

.ia-profile-thumb-wrap {
  width: 72px;
  height: 48px;
  background: #eef1f6;
  display: inline-block;
  vertical-align: middle;
}

.ia-profile-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ia-stat-mini {
  border: 1px solid var(--ia-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.75rem;
}

.ia-stat-mini-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.ia-stat-mini-head i {
  color: #3d7eff;
  font-size: 0.95rem;
}

/* Add listing wizard style */
.ia-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ia-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ia-muted);
  font-size: 0.78rem;
}

.ia-step b {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--ia-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.ia-step em {
  font-style: normal;
}

.ia-step.active {
  color: #111827;
}

.ia-step.active b {
  background: var(--ia-accent);
  border-color: var(--ia-accent);
}

.ia-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ia-cabinet-page {
  background: var(--ia-bg);
  color: var(--ia-text);
}

.ia-cabinet-aside,
.ia-cabinet-main {
  display: block;
  width: 100%;
  min-width: 0;
}

.ia-cabinet-panels-row {
  width: 100%;
}

.ia-cabinet-listings-head,
.ia-cabinet-listings-body {
  display: block;
}

.ia-cabinet-sidebar {
  padding: 1rem;
  position: sticky;
  top: 1.25rem;
  border-radius: 14px;
  box-shadow: var(--ia-shadow-sm);
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
}

.ia-cabinet-user {
  padding: 0.25rem 0.25rem 0.75rem;
  border-bottom: 1px solid var(--ia-border);
}

.ia-cabinet-user .fw-semibold {
  color: var(--ia-text);
}

.ia-cabinet-nav {
  display: grid;
  gap: 0.35rem;
}

.ia-cabinet-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ia-muted);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.ia-cabinet-nav-link i {
  width: 1.05rem;
  text-align: center;
  color: var(--ia-muted);
  font-size: 1rem;
}

.ia-cabinet-nav-link--danger {
  color: #b91c1c;
}

.ia-cabinet-nav-link--danger i {
  color: #dc2626;
}

.ia-cabinet-nav-link:hover {
  background: rgba(61, 126, 255, 0.08);
  color: var(--ia-text);
  border-color: var(--ia-border);
}

.ia-cabinet-nav-link.active {
  background: rgba(61, 126, 255, 0.12);
  color: #1d4ed8;
}

.ia-cabinet-nav-link.active i {
  color: #1d4ed8;
}

.ia-cabinet-nav-link {
  position: relative;
}

.ia-cabinet-nav-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ia-cabinet-nav--mobile {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ia-border);
  gap: 0.3rem;
}

.ia-cabinet-charts {
  display: grid;
  gap: 0.85rem;
}

.ia-cabinet-chart-block {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--ia-border);
  background: var(--ia-surface, rgba(15, 23, 42, 0.04));
}

.ia-cabinet-chart-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ia-muted);
}

.ia-cabinet-bars {
  display: grid;
  gap: 0.45rem;
}

.ia-cabinet-bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  align-items: center;
  gap: 0.4rem;
}

.ia-cabinet-bar-label {
  font-size: 0.72rem;
  color: var(--ia-muted);
  line-height: 1.2;
}

.ia-cabinet-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.ia-cabinet-bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7eff, #5b92ff);
  transition: width 0.35s ease;
}

.ia-cabinet-bar-fill--clicks {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ia-cabinet-bar-fill--messages {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.ia-cabinet-bar-fill--favorites {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}

.ia-cabinet-bar-fill--active {
  background: linear-gradient(90deg, #3d7eff, #5b92ff);
}

.ia-cabinet-bar-fill--pending {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.ia-cabinet-bar-fill--archive {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.ia-cabinet-bar-value {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  color: var(--ia-text);
  font-variant-numeric: tabular-nums;
}

.ia-listing-tabs {
  gap: 0.4rem;
}

.ia-listing-tab {
  border: 1px solid var(--ia-border);
  color: var(--ia-muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 500;
}

.ia-listing-tab span {
  font-weight: 700;
}

.ia-listing-tab.active {
  border-color: #3d7eff;
  color: #1d4ed8;
  background: rgba(61, 126, 255, 0.09);
}

/* Кабинет — сворачиваемые блоки (details) */
.ia-cabinet-fold > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.ia-cabinet-fold > summary::-webkit-details-marker {
  display: none;
}

.ia-cabinet-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}

.ia-cabinet-fold[open] > .ia-cabinet-fold-summary {
  border-bottom-color: var(--ia-border);
}

.ia-cabinet-fold-summary:hover {
  background: rgba(61, 126, 255, 0.05);
}

.ia-cabinet-fold-summary-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-weight: 600;
  color: var(--ia-text);
}

.ia-cabinet-fold-summary-text .bi {
  color: #3d7eff;
  font-size: 1.05rem;
}

.ia-cabinet-fold-title {
  font-size: 0.92rem;
}

.ia-cabinet-fold-hint {
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

.ia-cabinet-fold-chev,
.ia-cabinet-item-chev {
  flex: 0 0 auto;
  color: var(--ia-muted);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.ia-cabinet-fold[open] > summary .ia-cabinet-fold-chev,
.ia-cabinet-item--fold[open] > summary .ia-cabinet-item-chev {
  transform: rotate(180deg);
}

.ia-cabinet-list-hint {
  margin: 0 0 0.5rem;
}

.ia-cabinet-list--compact {
  gap: 0.45rem;
}

.ia-cabinet-list {
  display: grid;
  gap: 0.85rem;
}

.ia-cabinet-item.ia-cabinet-item--fold {
  border: 1px solid var(--ia-border);
  border-radius: 12px;
  padding: 0;
  display: block;
  grid-template-columns: unset;
  min-height: 0;
  background: var(--ia-card);
  box-shadow: var(--ia-shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ia-cabinet-item.ia-cabinet-item--fold:hover {
  transform: none;
}

.ia-cabinet-item.ia-cabinet-item--fold[open] {
  border-color: rgba(61, 126, 255, 0.35);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.ia-cabinet-item-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.ia-cabinet-item-summary::-webkit-details-marker {
  display: none;
}

.ia-cabinet-item-summary-photo {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 2.45rem;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f9;
}

.ia-cabinet-item-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ia-cabinet-item-summary-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ia-cabinet-item-summary-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ia-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-cabinet-item-summary-meta {
  font-size: 0.68rem;
  color: var(--ia-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-cabinet-item-summary-end {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  max-width: 42%;
}

.ia-cabinet-item-summary-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ia-text);
  white-space: nowrap;
}

.ia-cabinet-item-summary-end .ia-cabinet-status {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
}

.ia-cabinet-item-body {
  border-top: 1px solid var(--ia-border);
  padding: 0.65rem;
}

.ia-cabinet-item-grid {
  display: grid;
  grid-template-columns: 132px 1fr 160px;
  gap: 0.85rem;
  align-items: stretch;
}

.ia-cabinet-item--fold:hover {
  border-color: #cfd9ea;
}

.ia-cabinet-item:not(.ia-cabinet-item--fold) {
  border: 1px solid var(--ia-border);
  border-radius: 14px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 132px 1fr 160px;
  gap: 0.95rem;
  align-items: stretch;
  min-height: 116px;
  background: var(--ia-card);
  box-shadow: var(--ia-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ia-cabinet-item:not(.ia-cabinet-item--fold):hover {
  border-color: #cfd9ea;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  transform: translateY(-1px);
}

.ia-cabinet-item-photo {
  width: 132px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #edf2f9;
  display: block;
  align-self: center;
  flex: 0 0 auto;
}

.ia-cabinet-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.ia-cabinet-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.ia-cabinet-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-cabinet-item-title a {
  text-decoration: none;
  color: var(--ia-text);
}

.ia-cabinet-item-title a:hover {
  color: var(--ia-accent);
}

.ia-cabinet-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 24px;
  color: var(--ia-muted);
}

.ia-cabinet-item-bottom {
  min-height: 24px;
}

.ia-cabinet-item-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.4rem;
}

.ia-cabinet-item-price {
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
  margin: 0;
}

.ia-cabinet-status {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-weight: 600;
}

.ia-cabinet-status.is-active {
  color: #065f46;
  background: #d1fae5;
}

.ia-cabinet-status.is-pending {
  color: #92400e;
  background: #fef3c7;
}

.ia-cabinet-status.is-expired,
.ia-cabinet-status.is-archive {
  color: #475467;
  background: #eaecf0;
}

.ia-cabinet-status.is-blocked,
.ia-cabinet-status.is-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.ia-cabinet-status.is-sold {
  color: #1d4ed8;
  background: #dbeafe;
}

.ia-notifications-list {
  display: grid;
  gap: 0.75rem;
}

.ia-notification-item {
  border: 1px solid var(--ia-border);
  border-radius: 14px;
  background: var(--ia-card);
  padding: 1rem 1.1rem;
}

.ia-notification-item--unread {
  border-color: rgba(61, 126, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(61, 126, 255, 0.08);
}

.ia-cabinet-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.ia-cabinet-actions .btn {
  border-radius: 10px;
}

/* Кабинет — карточки форм в теме сайта (не принудительно белые) */
.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface {
  color-scheme: light dark;
  --ia-fs-text: var(--ia-text);
  --ia-fs-muted: var(--ia-muted);
  --ia-fs-input-bg: var(--ia-surface, var(--ia-card));
  --ia-fs-input-border: var(--ia-border);
  --ia-fs-placeholder: var(--ia-muted);
  background: var(--ia-card) !important;
  border-color: var(--ia-border) !important;
  color: var(--ia-text);
  box-shadow: var(--ia-shadow-sm);
}

.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .form-label {
  color: var(--ia-muted);
}

.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .form-control:focus,
.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .form-select:focus {
  background-color: var(--ia-fs-input-bg);
  border-color: var(--ia-accent);
  color: var(--ia-fs-text);
}

.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .form-control:disabled {
  background-color: var(--ia-surface, var(--ia-bg));
  border-color: var(--ia-border);
  color: var(--ia-muted);
}

.ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .ia-stat-mini {
  background: var(--ia-surface, #f4f6fb);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

.ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-item-price {
  color: var(--ia-text);
}

.ia-cabinet-page:not(.ia-premium-page-section) h1,
.ia-cabinet-page:not(.ia-premium-page-section) .h4,
.ia-cabinet-page:not(.ia-premium-page-section) .h5,
.ia-cabinet-page:not(.ia-premium-page-section) .h6 {
  color: var(--ia-text);
}

@media (max-width: 991.98px) {
  .ia-cabinet-listings-head .ia-listing-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

  .ia-cabinet-listings-head .ia-listing-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
    border-bottom: none;
  }

  .ia-cabinet-listings-head .ia-listing-tab span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95em;
  }

  .ia-cabinet-item-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .ia-cabinet-item.ia-cabinet-item--fold[open] .ia-cabinet-item-photo {
    display: none;
  }

  .ia-cabinet-item.ia-cabinet-item--fold .ia-cabinet-item-side {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
  }

  .ia-cabinet-item.ia-cabinet-item--fold .ia-cabinet-item-side .btn {
    width: 100%;
    white-space: nowrap;
  }

  .ia-cabinet-item.ia-cabinet-item--fold .ia-cabinet-item-price {
    text-align: left;
    font-size: 1.05rem;
  }

  .ia-cabinet-item-summary {
    align-items: flex-start;
  }

  .ia-cabinet-item-summary-end {
    max-width: 7.5rem;
    flex-shrink: 0;
  }

  .ia-cabinet-item-summary-end .ia-cabinet-status {
    max-width: 100%;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
  }

  .ia-cabinet-fold-hint {
    display: none;
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-sidebar {
    position: static;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-nav--mobile .ia-cabinet-nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-nav--mobile .ia-cabinet-nav-link.active {
    background: linear-gradient(135deg, rgba(61, 126, 255, 0.18), rgba(91, 146, 255, 0.1));
    border-color: rgba(61, 126, 255, 0.35);
    color: #1d4ed8;
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-charts {
    display: grid;
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-chart-block {
    background: var(--ia-surface, #f4f6fb);
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-actions {
    display: grid;
    gap: 0.45rem;
  }

  .ia-cabinet-page--mobile-premium .ia-cabinet-actions .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ia-cabinet-sidebar {
    position: static;
  }

  .ia-cabinet-item:not(.ia-cabinet-item--fold) {
    grid-template-columns: 110px 1fr;
    min-height: 100px;
  }

  .ia-cabinet-item:not(.ia-cabinet-item--fold) .ia-cabinet-item-photo {
    width: 110px;
    height: 88px;
  }

  .ia-cabinet-item:not(.ia-cabinet-item--fold) .ia-cabinet-item-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .ia-cabinet-item:not(.ia-cabinet-item--fold) .ia-cabinet-item-price {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.ia-chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid var(--ia-border);
  background: linear-gradient(135deg, #3d7eff, #2f64cc);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 1080;
}

.ia-chat-fab:hover {
  color: #fff;
  transform: translateY(-1px);
}

.ia-chat-fab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.ia-chat-fab-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cards grid */
.ia-listing-card {
  background: var(--ia-card);
  border: 1px solid var(--ia-border);
  border-radius: var(--ia-radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ia-shadow-sm);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.ia-listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 126, 255, 0.28);
  box-shadow: var(--ia-shadow-md);
}

/* Фолбэк, если img без обёртки .ia-listing-card-img-wrap */
.ia-listing-card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  width: 100%;
  display: block;
  background: transparent;
  image-rendering: auto;
}

.ia-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ia-text);
}

.ia-price-inline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ia-text);
}

.ia-listing-title-link {
  color: var(--ia-text);
  font-size: 1.02rem;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere;
}

.ia-listing-title-link:hover {
  color: #1d4ed8;
}

.ia-card-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.ia-card-fav-form {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
}

.ia-card-fav-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.16s ease;
}

.ia-card-fav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ia-card-fav-btn:hover {
  color: #e11d48;
  transform: scale(1.04);
}

.ia-card-fav-btn.is-active {
  color: #e11d48;
  border-color: #ffd4df;
  background: #fff1f5;
}

/* === Listing card stacked actions (fav only on cards) === */
.ia-card-actions {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ia-listing-card:hover .ia-card-actions,
.ia-listing-card:focus-within .ia-card-actions,
.ia-card-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* The active heart stays visible so users see saved listings at a glance */
.ia-card-actions:has(.ia-card-icon-btn.is-active) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: none) {
  .ia-card-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.ia-card-action-form {
  margin: 0;
}

.ia-card-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s cubic-bezier(.34, 1.56, .64, 1), background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(6px);
}

.ia-card-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ia-card-icon-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ia-card-icon-btn:active {
  transform: scale(0.96);
}

.ia-card-icon-btn--fav:hover { color: #e11d48; border-color: #ffd4df; }
.ia-card-icon-btn--fav.is-active { color: #e11d48; background: #fff1f5; border-color: #ffd4df; }

.ia-card-icon-btn--compare:hover { color: #2563eb; border-color: #c7d8fe; }
.ia-card-icon-btn--compare.is-active { color: #ffffff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-color: rgba(29, 78, 216, 0.6); }

[data-bs-theme='dark'] .ia-card-icon-btn {
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5f5;
  border-color: rgba(148, 163, 184, 0.4);
}

[data-bs-theme='dark'] .ia-card-icon-btn--fav.is-active { background: rgba(225, 29, 72, 0.26); color: #fda4af; border-color: rgba(244, 63, 94, 0.45); }
[data-bs-theme='dark'] .ia-card-icon-btn--compare.is-active { background: linear-gradient(135deg, #4f46e5, #1e40af); color: #ffffff; }

.ia-vip-dl dt,
.ia-listing-specs-dl dt {
  font-weight: 500;
}

.ia-listing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ia-listing-views-badge {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.ia-listing-views-badge .bi {
  font-size: 0.72rem;
  opacity: 0.95;
}

.ia-listing-card-img-wrap--square .ia-listing-views-badge {
  left: 0.35rem;
  bottom: 0.35rem;
}

.ia-car-views-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--ia-muted);
  font-weight: 500;
}

.ia-car-views-stat .bi {
  color: var(--ia-accent);
  font-size: 0.9rem;
}

.ia-listing-city-dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.ia-listing-city-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.ia-listing-views-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  line-height: 1;
}

.ia-listing-views-inline .bi {
  font-size: 0.74rem;
  line-height: 1;
  color: var(--ia-text);
}

.ia-listing-views-inline-num {
  font-variant-numeric: tabular-nums;
  color: var(--ia-text);
  font-weight: 700;
}

[data-bs-theme='dark'] .ia-listing-views-inline-num {
  color: #e2e8f0;
}

.ia-listing-card-id {
  font-size: 0.68rem;
  line-height: 1.25;
}

.ia-price-card {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  color: #1d4ed8;
  white-space: nowrap;
}

.ia-listing-specs-dl dd {
  word-break: break-word;
}

.ia-why-card {
  height: 100%;
  background: var(--ia-card);
  border: 1px solid var(--ia-border);
  border-radius: var(--ia-radius);
  padding: 1.1rem 1rem;
}

.ia-car-price {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1d4ed8;
}

[data-bs-theme='dark'] .ia-car-price {
  color: #93c5fd;
}

.ia-brand-slider {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--ia-border);
  border-radius: var(--ia-radius);
  background: var(--ia-card);
  scrollbar-width: none;
}

.ia-brand-slider-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: clamp(1rem, 3vw, 1.75rem);
  padding-right: clamp(1rem, 3vw, 1.75rem);
}

.ia-brand-slider::-webkit-scrollbar {
  height: 0;
}

.ia-brand-slider::-webkit-scrollbar-thumb {
  background: #ccd6e8;
  border-radius: 999px;
}

.ia-brand-track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  padding: 0.75rem;
  min-height: 3.4rem;
}

.ia-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  background: var(--ia-card);
  white-space: nowrap;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border: 1px solid var(--ia-border);
  border-radius: 999px;
  color: var(--ia-text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ia-brand-chip:hover {
  border-color: #c8d5ee;
  background: #f8fbff;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(29, 78, 216, 0.45);
}

.ia-brand-chip-mark {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3d7eff, #7c3aed);
  overflow: hidden;
  flex: 0 0 auto;
}

.ia-brand-chip-mark img {
  width: 1.3125rem;
  height: 1.3125rem;
  object-fit: contain;
  display: block;
}

.ia-brand-chip-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.ia-brand-chip-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ia-brands-section {
  border-top: 1px solid var(--ia-border);
  border-bottom: 1px solid var(--ia-border);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.6), rgba(255, 255, 255, 0));
}

.ia-brands-more {
  text-decoration: none;
  font-weight: 600;
  color: #1d4ed8;
  transition: color 0.18s ease;
}

.ia-brands-more:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* ===== Home brands — horizontal scroll (ПК + телефон) ===== */
.ia-brand-cards-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  max-width: 100%;
}

.ia-brand-cards-scroll::-webkit-scrollbar {
  display: none;
}

.ia-brand-cards-scroll > .ia-brand-cards-track,
.ia-brands-section .ia-brand-cards-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0.85rem;
  width: max-content;
  min-width: 100%;
  padding: 0.15rem clamp(0.85rem, 3vw, 1.75rem) 0.35rem;
  box-sizing: border-box;
}

.ia-brand-cards-scroll .ia-brand-card,
.ia-brands-section .ia-brand-cards-track > .ia-brand-card {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: 5.15rem;
  text-decoration: none !important;
  color: var(--ia-text);
  text-align: center;
  transition: transform 0.18s ease, color 0.18s ease;
  scroll-snap-align: start;
}

.ia-brand-cards-scroll .ia-brand-card:hover {
  color: var(--ia-accent-hover, #1d4ed8);
  transform: translateY(-1px);
}

.ia-brand-cards-scroll .ia-brand-card-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  margin: 0 0 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.ia-brand-cards-scroll .ia-brand-card-mark img,
.ia-brand-cards-scroll .ia-brand-card-logo {
  width: 2rem;
  height: 2rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.ia-brand-cards-scroll .ia-brand-card-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.ia-brand-cards-scroll .ia-brand-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 5.15rem;
}

.ia-brand-cards-scroll .ia-brand-card-count {
  display: block;
  margin-top: 0.14rem;
  max-width: 5.15rem;
  font-size: 0.64rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ia-muted, rgba(100, 116, 139, 0.92));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-brand-card--all .ia-brand-card-mark {
  color: #64748b;
  font-size: 1.1rem;
}

.ia-brands-section .ia-brand-card-mark {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
}

.ia-brands-section .ia-brand-card-count {
  color: rgba(100, 116, 139, 0.92);
}

[data-bs-theme='dark'] .ia-brands-section .ia-brand-card-mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme='dark'] .ia-brands-section .ia-brand-card-fallback {
  color: #e2e8f0;
}

[data-bs-theme='dark'] .ia-brands-section .ia-brand-card-count {
  color: rgba(148, 163, 184, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .ia-brand-cards-scroll {
    scroll-behavior: auto;
    scroll-snap-type: x proximity;
  }
}

.ia-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #ffffff !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  line-height: 1;
}

.ia-badge-vip::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 16l-2-9 5.5 4L12 4l3.5 7 5.5-4-2 9H5zm0 2h14v2H5v-2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 16l-2-9 5.5 4L12 4l3.5 7 5.5-4-2 9H5zm0 2h14v2H5v-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
  flex: 0 0 12px;
}

.ia-badge-vip-overlay.ia-badge-vip {
  font-size: 0.74rem;
  padding: 0.4rem 0.78rem;
  border-radius: 10px;
  letter-spacing: 0.18em;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ia-badge-vip-overlay.ia-badge-vip::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

@media (max-width: 575.98px) {
  .ia-badge-vip-overlay { top: 0.5rem; left: 0.5rem; }
  .ia-badge-vip-overlay.ia-badge-vip {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.14em;
  }
  .ia-badge-vip-overlay.ia-badge-vip::before { width: 12px; height: 12px; flex: 0 0 12px; }
}

.ia-badge-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.ia-badge-availability::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.ia-badge-availability--in-stock {
  color: #047857;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #6ee7b7;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.18);
}

.ia-badge-availability--on-order {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1px solid rgba(220, 38, 38, 0.85);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.ia-badge-availability--on-order::before {
  background: rgba(255, 255, 255, 0.95);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  animation: iaPulseDot 1.6s ease-in-out infinite;
}

@keyframes iaPulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

[data-bs-theme='dark'] .ia-badge-availability--in-stock {
  color: #d1fae5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.28));
  border-color: rgba(16, 185, 129, 0.55);
}

.ia-badge-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.ia-badge-status--pending {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.ia-badge-status--approved {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.ia-badge-status--rejected {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.ia-badge-status--archived {
  color: #475467;
  background: #eaecf0;
  border: 1px solid #cfd4dc;
}

/* Footer */
.ia-footer {
  background: var(--ia-surface);
  border-top: 1px solid var(--ia-border);
}

.ia-footer a {
  color: var(--ia-muted);
  text-decoration: none;
}

.ia-footer a:hover {
  color: var(--ia-accent);
}

.ia-footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
}

/* === Professional footer (.ia-footer-pro) — compact, premium === */
.ia-footer-pro {
  position: relative;
  isolation: isolate;
  margin-top: 3rem;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  border-top: 1px solid var(--ia-border);
  color: var(--ia-text);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  font-size: 0.9rem;
}

.ia-footer-pro * {
  min-width: 0;
}

.ia-footer-pro .ia-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 220px at 8% 0%, rgba(61, 126, 255, 0.10), transparent 65%),
    radial-gradient(600px 200px at 92% 0%, rgba(124, 58, 237, 0.08), transparent 65%);
  opacity: 1;
}

[data-ia-palette="dark"] .ia-footer-pro {
  background: linear-gradient(180deg, #0e1421 0%, #0a0f1a 100%);
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-ia-palette="dark"] .ia-footer-pro .ia-footer-bg {
  background:
    radial-gradient(700px 220px at 8% 0%, rgba(61, 126, 255, 0.18), transparent 65%),
    radial-gradient(600px 200px at 92% 0%, rgba(124, 58, 237, 0.15), transparent 65%);
}

[data-ia-palette="sepia"] .ia-footer-pro {
  background: linear-gradient(180deg, #f5ecd6 0%, #efe2c1 100%);
  border-top-color: rgba(120, 80, 30, 0.18);
}

.ia-footer-pro .container {
  position: relative;
  z-index: 1;
}

/* === CTA bar === */
.ia-footer-pro .ia-footer-cta {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.10), rgba(124, 58, 237, 0.10));
  border-bottom: 1px solid var(--ia-border);
}

[data-ia-palette="dark"] .ia-footer-pro .ia-footer-cta {
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.18), rgba(124, 58, 237, 0.18));
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-ia-palette="sepia"] .ia-footer-pro .ia-footer-cta {
  background: linear-gradient(135deg, rgba(170, 110, 30, 0.10), rgba(140, 70, 20, 0.10));
  border-bottom-color: rgba(120, 80, 30, 0.18);
}

.ia-footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.ia-footer-cta-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
}

.ia-footer-cta-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d7eff, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(61, 126, 255, 0.28);
  flex: 0 0 auto;
}

.ia-footer-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.ia-footer-cta-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ia-text);
}

.ia-footer-cta-sub {
  color: var(--ia-muted);
  font-size: 0.8rem;
  margin-top: 1px;
}

.ia-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 0 0 auto;
}

/* High specificity to override Bootstrap .btn rules */
.ia-footer-pro .ia-footer-cta-btn,
.ia-footer-pro a.ia-footer-cta-btn {
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1;
  padding: 0.55rem 0.95rem;
  border-radius: 9px;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ia-footer-pro .ia-footer-cta-btn--primary,
.ia-footer-pro a.ia-footer-cta-btn--primary {
  background: linear-gradient(135deg, #3d7eff 0%, #6d5cf0 50%, #7c3aed 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(61, 126, 255, 0.30);
}

.ia-footer-pro .ia-footer-cta-btn--primary:hover,
.ia-footer-pro a.ia-footer-cta-btn--primary:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(61, 126, 255, 0.40);
}

.ia-footer-pro .ia-footer-cta-btn--ghost,
.ia-footer-pro a.ia-footer-cta-btn--ghost {
  background: #ffffff;
  color: var(--ia-text) !important;
  border-color: var(--ia-border);
}

.ia-footer-pro .ia-footer-cta-btn--ghost:hover,
.ia-footer-pro a.ia-footer-cta-btn--ghost:hover {
  background: #ffffff;
  color: var(--ia-accent) !important;
  border-color: var(--ia-accent);
}

[data-ia-palette="dark"] .ia-footer-pro .ia-footer-cta-btn--ghost,
[data-ia-palette="dark"] .ia-footer-pro a.ia-footer-cta-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e5e7eb !important;
}

[data-ia-palette="dark"] .ia-footer-pro .ia-footer-cta-btn--ghost:hover,
[data-ia-palette="dark"] .ia-footer-pro a.ia-footer-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(124, 156, 255, 0.55);
  color: #a8c0ff !important;
}

/* === Main grid === */
.ia-footer-main {
  padding-top: 2.25rem;
  padding-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.ia-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .ia-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .ia-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.ia-footer-col {
  min-width: 0;
}

/* === Brand === */
.ia-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ia-text);
  margin-bottom: 0.65rem;
}

.ia-footer-brand-link:hover {
  color: var(--ia-accent);
}

.ia-footer-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3d7eff, #7c3aed);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(61, 126, 255, 0.28);
}

.ia-footer-brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: inherit;
}

.ia-footer-text {
  color: var(--ia-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 0 0.85rem;
}

/* === Headings === */
.ia-footer-heading {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ia-text);
  margin: 0 0 0.7rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.ia-footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3d7eff, #7c3aed);
}

/* === Lists === */
.ia-footer-list,
.ia-footer-contact-list,
.ia-footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ia-footer-list li + li,
.ia-footer-contact-list li + li {
  margin-top: 0.4rem;
}

.ia-footer-pro .ia-footer-list a {
  color: var(--ia-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.ia-footer-pro .ia-footer-list a:hover {
  color: var(--ia-accent);
  transform: translateX(2px);
}

/* === Contact list === */
.ia-footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--ia-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.ia-footer-pro .ia-footer-contact-list a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.ia-footer-pro .ia-footer-contact-list a:hover {
  color: #2563eb;
}

.ia-footer-contact-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #2563eb;
  margin-top: 0;
}

/* Футер: фон иконок — по умолчанию light blue */
body[data-ia-tab-accent='light-blue'] .ia-footer-contact-ico,
body[data-ia-tab-accent='light-blue'] .ia-footer-pro .ia-footer-social-btn,
.ia-footer-contact-ico,
.ia-footer-pro .ia-footer-social-btn {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

body[data-ia-tab-accent='gray-blue'] .ia-footer-contact-ico,
body[data-ia-tab-accent='gray-blue'] .ia-footer-pro .ia-footer-social-btn {
  background: rgba(100, 130, 168, 0.18);
  border-color: rgba(100, 130, 168, 0.32);
  color: #4b6b8a;
}

body[data-ia-tab-accent='soft-green'] .ia-footer-contact-ico,
body[data-ia-tab-accent='soft-green'] .ia-footer-pro .ia-footer-social-btn {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}

.ia-footer-contact-ico svg {
  width: 12px;
  height: 12px;
}

[data-ia-palette="dark"] .ia-footer-contact-ico {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}

[data-bs-theme='dark'] .ia-footer-pro .ia-footer-contact-list a {
  color: #93c5fd;
}

/* === Social === */
.ia-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.ia-footer-pro .ia-footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #2563eb;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ia-footer-pro .ia-footer-social-btn svg {
  width: 15px;
  height: 15px;
}

.ia-footer-pro .ia-footer-social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, #3d7eff, #7c3aed);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(61, 126, 255, 0.30);
}

[data-ia-palette="dark"] .ia-footer-pro .ia-footer-social-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

.ia-footer-social-letter {
  font-size: 0.78rem;
  font-weight: 700;
}

/* === Divider + bottom bar === */
.ia-footer-divider {
  height: 1px;
  margin: 1.4rem 0 0.85rem;
  background: linear-gradient(90deg, transparent, var(--ia-border), transparent);
}

.ia-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-bottom: 0.25rem;
}

.ia-footer-copy {
  color: var(--ia-muted);
  font-size: 0.8rem;
  margin: 0;
}

.ia-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.8rem;
}

.ia-footer-pro .ia-footer-legal a {
  color: var(--ia-muted);
  text-decoration: none;
  position: relative;
}

.ia-footer-pro .ia-footer-legal a:hover {
  color: var(--ia-accent);
}

.ia-footer-legal li + li {
  position: relative;
  padding-left: 1.1rem;
}

.ia-footer-legal li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ia-border);
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 575.98px) {
  .ia-footer-pro {
    margin-top: 2.25rem;
    font-size: 0.88rem;
  }

  .ia-footer-cta-row {
    padding: 0.7rem 0;
  }

  .ia-footer-cta-actions {
    width: 100%;
  }

  .ia-footer-cta-actions .ia-footer-cta-btn {
    flex: 1 1 0;
    text-align: center;
  }

  .ia-footer-main {
    padding-top: 1.6rem;
  }

  .ia-footer-bottom {
    justify-content: flex-start;
  }
}

/* Forms — цвета из палитры (--ia-*) */
.ia-site .form-control,
.ia-site .form-select {
  background: var(--ia-card);
  border-color: var(--ia-border);
  color: var(--ia-text);
  border-radius: 10px;
}

.ia-site .form-control::placeholder {
  color: var(--ia-muted);
  opacity: 1;
}

.ia-site .form-control:focus,
.ia-site .form-select:focus {
  border-color: var(--ia-accent);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.2);
  background: var(--ia-card);
  color: var(--ia-text);
}

.ia-site .form-label {
  color: var(--ia-muted);
  font-size: 0.875rem;
}

/* Светлые карточки форм (читаемый текст, контраст WCAG) */
.ia-form-surface {
  color-scheme: light;
  --ia-fs-text: #111827;
  --ia-fs-muted: #5c6577;
  --ia-fs-input-bg: #ffffff;
  --ia-fs-input-border: #c5cdd8;
  --ia-fs-placeholder: #6b7280;
  background: #ffffff !important;
  border-color: #d8dee9 !important;
  color: var(--ia-fs-text);
  border-radius: var(--ia-radius-lg);
  box-shadow: var(--ia-shadow-sm);
}

.ia-add-listing-layout .ia-form-surface {
  border-radius: 18px;
}

.ia-add-main-card {
  border: 1px solid #dbe2ec;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ia-add-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ia-add-section {
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  background: var(--ia-card);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ia-add-section[open] {
  border-color: #c4d3ea;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ia-add-section > summary.ia-add-section-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  user-select: none;
  background: transparent;
  transition: background 0.18s ease;
}

.ia-add-section > summary.ia-add-section-head::-webkit-details-marker { display: none; }
.ia-add-section > summary.ia-add-section-head::marker { content: ''; }

.ia-add-section > summary.ia-add-section-head:hover {
  background: rgba(59, 130, 246, 0.05);
}

.ia-add-section[open] > summary.ia-add-section-head {
  border-bottom: 1px solid #e5ebf3;
}

.ia-add-section-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d7eff, #6e93ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.ia-add-section-title {
  font-weight: 700;
  color: var(--ia-text);
  font-size: 1rem;
  line-height: 1.25;
}

.ia-add-section-head-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ia-add-section-sub {
  font-size: 0.78rem;
  color: var(--ia-muted);
  line-height: 1.25;
  font-weight: 400;
}

.ia-add-section-icon {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  display: none;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1rem;
}

body.ia-page-add-listing.ia-add-premium .ia-add-section-icon {
  display: inline-flex !important;
}

body.ia-page-add-listing.ia-add-premium .ia-cabinet-page {
  background: transparent !important;
}

body.ia-page-add-listing.ia-add-premium .ia-add-section-num {
  background: transparent;
  border: 1.5px solid rgba(100, 116, 139, 0.55);
  color: #64748b;
}

@media (max-width: 991.98px) {
  .ia-page-add-listing .ia-add-section-icon {
    display: inline-flex;
  }
}

.ia-add-section-meta {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ia-muted);
}

.ia-add-section-arrow {
  flex: 0 0 auto;
  color: var(--ia-muted);
  font-size: 0.95rem;
  transition: transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ia-add-section:not([open]) .ia-add-section-arrow {
  transform: rotate(-90deg);
}

.ia-add-section[open] .ia-add-section-arrow {
  transform: rotate(0deg);
}

.ia-add-section-body {
  padding: 1.1rem 1.1rem 1.25rem;
}

[data-bs-theme='dark'] .ia-add-section { border-color: rgba(148, 163, 184, 0.25); }
[data-bs-theme='dark'] .ia-add-section[open] { border-color: rgba(59, 130, 246, 0.45); }
[data-bs-theme='dark'] .ia-add-section[open] > summary.ia-add-section-head { border-bottom-color: rgba(148, 163, 184, 0.2); }

@media (max-width: 575.98px) {
  .ia-add-section-body { padding: 0.9rem; }
  .ia-add-section > summary.ia-add-section-head { padding: 0.8rem; }
}

.ia-add-mobile-hero {
  border-radius: 14px;
  padding: 0.15rem 0 0.35rem;
}

.ia-add-mobile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.ia-add-mobile-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ia-add-mobile-hero-car {
  flex: 0 0 auto;
  width: 7.5rem;
  max-width: 38%;
  align-self: center;
}

.ia-add-mobile-hero-car img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.ia-add-steps-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.ia-add-steps-label {
  color: var(--ia-muted);
}

.ia-add-steps-pct {
  font-weight: 700;
  color: #3b82f6;
}

.ia-add-steps-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.ia-add-steps-bar .progress-bar {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
}

.ia-avail-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--ia-border);
}

.ia-avail-segment-btn {
  margin: 0;
  cursor: pointer;
}

.ia-avail-segment-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ia-avail-segment-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ia-muted);
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ia-avail-segment-inner .bi {
  opacity: 0;
  font-size: 0.95rem;
  transition: opacity 0.16s ease;
}

.ia-avail-segment-btn input:checked + .ia-avail-segment-inner {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.ia-avail-segment-btn input:checked + .ia-avail-segment-inner .bi {
  opacity: 1;
}

.ia-add-form-actions .btn-outline-secondary {
  min-width: 5.5rem;
  white-space: nowrap;
}

.ia-add-form-actions #iaAddListingSubmitBtn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}

[data-bs-theme='dark'] .ia-avail-segment {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
}

[data-bs-theme='dark'] .ia-page-add-listing .ia-add-main-card {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme='dark'] .ia-page-add-listing .ia-add-section {
  background: rgba(11, 17, 28, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme='dark'] .ia-page-add-listing .ia-form-surface .form-control,
[data-bs-theme='dark'] .ia-page-add-listing .ia-form-surface .form-select {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--ia-text);
}

/* ===== Разместить объявление — мобильная вёрстка ===== */
@media (max-width: 991.98px) {
  .ia-page-add-listing .ia-add-listing-page-section {
    padding-top: 0.65rem !important;
    padding-bottom: 1rem !important;
  }

  .ia-page-add-listing.ia-add-premium .ia-add-listing-page-section {
    padding-top: 0.35rem !important;
    padding-bottom: 0 !important;
  }

  html:has(body.ia-page-add-listing.ia-add-premium) {
    background: #050b18;
  }

  .ia-page-add-listing .ia-add-listing-page-section > .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .ia-page-add-listing .ia-add-page-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem !important;
  }

  .ia-page-add-listing .ia-add-page-lead-mobile {
    font-size: 0.78rem;
    color: var(--ia-muted);
    line-height: 1.4;
    margin-bottom: 0.65rem !important;
  }

  .ia-page-add-listing .alert {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
  }

  .ia-page-add-listing .ia-add-listing-layout {
    --bs-gutter-y: 0.65rem;
  }

  .ia-page-add-listing .ia-add-main-card {
    padding: 0.65rem !important;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .ia-page-add-listing .ia-add-accordion {
    gap: 0.45rem;
  }

  .ia-page-add-listing .ia-add-section {
    border-radius: 12px;
  }

  .ia-page-add-listing .ia-add-section > summary.ia-add-section-head {
    padding: 0.55rem 0.65rem;
    gap: 0.45rem;
  }

  .ia-page-add-listing .ia-add-section-num {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.72rem;
  }

  .ia-page-add-listing .ia-add-section-title {
    font-size: 0.86rem;
  }

  .ia-page-add-listing .ia-add-section-sub {
    font-size: 0.68rem;
  }

  .ia-page-add-listing .ia-add-section-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.88rem;
  }

  .ia-page-add-listing .ia-add-section-body {
    padding: 0.55rem 0.65rem 0.65rem;
  }

  .ia-page-add-listing .ia-add-section-body.row {
    --bs-gutter-x: 0.45rem;
    --bs-gutter-y: 0.4rem;
  }

  .ia-page-add-listing .ia-add-section-body .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
  }

  .ia-page-add-listing .ia-form-surface .form-control,
  .ia-page-add-listing .ia-form-surface .form-select {
    min-height: 38px;
    font-size: 16px;
    padding: 0.32rem 0.5rem;
    border-radius: 9px;
  }

  .ia-page-add-listing .ia-add-section-body.row > .col-12,
  .ia-page-add-listing .ia-add-section-body.row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ia-page-add-listing .ia-add-section-body.row > .col-6,
  .ia-page-add-listing .ia-add-section-body.row > .col-md-4,
  .ia-page-add-listing .ia-add-section-body.row > .col-md-6:not(:has(.input-group)) {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .ia-page-add-listing .ia-add-section-body.row > .col-md-6:has(.input-group) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ia-page-add-listing .ia-add-section-body .form-text {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-top: 0.2rem;
  }

  .ia-page-add-listing .ia-seller-geo-shell .ia-seller-name-input,
  .ia-page-add-listing .ia-listing-geo-btn {
    min-height: 38px;
    height: 38px;
  }

  .ia-page-add-listing .ia-listing-geo-btn {
    min-width: 2.75rem;
    width: 2.75rem;
  }

  .ia-page-add-listing .ia-listing-geo-btn i {
    font-size: 1.1rem;
  }

  .ia-page-add-listing .ia-add-section-body .form-check-label {
    font-size: 0.8rem;
  }

  .ia-page-add-listing .ia-photo-studio-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem !important;
  }

  .ia-page-add-listing .ia-photo-studio-lead {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .ia-page-add-listing .ia-photo-checklist {
    --bs-gutter-x: 0.35rem;
    --bs-gutter-y: 0.35rem;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-add-listing .ia-photo-checklist-item {
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.68rem;
    border-radius: 9px;
    gap: 0.3rem;
  }

  .ia-page-add-listing .ia-photo-checklist-item .bi {
    font-size: 0.82rem;
  }

  .ia-page-add-listing .ia-photo-workspace .ia-photo-slot-grid {
    gap: 0.45rem;
  }

  .ia-page-add-listing .ia-photo-slot-stage {
    min-height: 118px;
    aspect-ratio: 1 / 1;
  }

  .ia-page-add-listing .ia-photo-slot-num {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.68rem;
  }

  .ia-page-add-listing .ia-photo-slot-label {
    font-size: 0.62rem;
  }

  .ia-page-add-listing .ia-photo-slot-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.62rem;
    bottom: 0.4rem;
  }

  .ia-page-add-listing .ia-photo-slot-btn span {
    display: none;
  }

  .ia-page-add-listing .ia-photo-slot-btn .bi {
    font-size: 0.95rem;
  }

  .ia-page-add-listing .ia-photo-slot-status {
    padding: 0.28rem 0.4rem;
    font-size: 0.62rem;
  }

  .ia-page-add-listing .ia-photo-studio-aside {
    gap: 0.45rem;
  }

  .ia-page-add-listing .ia-photo-hero-preview,
  .ia-page-add-listing .ia-photo-hero-empty {
    min-height: 140px;
  }

  .ia-page-add-listing .ia-photo-hero-image {
    min-height: 140px;
  }

  .ia-page-add-listing .ia-photo-hero-empty {
    font-size: 0.74rem;
    padding: 0.65rem;
  }

  .ia-page-add-listing .ia-photo-thumb-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .ia-page-add-listing .ia-photo-tips,
  .ia-page-add-listing .ia-photo-help,
  .ia-page-add-listing .ia-photo-progress {
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
  }

  .ia-page-add-listing .ia-photo-studio-how {
    display: none;
  }

  .ia-page-add-listing .ia-photo-tips h3,
  .ia-page-add-listing .ia-photo-help h3,
  .ia-page-add-listing .ia-photo-progress h3 {
    font-size: 0.82rem;
    margin-bottom: 0.35rem !important;
  }

  .ia-page-add-listing .ia-photo-tips-list li {
    font-size: 0.72rem;
    margin-bottom: 0.28rem;
  }

  .ia-page-add-listing .ia-photo-studio-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.55rem !important;
  }

  .ia-page-add-listing .ia-photo-studio-nav .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.85rem;
  }

  .ia-page-add-listing .ia-video-studio .h5 {
    font-size: 0.95rem;
  }

  .ia-page-add-listing .ia-video-studio-lead {
    font-size: 0.74rem;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-add-listing .ia-add-section-body textarea.form-control {
    min-height: 96px;
  }

  .ia-page-add-listing .ia-add-form-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.75rem !important;
  }

  .ia-page-add-listing .ia-add-form-actions .btn {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .ia-page-add-listing .ia-add-form-actions .btn-outline-secondary {
    flex: 0 0 auto;
    width: auto;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .ia-page-add-listing .ia-add-form-actions #iaAddListingSubmitBtn {
    flex: 1 1 auto;
    width: auto;
    order: 0;
  }
}

@media (max-width: 380px) {
  .ia-page-add-listing:not(.ia-add-premium) .ia-photo-workspace .ia-photo-slot-grid {
    grid-template-columns: 1fr;
  }
}

.ia-add-page-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ia-text);
}

.ia-add-page-lead {
  max-width: 42rem;
  color: var(--ia-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.ia-seller-geo-shell {
  border-radius: var(--ia-radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ia-border);
}

.ia-seller-geo-shell .ia-seller-name-input {
  border-right: 0;
  min-height: 46px;
}

.ia-seller-geo-shell .ia-listing-geo-btn {
  border-left: 0;
  border-radius: 0 var(--ia-radius) var(--ia-radius) 0;
}

.ia-listing-geo-btn {
  flex-shrink: 0;
  min-width: 3.35rem;
  width: 3.35rem;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f87171;
  color: #dc2626;
  background: #fef2f2;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.ia-listing-geo-btn i {
  font-size: 1.4rem;
  line-height: 1;
}

.ia-listing-geo-btn:hover {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
  transform: scale(1.02);
}

.ia-listing-geo-btn.is-locating {
  opacity: 0.85;
  pointer-events: none;
}

.ia-listing-geo-btn.is-captured {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #15803d;
}

.ia-listing-geo-btn.is-captured i {
  color: #15803d;
}

.ia-listing-geo-btn--needs-action {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
  animation: ia-geo-pulse 1.6s ease-in-out infinite;
}

.ia-listing-geo-banner {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ia-listing-geo-banner--info {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.ia-listing-geo-banner--warn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.ia-listing-geo-banner--danger {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ia-add-section--complete {
  border-color: #22c55e;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.12);
}

.ia-add-section--complete > summary.ia-add-section-head {
  border-bottom-color: rgba(34, 197, 94, 0.25);
}

.ia-add-section--complete .ia-add-section-num {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.ia-add-section--complete .ia-add-section-meta,
.ia-add-section--complete .ia-add-section-sub {
  color: #15803d;
  font-weight: 600;
}

.ia-photo-camera-video {
  width: 100%;
  display: block;
  max-height: min(72vh, 640px);
  background: #0f1219;
  object-fit: cover;
}

.ia-photo-camera-modal .modal-body {
  background: #0f1219;
}

.ia-add-section--geo-locked > summary,
.ia-add-section--photo-locked > summary {
  opacity: 0.58;
  cursor: not-allowed;
}

.ia-add-section--geo-locked > summary .ia-add-section-arrow,
.ia-add-section--photo-locked > summary .ia-add-section-arrow {
  opacity: 0.45;
}

@keyframes ia-geo-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
}

.ia-add-side-card {
  border: 1px solid #dbe2ec;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ia-add-preview-panel {
  position: sticky;
  top: 1rem;
}

.ia-add-thumb-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

@media (min-width: 576px) {
  .ia-add-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ia-form-surface .form-label {
  color: #374151;
  font-weight: 500;
}

.ia-form-surface .form-control,
.ia-form-surface .form-select {
  background-color: var(--ia-fs-input-bg);
  border-color: var(--ia-fs-input-border);
  color: var(--ia-fs-text);
}

.ia-form-surface .form-control:focus,
.ia-form-surface .form-select:focus {
  background-color: #ffffff;
  border-color: var(--ia-accent);
  color: var(--ia-fs-text);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.18);
}

.ia-form-surface .form-control::placeholder {
  color: var(--ia-fs-placeholder);
  opacity: 1;
}

.ia-form-surface .form-control:disabled {
  background-color: #eef1f6;
  border-color: #d1d9e6;
  color: #5c6577;
}

.ia-form-surface .form-text {
  color: var(--ia-fs-muted);
}

.ia-form-surface .text-secondary {
  color: var(--ia-fs-muted) !important;
}

.ia-form-surface .table {
  color: var(--ia-fs-text);
}

.ia-form-surface .table thead th {
  color: var(--ia-fs-muted);
}

.ia-form-surface .ia-stat-mini {
  background: #f4f6fb;
  border-color: #d8dee9;
  color: var(--ia-fs-text);
}

.ia-form-surface .ia-stat-mini .text-secondary {
  color: var(--ia-fs-muted) !important;
}

/* Превью фото: обрезка без потери «качества» на экране (без растягивания до пикселей) */
.ia-media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--ia-radius);
  overflow: hidden;
  border: 1px solid #d8dee9;
  background: linear-gradient(145deg, #eef1f7 0%, #e4e9f2 100%);
}

.ia-media-frame--hero {
  aspect-ratio: 4 / 3;
}

.ia-media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ia-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ia-media-frame--row {
  aspect-ratio: 16 / 9;
  max-height: 200px;
}

.ia-thumb-cover {
  object-fit: cover;
  object-position: center;
}

/* Tables */
.ia-site .table {
  color: #111827;
  --bs-table-bg: transparent;
}

.ia-site .table thead th {
  color: var(--ia-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Home: promo slider + banner row (same container width) */
.ia-home-media {
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.35) 0%, transparent 100%);
}

.ia-promo-carousel {
  position: relative;
  border-radius: var(--ia-radius);
  overflow: hidden;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
}

.ia-promo-carousel .carousel-inner {
  border-radius: inherit;
}

.ia-promo-slide {
  display: block;
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  min-height: 0;
  background: var(--ia-card);
}

.ia-promo-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 991.98px) {
  .ia-promo-slide {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

@media (max-width: 767.98px) {
  .ia-promo-slide {
    aspect-ratio: 2 / 1;
    max-height: 200px;
  }

  .ia-promo-carousel .carousel-item {
    max-height: 200px;
  }

  .ia-home-media {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .ia-home-banner-grid > [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ia-home-banner-grid .ia-home-banner {
    aspect-ratio: 2.15 / 1;
    max-height: 150px;
  }
}

@media (max-width: 575.98px) {
  .ia-promo-slide {
    aspect-ratio: 16 / 10;
    max-height: 168px;
  }

  .ia-promo-carousel .carousel-item {
    max-height: 168px;
  }

  .ia-home-banner-grid .ia-home-banner {
    max-height: 132px;
  }
}

.ia-promo-control {
  width: min(12%, 4.5rem);
  opacity: 1;
}

.ia-promo-control .carousel-control-prev-icon,
.ia-promo-control .carousel-control-next-icon {
  width: 2.25rem;
  height: 2.25rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.ia-home-banner-grid .ia-home-banner {
  position: relative;
  display: block;
  border-radius: var(--ia-radius);
  overflow: hidden;
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  aspect-ratio: 18 / 8;
  max-height: clamp(130px, 18vw, 220px);
}

.ia-home-banner-grid .ia-home-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.ia-home-banner-grid .ia-home-banner:hover img {
  transform: scale(1.03);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .ia-nav-primary .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.85rem;
  }
}

@media (min-width: 992px) {
  .ia-nav .nav-link {
    white-space: nowrap;
  }
}

@media (max-width: 991.98px) {
  .ia-mini-search {
    width: 100%;
    max-width: none;
  }
  .ia-mini-search .form-control {
    flex: 1;
    max-width: none;
  }
}

/* Переключение темы: одна кнопка, 4 режима по кругу */
.ia-theme-cycle-btn .ia-theme-trigger-svg {
  width: 18px;
  height: 18px;
  display: none;
  fill: currentColor;
}

.ia-mobile-header .ia-theme-cycle-btn .ia-theme-trigger-svg {
  width: 16px;
  height: 16px;
}

html[data-ia-theme-pref='light'] .ia-theme-cycle-btn .ia-theme-trigger-svg-light,
html[data-ia-theme-pref='dark'] .ia-theme-cycle-btn .ia-theme-trigger-svg-dark,
html[data-ia-theme-pref='sepia'] .ia-theme-cycle-btn .ia-theme-trigger-svg-sepia,
html[data-ia-theme-pref='system'] .ia-theme-cycle-btn .ia-theme-trigger-svg-system {
  display: block;
}

.ia-theme-prefs-card {
  border-color: var(--ia-border) !important;
  background: var(--ia-card);
}

.ia-theme-option.active {
  background: var(--ia-accent) !important;
  border-color: var(--ia-accent) !important;
  color: #fff !important;
}

/* Тёплая тема (сепия): палитра + шапка */
[data-ia-palette='sepia'] {
  color-scheme: light;
  --ia-bg: #f3ebd9;
  --ia-surface: #faf5ea;
  --ia-card: #fffdf7;
  --ia-border: #e2d5bf;
  --ia-text: #3a3228;
  --ia-muted: #6e5f4e;
  --ia-shadow-sm: 0 2px 8px rgba(58, 50, 40, 0.08);
  --ia-shadow-md: 0 12px 28px rgba(58, 50, 40, 0.12);
}

[data-ia-palette='sepia'] .ia-nav {
  background: rgba(255, 252, 245, 0.97) !important;
  border-bottom-color: var(--ia-border) !important;
}

[data-ia-palette='sepia'] .ia-nav .nav-link {
  color: var(--ia-muted) !important;
}

[data-ia-palette='sepia'] .ia-nav .nav-link:hover {
  color: var(--ia-text) !important;
  background: rgba(139, 90, 43, 0.08);
}

[data-ia-palette='sepia'] .ia-nav .nav-link.active {
  color: #1d4ed8 !important;
  background: rgba(61, 126, 255, 0.12);
}

[data-ia-palette='sepia'] .ia-brand-shell:hover {
  background: rgba(139, 90, 43, 0.06);
}

[data-ia-palette='sepia'] .ia-home-media {
  background: linear-gradient(180deg, rgba(226, 213, 191, 0.45) 0%, transparent 100%);
}
[data-bs-theme='dark'] {
  color-scheme: dark;
  --ia-bg: #0c1017;
  --ia-surface: #131a23;
  --ia-card: #1a222e;
  --ia-border: #2d3d52;
  --ia-text: #e8edf4;
  --ia-muted: #94a3b8;
  --ia-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --ia-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
}

[data-bs-theme='dark'] .ia-nav {
  background: rgba(12, 16, 23, 0.96) !important;
  border-bottom-color: var(--ia-border) !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

[data-bs-theme='dark'] .ia-nav .nav-link {
  color: var(--ia-muted) !important;
}

[data-bs-theme='dark'] .ia-nav .nav-link:hover {
  color: var(--ia-text) !important;
  background: rgba(61, 126, 255, 0.12);
}

[data-bs-theme='dark'] .ia-nav .nav-link.active {
  color: #93b4ff !important;
  background: rgba(61, 126, 255, 0.18);
}

[data-bs-theme='dark'] .ia-nav-icon-btn {
  background: var(--ia-card);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-nav-icon-btn:hover {
  background: rgba(61, 126, 255, 0.15);
  border-color: var(--ia-accent);
  color: #dbeafe;
}

[data-bs-theme='dark'] .ia-mini-search .form-control {
  background: var(--ia-card);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-mini-search .form-control::placeholder {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-brand-shell:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme='dark'] .ia-quick-cats {
  background: var(--ia-bg);
}

[data-bs-theme='dark'] .ia-pop-cats-panel {
  background: var(--ia-card);
  border-color: var(--ia-border);
  box-shadow: var(--ia-shadow-sm);
}

[data-bs-theme='dark'] .ia-pop-cats-panel > .d-flex h2,
[data-bs-theme='dark'] .ia-pop-cat-item,
[data-bs-theme='dark'] .ia-pop-cat-label {
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-pop-cat-thumb {
  background-color: transparent;
}

[data-bs-theme='dark'] .ia-pop-cat-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-pop-cat-item:hover .ia-pop-cat-label {
  color: var(--ia-accent-hover);
}

[data-bs-theme='dark'] .ia-home-media {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.35) 0%, transparent 100%);
}

[data-bs-theme='dark'] .ia-listing-card-img-wrap--square {
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-listing-card--catalog .ia-listing-card-img {
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-brand-chip {
  background: var(--ia-card);
  color: var(--ia-text);
  border-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-brand-chip:hover {
  background: rgba(61, 126, 255, 0.12);
  border-color: var(--ia-accent);
  color: var(--ia-accent-hover);
  box-shadow: 0 6px 18px -10px rgba(61, 126, 255, 0.65);
}

[data-bs-theme='dark'] .ia-brands-section {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.35) 0%, transparent 100%);
}

[data-bs-theme='dark'] .ia-brands-section .ia-brand-card {
  color: #f8fafc;
}

[data-bs-theme='dark'] .ia-brands-section .ia-brand-card:hover {
  color: var(--ia-accent-hover);
}

[data-bs-theme='dark'] .ia-brands-more {
  color: var(--ia-accent-hover);
}

[data-bs-theme='dark'] .ia-brand-slider::-webkit-scrollbar-thumb {
  background: var(--ia-border);
}

[data-bs-theme='dark'] .ia-site .form-control,
[data-bs-theme='dark'] .ia-site .form-select {
  background: var(--ia-card);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-site .form-control::placeholder {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-site .form-control:focus,
[data-bs-theme='dark'] .ia-site .form-select:focus {
  background: var(--ia-card);
  color: var(--ia-text);
  border-color: var(--ia-accent);
}

[data-bs-theme='dark'] .ia-site .form-label {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-cabinet-page {
  background: var(--ia-bg);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-cabinet-sidebar {
  background: var(--ia-card);
  border-color: var(--ia-border);
  box-shadow: var(--ia-shadow-sm);
}

[data-bs-theme='dark'] .ia-cabinet-user {
  border-bottom-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-cabinet-nav-link {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-cabinet-nav-link i {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-cabinet-nav-link:hover {
  background: rgba(61, 126, 255, 0.1);
  color: var(--ia-text);
  border-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-cabinet-nav-link.active {
  background: rgba(61, 126, 255, 0.16);
  color: #93c5fd;
}

[data-bs-theme='dark'] .ia-cabinet-nav-link.active i {
  color: #93c5fd;
}

[data-bs-theme='dark'] .ia-cabinet-nav-link--danger {
  color: #fca5a5;
}

[data-bs-theme='dark'] .ia-cabinet-nav-link--danger i {
  color: #f87171;
}

[data-bs-theme='dark'] .ia-cabinet-item {
  background: var(--ia-card);
  border-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-cabinet-item-title a {
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-cabinet-chart-block {
  background: #131a23;
  border-color: #2d3d52;
}

[data-bs-theme='dark'] .ia-cabinet-bar-track {
  background: rgba(148, 163, 184, 0.15);
}

[data-bs-theme='dark'] .ia-cabinet-nav--mobile {
  border-top-color: #2d3d52;
}

[data-bs-theme='dark'] .ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .ia-stat-mini {
  background: var(--ia-surface);
  border-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-listing-tab.active {
  border-color: var(--ia-accent);
  color: #93c5fd;
  background: rgba(61, 126, 255, 0.14);
}

[data-bs-theme='dark'] .ia-step.active {
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-listing-tab {
  border-color: var(--ia-border);
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-page-section {
  background: var(--ia-bg);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-filters.ia-form-surface {
  background: var(--ia-card) !important;
  border-color: var(--ia-border) !important;
  color: var(--ia-text);
  color-scheme: dark;
  --ia-fs-text: var(--ia-text);
  --ia-fs-muted: var(--ia-muted);
  --ia-fs-input-bg: var(--ia-surface);
  --ia-fs-input-border: var(--ia-border);
  --ia-fs-placeholder: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-filters .form-control,
[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-filters .form-select {
  background: var(--ia-surface);
  border-color: var(--ia-border);
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-filter-toggle {
  background: var(--ia-pro-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--ia-pro-gradient-shadow);
}

[data-bs-theme='dark'] .ia-page-catalog .ia-catalog-filters-actions .ia-btn-accent {
  background: var(--ia-pro-gradient);
  box-shadow: var(--ia-pro-gradient-shadow);
}

[data-bs-theme='dark'] .ia-msg-theirs {
  background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme='dark'] .ia-add-thumb {
  border-color: var(--ia-border);
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-add-video-shell {
  border-color: var(--ia-border);
}

[data-bs-theme='dark'] .ia-photo-slot {
  border-color: var(--ia-border);
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-photo-slot-label {
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-photo-slot-btn {
  border-color: var(--ia-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-photo-slot-preview {
  border-color: var(--ia-border);
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme='dark'] .ia-photo-slot-example {
  background: rgba(61, 126, 255, 0.1);
  border-color: rgba(61, 126, 255, 0.28);
}

[data-bs-theme='dark'] .ia-photo-preview-panel {
  border-color: var(--ia-border);
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-photo-slot-hint {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-photo-checklist-item,
[data-bs-theme='dark'] .ia-photo-tips,
[data-bs-theme='dark'] .ia-photo-help,
[data-bs-theme='dark'] .ia-photo-studio-how,
[data-bs-theme='dark'] .ia-photo-progress,
[data-bs-theme='dark'] .ia-photo-thumb-tile {
  border-color: var(--ia-border);
  background: var(--ia-surface);
}

[data-bs-theme='dark'] .ia-photo-checklist-item {
  color: var(--ia-text);
}

[data-bs-theme='dark'] .ia-photo-tips-list li,
[data-bs-theme='dark'] .ia-photo-how-steps li,
[data-bs-theme='dark'] .ia-photo-studio-lead,
[data-bs-theme='dark'] .ia-video-studio-lead {
  color: var(--ia-muted);
}

[data-bs-theme='dark'] .ia-photo-slot-status[data-status='pending'] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ia-muted);
}


[data-bs-theme='dark'] .ia-profile-thumb-wrap {
  background: var(--ia-surface);
}

/* Блог */
.ia-blog-hero {
  padding: clamp(2.25rem, 6vw, 4rem) 0;
  background: linear-gradient(165deg, rgba(61, 126, 255, 0.08) 0%, transparent 55%);
  border-bottom: 1px solid var(--ia-border);
}

.ia-blog-stat-panel {
  background: var(--ia-card);
  border: 1px solid var(--ia-border);
  box-shadow: var(--ia-shadow-sm);
}

.ia-blog-stat-panel a {
  color: var(--ia-accent);
}

.ia-blog-stat-panel a:hover {
  color: var(--ia-accent-hover);
}

.ia-blog-card {
  border-radius: var(--ia-radius-lg);
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  box-shadow: var(--ia-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ia-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ia-shadow-md);
  border-color: rgba(61, 126, 255, 0.28);
}

.ia-blog-card-top {
  height: 5px;
  background: linear-gradient(90deg, var(--ia-accent), #7c3aed 52%, var(--ia-cta));
}

.ia-blog-tag {
  background: rgba(61, 126, 255, 0.12);
  color: var(--ia-accent);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
}

[data-bs-theme='dark'] .ia-blog-tag {
  color: #93b4ff;
  background: rgba(61, 126, 255, 0.2);
}

[data-ia-palette='sepia'] .ia-blog-tag {
  color: #6b4f2e;
  background: rgba(139, 90, 43, 0.14);
}

.ia-blog-read-more {
  color: var(--ia-accent);
}

.ia-car-360-block {
  border: 1px solid var(--ia-border);
  border-radius: 1rem;
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(61, 126, 255, 0.06), transparent 70%);
}

.ia-car-360-view {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid var(--ia-border);
  background: #0f172a;
  min-height: 260px;
  cursor: grab;
  touch-action: none;
}

.ia-car-360-view:active {
  cursor: grabbing;
}

.ia-car-360-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  user-select: none;
}

.ia-car-360-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.ia-car-action-btn--report {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.ia-car-action-btn--report:hover {
  background: rgba(239, 68, 68, 0.08);
}

.ia-chat-report-btn {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.15rem;
}

.ia-photo-slot--optional .ia-photo-slot-status-label::after,
.ia-photo-slot--optional .ia-photo-slot-head::after {
  content: none;
}

.ia-photo-slot--optional .ia-photo-slot-status[data-status='pending'] .ia-photo-slot-status-label::after {
  content: none;
}

.ia-photo-slot--optional:not(.ia-photo-slot--accepted) {
  border-style: dashed;
  opacity: 0.96;
}

.ia-photo-slot--optional:not(.ia-photo-slot--accepted) .ia-photo-slot-num {
  background: #64748b;
}

.ia-photo-slot--edit .ia-photo-slot-btn {
  margin-top: 0;
  font-size: 0.6875rem;
  padding: 0.28rem 0.55rem;
  bottom: 0.35rem;
}

/* ----- Edit listing: compact photo grid + form ----- */
.ia-edit-listing-wrap {
  max-width: 980px;
}

.ia-photo-edit .ia-photo-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .ia-photo-edit .ia-photo-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ia-photo-edit .ia-photo-slot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.ia-photo-edit .ia-photo-slot {
  border-radius: 10px;
}

.ia-photo-edit .ia-photo-slot-stage {
  aspect-ratio: 4 / 3;
  min-height: 0;
  cursor: pointer;
}

.ia-photo-edit .ia-photo-slot-preview {
  padding: 0;
}

.ia-photo-edit .ia-photo-slot-preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.ia-photo-edit .ia-photo-slot-head {
  padding: 0.28rem 0.38rem;
}

.ia-photo-edit .ia-photo-slot-num {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.6875rem;
}

.ia-photo-edit .ia-photo-slot-label {
  font-size: 0.6875rem;
}

.ia-edit-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .ia-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ia-edit-fields > .mb-3,
.ia-edit-fields > .ia-edit-span-2,
.ia-edit-fields > .ia-edit-actions {
  margin-bottom: 0 !important;
}

.ia-edit-fields > .ia-edit-span-2 {
  grid-column: 1 / -1;
}

.ia-edit-listing-form .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
}

.ia-edit-listing-form .form-control,
.ia-edit-listing-form .form-select {
  font-size: 0.9375rem;
}

.ia-edit-actions {
  padding-top: 0.25rem;
}

/* ----- Edit listing — premium mobile ----- */
body.ia-page-edit-listing.ia-edit-premium {
  -webkit-tap-highlight-color: transparent;
}

body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card.ia-form-surface {
  color-scheme: light;
  --ia-fs-text: #111827;
  --ia-fs-muted: #5c6577;
  --ia-fs-input-bg: #ffffff;
  --ia-fs-input-border: #c5cdd8;
  --ia-fs-placeholder: #6b7280;
  background: #ffffff !important;
  border: 1px solid #dbe2ec;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  padding: 0.85rem;
}

body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-control,
body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-select {
  background-color: #fff !important;
  border-color: #c5cdd8 !important;
  color: #111827 !important;
}

body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-control:focus,
body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-select:focus {
  background-color: #fff !important;
  border-color: #3d7eff !important;
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.16);
}

.ia-edit-premium-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ia-edit-premium-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d7eff;
  text-decoration: none;
}

.ia-edit-premium-back:hover {
  color: #1d4ed8;
}

.ia-edit-premium-title {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ia-text);
}

.ia-edit-premium-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ia-muted);
}

.ia-edit-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ia-edit-section {
  border: 1px solid var(--ia-border);
  border-radius: 14px;
  background: var(--ia-card);
  overflow: hidden;
}

.ia-edit-section[open] {
  border-color: rgba(61, 126, 255, 0.28);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.ia-edit-section > summary.ia-edit-section-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  user-select: none;
}

.ia-edit-section > summary.ia-edit-section-head::-webkit-details-marker {
  display: none;
}

.ia-edit-section-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 126, 255, 0.1);
  color: #3d7eff;
  font-size: 1rem;
}

.ia-edit-section-head-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ia-edit-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ia-text);
}

.ia-edit-section-sub {
  font-size: 0.72rem;
  color: var(--ia-muted);
}

.ia-edit-section-arrow {
  flex: 0 0 auto;
  color: var(--ia-muted);
  transition: transform 0.2s ease;
}

.ia-edit-section[open] > summary .ia-edit-section-arrow {
  transform: rotate(180deg);
}

.ia-edit-section-body {
  padding: 0 0.85rem 0.85rem;
}

.ia-edit-section-lead {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--ia-muted);
}

.ia-edit-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ia-border);
}

.ia-edit-premium-actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
}

.ia-edit-premium-save {
  background: linear-gradient(135deg, #3d7eff 0%, #2f64cc 100%);
  border: none;
  box-shadow: 0 6px 16px rgba(61, 126, 255, 0.28);
}

@media (max-width: 991.98px) {
  body.ia-page-edit-listing.ia-edit-premium .ia-edit-listing-page-section {
    padding-top: 0.5rem !important;
    padding-bottom: 5.5rem !important;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-listing-wrap.container.ia-container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    max-width: 100%;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card.ia-form-surface {
    padding: 0.65rem;
    border-radius: 16px;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-weight: 600;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-control,
  body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card .form-select {
    min-height: 44px;
    font-size: 16px;
    border-radius: 11px;
    padding: 0.45rem 0.65rem;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-fields {
    gap: 0.55rem;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-photo-edit .ia-photo-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-actions {
    position: sticky;
    bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    margin: 0.75rem -0.15rem 0;
    padding: 0.65rem;
    border-top: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
  }

  body.ia-page-profile .ia-cabinet-page > .container.ia-container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    max-width: 100%;
  }

  body.ia-page-profile .ia-cabinet-page .row.g-4 {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.75rem;
  }

  body.ia-page-profile .ia-cabinet-listings-card--premium,
  body.ia-page-profile .ia-cabinet-sidebar {
    width: 100%;
  }

  body.ia-page-car .ia-car-page-section > .container.ia-container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    max-width: 100%;
  }

  body.ia-page-car .ia-car-page-section {
    padding-bottom: 4.5rem !important;
  }
}

[data-bs-theme='dark'] body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-card.ia-form-surface {
  background: #fff !important;
  color: #111827;
}

[data-bs-theme='dark'] body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-title {
  color: var(--ia-text);
}

[data-bs-theme='dark'] body.ia-page-edit-listing.ia-edit-premium .ia-edit-premium-actions {
  background: rgba(255, 255, 255, 0.96);
}

/* ----- Contact page (premium) ----- */
.ia-contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(145deg, #0b1220 0%, #151f33 48%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ia-contact-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 85%, rgba(124, 58, 237, 0.2), transparent 50%);
}

.ia-contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.ia-contact-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.22);
}

.ia-contact-hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #f8fafc;
}

.ia-contact-hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.ia-contact-main {
  background: linear-gradient(180deg, var(--ia-surface) 0%, var(--ia-bg) 100%);
}

.ia-contact-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ia-contact-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ia-text);
}

.ia-contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ia-contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: var(--ia-radius);
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ia-contact-info-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 14px 36px -16px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.ia-contact-info-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.ia-contact-info-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ia-muted);
}

.ia-contact-info-value {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ia-text);
  text-decoration: none;
  word-break: break-word;
}

a.ia-contact-info-value:hover {
  color: var(--ia-accent);
}

.ia-contact-info-value--text {
  font-weight: 500;
  line-height: 1.5;
}

.ia-contact-trust {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ia-contact-trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ia-muted);
}

.ia-contact-trust .bi {
  color: var(--ia-accent);
  font-size: 1rem;
}

.ia-contact-form-panel {
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: calc(var(--ia-radius) + 4px);
  border: 1px solid var(--ia-border);
  box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.45);
}

.ia-contact-form-head {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ia-border);
}

.ia-contact-alert {
  border-radius: 10px;
  font-size: 0.9rem;
}

.ia-contact-form .form-control {
  min-height: 2.75rem;
}

.ia-contact-form textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

.ia-contact-submit {
  min-width: 11rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .ia-contact-form-panel {
    margin-top: 0.25rem;
  }

  .ia-contact-trust {
    margin-top: 0.5rem;
  }
}

[data-bs-theme='dark'] .ia-contact-hero {
  background: linear-gradient(145deg, #060a12 0%, #0f172a 50%, #060a12 100%);
}

[data-bs-theme='dark'] .ia-contact-info-card {
  background: var(--ia-card);
}

/* ----- About page (premium light) ----- */
.ia-about-page {
  background: var(--ia-bg);
}

.ia-about-container {
  max-width: 1080px;
}

.ia-about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--ia-border);
  background: linear-gradient(165deg, #f0f6ff 0%, #f8fafc 42%, #ffffff 100%);
}

.ia-about-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(61, 126, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(99, 102, 241, 0.08), transparent 52%);
}

.ia-about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ia-about-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.ia-about-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(61, 126, 255, 0.1);
  border: 1px solid rgba(61, 126, 255, 0.22);
}

.ia-about-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ia-text);
}

.ia-about-hero-lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.65;
  color: var(--ia-muted);
}

.ia-about-hero-aside {
  padding: 1.25rem 1.35rem;
  border-radius: var(--ia-radius-lg);
  border: 1px solid rgba(61, 126, 255, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px -24px rgba(37, 99, 235, 0.35);
  backdrop-filter: blur(8px);
}

.ia-about-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ia-text);
}

.ia-about-hero-points li + li {
  margin-top: 0.7rem;
}

.ia-about-hero-points i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.1rem;
  color: #2563eb;
}

.ia-about-body {
  background: linear-gradient(180deg, #f8fafc 0%, var(--ia-bg) 120px);
}

.ia-about-panel {
  border-radius: var(--ia-radius-lg);
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  box-shadow: var(--ia-shadow-sm);
}

.ia-about-panel--mission {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.75rem;
  border-left: 4px solid var(--ia-accent);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.ia-about-panel--card {
  padding: 1.5rem 1.5rem 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ia-about-panel--card:hover {
  border-color: rgba(61, 126, 255, 0.35);
  box-shadow: 0 18px 42px -22px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

.ia-about-panel-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ia-accent);
}

.ia-about-panel-title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ia-text);
}

.ia-about-panel-text {
  margin: 0 0 1rem;
  color: var(--ia-muted);
  line-height: 1.65;
}

.ia-about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  font-size: 1.2rem;
  color: #fff;
}

.ia-about-icon--buy {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.65);
}

.ia-about-icon--sell {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.55);
}

.ia-about-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ia-about-checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ia-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ia-about-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ia-accent);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.15);
}

.ia-about-checklist li + li {
  margin-top: 0.55rem;
}

.ia-about-audience {
  margin-bottom: 2.5rem;
}

.ia-about-trust {
  margin-bottom: 2.5rem;
}

.ia-about-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ia-text);
}

.ia-about-section-lead {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--ia-muted);
  line-height: 1.6;
}

.ia-about-trust-card {
  padding: 1.35rem 1.15rem;
  text-align: center;
  border-radius: var(--ia-radius);
  border: 1px solid var(--ia-border);
  background: var(--ia-card);
  box-shadow: var(--ia-shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ia-about-trust-card:hover {
  border-color: rgba(61, 126, 255, 0.3);
  transform: translateY(-2px);
}

.ia-about-trust-card i {
  display: block;
  margin: 0 auto 0.7rem;
  font-size: 1.75rem;
  color: var(--ia-accent);
}

.ia-about-trust-card h3 {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ia-text);
}

.ia-about-trust-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ia-muted);
}

.ia-about-cta {
  border-radius: var(--ia-radius-lg);
  border: 1px solid rgba(61, 126, 255, 0.22);
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
  box-shadow: 0 20px 48px -28px rgba(37, 99, 235, 0.45);
}

.ia-about-cta-inner {
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.ia-about-cta-text {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--ia-muted);
  line-height: 1.6;
}

[data-bs-theme='dark'] .ia-about-hero {
  background: linear-gradient(165deg, #0f172a 0%, #111827 50%, var(--ia-bg) 100%);
}

[data-bs-theme='dark'] .ia-about-hero-aside {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(91, 146, 255, 0.25);
}

[data-bs-theme='dark'] .ia-about-panel--mission {
  background: linear-gradient(135deg, var(--ia-card) 0%, rgba(30, 41, 59, 0.6) 100%);
}

[data-bs-theme='dark'] .ia-about-body {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, var(--ia-bg) 140px);
}

[data-bs-theme='dark'] .ia-about-kicker {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

/* ===== Главная — мобильный макет (баннер + бренды) ===== */
@media (max-width: 991.98px) {
  body.ia-page-home-body .ia-home-mobile {
    position: relative;
    z-index: 0;
  }

  /* Баннер мобилӣ — премиум (фон full, матн чап, поиск «плавающий») */
  .ia-home-mobile {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
  }

  .ia-home-mobile-form {
    display: block;
  }

  .ia-home-hero {
    position: relative;
    overflow: hidden;
    color: #f8fafc;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #050b18;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  }

  .ia-home-hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    align-items: stretch;
    width: 100%;
    min-height: clamp(200px, 46vw, 280px);
    overflow: hidden;
    background: #050b18;
  }

  .ia-home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #0a0e14;
  }

  .ia-home-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 40%;
    display: block;
  }

  .ia-home-hero:not(.ia-home-hero--has-img) .ia-home-hero-media {
    background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: 68% 42%;
    background-repeat: no-repeat;
  }

  .ia-home-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(
        102deg,
        rgba(5, 8, 14, 0.92) 0%,
        rgba(5, 8, 14, 0.72) 30%,
        rgba(5, 8, 14, 0.28) 50%,
        transparent 72%
      ),
      linear-gradient(180deg, rgba(5, 8, 14, 0.35) 0%, transparent 42%, rgba(5, 8, 14, 0.5) 100%);
  }

  .ia-home-hero-head {
    position: relative;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 1.1rem 0.65rem 1.5rem max(1.05rem, env(safe-area-inset-left, 0px));
    z-index: 2;
  }

  .ia-home-hero-accent {
    display: block;
    width: 2.15rem;
    height: 3px;
    margin: 0 0 0.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #3d7eff 0%, #5b92ff 55%, #7c3aed 100%);
    box-shadow: 0 0 12px rgba(61, 126, 255, 0.45);
  }

  .ia-home-hero-aside {
    grid-column: 2;
    position: relative;
    z-index: 1;
    min-height: 0;
    pointer-events: none;
  }

  .ia-home-hero-title {
    margin: 0 0 0.45rem;
    max-width: 11.5rem;
    font-size: clamp(1.28rem, 6.2vw, 1.62rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  }

  .ia-home-hero-lead {
    margin: 0;
    max-width: 10.5rem;
    font-size: clamp(0.72rem, 3.1vw, 0.84rem);
    font-weight: 400;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  }

  .ia-home-hero-actions--dock {
    position: relative;
    z-index: 6;
    margin-top: -1.05rem;
    padding: 0 0.95rem 0.8rem;
    padding-left: max(0.95rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.95rem, env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, transparent 0%, #050b18 32%);
    border-top: 0;
  }

  .ia-home-hero-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.95rem;
    padding: 0.4rem 0.4rem 0.4rem 0.8rem;
    border-radius: 14px;
    background: rgba(12, 18, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .ia-home-hero-actions--dock:has(.ia-home-filters-panel:not([hidden])) .ia-home-hero-search {
    margin-bottom: 0.55rem;
    border-radius: 16px 16px 12px 12px;
  }

  .ia-home-hero-search-ico {
    color: rgba(147, 197, 253, 0.95);
    font-size: 1.05rem;
    flex: 0 0 auto;
  }

  .ia-home-hero-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.4rem 0;
    outline: none;
  }

  .ia-home-hero-search-input::placeholder {
    color: rgba(203, 213, 225, 0.78);
  }

  .ia-home-hero-filter-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #3d7eff, #5b92ff);
    color: #fff;
    font-size: 0.98rem;
    padding: 0;
    box-shadow: 0 4px 14px rgba(61, 126, 255, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
  }

  .ia-home-hero-filter-toggle:active {
    transform: scale(0.96);
  }

  .ia-home-hero-filter-toggle.is-active {
    background: linear-gradient(145deg, #5b92ff 0%, #7c3aed 100%);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35), 0 8px 22px rgba(91, 146, 255, 0.4);
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) .ia-home-hero {
    background: #0f172a;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) .ia-home-hero-actions--dock {
    background: linear-gradient(180deg, transparent 0%, #f8fafc 30%);
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) .ia-home-hero-search {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) .ia-home-hero-search-input {
    color: #0f172a;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) .ia-home-hero-search-input::placeholder {
    color: #64748b;
  }

  /* Форма фильтров — зери баннер, стиль премиум */
  .ia-home-hero-actions--dock .ia-home-filters-panel {
    margin-top: 0;
    padding: 0.6rem 0.6rem 0.65rem;
    border-radius: 12px 12px 16px 16px;
    background: rgba(14, 20, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .ia-home-filters-panel {
    padding: 0.55rem 0.55rem 0.6rem;
    border-radius: 14px;
    background: #121820;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ia-home-filters-panel[hidden] {
    display: none !important;
  }

  .ia-home-filters-panel:not([hidden]) {
    animation: iaHomeFiltersIn 0.22s ease-out;
  }

  @keyframes iaHomeFiltersIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ia-home-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .ia-home-filter-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.35rem;
    padding: 0 0.55rem;
    border-radius: 11px;
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  .ia-home-filter-field--select {
    padding-right: 1.55rem;
  }

  .ia-home-filter-ico {
    flex: 0 0 auto;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.82rem;
    line-height: 1;
  }

  .ia-home-filter-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #f1f5f9;
    font-size: 16px;
    line-height: 1.2;
    padding: 0.45rem 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }

  .ia-home-filter-control option {
    color: #111827;
    background: #fff;
  }

  .ia-home-filter-control::placeholder {
    color: rgba(203, 213, 225, 0.88);
  }

  .ia-home-filter-chev {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.7rem;
    pointer-events: none;
  }

  .ia-home-filter-field:not(.ia-home-filter-field--select) .ia-home-filter-chev {
    display: none;
  }

  .ia-home-filters-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.65rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3d7eff 0%, #5b92ff 55%, #7c3aed 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(61, 126, 255, 0.35);
  }

  .ia-home-filters-submit i {
    font-size: 1.05rem;
  }

  /* Главная на телефоне — тёмный canvas только в dark */
  html[data-bs-theme='dark'] body.ia-page-home-body.ia-site {
    background: #050b18 !important;
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] body.ia-page-home-body.ia-site main {
    background: #050b18;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section {
    background: #050b18;
    border-color: rgba(255, 255, 255, 0.06);
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section h2,
  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section .letter-spacing {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section p.text-secondary {
    color: rgba(148, 163, 184, 0.95) !important;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section .ia-brands-more {
    color: #93c5fd !important;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section .ia-brand-card {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section .ia-brand-card-mark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-brands-section .ia-brand-card-count {
    color: rgba(148, 163, 184, 0.92);
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-quick-cats--bleed {
    margin-top: 0;
    background: #050b18;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='dark'] .ia-page-home .ia-quick-cats--bleed .ia-pop-cat-label {
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-quick-cats--bleed .ia-pop-cats-more {
    color: #93c5fd;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-page-section {
    background: #050b18;
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-vip-section,
  html[data-bs-theme='dark'] .ia-page-home .ia-page-section .text-secondary {
    color: rgba(148, 163, 184, 0.95);
  }

  html[data-bs-theme='dark'] .ia-page-home .ia-page-section h2,
  html[data-bs-theme='dark'] .ia-page-home .ia-page-section .h5 {
    color: #f8fafc;
  }
}

/* ===== Главная — мобильная вёрстка (остальные блоки) ===== */
@media (max-width: 991.98px) {
  .ia-page-home .ia-hero-compact {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .ia-page-home .ia-hero-compact .ia-hero-premium-inner {
    margin-top: 0;
  }

  .ia-page-home .ia-hero .ia-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Баннер телефон: IMG/baneri telefon.jpeg, текст слева на фоне */
  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-premium-bg {
    display: none;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-mobile-banner-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #050b18;
    background-image:
      linear-gradient(
        105deg,
        rgba(6, 8, 12, 0.94) 0%,
        rgba(6, 8, 12, 0.82) 34%,
        rgba(6, 8, 12, 0.45) 52%,
        rgba(6, 8, 12, 0.12) 72%,
        transparent 100%
      ),
      var(--ia-hero-mobile-img);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner.ia-hero-compact {
    min-height: clamp(300px, 58vw, 420px);
    justify-content: flex-end;
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner .row.justify-content-center {
    justify-content: flex-start !important;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-premium-inner {
    text-align: left;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-premium-title,
  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-premium-lead {
    text-align: left;
    max-width: 15.5rem;
  }

  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-search {
    margin-top: 0.35rem;
  }
}

@media (max-width: 767.98px) {
  .ia-page-home .ia-hero.ia-hero--mobile-banner .ia-hero-premium-title {
    max-width: 17rem;
  }

  .ia-page-home .ia-hero-compact .ia-hero-premium-title {
    font-size: 1.12rem;
    line-height: 1.22;
    margin-bottom: 0.28rem;
  }

  .ia-page-home .ia-hero-compact .ia-hero-premium-lead {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .ia-page-home .ia-hero-search {
    padding: 0.55rem 0.6rem 0.6rem;
    border-radius: 14px;
    margin-top: 0;
  }

  .ia-page-home .ia-hero-search-grid {
    --bs-gutter-x: 0.4rem;
    --bs-gutter-y: 0.4rem;
  }

  .ia-page-home .ia-hero-search .form-control,
  .ia-page-home .ia-hero-search .form-select {
    min-height: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 9px;
    padding: 0.28rem 0.45rem;
  }

  .ia-page-home .ia-hero-search-label {
    font-size: 0.58rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.04em;
  }

  .ia-page-home .ia-hero-field--submit {
    margin-top: 0.1rem;
  }

  .ia-page-home .ia-hero-search-btn {
    min-height: 42px;
    height: 42px;
    font-size: 0.95rem;
    border-radius: 11px;
    margin-top: 0;
  }

  .ia-page-home .ia-pop-cats-panel {
    padding: 1rem 0.85rem;
    border-radius: 14px;
  }

  .ia-page-home .ia-pop-cats-panel > .d-flex {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .ia-page-home .ia-pop-cats-panel > .d-flex h2 {
    font-size: 1rem;
  }

  .ia-site .row.g-4 > .col-12.col-sm-6.col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .ia-site .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.65rem;
  }

  .ia-listing-card .p-3,
  .ia-vip-card-body,
  .ia-listing-card-body {
    padding: 0.55rem !important;
  }

  .ia-page-home .ia-listing-card-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .ia-listing-card-meta {
    align-items: center;
    gap: 0.2rem;
  }

  .ia-price-card {
    font-size: 0.86rem;
    max-width: 58%;
    text-align: right;
    line-height: 1.2;
  }

  .ia-listing-specs-dl,
  .ia-vip-dl {
    font-size: 0.68rem;
  }

  .ia-listing-specs-dl dt,
  .ia-vip-dl dt {
    font-size: 0.58rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }

  .ia-listing-specs-dl dd,
  .ia-vip-dl dd {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .ia-page-home .ia-badge-availability {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
    line-height: 1.2;
  }

  .ia-page-car .ia-car-views-stat {
    font-size: 0.76rem;
  }

  .ia-card-title-clamp {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .ia-page-home .ia-vip-section .d-flex.justify-content-between,
  .ia-page-home .ia-page-section > .container > .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.25rem;
  }

  .ia-page-home .ia-listing-card {
    border-radius: 14px;
  }

  .ia-page-home .ia-why-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .ia-page-home .ia-why-section-title {
    font-size: 0.72rem;
    margin-bottom: 0.65rem !important;
  }

  .ia-page-home .ia-why-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }

  .ia-page-home .ia-why-grid::-webkit-scrollbar {
    display: none;
  }

  .ia-page-home .ia-why-grid > [class*='col-'] {
    flex: 0 0 min(78vw, 17.5rem);
    max-width: min(78vw, 17.5rem);
    scroll-snap-align: start;
    padding-left: 0;
    padding-right: 0;
  }

  .ia-page-home .ia-why-card {
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
  }

  .ia-page-home .ia-why-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem !important;
  }

  .ia-page-home .ia-why-card p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .ia-page-home .ia-promo-carousel {
    border-radius: 14px;
    overflow: hidden;
  }

  .ia-page-home .ia-home-banner-grid .ia-home-banner img {
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  .ia-pop-cats-slider .ia-pop-cats-col {
    flex: 0 0 40vw;
    max-width: 40vw;
  }

  .ia-page-home .ia-pop-cat-label {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .ia-page-home .ia-page-section {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .ia-page-home .letter-spacing {
    font-size: 0.72rem;
  }
}

/* Мобильная шапка — единый макет на всех страницах (логотип + поиск + 🔔 + продажа) */
@media (max-width: 991.98px) {
  .ia-site-header--compact {
    --ia-mh-h: 38px;
    --ia-mh-logo-h: 46px;
    --ia-mh-gap: 6px;
    --ia-mh-r-search: 12px;
    --ia-mh-r-btn: 12px;
    --ia-mh-search-min: 72px;
    --ia-mh-bg: rgba(10, 14, 22, 0.94);
    --ia-mh-surface: #1a222e;
    --ia-mh-border: rgba(148, 163, 184, 0.2);
  }

  .ia-site-header--compact {
    contain: none;
    overflow: visible;
  }

  .ia-site-header--compact .ia-nav {
    background: var(--ia-mh-bg) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(61, 126, 255, 0.14) !important;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
    overflow: visible;
  }

  body.ia-page-home-body .ia-site-header--home .ia-nav {
    border-bottom-color: rgba(45, 61, 82, 0.35) !important;
  }

  body.ia-site {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  body.ia-page-add-listing.ia-add-premium {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden;
  }

  .ia-site-header--compact .ia-nav > .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--ia-mh-gap);
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    overflow: visible;
  }

  .ia-site-header--compact .ia-nav .navbar-brand {
    min-width: 0 !important;
    margin-right: 0;
    max-width: none;
    flex: 0 0 auto;
    padding: 0;
    overflow: visible;
  }

  .ia-site-header--compact .ia-nav .navbar-brand.ia-brand-shell {
    padding: 0;
    gap: 0;
  }

  .ia-site-header--compact .ia-brand-lockup--compact {
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .ia-site-header--compact .ia-brand-mark-only {
    display: block;
    height: var(--ia-mh-logo-h);
    width: var(--ia-mh-logo-h);
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(61, 126, 255, 0.38));
  }

  .ia-site-header--compact .ia-brand-lockup-text {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .ia-site-header--compact .ia-brand-lockup-innova {
    color: #ffffff;
  }

  .ia-site-header--compact .ia-brand-lockup-auto {
    background: linear-gradient(90deg, #3d7eff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .ia-site-header--compact .ia-brand-wordmark,
  .ia-site-header--compact .ia-nav .navbar-brand .ia-brand-wordmark {
    display: block;
    height: var(--ia-mh-logo-h) !important;
    width: auto !important;
    max-width: 100% !important;
    flex-shrink: 0;
  }

  .ia-site-header--compact .ia-nav .navbar-brand:not(.ia-brand-shell--logo) .ia-brand-text {
    display: none !important;
  }

  .ia-site-header--compact .ia-brand-shell--logo-mobile-text .ia-brand-logo {
    height: var(--ia-mh-logo-h) !important;
    max-height: var(--ia-mh-logo-h) !important;
    max-width: var(--ia-mh-logo-h) !important;
    width: var(--ia-mh-logo-h) !important;
    object-fit: contain;
    border-radius: 8px;
  }

  .ia-site-header--compact .ia-brand-shell--logo-mobile-text .ia-brand-text {
    display: inline !important;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0 0.3rem;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.02em;
  }

  .ia-nav-collapse {
    display: none !important;
  }

  .ia-nav-auth .ia-btn-post-listing {
    display: none;
  }

  .ia-site-header--compact .ia-mobile-header {
    gap: var(--ia-mh-gap);
    min-width: 0;
    flex: 1 1 0;
    display: flex !important;
    align-items: center;
    overflow: visible;
  }

  .ia-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--ia-mh-gap);
    flex-shrink: 0;
    overflow: visible;
  }

  .ia-site-header--compact .ia-mobile-header-btn--badged {
    overflow: visible;
  }

  .ia-site-header--compact .ia-mobile-search {
    flex: 1 1 var(--ia-mh-search-min);
    min-width: var(--ia-mh-search-min);
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ia-mh-border);
    border-radius: var(--ia-mh-r-search);
    background: var(--ia-mh-surface);
    overflow: hidden;
    min-height: var(--ia-mh-h);
    height: var(--ia-mh-h);
    padding-left: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .ia-site-header--compact .ia-mobile-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: #e8edf4;
    font-size: 14px;
    line-height: 1.2;
    padding: 0 8px 0 0;
    outline: none;
    box-shadow: none;
  }

  .ia-site-header--compact .ia-mobile-search-input::placeholder {
    color: #64748b;
    opacity: 1;
  }

  .ia-site-header--compact .ia-mobile-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ia-mh-h);
    height: 100%;
    border: 0;
    border-left: 1px solid var(--ia-mh-border);
    border-radius: 0 var(--ia-mh-r-search) var(--ia-mh-r-search) 0;
    background: rgba(61, 126, 255, 0.1);
    color: #93c5fd;
    font-size: 0.95rem;
    padding: 0;
    flex-shrink: 0;
  }

  .ia-site-header--compact .ia-mobile-header-btn {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ia-mh-h);
    height: var(--ia-mh-h);
    border-radius: var(--ia-mh-r-btn);
    border: 1px solid var(--ia-mh-border);
    background: var(--ia-mh-surface);
    color: #e8edf4;
    text-decoration: none;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .ia-site-header--compact .ia-mobile-header-btn:active {
    transform: scale(0.96);
  }

  .ia-mobile-header-btn-core {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .ia-mobile-header-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(22%, -24%);
    box-sizing: border-box;
    min-width: 1.12rem;
    height: 1.12rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.59rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 6;
    border: 2px solid var(--ia-mh-surface);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .ia-site-header--compact .ia-mobile-header-sell {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #2563eb 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.1;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    min-height: var(--ia-mh-h);
    height: var(--ia-mh-h);
    flex-shrink: 0;
  }

  .ia-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    background: var(--ia-surface);
    border-top: 1px solid var(--ia-border);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
    contain: layout style;
  }

  .ia-mobile-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.18rem 0.08rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ia-muted);
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.05;
  }

  .ia-mobile-tab-ico-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .ia-mobile-tab i {
    font-size: 1.28rem;
    line-height: 1;
  }

  .ia-mobile-tab--sell {
    gap: 0.12rem;
  }

  .ia-mobile-tab--sell .ia-mobile-tab-ico-wrap--sell {
    position: relative;
    z-index: 1;
    width: 2.65rem;
    height: 2.65rem;
    margin-top: -0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.42);
    border: 2px solid var(--ia-surface);
    animation: ia-tab-sell-breathe 2.4s ease-in-out infinite;
    will-change: transform, box-shadow;
  }

  .ia-mobile-tab--sell .ia-mobile-tab-ico-wrap--sell::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(59, 130, 246, 0.45);
    pointer-events: none;
    animation: ia-tab-sell-ripple 2.4s ease-out infinite;
  }

  @keyframes ia-tab-sell-breathe {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 6px 18px rgba(59, 130, 246, 0.42);
    }
    50% {
      transform: scale(1.07);
      box-shadow: 0 10px 28px rgba(59, 130, 246, 0.58);
    }
  }

  @keyframes ia-tab-sell-ripple {
    0% {
      transform: scale(0.88);
      opacity: 0.55;
    }
    70%, 100% {
      transform: scale(1.42);
      opacity: 0;
    }
  }

  .ia-mobile-tab--sell i {
    font-size: 1.45rem;
    font-weight: 700;
  }

  .ia-mobile-tab--sell.is-active {
    color: #2563eb;
    background: transparent;
  }

  .ia-mobile-tab--sell.is-active .ia-mobile-tab-ico-wrap--sell {
    animation: ia-tab-sell-breathe-active 1.8s ease-in-out infinite;
  }

  @keyframes ia-tab-sell-breathe-active {
    0%, 100% {
      transform: scale(1.04);
      box-shadow: 0 8px 22px rgba(59, 130, 246, 0.5);
    }
    50% {
      transform: scale(1.1);
      box-shadow: 0 12px 32px rgba(59, 130, 246, 0.65);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ia-mobile-tab--sell .ia-mobile-tab-ico-wrap--sell,
    .ia-mobile-tab--sell.is-active .ia-mobile-tab-ico-wrap--sell {
      animation: none;
    }

    .ia-mobile-tab--sell .ia-mobile-tab-ico-wrap--sell::after {
      display: none;
    }
  }

  .ia-mobile-tab--sell .ia-mobile-tab-label {
    font-weight: 700;
  }

  .ia-mobile-header-btn--fav.is-active {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
  }

  .ia-mobile-header-btn--fav.is-active i {
    color: #ef4444;
  }

  .ia-mobile-tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Активная вкладка: data-ia-tab-accent на body — light-blue | gray-blue | soft-green */
  .ia-mobile-tab.is-active {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.12);
  }

  body[data-ia-tab-accent='gray-blue'] .ia-mobile-tab.is-active {
    color: #4b6b8a;
    background: rgba(100, 130, 168, 0.16);
  }

  body[data-ia-tab-accent='soft-green'] .ia-mobile-tab.is-active {
    color: #15803d;
    background: rgba(34, 197, 94, 0.14);
  }

  body[data-ia-tab-accent='light-blue'] .ia-mobile-tab.is-active {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.12);
  }

  .ia-mobile-tab-badge {
    position: absolute;
    top: -4px;
    right: -7px;
    min-width: 0.92rem;
    height: 0.92rem;
    padding: 0 0.18rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.54rem;
    font-style: normal;
    font-weight: 700;
    line-height: 0.92rem;
    text-align: center;
    pointer-events: none;
  }

  .ia-chat-fab {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .ia-footer-cta {
    display: none;
  }

  .ia-footer-pro {
    margin-top: 1rem;
  }

  .ia-footer-pro .ia-footer-main {
    padding-top: 0.85rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .ia-footer-pro .container.ia-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ia-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
  }

  .ia-footer-col--brand {
    grid-column: 1 / -1;
    order: 1;
  }

  .ia-footer-col--contacts {
    grid-column: 1 / -1;
    order: 2;
  }

  /* Навигация и «Сервис» после контактов — телефон выше, меньше прокрутки */
  .ia-footer-col:not(.ia-footer-col--brand):not(.ia-footer-col--contacts) {
    order: 3;
  }

  .ia-footer-brand-link {
    margin-bottom: 0.45rem;
  }

  .ia-footer-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .ia-footer-brand-title {
    font-size: 0.95rem;
  }

  .ia-footer-text {
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: none;
    margin-bottom: 0.55rem;
  }

  .ia-footer-heading {
    font-size: 0.64rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.35rem;
  }

  .ia-footer-list li + li,
  .ia-footer-contact-list li + li {
    margin-top: 0.28rem;
  }

  .ia-footer-pro .ia-footer-list a,
  .ia-footer-pro .ia-footer-contact-list a,
  .ia-footer-pro .ia-footer-contact-list span {
    font-size: 0.8rem;
  }

  .ia-footer-contact-list li {
    align-items: flex-start;
  }

  .ia-footer-contact-list .ia-footer-contact-ico {
    margin-top: 0.12rem;
  }

  .ia-footer-pro .ia-footer-contact-list a,
  .ia-footer-pro .ia-footer-contact-list > li > span:not(.ia-footer-contact-ico) {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: block;
    max-width: 100%;
  }

  .ia-footer-social {
    gap: 0.35rem;
  }

  .ia-footer-pro .ia-footer-social-btn {
    width: 2rem;
    height: 2rem;
  }

  .ia-footer-divider {
    margin: 0.65rem 0 0.55rem;
  }

  .ia-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 0;
  }

  .ia-footer-copy {
    font-size: 0.72rem;
    margin: 0;
  }

  .ia-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .ia-footer-pro .ia-footer-legal a {
    font-size: 0.74rem;
  }

  .ia-listing-views-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.34rem;
    left: 0.35rem;
    bottom: 0.35rem;
  }
}

/* ===== Каталог — мобильная вёрстка ===== */
@media (max-width: 991.98px) {
  .ia-page-catalog .ia-catalog-page-section,
  .ia-page-catalog .ia-page-section {
    padding-top: 0.65rem !important;
    padding-bottom: 1rem !important;
  }

  .ia-page-catalog .ia-page-section > .container {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .ia-page-catalog .ia-catalog-mobile-head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .ia-page-catalog .ia-catalog-mobile-head .ia-catalog-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .ia-page-catalog .ia-catalog-mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    border: 1px solid var(--ia-border);
    background: var(--ia-card);
  }

  .ia-page-catalog .ia-catalog-mobile-count {
    font-size: 0.78rem;
    color: var(--ia-muted);
    min-width: 0;
  }

  .ia-page-catalog .ia-catalog-mobile-count strong {
    color: var(--ia-text);
    font-weight: 700;
  }

  .ia-page-catalog .ia-catalog-filter-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    border: none;
    background: var(--ia-pro-gradient);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.36rem 0.72rem;
    white-space: nowrap;
    box-shadow: var(--ia-pro-gradient-shadow);
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ia-page-catalog .ia-catalog-filter-toggle i {
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ia-page-catalog .ia-catalog-filter-toggle[aria-expanded='true'] {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.38);
  }

  .ia-page-catalog .ia-catalog-filter-toggle[aria-expanded='true'] i {
    transform: rotate(45deg);
  }

  .ia-page-catalog .ia-catalog-filter-toggle:active {
    transform: scale(0.975);
    transition-duration: 0.18s;
  }

  .ia-page-catalog .ia-catalog-aside {
    margin-bottom: 0.45rem;
  }

  .ia-page-catalog .ia-catalog-filters-collapse {
    overflow: hidden;
  }

  .ia-page-catalog .ia-catalog-filters-collapse.collapsing {
    transition: height 0.48s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .ia-page-catalog .ia-catalog-filters-collapse.show {
    margin-bottom: 0.5rem;
  }

  .ia-page-catalog .ia-catalog-filters-collapse.show .ia-catalog-filters {
    animation: iaCatalogFiltersReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes iaCatalogFiltersReveal {
    from {
      opacity: 0.88;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ia-page-catalog .ia-catalog-filters-collapse.collapsing {
      transition: none !important;
    }

    .ia-page-catalog .ia-catalog-filters-collapse.show .ia-catalog-filters {
      animation: none;
    }

    .ia-page-catalog .ia-catalog-filter-toggle i {
      transition: none;
    }
  }

  .ia-page-catalog .ia-catalog-field--q {
    display: none;
  }

  .ia-page-catalog .ia-catalog-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem 0.38rem;
    padding: 0.7rem !important;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    background: #1a222e !important;
    border: 1px solid #2d3d52 !important;
    color: #e8edf4;
    color-scheme: dark;
    --ia-fs-text: #e8edf4;
    --ia-fs-muted: #94a3b8;
    --ia-fs-input-bg: #131a23;
    --ia-fs-input-border: #2d3d52;
    --ia-fs-placeholder: #64748b;
  }

  .ia-page-catalog .ia-catalog-filters-title {
    grid-column: 1 / -1;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem !important;
    color: #94a3b8 !important;
  }

  .ia-page-catalog .ia-catalog-field {
    margin-bottom: 0 !important;
  }

  .ia-page-catalog .ia-catalog-field--full,
  .ia-page-catalog .ia-catalog-filters-actions {
    grid-column: 1 / -1;
  }

  .ia-page-catalog .ia-catalog-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
    font-weight: 600;
    color: var(--ia-muted);
  }

  .ia-page-catalog .ia-catalog-filters .form-control,
  .ia-page-catalog .ia-catalog-filters .form-select {
    min-height: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 9px;
    padding: 0.26rem 0.42rem;
    background: #131a23;
    border-color: #2d3d52;
    color: #e8edf4;
  }

  .ia-page-catalog .ia-catalog-filters .form-control::placeholder {
    color: #64748b;
  }

  .ia-page-catalog .ia-catalog-filters-actions .ia-btn-accent {
    background: var(--ia-pro-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: var(--ia-pro-gradient-shadow);
  }

  .ia-page-catalog .ia-catalog-filters-actions .ia-btn-accent:hover {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-1px);
  }

  .ia-page-catalog .ia-catalog-filters-actions .btn-outline-secondary {
    background: transparent;
    border-color: #2d3d52;
    color: #94a3b8;
  }

  .ia-page-catalog .ia-catalog-filters-actions .btn-outline-secondary:hover {
    background: rgba(61, 126, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: #e8edf4;
  }

  .ia-page-catalog .ia-catalog-filters .d-flex.gap-2 {
    gap: 0.32rem !important;
  }

  .ia-page-catalog .ia-catalog-filters-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .ia-page-catalog .ia-catalog-filters-actions .btn {
    min-height: 38px;
    font-size: 0.82rem;
    margin: 0;
  }

  .ia-page-catalog .ia-catalog-main {
    min-width: 0;
  }

  .ia-page-catalog .ia-catalog-fuzzy-hint {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem !important;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-catalog .ia-catalog-empty {
    padding: 1.5rem 0.85rem;
    border-radius: 14px;
  }

  .ia-page-catalog .ia-catalog-empty h2 {
    font-size: 1rem;
  }

  .ia-page-catalog .row.g-4 > .col-12.col-sm-6.col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .ia-page-catalog .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.55rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .ia-page-catalog .ia-listing-card--catalog {
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
  }

  .ia-page-catalog .ia-listing-card--catalog .ia-listing-card-body {
    padding: 0.5rem !important;
  }

  .ia-page-catalog .ia-listing-card--catalog .ia-listing-card-img-wrap--square {
    aspect-ratio: 1 / 1;
  }

  .ia-page-catalog .ia-card-title-clamp {
    font-size: 0.78rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .ia-page-catalog .ia-listing-card-meta {
    gap: 0.15rem;
    flex-wrap: wrap;
  }

  .ia-page-catalog .ia-price-card {
    font-size: 0.8rem;
    max-width: 62%;
    text-align: right;
  }

  .ia-page-catalog .ia-listing-card-id {
    font-size: 0.56rem;
    margin-bottom: 0.28rem !important;
  }

  .ia-page-catalog .ia-listing-specs-dl {
    font-size: 0.64rem;
  }

  .ia-page-catalog .ia-listing-specs-dl dt {
    font-size: 0.55rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .ia-page-catalog .ia-listing-specs-dl dd {
    font-size: 0.64rem;
    font-weight: 600;
  }

  .ia-page-catalog .ia-badge-availability {
    font-size: 0.54rem;
    padding: 0.1rem 0.32rem;
  }

  .ia-page-catalog .ia-listing-views-inline {
    font-size: 0.58rem;
    gap: 0.08rem;
  }

  .ia-page-catalog .ia-listing-views-inline .bi {
    font-size: 0.62rem;
    color: var(--ia-text);
  }

  .ia-page-catalog .ia-card-icon-btn {
    width: 1.85rem;
    height: 1.85rem;
  }

  .ia-page-catalog .ia-catalog-main nav .btn {
    min-width: 2rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.78rem;
  }

  .ia-page-home .ia-listing-views-inline {
    font-size: 0.62rem;
    gap: 0.1rem;
  }

  .ia-page-home .ia-listing-views-inline .bi {
    font-size: 0.66rem;
    color: var(--ia-text);
  }

  .ia-footer-contact-list li {
    gap: 0.28rem;
  }

  .ia-footer-contact-ico {
    width: 18px;
    height: 18px;
  }

  .ia-footer-social {
    gap: 0.22rem;
  }

  .ia-footer-pro .ia-footer-social-btn {
    width: 1.85rem;
    height: 1.85rem;
  }

  .ia-footer-pro .ia-footer-social-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 992px) {
  .ia-page-catalog .ia-catalog-filters-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }
}

[data-bs-theme='dark'] .ia-mobile-tabbar {
  background: var(--ia-surface);
  border-top-color: rgba(148, 163, 184, 0.15);
}

[data-bs-theme='dark'] .ia-mobile-search,
[data-bs-theme='dark'] .ia-mobile-header-btn {
  background: var(--ia-surface-2);
  border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme='dark'] .ia-mobile-search-submit {
  background: rgba(96, 165, 250, 0.1);
  border-left-color: rgba(148, 163, 184, 0.2);
  color: #93c5fd;
}

[data-bs-theme='dark'] body[data-ia-tab-accent='gray-blue'] .ia-footer-contact-ico,
[data-bs-theme='dark'] body[data-ia-tab-accent='gray-blue'] .ia-footer-pro .ia-footer-social-btn {
  background: rgba(100, 130, 168, 0.22);
  border-color: rgba(148, 163, 184, 0.28);
  color: #a8c4e0;
}

[data-bs-theme='dark'] body[data-ia-tab-accent='soft-green'] .ia-footer-contact-ico,
[data-bs-theme='dark'] body[data-ia-tab-accent='soft-green'] .ia-footer-pro .ia-footer-social-btn {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.28);
  color: #86efac;
}

/* ===== Страница авто — мобильная вёрстка ===== */
@media (max-width: 991.98px) {
  .ia-page-car .ia-car-page-section {
    padding-top: 0.85rem !important;
    padding-bottom: 1.25rem !important;
  }

  .ia-page-car .ia-car-page-section > .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ia-page-car .row.g-4 {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.75rem;
  }

  .ia-page-car .ia-car-hero {
    aspect-ratio: 4 / 3;
    border-radius: 12px !important;
    margin-bottom: 0.45rem !important;
  }

  .ia-page-car .ia-car-hero .ia-vip-hero-badge {
    top: 10px;
    padding: 0.28rem 0.52rem;
    font-size: 0.66rem;
  }

  .ia-page-car .ia-car-hero .ia-vip-hero-badge:not(.ia-vip-hero-badge--top) {
    right: 10px;
    left: auto;
  }

  .ia-page-car .ia-car-hero .ia-vip-hero-badge--top {
    left: 10px;
    right: auto;
  }

  .ia-page-car .ia-car-hero .ia-vip-hero-badge svg {
    width: 11px;
    height: 11px;
  }

  .ia-page-car .ia-car-thumb {
    width: 56px !important;
    height: 40px !important;
  }

  .ia-page-car .ia-car-detail-panel {
    padding-top: 0.15rem;
  }

  .ia-page-car .ia-car-title {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .ia-page-car .ia-car-detail-head {
    gap: 0.4rem;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-car .ia-car-detail-head-actions {
    gap: 0.28rem;
  }

  .ia-page-car .ia-car-share-btn {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 9px;
  }

  .ia-page-car .ia-car-share-btn svg {
    width: 18px;
    height: 18px;
  }

  .ia-page-car .ia-car-price {
    font-size: 1.28rem;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-car .ia-car-prepay {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.55rem !important;
  }

  .ia-page-car .ia-car-detail-panel h2.h6 {
    font-size: 0.68rem;
    margin-bottom: 0.45rem !important;
  }

  .ia-page-car .ia-car-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.65rem !important;
  }

  .ia-page-car .ia-car-spec-card {
    padding: 0.45rem 0.5rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .ia-page-car .ia-car-spec-icon {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .ia-page-car .ia-car-spec-label {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .ia-page-car .ia-car-spec-value {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .ia-page-car .ia-car-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.65rem !important;
  }

  .ia-page-car .ia-car-meta-item {
    padding: 0.45rem 0.5rem;
    gap: 0.4rem;
    border-radius: 10px;
  }

  .ia-page-car .ia-car-meta-icon {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .ia-page-car .ia-car-meta-label {
    font-size: 0.6rem;
  }

  .ia-page-car .ia-car-meta-value {
    font-size: 0.76rem;
  }

  .ia-page-car .ia-car-status-pill {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
  }

  .ia-page-car .ia-car-map-btn {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }

  .ia-page-car .ia-car-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0.65rem !important;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid var(--ia-border);
    background: var(--ia-card);
  }

  .ia-page-car .ia-car-actions-primary,
  .ia-page-car .ia-car-actions-secondary {
    display: grid;
    gap: 0.35rem;
  }

  .ia-page-car .ia-car-actions-primary {
    grid-template-columns: 1fr;
  }

  .ia-page-car .ia-car-actions-primary:has(.ia-car-actions-form + .ia-car-actions-form),
  .ia-page-car .ia-car-actions-primary:has(.ia-car-cta--phone + .ia-car-actions-form),
  .ia-page-car .ia-car-actions-primary:has(.ia-car-actions-form + .ia-car-cta--phone) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ia-page-car .ia-car-actions-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ia-page-car .ia-car-actions-secondary:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .ia-page-car .ia-car-actions-secondary:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ia-page-car .ia-car-actions-primary:empty {
    display: none;
  }

  .ia-page-car .ia-car-actions-form {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .ia-page-car .ia-car-actions-form .ia-car-action-btn,
  .ia-page-car .ia-car-actions-secondary > .ia-car-action-btn {
    width: 100%;
  }

  .ia-page-car .ia-car-cta {
    width: 100%;
    min-height: 40px;
    font-size: 0.84rem;
    padding: 0.4rem 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ia-page-car .ia-car-cta--phone .ia-car-cta-stack {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .ia-page-car .ia-car-cta-stack-value {
    font-size: 0.72rem;
    word-break: break-all;
  }

  .ia-page-car .ia-car-action-btn {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.38rem 0.35rem;
    font-size: 0.68rem;
    border-radius: 10px;
    min-height: 52px;
  }

  .ia-page-car .ia-car-action-btn svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .ia-page-car .ia-car-action-btn-text {
    line-height: 1.15;
    text-align: center;
  }

  .ia-page-car .ia-badge-availability {
    font-size: 0.62rem;
    padding: 0.12rem 0.38rem;
  }
}

@media (max-width: 400px) {
  .ia-site-header--compact {
    --ia-mh-h: 36px;
    --ia-mh-logo-h: 42px;
    --ia-mh-gap: 5px;
    --ia-mh-search-min: 56px;
  }

  .ia-site-header--compact .ia-nav > .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ia-site-header--compact .ia-brand-lockup-text {
    font-size: 0.75rem;
  }

  .ia-site-header--compact .ia-brand-shell--logo-mobile-text .ia-brand-text {
    font-size: 0.8125rem;
    margin-left: 0.24rem;
  }

  .ia-site-header--compact .ia-mobile-header-sell {
    padding: 0 11px;
    font-size: 12px;
  }

  .ia-site-header--compact .ia-mobile-search {
    padding-left: 10px;
  }

  .ia-site-header--compact .ia-mobile-search-input {
    font-size: 13px;
  }
}

/* Мобильный canvas #050B18 — только тёмная тема */
@media (max-width: 991.98px) {
  html[data-bs-theme='dark']:has(body.ia-site) {
    background: #050b18;
  }

  html[data-bs-theme='dark'] body.ia-site {
    background: #050b18 !important;
    color: #e2e8f0;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-main {
    background: transparent;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page,
  html[data-bs-theme='dark'] body.ia-site .ia-page-section {
    background: transparent !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) {
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface {
    --ia-fs-text: #e8edf4;
    --ia-fs-muted: #94a3b8;
    --ia-fs-input-bg: #1a222e;
    --ia-fs-input-border: #2d3d52;
    --ia-fs-placeholder: #64748b;
    background: #1a222e !important;
    border-color: #2d3d52 !important;
    color: #e8edf4;
    color-scheme: dark;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-sidebar {
    background: #1a222e;
    border-color: #2d3d52;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-item {
    background: #1a222e;
    border-color: #2d3d52;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-nav-link {
    color: #94a3b8;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-nav-link i {
    color: #94a3b8;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-nav-link:hover {
    color: #e8edf4;
    background: rgba(61, 126, 255, 0.12);
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-nav-link.active {
    color: #93c5fd;
    background: rgba(61, 126, 255, 0.16);
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-nav-link.active i {
    color: #93c5fd;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-user .fw-semibold,
  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-cabinet-item-title a,
  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) h1,
  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .h4,
  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .h6 {
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .ia-form-surface .ia-stat-mini {
    background: #131a23;
    border-color: #2d3d52;
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-cabinet-page:not(.ia-premium-page-section) .text-secondary {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-page-section,
  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-page-section {
    background: transparent !important;
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-page-title,
  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-mobile-head .ia-catalog-page-title {
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-mobile-toolbar {
    background: #1a222e;
    border-color: #2d3d52;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-mobile-count {
    color: #94a3b8;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-mobile-count strong {
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-listing-card--catalog {
    background: #1a222e;
    border-color: #2d3d52;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-listing-title-link,
  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-listing-card-id,
  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-listing-specs-dl dd {
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-listing-specs-dl dt,
  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .text-secondary {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-empty {
    background: #1a222e;
    border-color: #2d3d52;
    color: #e8edf4;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-catalog .ia-catalog-empty h2 {
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-nav {
    background: var(--ia-mh-bg, rgba(12, 16, 23, 0.98)) !important;
    border-bottom-color: rgba(45, 61, 82, 0.65) !important;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-bottom: 6px;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-nav .ia-brand-wordmark-innova {
    fill: #ffffff;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-search {
    background: var(--ia-mh-surface, #1a222e) !important;
    border-color: var(--ia-mh-border, rgba(148, 163, 184, 0.18)) !important;
    border-radius: var(--ia-mh-r-search, 10px) !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-search-input {
    color: #e8edf4 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-search-input::placeholder {
    color: #64748b !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-search-submit {
    background: rgba(61, 126, 255, 0.1) !important;
    border-left-color: var(--ia-mh-border, rgba(148, 163, 184, 0.18)) !important;
    color: #93c5fd !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-header-btn {
    background: var(--ia-mh-surface, #1a222e) !important;
    border: 1px solid var(--ia-mh-border, rgba(148, 163, 184, 0.2)) !important;
    border-radius: var(--ia-mh-r-btn, 10px) !important;
    color: #e8edf4 !important;
    box-shadow: none !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-header-badge {
    border-color: var(--ia-mh-surface, #1a222e);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  }

  html[data-bs-theme='dark'] body.ia-site .ia-site-header--compact .ia-mobile-header-sell {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 52%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    border-radius: 999px !important;
    font-size: 13px !important;
    min-height: var(--ia-mh-h, 38px) !important;
    height: var(--ia-mh-h, 38px) !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-mobile-tabbar {
    background: rgba(5, 11, 24, 0.97) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-mobile-tabbar {
    background: rgba(5, 11, 24, 0.97) !important;
    border-top-color: rgba(255, 255, 255, 0.07) !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-mobile-tab {
    color: #64748b !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-mobile-tab.is-active {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12);
  }

  /* Footer = тот же фон, что страница (телефон, любая тема) */
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro {
    background: #050b18 !important;
    border-top-color: rgba(255, 255, 255, 0.07) !important;
    color: #e2e8f0 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-bg {
    background:
      radial-gradient(700px 220px at 8% 0%, rgba(61, 126, 255, 0.14), transparent 65%),
      radial-gradient(600px 200px at 92% 0%, rgba(124, 58, 237, 0.12), transparent 65%) !important;
    opacity: 1 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-cta {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-brand-link,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-brand-title,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-heading,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-cta-title {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-text,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-list a,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-contact-list a,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-contact-list > li > span:not(.ia-footer-contact-ico),
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-cta-sub,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-copy,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-legal a {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-list a:hover,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-contact-list a:hover,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-legal a:hover {
    color: #e2e8f0 !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-divider {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro .ia-footer-cta-btn--ghost,
  html[data-bs-theme='dark'] body.ia-site .ia-footer-pro a.ia-footer-cta-btn--ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
  }

  /* Главная — тёмный canvas только в dark */
  html[data-bs-theme='dark']:has(body.ia-page-home-body),
  html[data-bs-theme='dark']:has(body.ia-page-home) {
    background: #050b18 !important;
  }

  html[data-bs-theme='dark'] body.ia-site.ia-page-home-body,
  html[data-bs-theme='dark'] body.ia-site.ia-page-home {
    background: #050b18 !important;
    color: #f8fafc;
  }

  html[data-bs-theme='dark'] body.ia-page-home-body .ia-site-main,
  html[data-bs-theme='dark'] body.ia-page-home .ia-site-main {
    background: #050b18 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-page-section,
  html[data-bs-theme='dark'] body.ia-page-home .ia-quick-cats,
  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section,
  html[data-bs-theme='dark'] body.ia-page-home .ia-vip-section,
  html[data-bs-theme='dark'] body.ia-page-home .ia-home-media,
  html[data-bs-theme='dark'] body.ia-page-home .ia-why-section {
    background: #050b18 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel,
  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-panel {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-label {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-quick-cats--bleed .ia-pop-cats-more,
  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-more {
    color: #93c5fd !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section h2,
  html[data-bs-theme='dark'] body.ia-page-home .ia-page-section h2,
  html[data-bs-theme='dark'] body.ia-page-home .ia-page-section .h5,
  html[data-bs-theme='dark'] body.ia-page-home .ia-vip-section .h5 {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-page-section .text-secondary,
  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section .text-secondary {
    color: rgba(148, 163, 184, 0.95) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section .ia-brand-card {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section .ia-brand-card-mark {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section .ia-brand-card-count {
    color: rgba(148, 163, 184, 0.92) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-brands-section .ia-brands-more {
    color: #93c5fd !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .border-secondary,
  html[data-bs-theme='dark'] body.ia-page-home .border-top.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-card,
  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-card-vip {
    background: #1a222e !important;
    border-color: #2d3d52 !important;
    box-shadow: none !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-title-link {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-specs-dl dt,
  html[data-bs-theme='dark'] body.ia-page-home .ia-vip-dl dt {
    color: #94a3b8 !important;
  }

  /* Desktop (PC): premium categories for BOTH themes */
  @media (min-width: 992px) {
    body.ia-page-home .ia-pop-cats-slider .ia-pop-cats-row {
      gap: 0.5rem !important;
      width: max-content;
      min-width: 100%;
    }

    body.ia-page-home .ia-pop-cats-slider .ia-pop-cats-col {
      flex: 0 0 9.4rem !important;
      max-width: 9.4rem !important;
    }

    body.ia-page-home .ia-pop-cat-item {
      min-height: 144px;
      padding: 0.42rem 0.4rem 0.34rem !important;
      border-radius: 10px !important;
      justify-content: flex-start;
      gap: 0.12rem;
    }

    body.ia-page-home .ia-pop-cat-head {
      align-items: center;
      gap: 0.1rem;
    }

    body.ia-page-home .ia-pop-cat-label {
      font-size: 0.7rem !important;
      font-weight: 700;
      text-align: center;
      line-height: 1.22;
    }

    body.ia-page-home .ia-pop-cat-count {
      font-size: 0.64rem !important;
      line-height: 1.16;
    }

    body.ia-page-home .ia-pop-cat-thumb {
      aspect-ratio: 16 / 9;
      min-height: 82px;
      margin-top: 0.08rem;
      padding: 0;
      overflow: hidden;
      background: transparent;
    }

    body.ia-page-home .ia-pop-cat-img {
      position: static;
      transform: scale(1.1);
      transform-origin: center bottom;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    /* Light theme */
    [data-bs-theme='light'] body.ia-page-home .ia-quick-cats,
    [data-bs-theme='light'] body.ia-page-home .ia-quick-cats--bleed,
    body.ia-page-home:not([data-bs-theme]) .ia-quick-cats,
    body.ia-page-home:not([data-bs-theme]) .ia-quick-cats--bleed {
      background: #f3f5f8 !important;
    }

    [data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel,
    [data-bs-theme='light'] body.ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cats-panel {
      background: #ffffff !important;
      border: 1px solid #e6ebf2 !important;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    }

    [data-bs-theme='light'] body.ia-page-home .ia-pop-cat-item,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cat-item {
      background: #ffffff !important;
      border: 1px solid #edf1f6 !important;
    }

    [data-bs-theme='light'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
    [data-bs-theme='light'] body.ia-page-home .ia-pop-cat-label,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cats-panel > .d-flex h2,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cat-label {
      color: #0f172a !important;
    }

    [data-bs-theme='light'] body.ia-page-home .ia-pop-cat-count,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cat-count {
      color: #64748b !important;
    }

    [data-bs-theme='light'] body.ia-page-home .ia-pop-cats-more,
    body.ia-page-home:not([data-bs-theme]) .ia-pop-cats-more {
      color: #60a5fa !important;
    }

    /* Dark theme */
    [data-bs-theme='dark'] body.ia-page-home .ia-quick-cats,
    [data-bs-theme='dark'] body.ia-page-home .ia-quick-cats--bleed {
      background: #050b18 !important;
    }

    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-panel,
    [data-bs-theme='dark'] body.ia-page-home .ia-quick-cats--bleed .ia-pop-cats-panel {
      background: linear-gradient(180deg, #071327 0%, #061022 100%) !important;
      border: 1px solid rgba(59, 130, 246, 0.18) !important;
      box-shadow: none !important;
    }

    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-item {
      background: linear-gradient(180deg, rgba(18, 29, 54, 0.98) 0%, rgba(10, 17, 33, 0.98) 100%) !important;
      border: 1px solid rgba(59, 130, 246, 0.2) !important;
    }

    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-label {
      color: #e7edff !important;
    }

    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-count {
      color: #8fa6d8 !important;
    }

    [data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-more {
      color: #8ec5ff !important;
    }
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-specs-dl dd,
  html[data-bs-theme='dark'] body.ia-page-home .ia-vip-dl dd,
  html[data-bs-theme='dark'] body.ia-page-home .ia-listing-city-name {
    color: #e8edf4 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-why-card {
    background: #1a222e !important;
    border-color: #2d3d52 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-why-card h3 {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-why-card p {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-page-section > .container > .d-flex a.small,
  html[data-bs-theme='dark'] body.ia-page-home .ia-vip-section a.small {
    color: #93c5fd !important;
  }
}

/* === ia-mobile-theme-final (v5): home + favorites + compare, 3 themes === */
@media (max-width: 991.98px) {
  /* —— Light (not sepia) —— */
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home-body {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-site-main,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-page-section,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-quick-cats,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-brands-section,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-vip-section,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-why-section {
    background: #f8fafc !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-brands-section h2,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-page-section h2,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-label {
    color: #0f172a !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-count,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-page-section .text-secondary {
    color: #64748b !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-favorites .ia-page-section,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-compare .ia-compare-page-section {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-favorites h1,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-compare .ia-compare-page-title {
    color: #0f172a !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-compare .ia-compare-page-sub {
    color: #64748b !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-compare .ia-compare-mobile-card,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-compare .ia-compare-empty,
  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-favorites .ia-listing-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* —— Sepia —— */
  html[data-ia-palette='sepia'] body.ia-page-home,
  html[data-ia-palette='sepia'] body.ia-page-home-body {
    background: #f3ebd9 !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-site-main,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-page-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-quick-cats,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-vip-section,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-why-section {
    background: #f3ebd9 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-brands-section h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-page-section h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel > .d-flex h2,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-label {
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-count,
  html[data-ia-palette='sepia'] body.ia-page-home .ia-page-section .text-secondary {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-favorites .ia-page-section,
  html[data-ia-palette='sepia'] body.ia-page-compare .ia-compare-page-section {
    background: #f3ebd9 !important;
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-favorites h1,
  html[data-ia-palette='sepia'] body.ia-page-compare .ia-compare-page-title {
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-compare .ia-compare-page-sub {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-compare .ia-compare-mobile-card,
  html[data-ia-palette='sepia'] body.ia-page-compare .ia-compare-empty,
  html[data-ia-palette='sepia'] body.ia-page-favorites .ia-listing-card {
    background: #fffdf7 !important;
    border-color: #d8c8ae !important;
    color: #3a3228 !important;
  }

  /* —— Dark —— */
  html[data-bs-theme='dark'] body.ia-page-favorites .ia-page-section,
  html[data-bs-theme='dark'] body.ia-page-compare .ia-compare-page-section {
    background: #050b18 !important;
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-favorites h1,
  html[data-bs-theme='dark'] body.ia-page-compare .ia-compare-page-title {
    color: #f8fafc !important;
  }

  html[data-bs-theme='dark'] body.ia-page-compare .ia-compare-page-sub {
    color: #94a3b8 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-compare .ia-compare-mobile-card,
  html[data-bs-theme='dark'] body.ia-page-compare .ia-compare-empty {
    background: #1a222e !important;
    border-color: #2d3d52 !important;
    color: #e8edf4 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-favorites .ia-listing-card {
    background: #1a222e !important;
    border-color: #2d3d52 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-favorites .ia-listing-title-link {
    color: #f8fafc !important;
  }
}

/* Premium category cards — mobile (≤576px) */
@media (max-width: 575.98px) {
  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cats-panel {
    padding: 0.9rem 0.55rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #071327 0%, #061022 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.18) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-item {
    background: linear-gradient(180deg, rgba(18, 29, 54, 0.98) 0%, rgba(10, 17, 33, 0.98) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-label {
    color: #e7edff !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-count {
    color: #8fa6d8 !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-thumb {
    background:
      radial-gradient(ellipse 90% 75% at 50% 100%, rgba(59, 130, 246, 0.22) 0%, transparent 68%),
      linear-gradient(180deg, rgba(12, 22, 44, 0.15) 0%, rgba(4, 8, 18, 0.55) 100%) !important;
  }

  html[data-bs-theme='dark'] body.ia-page-home .ia-pop-cat-img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)) !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cats-panel {
    padding: 0.9rem 0.55rem;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-item {
    background: #ffffff !important;
    border: 1px solid #e8edf4 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-label {
    color: #0f172a !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-count {
    color: #64748b !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-thumb {
    background:
      radial-gradient(ellipse 90% 70% at 50% 100%, rgba(37, 99, 235, 0.1) 0%, transparent 70%),
      linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
  }

  html[data-bs-theme='light']:not([data-ia-palette='sepia']) body.ia-page-home .ia-pop-cat-img {
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12)) !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cats-panel {
    padding: 0.9rem 0.55rem;
    border-radius: 12px;
    background: #fffdf7 !important;
    border: 1px solid #d8c8ae !important;
    box-shadow: 0 10px 20px rgba(58, 50, 40, 0.08) !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-item {
    background: #fffdf7 !important;
    border: 1px solid #d8c8ae !important;
    box-shadow: 0 6px 14px rgba(58, 50, 40, 0.06) !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-label {
    color: #3a3228 !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-count {
    color: #6e5f4e !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-thumb {
    background:
      radial-gradient(ellipse 90% 70% at 50% 100%, rgba(139, 94, 60, 0.12) 0%, transparent 70%),
      linear-gradient(180deg, #faf6ee 0%, #efe4d2 100%) !important;
  }

  html[data-ia-palette='sepia'] body.ia-page-home .ia-pop-cat-img {
    filter: drop-shadow(0 8px 14px rgba(58, 50, 40, 0.14)) !important;
  }
}

/* === Home brands marquee — mobile premium (v10) === */
.ia-brands-section .ia-brands-head {
  min-height: 1.75rem;
}

.ia-brands-section .ia-brands-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ia-brands-section .ia-brands-marquee .ia-brand-card {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: 5.35rem;
  text-decoration: none !important;
  text-align: center;
  color: var(--ia-text);
}

.ia-brands-section .ia-brands-marquee .ia-brand-card-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.65rem;
  height: 3.65rem;
  margin: 0 0 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 20px rgba(15, 23, 42, 0.08);
}

.ia-brands-section .ia-brands-marquee .ia-brand-card-logo {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
  display: block;
}

.ia-brands-section .ia-brands-marquee .ia-brand-card-fallback {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.ia-brands-section .ia-brands-marquee .ia-brand-card-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 2.35em;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  word-break: break-word;
  white-space: normal;
}

.ia-brands-section .ia-brands-marquee .ia-brand-card-count {
  display: block;
  margin-top: 0.1rem;
  width: 100%;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ia-muted, #64748b);
  white-space: nowrap;
}

html[data-bs-theme='dark'] .ia-brands-section .ia-brands-marquee .ia-brand-card-mark {
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 70%);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(2, 8, 23, 0.35);
}

html[data-bs-theme='dark'] .ia-brands-section .ia-brands-marquee .ia-brand-card {
  color: #f8fafc;
}

html[data-bs-theme='dark'] .ia-brands-section .ia-brands-marquee .ia-brand-card-fallback {
  color: #e2e8f0;
}

html[data-bs-theme='dark'] .ia-brands-section .ia-brands-marquee .ia-brand-card-count {
  color: rgba(148, 163, 184, 0.92);
}

html[data-bs-theme='dark'] .ia-brands-section .ia-brands-marquee .ia-brand-card-logo {
  filter: brightness(0) invert(1);
}

html[data-ia-palette='sepia'] .ia-brands-section .ia-brands-marquee .ia-brand-card-mark {
  background: rgba(255, 253, 247, 0.95);
  border-color: #d8c8ae;
  box-shadow: 0 8px 18px rgba(58, 50, 40, 0.08);
}

html[data-ia-palette='sepia'] .ia-brands-section .ia-brands-marquee .ia-brand-card {
  color: #3a3228;
}

html[data-ia-palette='sepia'] .ia-brands-section .ia-brands-marquee .ia-brand-card-count {
  color: #6e5f4e;
}

@media (max-width: 991.98px) {
  .ia-brands-section .ia-brands-marquee .ia-brand-card {
    width: 6.15rem;
  }

  .ia-brands-section .ia-brands-marquee .ia-brand-card-mark {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.45rem;
  }

  .ia-brands-section .ia-brands-marquee .ia-brand-card-logo {
    width: 2.35rem;
    height: 2.35rem;
  }

  .ia-brands-section .ia-brands-marquee .ia-brand-card-label {
    font-size: 0.8rem;
    min-height: 2.45em;
  }

  .ia-brands-section .ia-brands-marquee .ia-brand-card-count {
    font-size: 0.7rem;
    margin-top: 0.12rem;
  }

  .ia-brands-section .ia-brands-head h2 {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
  }

  .ia-brands-section .ia-brands-head .ia-brands-more {
    font-size: 0.72rem;
  }
}

@media (max-width: 575.98px) {
  .ia-brands-section {
    padding-top: 0.72rem !important;
    padding-bottom: 0.75rem !important;
  }

  .ia-brands-section .ia-brands-marquee .ia-brand-card {
    width: 5.85rem;
  }
}

/* Кабинет — премиум блок «Мои объявления» */
.ia-cabinet-listings-card--premium {
  border-radius: 18px;
  border: 1px solid rgba(61, 126, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 40px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  background: linear-gradient(165deg, var(--ia-card) 0%, rgba(244, 247, 252, 0.92) 100%);
}

.ia-cabinet-listings-card--premium .ia-cabinet-listings-head {
  padding-bottom: 0.75rem !important;
}

.ia-listing-tabs--premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--ia-border);
}

.ia-listing-tabs--premium .ia-listing-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.1rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  color: var(--ia-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ia-listing-tabs--premium .ia-listing-tab-label {
  display: block;
}

.ia-listing-tabs--premium .ia-listing-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ia-text);
}

.ia-listing-tabs--premium .ia-listing-tab:hover {
  color: var(--ia-text);
  background: rgba(255, 255, 255, 0.55);
}

.ia-listing-tabs--premium .ia-listing-tab.active {
  color: #1d4ed8;
  background: #fff;
  border-color: rgba(61, 126, 255, 0.28);
  box-shadow: 0 4px 14px rgba(61, 126, 255, 0.14);
}

.ia-listing-tabs--premium .ia-listing-tab.active .ia-listing-tab-count {
  background: linear-gradient(135deg, #3d7eff, #2f64cc);
  color: #fff;
}

.ia-cabinet-list-hint--premium {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ia-muted);
  background: rgba(61, 126, 255, 0.06);
  border: 1px dashed rgba(61, 126, 255, 0.18);
}

.ia-cabinet-list--premium {
  gap: 0.65rem;
}

.ia-cabinet-item--premium {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ia-cabinet-item--premium:hover {
  border-color: rgba(61, 126, 255, 0.22);
}

.ia-cabinet-item--premium[open] {
  border-color: rgba(61, 126, 255, 0.32);
  box-shadow: 0 12px 32px rgba(61, 126, 255, 0.12);
}

.ia-cabinet-item--premium .ia-cabinet-item-summary {
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
}

.ia-cabinet-item--premium .ia-cabinet-item-summary-photo {
  width: 4.25rem;
  height: 3.15rem;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  border: 2px solid #fff;
}

.ia-cabinet-item--premium .ia-cabinet-item-summary-title {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.ia-cabinet-item--premium .ia-cabinet-item-summary-meta {
  font-size: 0.72rem;
}

.ia-cabinet-item--premium .ia-cabinet-item-summary-end {
  max-width: 6.75rem;
  gap: 0.28rem;
}

.ia-cabinet-item--premium .ia-cabinet-item-summary-price {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: #1d4ed8;
}

.ia-cabinet-item--premium[open] .ia-cabinet-item-summary-price {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.ia-cabinet-item--premium .ia-cabinet-item-chev-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--ia-border);
}

.ia-cabinet-item--premium[open] .ia-cabinet-item-chev-wrap {
  background: rgba(61, 126, 255, 0.1);
  border-color: rgba(61, 126, 255, 0.25);
}

.ia-cabinet-item--premium .ia-cabinet-item-body {
  padding: 0 0.75rem 0.85rem;
  border-top: none;
}

.ia-cabinet-item--premium .ia-cabinet-item-panel {
  padding-top: 0.15rem;
}

.ia-cabinet-item--premium .ia-cabinet-item-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.75rem;
}

.ia-cabinet-item--premium .ia-cabinet-item-panel-meta {
  font-size: 0.78rem;
  color: var(--ia-muted);
  line-height: 1.35;
}

.ia-cabinet-item--premium .ia-cabinet-item-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ia-cabinet-item--premium .ia-cab-stat--tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.95), rgba(237, 242, 249, 0.85));
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
  text-align: center;
}

.ia-cabinet-item--premium .ia-cab-stat--tile .bi {
  font-size: 0.95rem;
  color: #3d7eff;
  opacity: 1;
}

.ia-cabinet-item--premium .ia-cab-stat-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ia-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ia-cabinet-item--premium .ia-cab-stat-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ia-muted);
  line-height: 1.1;
}

.ia-cabinet-item--premium .ia-cabinet-item-panel-price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ia-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ia-border);
}

.ia-cabinet-item--premium .ia-cabinet-item-actions {
  display: grid;
  gap: 0.45rem;
}

.ia-cabinet-item--premium .ia-cabinet-action-form {
  margin: 0;
}

.ia-cabinet-item--premium .ia-cabinet-btn {
  border-radius: 11px;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
}

.ia-cabinet-item--premium .ia-cabinet-btn--primary {
  background: linear-gradient(135deg, #3d7eff 0%, #2f64cc 100%);
  border: none;
  box-shadow: 0 6px 16px rgba(61, 126, 255, 0.28);
}

.ia-cabinet-item--premium .ia-cabinet-btn--primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 20px rgba(61, 126, 255, 0.34);
}

.ia-cabinet-item--premium .ia-cabinet-btn--ghost {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--ia-border);
}

@media (min-width: 992px) {
  .ia-listing-tabs--premium .ia-listing-tab {
    flex-direction: row;
    gap: 0.45rem;
    min-height: auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .ia-cabinet-item--premium .ia-cabinet-item-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ia-cabinet-item--premium .ia-cabinet-btn--primary,
  .ia-cabinet-item--premium .ia-cabinet-btn--ghost {
    grid-column: span 1;
  }
}

@media (max-width: 575.98px) {
  .ia-cabinet-item--premium .ia-cabinet-item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ia-cabinet-item--premium .ia-cabinet-item-summary-end {
    max-width: 5.5rem;
  }

  .ia-cabinet-item--premium .ia-cabinet-status {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
  }
}

[data-bs-theme='dark'] .ia-cabinet-listings-card--premium {
  background: linear-gradient(165deg, var(--ia-card) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(61, 126, 255, 0.2);
}

[data-bs-theme='dark'] .ia-listing-tabs--premium {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme='dark'] .ia-listing-tabs--premium .ia-listing-tab.active {
  background: rgba(61, 126, 255, 0.14);
  color: #93c5fd;
}

[data-bs-theme='dark'] .ia-cabinet-item--premium {
  background: var(--ia-card);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme='dark'] .ia-cabinet-item--premium .ia-cab-stat--tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}


