/* Proday Sosedu — Redesign by Figma (точ в точь) */

/* Боковое меню для мобильных */
.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel.is-open {
  transform: translateX(0);
}
body.mobile-drawer-open {
  overflow: hidden;
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --yellow: #eab308;
  --yellow-hover: #ca8a04;
  --yellow-light: #fef9c3;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --auth-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%);
  --video-banner-gradient: linear-gradient(120deg, #7c3aed 0%, #ec4899 100%);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-modal: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Адаптивность: сайт не вылезает за рамки экрана на мобильных */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  overflow-x: hidden;
  max-width: 100vw;
  min-width: 0;
}
/* Изображения и медиа не выходят за экран */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}
/* Таблицы и пре-форматированный текст не ломают layout на мобильных */
table, pre {
  max-width: 100%;
  overflow-x: auto;
}
/* Длинные слова и URL переносятся и не вылезают */
body, .prose, .article-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Слайдер изображений в детальном просмотре объявления */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.ad-images-slider {
  touch-action: pan-y pinch-zoom;
}
.ad-image-wrap img {
  object-fit: contain;
}

/* Адаптивность сеток и карточек - предотвращение переполнения */
.ads-grid-simple,
.grid {
  max-width: 100%;
  min-width: 0;
}
.ads-grid-simple > *,
.grid > * {
  min-width: 0;
  max-width: 100%;
}
/* Карточки объявлений не вылезают за экран */
.ad-card-simple,
.ad-card-vip,
.ad-card-proday {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
/* Flex контейнеры не расширяются за экран */
.flex,
.flex-wrap {
  min-width: 0;
  max-width: 100%;
}
/* Контейнеры с max-w должны иметь min-w-0 */
[class*="max-w-"] {
  min-width: 0;
}

/* Auth pages: gradient background */
body.auth-page {
  background: var(--auth-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
}

.auth-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-500);
  background: var(--white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: var(--gray-700);
}

.auth-tab.active {
  background: var(--primary);
  color: var(--white);
}

.auth-form {
  padding: 1.5rem 1.5rem 1.25rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 0.375rem;
}

.auth-form input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem; /* 16px — не вызывает авто-зум при фокусе на iOS */
  -webkit-appearance: none;
  appearance: none;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.auth-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-yellow {
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-yellow:hover {
  background: var(--yellow-hover);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  padding: 0 0.75rem;
  text-transform: uppercase;
}

.auth-social {
  display: flex;
  gap: 0.75rem;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: border-color 0.2s;
}

.auth-social-btn:hover {
  border-color: var(--gray-400);
}

.auth-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: none;
  border-top: 1px solid var(--gray-100);
}

.auth-back:hover {
  color: var(--gray-700);
}

/* Header — по скрину: логотип тёмный, поиск минимальный, кнопки Статьи Магазины Вход Регистрация + Разместить */
.header-proday {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
/* Полоска меню под хедером на мобильных — на всю ширину, липкая вместе с хедером */
.header-mobile-menu-bar {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.header-proday .logo-main {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.header-proday .logo-sub {
  font-size: 0.75rem;
}

.header-proday .header-search-input {
  transition: background 0.2s, box-shadow 0.2s;
}

.header-proday .header-search-input::placeholder {
  color: #9ca3af;
}

.header-proday .header-nav-link {
  text-decoration: none;
  color: #374151;
}

/* Кнопки Статьи, Магазин, Обратная связь — как на скрине: белый фон, высота как у поиска */
.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  height: 2.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.header-nav-btn svg {
  flex-shrink: 0;
  color: #6b7280;
}
.header-nav-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
.header-nav-btn:hover svg {
  color: #4b5563;
}

.header-proday .btn-place {
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Left sidebar — фиксированная ширина, не сжимается; основной контент рядом */
aside.sidebar-aside {
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 1024px) {
  aside.sidebar-aside {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

/* Left sidebar — по скрину: чёрный текст, серые иконки, актив = светло-серый фон */
.sidebar-left {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.sidebar-left h2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-left li {
  margin-bottom: 0.125rem;
}

.sidebar-left a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #111827;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-left a .icon-wrap {
  color: #6b7280;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 0;
}

.sidebar-left a .icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.sidebar-left a:hover {
  background: #f3f4f6;
}

.sidebar-left a.active {
  background: #e5e7eb;
  color: #111827;
  font-weight: 500;
}

.sidebar-left a.active .icon-wrap {
  color: #374151;
}

/* Дочерние блоки категорий/регионов — плавное появление */
.sidebar-left .cat-tree-children,
.sidebar-left .region-children-ajax-wrap {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.25s ease;
}

.sidebar-left .cat-tree-children.collapsed,
.sidebar-left .region-children-ajax-wrap.collapsed {
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar-left .region-children-ajax-wrap .region-back-ajax {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Отступ слева для дочерних категорий */
.sidebar-left .cat-tree-children-list {
  padding-left: 1.25rem;
  margin-left: 0;
  list-style: none;
}

/* ========== Блок категорий в стиле Avito ========== */
.categories-block-avito {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 1rem;
  border: 1px solid #e2e8f0;
}
.categories-scroll-wrap {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 4px;
  grid-auto-flow: dense;
}
/* Мобильные: те же формы и размеры, только прокрутка по горизонтали (узкий экран) */
@media (max-width: 1023px) {
  .categories-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
    margin: 0 -4px;
    max-width: 100%;
    /* Колонки не сжимаются — сетка расширяется и прокручивается */
    grid-template-columns: repeat(14, minmax(72px, 1fr));
  }
  .categories-scroll-wrap::-webkit-scrollbar {
    height: 6px;
  }
  .categories-scroll-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }
  .categories-scroll-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
}
/* Карточка: текст поверх картинки, компактная высота */
.category-card-avito {
  position: relative;
  display: block;
  text-decoration: none;
  color: #1f2937;
  background: #E2E8F0;
  border-radius: 8px;
  min-height: 64px;
  padding: 8px 10px;
  transition: background 0.15s;
  grid-column: span 2;
  overflow: hidden;
}
.category-card-parent {
  min-height: 68px;
}
.category-card-wide {
  grid-column: span 3;
  min-height: 68px;
}
.category-card-wide.category-card-parent {
  min-height: 70px;
}
.category-card-avito:hover {
  background: #cbd5e1;
}
/* Текст поверх картинки с градиентом для читаемости */
.category-card-parent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(226,232,240,0.95) 0%, rgba(226,232,240,0.6) 70%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.category-card-avito-text {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 3;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1e293b;
}
.category-card-wide .category-card-avito-text {
  max-width: 75%;
}
/* Картинки крупные, как у Avito — форма блоков без изменений */
.category-card-avito-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 106px;
  height: 106px;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
}
.category-card-avito:nth-child(3n+1) .category-card-avito-img {
  width: 118px;
  height: 118px;
}
.category-card-avito:nth-child(3n+2) .category-card-avito-img {
  width: 110px;
  height: 110px;
}
.category-card-wide .category-card-avito-img {
  width: 124px;
  height: 124px;
}
.category-card-wide:nth-child(3n+1) .category-card-avito-img {
  width: 135px;
  height: 135px;
}
/* Знакомства — картинка на 30% меньше */
.category-card-znakomstva .category-card-avito-img {
  width: 74px !important;
  height: 74px !important;
}
/* Дочерние категории — без картинки, только текст */
.category-card-child .category-card-avito-text {
  max-width: 100%;
}
.category-card-child::before {
  display: none;
}
/* Кнопка «Назад» */
.category-card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.category-card-back .category-card-avito-text {
  position: static;
  right: auto;
}
.category-card-avito-back-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Video hero — как на втором скрине: full-width gradient, центральный overlay, нижняя панель */
.video-hero {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 40%, #ec4899 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-hero-overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(124,58,237,0.4) 0%, rgba(124,58,237,0.15) 100%);
}

.video-hero-play {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.video-hero-play:hover {
  background: rgba(255,255,255,0.35);
}

.video-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
  text-align: center;
}

.video-hero-subtitle {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.75rem;
  text-align: center;
}

.video-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
}

.video-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.08);
}

.video-hero-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem;
}

.video-hero-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.video-hero-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  color: #3C83F6;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid #3C83F6;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.video-hero-btn-watch:hover {
  background: #eff6ff;
}

/* ========== ПРОСТЫЕ ОБЪЯВЛЕНИЯ (скрин 1) — цена и Позвонить #3C83F6 ========== */
/* Кнопки вертикально: Написать сверху, Позвонить снизу; ровно по карточкам */
.ad-card-btns .ad-card-simple-btn-write,
.ad-card-btns .ad-card-simple-btn-call,
.ad-card-btns .ad-card-vip-btn-write,
.ad-card-btns .ad-card-vip-btn-call {
  flex: none;
  width: 100%;
}
.ad-card-simple {
  transition: box-shadow 0.2s;
}
.ad-card-simple:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.ad-card-simple-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}
.ad-card-simple-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-card-simple-price {
  color: #3C83F6;
  font-size: 1.25rem;
}

