/* ================================================================
   LUXELIVE V3 — LIGHT PREMIUM CLASSIFIEDS
   Style: Чистый белый, яркие акценты, современный classifieds-сайт.
   SEO-safe на главной: никаких 18+ сигналов для поисковиков.
   Авторизованные видят полные анкеты, гости — только объявления.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Sora:wght@400;600;700;800&display=swap');

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  /* Brand colours */
  --primary:        #7C3AED;   /* violet — основной */
  --primary-light:  #8B5CF6;
  --primary-pale:   #EDE9FE;
  --primary-dark:   #5B21B6;

  --accent:         #F59E0B;   /* amber — акцент */
  --accent-light:   #FCD34D;
  --accent-pale:    #FFFBEB;

  --coral:          #F43F5E;
  --coral-pale:     #FFF1F2;

  --teal:           #0EA5E9;
  --teal-pale:      #F0F9FF;

  --green:          #10B981;
  --green-pale:     #ECFDF5;

  /* Neutrals */
  --white:          #FFFFFF;
  --bg:             #F8F7FF;   /* чуть лиловатый белый */
  --bg-2:           #F1F0F9;
  --surface:        #FFFFFF;
  --surface-2:      #F8F7FF;

  --text-1:         #111118;
  --text-2:         #4B4B6B;
  --text-3:         #9292B0;
  --text-inv:       #FFFFFF;

  --border:         #E8E7F4;
  --border-strong:  #D1CFEA;

  /* Fonts */
  --font-head:  'Sora', 'Plus Jakarta Sans', sans-serif;
  --font-body:  'Plus Jakarta Sans', sans-serif;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(100,80,180,0.07);
  --shadow-md:   0 4px 16px rgba(100,80,180,0.10);
  --shadow-lg:   0 8px 32px rgba(100,80,180,0.13);
  --shadow-card: 0 2px 12px rgba(100,80,180,0.08);
  --shadow-hover:0 8px 28px rgba(100,80,180,0.15);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }
p:last-child { margin-bottom: 0; }

/* ================================================================
   LAYOUT
   ================================================================ */
.main-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }

.container-fluid {
  max-width: 1560px;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(100,80,180,0.07);
}

.header__container {
  display: flex;
  flex-direction: column;
}

/* Logo */
.header__logo { display: flex; align-items: center; }

.header__logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo img {
  height: 34px;
  width: auto;
}

/* Top row */
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

/* Bottom nav */
.header__bottom {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__bottom::-webkit-scrollbar { display: none; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.top-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.top-menu__item { position: relative; }

.top-menu__link {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}

.top-menu__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}

.top-menu__link:hover { color: var(--primary); }
.top-menu__link.active { color: var(--primary); }
.top-menu__link:hover::after,
.top-menu__link.active::after { transform: scaleX(1); }

/* ================================================================
   SEARCH FORM
   ================================================================ */
.search-block { flex: 1; max-width: 400px; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
}

.search-form__input {
  flex: 1;
  background: none;
  border: none;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-1);
  min-width: 0;
}

.search-form__input::placeholder { color: var(--text-3); }

.search-form__button {
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
  color: var(--text-3);
  transition: color 0.2s;
  flex-shrink: 0;
}

.search-form__button:hover { color: var(--primary); }

/* ================================================================
   AUTH / USER BLOCK
   ================================================================ */
.header__right-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Login button */
.user-block__button {
  background: var(--primary);
  color: var(--text-inv);
  border: none;
  border-radius: var(--r-full);
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.user-block__button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.30);
}

.user-block__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 9px 16px;
  border-radius: var(--r-full);
  transition: background 0.2s;
  background: none;
  border: 1.5px solid var(--primary-pale);
  cursor: pointer;
  font-family: var(--font-body);
}

.user-block__link:hover {
  background: var(--primary-pale);
}

/* Wallet */
.wallet_css {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent-pale);
  border: 1.5px solid #FDE68A;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
  transition: background 0.2s;
  white-space: nowrap;
}

.wallet_css:hover { background: #FEF3C7; }
.wallet_css img { width: 17px; height: auto; }

/* Chat badge */
.h-actions__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
}

.h-actions__link:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-pale);
}

