/* Подключение шрифта Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Цветовая палитра */
:root {
  --primary: #e0610b;
  --primary-dark: #c25209;
  --primary-light: #f08a4b;
  --secondary: #fff9e5;
  --accent: #ff8c42;
  --accent-dark: #e67e39;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --text-dark: #212529;
  --text-light: #6c757d;
  --white: #ffffff;
}

/* Основные стили */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Заголовки с uppercase */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  margin-bottom: 0.5em;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

h4 {
  font-size: 1.5rem;
  font-weight: 700;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Обычный текст */
p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Ссылки */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

a:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Ссылки в навигации */
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 6px;
  position: relative;
}

.nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link i {
  margin-right: 5px;
}

/* Кнопки */
.btn {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 12px 25px;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(224, 97, 11, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #a04508);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 97, 11, 0.4);
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 97, 11, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #1e7e34);
  color: white;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-light {
  background: linear-gradient(135deg, white, #f8f9fa);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: linear-gradient(135deg, #f8f9fa, white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Навигационная панель */
.navbar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 20px rgba(224, 97, 11, 0.3);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white !important;
  position: relative;
  padding-left: 20px;
}

.navbar-brand i {
  margin-right: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* Страницы */
.pages {
  background-color: var(--white);
  padding: 60px;
  border-radius: 60px;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
}

/* Карточки */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  background: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card:hover {
  box-shadow: 0 15px 40px rgba(224, 97, 11, 0.25);
}

.card-header {
  background-color: var(--secondary);
  border-bottom: 2px solid rgba(224, 97, 11, 0.1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
  color: var(--primary-dark);
  padding: 1.2rem;
}

/* Джумботрон - ИСПРАВЛЕНО */
.jumbotron {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.4);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  text-align: center;
}

.jumbotron:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(30deg);
}

.jumbotron h1 {
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.jumbotron p.lead {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.jumbotron .btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.jumbotron .btn {
  font-size: 1.1rem;
  padding: 15px 35px;
  font-weight: 800;
  letter-spacing: 2px;
  min-width: 220px;
}

/* Бейджи */
.badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.badge.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
  color: white;
}

.badge.bg-success {
  background: linear-gradient(135deg, var(--success), #1e7e34) !important;
  color: white;
}

.badge.bg-info {
  background: linear-gradient(135deg, var(--info), #117a8b) !important;
  color: white;
}

.badge.bg-warning {
  background: linear-gradient(135deg, var(--warning), #d39e00) !important;
  color: white;
}

.badge.bg-danger {
  background: linear-gradient(135deg, var(--danger), #bd2130) !important;
  color: white;
}

/* Футер - ИСПРАВЛЕНО */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  margin-top: 50px;
  padding: 3rem 0 2rem;
  position: relative;
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

footer h5,
footer h6 {
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

footer h5:after,
footer h6:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 8px;
  padding: 5px 0;
}

footer a:hover {
  color: white;
  transform: translateX(5px);
}

footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Формы */
.form-control,
.form-select {
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 5px 20px rgba(224, 97, 11, 0.2);
  outline: none;
}

.form-label {
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Алерты */
.alert {
  border-radius: 12px;
  font-weight: 500;
  border: none;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.alert-primary {
  background: linear-gradient(
    135deg,
    rgba(224, 97, 11, 0.15),
    rgba(224, 97, 11, 0.05)
  );
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
}

/* Таблицы */
.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(224, 97, 11, 0.1);
}

.table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 1.2rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(224, 97, 11, 0.05);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Утилиты */
.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
  color: white;
}

.bg-secondary {
  background-color: var(--secondary) !important;
  color: var(--text-dark);
}

.bg-light {
  background-color: #ffffff !important;
  color: var(--text-dark);
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--gray) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.text-white {
  color: white !important;
}

/* Статистика карточки */
.stat-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(224, 97, 11, 0.3);
}

.stat-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

.stat-card h5 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: none;
}

.stat-card p {
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Преимущества карточки */
.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.2);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--secondary), white);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(224, 97, 11, 0.2);
}

.feature-card h5 {
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Удалено дублирование и объединены стили */
.card-title,
.card.product-card .card-title,
.category-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card.product-card,
.category-card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.card.product-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.25);
}

.card.product-card .card-img-top,
.ad-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card-img-top {
  height: 300px;
  overflow: hidden;
  border: 1px solid #ccc; /* для наглядности рамка */
  border-radius: 10px;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* вот тут магия */
  display: block;
}

.card.product-card .card-img-top i,
.ad-card-img i {
  font-size: 3rem;
  color: white;
}

/* Удалено дублирование */
.ad-card-inner-user-avatar {
  font-weight: bold;
}

/* Медиа-запросы сгруппированы в конце файла */
@media (max-width: 768px) {
  .card-title,
  .card.product-card .card-title {
    font-size: 1rem;
  }
  .card.product-card .card-text {
    font-size: 0.85rem;
  }
  .card.product-card .price {
    font-size: 1.1rem;
  }
  .category-card .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .jumbotron {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .jumbotron h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .jumbotron p.lead {
    font-size: 1.1rem;
  }

  .jumbotron .btn-container {
    flex-direction: column;
    gap: 15px;
  }

  .jumbotron .btn {
    width: 100%;
    min-width: auto;
  }

  .navbar-nav {
    text-align: center;
    margin-top: 15px;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 12px 15px;
    margin: 5px 10px;
    border-radius: 8px;
  }

  .stat-card h5 {
    font-size: 2rem;
  }
}

/* Анимации */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--primary-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Креативные элементы */
.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.divider:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider span {
  background: var(--secondary);
  padding: 0 20px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Стили для карточек категорий */
.category-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(224, 97, 11, 0.2);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), #ffffff);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(224, 97, 11, 0.1);
  font-size: 2rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Адаптивность для категорий */
@media (max-width: 768px) {
  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1rem;
  }
}

/* Стили для страницы категории */
.category-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 15px;
  margin-bottom: 2rem;
  padding: 2rem;
}

.category-header .display-6 {
  font-size: 2.5rem;
}

/* Улучшенные стили для карточек объявлений */
.ad-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.25);
}