/* Карточки объявлений: мобильная сетка 2 в ряд — компактно и аккуратно */
@media (max-width: 639px) {
  .ad-card-simple .ad-card-simple-body,
  .ad-card-simple-body {
    padding: 0.625rem 0.75rem !important;
  }
  .ad-card-simple h3,
  .ad-card-simple .font-bold {
    font-size: 0.8125rem !important;
    line-height: 1.25;
  }
  .ad-card-simple .text-sm {
    font-size: 0.6875rem !important;
  }
  .ad-card-simple-price {
    font-size: 0.9375rem !important;
    margin-bottom: 0.375rem !important;
  }
  .ad-card-simple .text-xs {
    font-size: 0.625rem !important;
    padding: 0.15rem 0.4rem !important;
  }
  .ad-card-simple .ad-card-btns,
  .ad-card-vip .ad-card-btns {
    padding: 0 0.75rem 0.75rem !important;
    gap: 0.375rem !important;
  }
  .ad-card-simple-btn-write,
  .ad-card-simple-btn-call {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.6875rem !important;
  }
  .ad-card-simple-btn-write svg,
  .ad-card-simple-btn-call svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
  }
}
.ad-card-simple-btn-write {
  flex: 1;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ad-card-simple-btn-write svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.ad-card-simple-btn-write:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.ad-card-simple-btn-call {
  flex: 1;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: #3C83F6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.ad-card-simple-btn-call svg {
  flex-shrink: 0;
}
.ad-card-simple-btn-call:hover {
  background: #2563eb;
}

/* ========== VIP ОБЪЯВЛЕНИЯ (скрин 2) — градиент #FACC15 → #F97316 ========== */
.vip-premium-badge {
  background: #F97316;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.ad-card-vip {
  border: 1px solid #F97316;
  border-radius: 12px;
  transition: box-shadow 0.2s;
}
.ad-card-vip:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.ad-card-vip-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}
.ad-card-vip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-card-vip-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ad-card-vip-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #fff;
}
.ad-card-vip-views {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 9999px;
}
.ad-card-vip-price {
  background: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.125rem;
}
.ad-card-vip-btn-write {
  flex: 1;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ad-card-vip-btn-write svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.ad-card-vip-btn-write:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.ad-card-vip-btn-call {
  flex: 1;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s;
}
.ad-card-vip-btn-call svg {
  flex-shrink: 0;
}
.ad-card-vip-btn-call:hover {
  opacity: 0.95;
  filter: brightness(1.05);
}

/* VIP-карточки на мобильных: компактно в 2 ряда */
@media (max-width: 639px) {
  .ad-card-vip .ad-card-vip-body,
  .ad-card-vip-body {
    padding: 0.625rem 0.75rem !important;
  }
  .ad-card-vip h4,
  .ad-card-vip .font-bold {
    font-size: 0.8125rem !important;
    line-height: 1.25;
  }
  .ad-card-vip .text-sm {
    font-size: 0.6875rem !important;
  }
  .ad-card-vip-price {
    font-size: 0.9375rem !important;
    margin-bottom: 0.375rem !important;
  }
  .ad-card-vip .text-xs,
  .ad-card-vip .inline-block.text-xs {
    font-size: 0.625rem !important;
    padding: 0.15rem 0.4rem !important;
  }
  .ad-card-vip-btn-write,
  .ad-card-vip-btn-call {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.6875rem !important;
  }
  .ad-card-vip-btn-write svg,
  .ad-card-vip-btn-call svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
  }
  .ad-card-vip-badge {
    font-size: 0.5625rem !important;
    padding: 0.15rem 0.35rem !important;
  }
  .ad-card-vip-views {
    font-size: 0.625rem !important;
  }
}