.h-actions__icon img { width: 18px; height: auto; }

.l-badge {
  top: -4px !important;
  right: -4px !important;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

/* Dropdown */
.dropdown-menu {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  animation: dropFade 0.17s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-dark { background: var(--white) !important; }

.dropdown-item {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.dropdown-item.active {
  color: var(--primary);
  background: var(--primary-pale);
}

.dropdown-divider {
  border-color: var(--border) !important;
  margin: 4px 0;
}

/* Lang dropdown */
.lang-dropdown__button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.lang-dropdown__button:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-pale);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--r-full);
  outline: none;
}

.button--primary, a.button--primary {
  background: var(--primary);
  color: var(--text-inv);
}

.button--primary:hover, a.button--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.28);
}

.button--secondary {
  background: var(--bg);
  color: var(--text-1);
  border: 1.5px solid var(--border);
}

.button--secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-pale);
}

.button--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
}

.button--outline:hover {
  background: var(--primary-pale);
}

.button--danger { background: var(--coral); color: #fff; }
.button--danger:hover { background: #E11D48; }

.button--lg  { padding: 13px 30px; font-size: 15px; }
.button--md  { padding: 10px 22px; font-size: 14px; }
.button--sm  { padding: 7px 16px;  font-size: 13px; }
.button--xs  { padding: 5px 11px;  font-size: 12px; }
.button--block { width: 100%; }

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
.wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0 40px;
}

.wrap__content {
  flex: 1;
  min-width: 0;
}

/* ================================================================
   LEFT SIDEBAR
   ================================================================ */
.wrap__side {
  width: 236px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.cc-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 8px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.cc-block::-webkit-scrollbar { width: 4px; }
.cc-block::-webkit-scrollbar-track { background: transparent; }
.cc-block::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.cc-menu { list-style: none; }

._countrycss1 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 10px 5px;
}

.cc-menu__item { position: relative; }
.cc-menu__item-top { display: flex; align-items: center; justify-content: space-between; }

.cc-menu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  flex: 1;
  transition: all 0.15s;
  min-width: 0;
}

.cc-menu__link:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.cc-menu__link.active {
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 700;
}

.cc-menu__title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-menu__caret {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all 0.2s;
  flex-shrink: 0;
}

.cc-menu__caret:hover { background: var(--primary-pale); color: var(--primary); }

.cc-menu__caret .icon {
  width: 10px; height: 10px;
  fill: currentColor;
  transition: transform 0.2s;
}

.cc-menu__caret[aria-expanded="true"] .icon { transform: rotate(180deg); }

.cc-menu-dropdown {
  margin: 2px 0 4px 22px;
  border-left: 2px solid var(--border);
}

.cc-menu-dropdown li a {
  display: block;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}

.cc-menu-dropdown li a:hover { color: var(--primary); background: var(--primary-pale); }
.cc-menu-dropdown li a.active { color: var(--primary); font-weight: 600; }

.flag-icon {
  width: 18px; height: 13px;
  border-radius: 2px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* ================================================================
   ADS / ОБЪЯВЛЕНИЯ — CARD (главная страница, SEO-friendly)
   ================================================================ */
.ad-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ad-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.ad-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}

.ad-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  display: block;
}

.ad-card:hover .ad-card__img img { transform: scale(1.04); }

/* Category badge on image */
.ad-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  padding: 4px 10px 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.ad-card__cat svg { width: 12px; height: 12px; flex-shrink: 0; }

/* VIP / featured badge */
.ad-card__vip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}

.ad-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.ad-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.ad-card:hover .ad-card__title { color: var(--primary); }

.ad-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.ad-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-card__meta-item svg { width: 12px; height: 12px; flex-shrink: 0; }

.ad-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
}

/* ================================================================
   MODEL CARD (только для авторизованных)
   ================================================================ */
.model {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.model:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  z-index: 2;
}

.model-body {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--bg-2);
  flex-shrink: 0;
}

.model-img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  display: block;
}

.model:hover .model-img img { transform: scale(1.05); }

/* gradient overlay */
.model-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(17,17,24,0.75) 0%,
    rgba(17,17,24,0.15) 45%,
    transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* Labels */
.labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.labels__item {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  line-height: 1.4;
  background: var(--primary);
  color: var(--text-inv);
}

/* Action buttons */
.news-item__info {
  position: absolute;
  right: 10px;
  bottom: 56px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.news-item__info-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 700;
  padding: 6px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  min-width: 34px;
  transition: all 0.2s;
}

.news-item__info-btn:hover {
  background: rgba(124,58,237,0.7);
  border-color: rgba(255,255,255,0.3);
}

.news-item__info-btn.active svg { fill: var(--coral); stroke: none; }

.news-item__info-btn svg {
  display: block;
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.news-item__info-btn-comment svg { fill: currentColor; stroke: none; }

/* Model info at bottom */
.model-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 12px 10px;
  z-index: 3;
}

.model-info__text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-info__city {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 3px;
}

.model-info__city a { color: inherit; transition: color 0.15s; }
.model-info__city a:hover { color: rgba(255,255,255,0.9); }

.model-info__view {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

.model-info__view svg { width: 10px; height: 10px; fill: currentColor; }

/* ================================================================
   ANNONCE ITEM — старый стиль (переопределяем)
   ================================================================ */
.annonce-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s, border-color 0.2s;
  height: 100%;
}

.annonce-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.annonce-item__img {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.annonce-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.annonce-item:hover .annonce-item__img img { transform: scale(1.04); }

.annonce-item__img .labels {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
}

.annonce-item__img .labels .labels__item {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 4px;
}

.annonce-item__img .labels .labels__item svg { display: none; }

.annonce-item__content {
  padding: 12px 14px 14px;
}

.annonce-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.15s;
}

.annonce-item:hover .annonce-item__title { color: var(--primary); }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-inner { margin-bottom: 20px; }

.section-inner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-inner__head::before { display: none; }

.section-inner__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.section-inner__title a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.section-inner__title a:hover { color: var(--primary); }
.section-inner__title .icon { display: none; }

.section-inner__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.section-inner__link:hover { opacity: 0.7; }
.section-inner__link .icon { width: 12px; height: 12px; }

/* ================================================================
   TAGS / SECTION TITLE BLOCK
   ================================================================ */
.tags-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.tags-block__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.tags-block__title span {
  color: var(--primary);
  position: relative;
}

.title-h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
}

/* ================================================================
   FILTER BLOCK
   ================================================================ */
.filter-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.filter-button,
.filter-block .dropdown .button {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-button:hover,
.filter-block .dropdown .button:hover,
.filter-block .dropdown .button.active {
  background: var(--primary-pale);
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-block .dropdown .dropdown-menu {
  padding: 12px;
  min-width: 260px;
}

/* ================================================================
   BANNER
   ================================================================ */
.banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
}

.banner img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.banner:hover img { transform: scale(1.02); }
.banner a { display: block; overflow: hidden; border-radius: var(--r-lg); }

/* ================================================================
   GRID
   ================================================================ */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > * { padding: 0 8px; margin-bottom: 16px; }

.col-4      { width: 33.333%; }
.col-md-4   { width: 33.333%; }
.col-lg-3   { width: 25%; }
.col-xl-3   { width: 25%; }
.col-xxxl-2 { width: 16.666%; }

/* gx / gy variants */
.gx-1 > * { padding: 0 4px; }
.gx-4 > * { padding: 0 12px; }
.gy-1 > * { margin-bottom: 8px; }
.gy-2 > * { margin-bottom: 8px; }

.col-6 { width: 50%; }
.col-sm-6 { width: 50%; }
.col-xxl-3 { width: 25%; }
.col-xl-4 { width: 33.333%; }

/* ================================================================
   FORM CONTROLS
   ================================================================ */
.form-control,
.form-select,
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-1);
  font-family: var(--font-body);
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
  background: var(--white);
  outline: none;
}

.form-control::placeholder, input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 100px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239292B0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 32px;
}