.ad-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.ad-card-img i {
  font-size: 3rem;
  color: white;
}

/* Стили для значков состояния */
.condition-badge.new {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.condition-badge.excellent {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.condition-badge.good {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.condition-badge.satisfactory {
  background: linear-gradient(135deg, #ffc107, #d39e00);
}

.condition-badge.poor {
  background: linear-gradient(135deg, #dc3545, #bd2130);
}

/* Объявления (вместо .ad-card) */
.card.product-card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.25);
}

.card.product-card .card-img-top {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card.product-card .card-img-top i {
  font-size: 3rem;
  color: white;
}

.card.product-card .card-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.card.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card.product-card .card-text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.limit-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limit-4-lines {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limit-5-lines {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.product-card .price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

.card.product-card .price-no-price {
  color: var(--text-light);
  font-size: 0.9rem;
}

.card.product-card .free {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.card.product-card .date {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.card.product-card .badges {
  margin-bottom: 1rem;
}

.card.product-card .stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.card.product-card .footer {
  padding: 1rem 1.25rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

/* Стили для категорий */
.category-card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(224, 97, 11, 0.25);
}

.category-card .category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), white);
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(224, 97, 11, 0.2);
}

.category-card .category-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.category-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.category-card .card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
  .card.product-card .card-title {
    font-size: 1rem;
  }

  .card.product-card .card-text {
    font-size: 0.85rem;
  }

  .card.product-card .price {
    font-size: 1.1rem;
  }

  .category-card .category-icon {
    width: 60px;
    height: 60px;
  }

  .category-card .category-icon i {
    font-size: 1.5rem;
  }
}

/* --- INLINE STYLES FROM PHP FILES --- */
.ad-card-inner-image-placeholder,
.ad-card-inner-image-container {
  border-radius: 15px;
  overflow: hidden;
}

.ad-card-inner-description {
  line-height: 1.7;
}

.ad-card-inner-price-display {
  background: linear-gradient(
    135deg,
    rgba(224, 97, 11, 0.1),
    rgba(224, 97, 11, 0.05)
  );
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  border: 2px dashed var(--primary);
}

.ad-card-inner-user-avatar {
  font-weight: bold;
}

.ad-card-inner {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 25px rgba(224, 97, 11, 0.1);
  margin-bottom: 1.5rem;
}

.ad-card-inner-header {
  background: var(--secondary);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-card-inner-header h5 {
  margin-bottom: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

.ad-card-inner-body {
  padding: 1.25rem;
}

.breadcrumb {
  background: var(--secondary);
  padding: 15px;
  border-radius: 10px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(224, 97, 11, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.ad-card-inner-comment-form {
  background: var(--secondary);
  padding: 20px;
  border-radius: 15px;
}

.ad-card-inner-phone-display {
  /* Без анимаций */
}

/* Ограничиваем ширину хлебных крошек на мобильных устройствах */
@media (max-width: 768px) {
  .breadcrumb-item {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ad-card-inner-contact-buttons {
    flex-direction: column;
  }

  .ad-card-inner-contact-buttons .btn {
    width: 100%;
    margin-bottom: 5px;
  }
}

.ad-card-inner-user-avatar {
  font-weight: bold;
}

.form-label {
  font-weight: 600;
  color: var(--primary-dark);
}

#price_help.selling {
  color: var(--success);
}

#price_help.giving {
  color: var(--primary);
}