.promo-bar-vip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #FEFCE8 0%, #FEF3C7 50%, #FFEDD5 100%);
  border: 1px solid #F97316;
  border-radius: 12px;
}
@media (min-width: 640px) {
  .promo-bar-vip {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.promo-bar-vip-text {
  flex: 1;
  min-width: 0;
}
.promo-bar-vip-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
@media (min-width: 640px) {
  .promo-bar-vip-btn {
    width: auto;
  }
}
.btn-vip-gradient {
  background: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
  text-decoration: none;
  transition: opacity 0.2s, filter 0.2s;
}
.btn-vip-gradient:hover {
  opacity: 0.95;
  filter: brightness(1.05);
}

/* Legacy: оставляем для совместимости */
.vip-badge {
  background: #f97316;
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ad-card-proday {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ad-card-proday:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ad-card-proday .img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ad-card-proday .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-card-proday .ad-card-price,
.ad-card-price {
  color: #ea580c;
  font-size: 1rem;
}

.ad-card-proday .btn-write {
  background: var(--white);
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.ad-card-proday .btn-write:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.ad-card-proday .btn-call {
  background: #eab308;
  color: #1f2937;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s;
}

.ad-card-proday .btn-call:hover {
  background: #ca8a04;
}

/* В сетке «Все объявления» — те же кнопки */
.btn-write-outline {
  background: var(--white);
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-write-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-call-outline {
  background: #eab308;
  color: #1f2937;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s;
}

.btn-call-outline:hover {
  background: #ca8a04;
}

/* Кнопка «Показать» в секции Карта объявлений */
.btn-map-show {
  text-decoration: none;
}

/* Кнопка «Добавить в VIP» в заголовке VIP-секции — тёмно-серая */
.btn-vip-add {
  text-decoration: none;
}

/* Yellow promo bar */
.promo-bar {
  background: var(--yellow-light);
  border: 1px solid #fde047;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Right sidebar — Активность */
.sidebar-activity {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.sidebar-activity h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-activity .activity-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
}

.sidebar-activity .city-row {
  font-size: 0.8125rem;
  color: var(--gray-700);
  padding: 0.25rem 0;
}

.sidebar-activity .activity-update {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

/* Footer — фон #E2E8F0, иконки в ряд со словами */
.footer-proday {
  background: #E2E8F0;
  color: #374151;
  padding: 2rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid #cbd5e1;
}

.footer-proday-inner {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 0.75rem;
}

.footer-proday .footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.footer-proday .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-proday .footer-list li {
  margin-bottom: 0.4rem;
}

/* Иконка и текст в одну горизонтальную строку */
.footer-proday .footer-link {
  font-size: 0.8125rem;
  color: #4b5563;
  text-decoration: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  transition: color 0.15s;
  line-height: 1.3;
}

.footer-proday .footer-link:hover {
  color: #1d4ed8;
}

.footer-proday .footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  vertical-align: middle;
}

.footer-proday .footer-link:hover .footer-icon {
  color: #1d4ed8;
}

.footer-proday .footer-text {
  cursor: default;
  pointer-events: none;
}

/* Нижний блок — мельче и аккуратно внизу */
.footer-proday .footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid #cbd5e1;
  text-align: center;
}

.footer-proday .footer-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.footer-proday .footer-copy {
  font-size: 0.6875rem;
  color: #64748b;
}

/* Filters modal — в стиле сайта */
.filters-modal {
  animation: filtersFadeIn 0.2s ease-out;
}
.filters-modal-wrap {
  animation: filtersSlideIn 0.25s ease-out;
}
@keyframes filtersFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes filtersSlideIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.filters-modal-content {
  border: 1px solid var(--gray-200);
}
.filters-modal-content .filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
/* Ползунки цены */
.filter-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
}
.filter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 2px solid #fff;
}
.filter-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 2px solid #fff;
}

/* Блоки соцсетей в сайдбаре статей — Telegram, OK */
.sidebar-social-block {
  transition: box-shadow 0.2s;
}
.sidebar-social-block:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.sidebar-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #374151;
  transition: color 0.2s;
}
.sidebar-social-link:hover {
  color: #1f2937;
}
.sidebar-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}
.sidebar-social-icon-tg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: white;
}
.sidebar-social-icon-ok {
  background: linear-gradient(135deg, #ee8208 0%, #f7931e 100%);
  color: white;
}
.sidebar-social-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3C83F6;
}
.sidebar-social-link:hover .sidebar-social-text {
  color: #2563eb;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar-left,
  .sidebar-activity {
    margin-bottom: 1rem;
  }
  
  .header-proday .search-input {
    max-width: 100%;
  }
  
  .auth-card {
    margin: 1rem;
  }
  /* Адаптивность для блока входа через телефон */
  #phoneAuthBlock input,
  #phoneAuthBlock button {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  #phoneAuthBlock .flex {
    flex-direction: column;
  }
  #phoneAuthBlock .flex > * {
    width: 100%;
  }
}

/* Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy compatibility */
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.form-input {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}