.footer__container {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.footer__logo img { height: 30px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer__logo:hover img { opacity: 1; }

.footer__content { flex: 1; min-width: 0; }

.footer__text {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer__text a { color: var(--text-2); transition: color 0.2s; }
.footer__text a:hover { color: var(--primary); }

.footer #topmenuonfooter {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer .top-menu__link {
  padding: 5px 12px;
  font-size: 12px;
}

.footer .top-menu__link::after { display: none; }

.agelimit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
}

/* ================================================================
   MODALS
   ================================================================ */
.popup { display: none; position: fixed; inset: 0; z-index: 10000; padding: 16px; overflow: auto; }
.popup.is-open { display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.popup::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(17,17,24,0.55);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.popup .modal-dialog,
.modal-dialog {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: slideUp .22s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header { padding: 22px 24px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--text-1); }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 14px 24px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.btn-close {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-close:hover { background: var(--primary-pale); color: var(--primary); border-color: var(--primary-light); }
.btn-close .icon { width: 14px; height: 14px; fill: currentColor; }

/* ================================================================
   OFFCANVAS
   ================================================================ */
.offcanvas {
  position: fixed;
  z-index: 10001;
  background: var(--white);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.offcanvas-start {
  top: 0; left: 0; bottom: 0;
  width: 300px;
  border-right: 1.5px solid var(--border);
  transform: translateX(-100%);
  box-shadow: var(--shadow-lg);
}

.offcanvas-top {
  top: 0; left: 0; right: 0;
  border-bottom: 1.5px solid var(--border);
  transform: translateY(-100%);
  padding: 16px 20px;
}

.offcanvas-start.show { transform: translateX(0); }
.offcanvas-top.show { transform: translateY(0); }
.offcanvas-body { padding: 12px; overflow-y: auto; height: 100%; }

.m-menu__item {}
.m-menu__link {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--r-md);
  transition: all 0.15s;
}

.m-menu__link:hover { background: var(--primary-pale); color: var(--primary); }
.m-menu__link.active { color: var(--primary); }

.burger {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all 0.2s;
}

.burger:hover { background: var(--primary-pale); color: var(--primary); border-color: var(--primary-light); }
.burger .icon { width: 18px; height: 18px; fill: currentColor; }

.city-btn, .search-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.city-btn:hover, .search-btn:hover {
  background: var(--primary-pale);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ================================================================
   HERO SECTION — Главная для гостей (чистые объявления)
   ================================================================ */
.hero-classifieds {
  background: linear-gradient(135deg, #F3F0FF 0%, #FFF7ED 50%, #F0F9FF 100%);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-classifieds::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-classifieds__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-classifieds__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-classifieds__title strong { color: var(--primary); }

.hero-classifieds__sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-classifieds__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
}

.hero-classifieds__search .search-form {
  flex: 1;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.hero-classifieds__search .search-form:focus-within {
  border-color: var(--primary-light);
}

.hero-classifieds__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stat__num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.hero-stat__label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.hero-stat-divider { width: 1px; height: 32px; background: var(--border-strong); }

/* ================================================================
   CATEGORY PILLS — навигация по категориям
   ================================================================ */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-pill:hover {
  background: var(--primary-pale);
  border-color: var(--primary-light);
  color: var(--primary);
}

.cat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inv);
}

.cat-pill__icon {
  width: 18px; height: 18px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  background: currentColor;
  opacity: 0.12;
  flex-shrink: 0;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.d-flex           { display: flex; }
.d-none           { display: none; }
.d-block          { display: block; }
.d-inline-block   { display: inline-block; }
.d-inline-flex    { display: inline-flex; }
.flex-column      { flex-direction: column; }
.flex-wrap        { flex-wrap: flex-wrap; }
.align-items-center    { align-items: center; }
.align-items-start     { align-items: flex-start; }
.justify-content-center  { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end     { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 12px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.p-2  { padding: 8px; }
.p-3  { padding: 12px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.overflow-hidden   { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded { border-radius: var(--r-md); }
.flex-1 { flex: 1; }
.w-auto { width: auto; }

.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-3); }
.text-sm       { font-size: 12px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 20px 0; }

.page-item .page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}

.page-item.active .page-link,
.page-item .page-link:hover {
  background: var(--primary);
  color: var(--text-inv);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(124,58,237,0.22);
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  border: 1.5px solid;
  display: flex; align-items: flex-start; gap: 10px;
}

.alert-success { background: var(--green-pale); border-color: #6EE7B7; color: #065F46; }
.alert-danger  { background: var(--coral-pale); border-color: #FCA5A5; color: #9F1239; }
.alert-warning { background: var(--accent-pale); border-color: #FDE68A; color: #92400E; }
.alert-info    { background: var(--teal-pale);   border-color: #BAE6FD; color: #0C4A6E; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-body   { padding: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--text-1); }

/* ================================================================
   DROPDOWN
   ================================================================ */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle::after { display: none; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; }
.dropdown-menu.show { display: block; }
.dropdown-col { min-width: 150px; padding: 4px; }
.dropdown-title { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); padding: 4px 6px; }

/* ================================================================
   COLLAPSE
   ================================================================ */
.collapse { display: none; }
.collapse.show { display: block; }

/* ================================================================
   NAV ITEM
   ================================================================ */
.nav-item { position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid var(--border);
}

.btn-dark {
  background: var(--text-1);
  color: var(--text-inv);
  border-color: var(--text-1);
}

.btn-dark:hover { background: var(--primary); border-color: var(--primary); }

/* ================================================================
   REGISTER CAT
   ================================================================ */
.register-cat .button {
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--bg);
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.register-cat .button:hover,
.register-cat .button.active {
  background: var(--primary-pale);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

/* ================================================================
   CARD ENTRANCE ANIMATION
   ================================================================ */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.annonce-item, .model, .ad-card {
  animation: cardEntrance 0.35s cubic-bezier(.4,0,.2,1) both;
}

.row > *:nth-child(1) .annonce-item,
.row > *:nth-child(1) .model { animation-delay: 0.00s; }
.row > *:nth-child(2) .annonce-item,
.row > *:nth-child(2) .model { animation-delay: 0.04s; }
.row > *:nth-child(3) .annonce-item,
.row > *:nth-child(3) .model { animation-delay: 0.08s; }
.row > *:nth-child(4) .annonce-item,
.row > *:nth-child(4) .model { animation-delay: 0.12s; }
.row > *:nth-child(5) .annonce-item,
.row > *:nth-child(5) .model { animation-delay: 0.16s; }
.row > *:nth-child(6) .annonce-item,
.row > *:nth-child(6) .model { animation-delay: 0.20s; }
.row > *:nth-child(7) .annonce-item,
.row > *:nth-child(7) .model { animation-delay: 0.24s; }
.row > *:nth-child(8) .annonce-item,
.row > *:nth-child(8) .model { animation-delay: 0.28s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .wrap__side { display: none; }
}

@media (max-width: 992px) {
  .col-lg-3 { width: 33.333%; }
}

@media (max-width: 768px) {
  .col-md-4, .col-lg-3, .col-xl-3, .col-xxxl-2 { width: 50%; }
  .col-md-4 { width: 50%; }
  .col-xxl-3, .col-xl-4 { width: 50%; }
  .footer__container { flex-direction: column; gap: 20px; }
  .hero-classifieds { padding: 28px 20px; }
  .hero-classifieds__search { flex-direction: column; }
  .container-fluid { padding: 0 12px; }
  .wrap { padding: 12px 0 28px; }
  .d-md-none { display: none !important; }
}

@media (max-width: 576px) {
  .col-sm-6, .col-6 { width: 50%; }
  .d-sm-none { display: none !important; }
}

@media (min-width: 576px) {
  .d-sm-block { display: block; }
  .d-sm-flex  { display: flex; }
}

@media (min-width: 768px) {
  .d-md-block { display: block; }
  .d-md-flex  { display: flex; }
  .d-md-none  { display: none; }
}

@media (min-width: 992px) {
  .d-lg-flex  { display: flex; }
  .d-lg-block { display: block; }
}

@media (min-width: 1200px) {
  .d-xl-flex  { display: flex; }
  .d-xl-block { display: block; }
  .d-xl-none  { display: none; }
}

@media (min-width: 1600px) {
  .container-fluid { padding: 0 32px; }
}

/* ================================================================
   COMPATIBILITY — переменные для старого кода
   ================================================================ */
:root {
  --bgColor: var(--bg);
  --accentColor: var(--primary);
  --accentColorHover: var(--primary-dark);
  --accentColor2: var(--coral);
  --font: var(--font-body);
  --color: var(--text-1);
  --size: 15px;
}
