:root {
  --color-bg: #F4F8F4;
  --color-surface: #FFFFFF;
  --color-border: #D6E4D6;
  --color-text: #1E2D1E;
  --color-text-muted: #6B7E6B;
  --color-primary: #43A047;
  --color-primary-dark: #2E7D32;
  --color-brand-accent: #2E7D32;
  /* Ягодный акцент только для цен и скидок — дополнительный к зелёному,
     читается как ценник и не спорит с фирменным цветом. */
  --color-price: #C62A47;
  --radius: 12px;
}

* {
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-primary-dark);
}

.navbar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.navbar-brand {
  color: var(--color-text) !important;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--color-brand-accent);
}

.nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-primary-dark) !important;
}

.fair-date {
  color: var(--color-primary-dark);
}

.fair-card img,
.fair-card-placeholder {
  height: 180px;
  object-fit: cover;
}

.fair-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.fair-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 39, 36, .08) !important;
}

/* ─── Карточка ярмарки с календарным блоком ───
   Ярмарка определяется датой, а не ценой — поэтому число выносим на обложку
   отрывным листком календаря, а не прячем в строку текста. */
.fairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.fc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fc:hover {
  transform: translateY(-4px);
  border-color: #A5D6A7;
  box-shadow: 0 14px 30px rgba(30, 45, 30, .12);
  color: var(--color-text);
}

/* Без overflow:hidden — иначе календарный листок, свисающий ниже обложки,
   обрезается. Скругление даёт сама карточка. */
.fc-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E8F5E9, #D6E4D6);
}

/* Абсолютное позиционирование, иначе собственная высота снимка распирает
   обложку и ломает aspect-ratio. */
.fc-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.4rem;
  opacity: .35;
}

/* Календарный листок */
.fc-date {
  position: absolute;
  left: 14px;
  bottom: -14px;
  min-width: 62px;
  padding: 9px 10px 8px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(30, 45, 30, .18);
  text-align: center;
  line-height: 1;
}

.fc-date-day {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.fc-date-mon {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.fc-date-wd {
  display: block;
  margin-top: 2px;
  font-size: .68rem;
  color: var(--color-text-muted);
}

/* Регулярное расписание вместо одной даты */
.fc-date-regular {
  left: 14px;
  bottom: -14px;
  padding: 10px 14px;
  min-width: 0;
  max-width: calc(100% - 28px);
  text-align: left;
}

.fc-date-regular .fc-date-mon {
  margin-top: 0;
  font-size: .85rem;
  line-height: 1.25;
}

.fc-more {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(30, 45, 30, .72);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.fc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 16px 16px;
  flex: 1;
}

.fc-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.fc-place {
  margin: 0;
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.fc-city {
  font-weight: 600;
  color: var(--color-text);
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.fc-tag {
  padding: 3px 10px;
  border-radius: 7px;
  background: #E8F5E9;
  color: var(--color-primary-dark);
  font-size: .75rem;
  font-weight: 600;
}

.fair-photo {
  height: 420px;
  object-fit: cover;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-warning {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-warning:hover {
  background-color: #2E7D32;
  border-color: #2E7D32;
  color: #fff;
}

.vendor-card {
  border: 1px solid var(--color-border);
}

.vendor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.vendor-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #43A047;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

/* Поиск города на главной странице */
.city-search {
  min-width: 260px;
}

.city-suggestions {
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}

/* Фильтр по категориям на главной */
.category-chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
}

.category-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.category-chip-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Значок "частый участник" у продавца */
.vendor-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #E8F5E9;
  color: var(--color-primary-dark);
  border: 1px solid #A5D6A7;
}

/* Даты проведения на странице ярмарки */
.dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.date-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.date-chip-primary {
  background-color: #43A047;
  border-color: #43A047;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 7px 16px;
}

.map-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ─── Vendor Detail Page (vd-*) ─── */
.vd-page {
  max-width: 860px;
  margin: 0 auto;
}

.vd-hero {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 24px rgba(43, 39, 36, .06);
  margin-bottom: 28px;
}

.vd-hero-cover {
  height: 180px;
  background: linear-gradient(135deg, #81C784 0%, var(--color-primary) 100%);
  overflow: hidden;
}
.vd-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vd-hero-info {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px 24px;
  margin-top: -42px;
}

.vd-avatar-wrap {
  flex-shrink: 0;
}

.vd-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  box-shadow: 0 4px 16px rgba(43, 39, 36, .12);
  background: var(--color-primary);
}
.vd-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.8rem;
}

.vd-name-block {
  padding-top: 48px;
  min-width: 0;
}
.vd-name {
  font-size: 1.4rem;
  margin-bottom: 2px;
  line-height: 1.2;
}
.vd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
.vd-type {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.vd-rating {
  color: var(--color-text-muted);
}

.vd-body {
  padding: 0;
}

.vd-about {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.vd-phone {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.vd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.vd-section {
  margin-bottom: 36px;
}

.vd-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 560px;
}

/* Product grid */
.vd-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.vd-product-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vd-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 39, 36, .08);
  color: inherit;
}
.vd-product-img {
  height: 140px;
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}
.vd-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vd-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: .35;
}
.vd-product-badge-oos {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(43, 39, 36, .75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.vd-product-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vd-product-name {
  font-size: 0.88rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vd-product-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

/* Post grid */
.vd-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vd-post-card {
  display: flex;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vd-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 39, 36, .07);
  color: inherit;
}
.vd-post-img {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
}
.vd-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 120px;
}
.vd-post-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vd-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.vd-post-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.vd-post-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
  flex-grow: 1;
}
.vd-post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vd-pill {
  display: inline-block;
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.8rem;
}
.vd-pill-muted {
  color: var(--color-text-muted);
}

/* Reviews */
.vd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vd-review {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.vd-review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.vd-review-content {
  flex-grow: 1;
  min-width: 0;
}

/* Legacy profile page (edit profile) still uses these */
.vendor-page {
  max-width: 900px;
  margin: 0 auto;
}
.vendor-avatar-xl {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-surface);
  margin-top: -72px;
  background-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(43, 39, 36, .12);
  flex-shrink: 0;
}
.vendor-cover-wrap {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(43, 39, 36, .07);
}
.vendor-cover, .vendor-cover-placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.vendor-cover-placeholder {
  background: linear-gradient(120deg, #81C784, #43A047);
}
.vendor-header-row {
  margin-top: 0;
}

/* Mobile: post card stacks vertically */
@media (max-width: 576px) {
  .vd-hero-info {
    padding: 0 16px 20px;
    gap: 14px;
  }
  .vd-avatar {
    width: 68px;
    height: 68px;
  }
  .vd-name-block {
    padding-top: 38px;
  }
  .vd-name {
    font-size: 1.2rem;
  }
  .vd-hero-cover {
    height: 140px;
  }
  .vd-post-card {
    flex-direction: column;
  }
  .vd-post-img {
    width: 100%;
    height: 160px;
  }
}

/* Главная страница */
.page-section {
  margin-top: 48px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #43A047, #2E7D32);
  border-radius: 20px;
  padding: 60px 40px;
  margin-top: 8px;
  color: #fff;
}

/* Разреженная сетка-«скатерть»: намёк на клетчатый рыночный тент,
   а не просто градиент. */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 44ch;
  margin-bottom: 28px;
}

.hero-search {
  max-width: 520px;
}

.hero-search .form-control {
  font-size: 1.05rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.hero-search .form-control,
.hero-search .input-group-text,
.hero-search .btn-light {
  border-radius: 10px;
}

.hero-search .input-group > :first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.hero-search .input-group > :last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

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

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(43, 39, 36, .05);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.section-title::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background-color: var(--color-primary);
}

.vendor-form-card,
.review-form-card {
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgba(43, 39, 36, .05);
  max-width: 560px;
}

/* Чат */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 10px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.chat-message {
  display: flex;
}

.chat-message-own {
  justify-content: flex-end;
}

.chat-message-bubble {
  max-width: 75%;
  background-color: #E8F5E9;
  border-radius: 14px;
  padding: 8px 12px;
}

.chat-message-own .chat-message-bubble {
  background-color: #43A047;
  color: #fff;
}

.chat-message-sender {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.8;
}

.chat-message-time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 2px;
}

/* Общая полировка форм и карточек по всему сайту */
.form-control,
.form-select {
  border-radius: 10px;
  border-color: var(--color-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 160, 71, 0.18);
}

.card {
  border-radius: var(--radius);
  border-color: var(--color-border);
}

.list-group-item-action:hover {
  background-color: var(--color-bg);
}

.badge {
  font-weight: 600;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Отзывы */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 1.6rem;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  color: var(--color-border);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--color-primary);
}

.review-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-comments {
  border-left: 2px solid var(--color-border);
  padding-left: 12px;
  margin-left: 4px;
}

.review-comment {
  margin-bottom: 8px;
}

.review-comment:last-child {
  margin-bottom: 0;
}

/* Блог продавца */
.blog-card {
  border: 1px solid var(--color-border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 39, 36, .08);
}

.blog-card-img {
  height: 160px;
  object-fit: cover;
}

.blog-post-img {
  max-height: 420px;
  object-fit: cover;
}

.reaction-btn {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}

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

.reaction-btn-active {
  background-color: #E8F5E9;
  border-color: var(--color-primary);
}

.reaction-btn-disabled {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ─── Back navigation ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .15s;
}

.back-link:hover {
  color: var(--color-primary-dark);
}

/* ─── Auth pages ─── */
.auth-card {
  max-width: 420px;
  margin: 40px auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(43, 39, 36, .06);
  padding: 36px 32px;
}

.auth-brand {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ─── Fair detail ─── */
.fair-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.fair-carousel-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(43, 39, 36, .07);
  margin-bottom: 24px;
}

.fair-info-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(43, 39, 36, .06);
  padding: 24px;
  margin-bottom: 8px;
}

.fair-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(43, 39, 36, .06);
  border: 1px solid var(--color-border);
}

/* ─── Vendor list ─── */
.vendor-list-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  padding: 20px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}

.vendor-list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 39, 36, .08);
}

/* ─── Chat list ─── */
.chat-list-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: box-shadow .15s ease;
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

.chat-list-item:hover {
  box-shadow: 0 6px 16px rgba(43, 39, 36, .07);
  color: var(--color-text);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.chat-avatar-support {
  background-color: #4CAF50;
}

/* ─── Favorites ─── */
.fav-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fav-item-city {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.fav-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #E8F5E9;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Product detail ─── */
.product-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.product-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(43, 39, 36, .06);
}

.product-img-wrap img {
  width: 100%;
  display: block;
}

.product-info-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(43, 39, 36, .05);
  padding: 24px;
}

/* ─── Blog post ─── */
.blog-post-page {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-page .blog-post-img {
  border-radius: var(--radius);
}

/* ─── Legal pages ─── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 6px 16px rgba(43, 39, 36, .04);
}

.legal-page h1 {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 24px;
}

/* ─── Map page ─── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(43, 39, 36, .07);
}

/* ─── City groups ─── */
.city-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  margin-top: 32px;
  margin-bottom: 16px;
}

/* ─── My products ─── */
.my-products-page {
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Chat thread ─── */
.chat-thread-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* ─── Footer ─── */
footer {
  background-color: var(--color-surface);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ─── Status badges ─── */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge-pending {
  background-color: #E8F5E9;
  color: #E65100;
}

.status-badge-approved {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.status-badge-rejected {
  background-color: #FFEBEE;
  color: #C62828;
}

/* ─── My Products management page ─── */
.product-mgmt-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-mgmt-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.product-mgmt-img {
  height: 100%;
  min-height: 200px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-mgmt-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}
.product-mgmt-img-placeholder {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.product-mgmt-body {
  padding: 20px;
}

/* Stock quantity display */
.stock-section {
  margin: 12px 0;
}
.stock-qty {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 10px;
}
.stock-qty-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}
.stock-qty-ok {
  background: #E8F5E9;
  color: #2E7D32;
}
.stock-qty-zero {
  background: #E8F5E9;
  color: #E65100;
}

/* Stock panels (in / out / history / edit) */
.stock-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  border-left: 4px solid var(--color-border);
}
.stock-panel-in {
  border-left-color: #43A047;
}
.stock-panel-out {
  border-left-color: #E53935;
}

.stock-quick-btn {
  padding: 2px 10px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
}

/* Stock history list */
.stock-history-list {
  max-height: 320px;
  overflow-y: auto;
}
.stock-history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.stock-history-item:last-child {
  border-bottom: none;
}
.stock-history-change {
  font-weight: 600;
  min-width: 70px;
}

/* Actions row */
.product-mgmt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* Close button small variant */
.btn-close-sm {
  width: 0.6em;
  height: 0.6em;
}

/* ─── Products Catalog (Ozon-style) ─── */
.catalog-page {
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-search-bar {
  margin-bottom: 24px;
}

.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}
.category-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.category-chip-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.category-chip-active:hover {
  color: #fff;
  background: var(--color-primary-dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.15s;
}
.catalog-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  color: var(--color-text);
}

.catalog-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-card-placeholder {
  font-size: 3rem;
  opacity: 0.35;
}

.catalog-badge-oos {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.catalog-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.catalog-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-price);
}

.catalog-card-noprice {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.catalog-card-name {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 4px;
}

.catalog-seller-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.catalog-seller-avatar-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.catalog-card-rating {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
}

.catalog-card-reviews {
  color: var(--color-text-muted);
  font-weight: 500;
}

.catalog-card-rating-empty {
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 576px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .catalog-card-body {
    padding: 10px 10px 12px;
  }
  .catalog-card-price {
    font-size: 1rem;
  }
}

/* ─── Vendors List (redesigned) ─── */
.vendors-page {
  max-width: 1000px;
  margin: 0 auto;
}

.vendors-search-bar {
  margin-bottom: 28px;
}

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.vendor-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.15s;
}
.vendor-card-new:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  color: var(--color-text);
}

.vendor-avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 3px solid var(--color-border);
}
.vendor-avatar-xl-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
}

.vendor-card-new .vendor-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.vendor-card-new .vendor-card-type {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.vendor-card-new .vendor-badge {
  margin-top: 8px;
}

@media (max-width: 576px) {
  .vendors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .vendor-avatar-xl {
    width: 72px;
    height: 72px;
  }
  .vendor-card-new {
    padding: 20px 12px 16px;
  }
}

/* ─── Отзывы: сводка, медиа, подтверждение покупки ─── */
.rating-stars {
  color: #F9A825;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-price);
}

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.rating-summary-score {
  text-align: center;
  min-width: 120px;
}

.rating-big {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rating-summary-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
}

.rating-bar-label {
  width: 10px;
  color: var(--color-text-muted);
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #E8F5E9;
  overflow: hidden;
}

.rating-bar-fill {
  display: block;
  height: 100%;
  background: var(--color-primary);
}

.rating-bar-count {
  width: 28px;
  text-align: right;
  color: var(--color-text-muted);
}

.verified-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #E8F5E9;
  color: var(--color-primary-dark);
  font-size: .75rem;
  font-weight: 700;
}

.verified-badge-sm {
  padding: 2px 8px;
  font-size: .7rem;
  vertical-align: middle;
}

.review-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-media-item {
  position: relative;
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}

.review-media-item img,
.review-media-item video,
video.review-media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-media-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: .7rem;
  line-height: 1;
  cursor: pointer;
}

/* Состояния заказа и заявки */
.order-form {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  margin-bottom: 12px;
}

.order-state,
.proof-state {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 12px;
  border-left: 4px solid transparent;
}

.order-state-wait,
.proof-state-wait {
  background: #FFF8E1;
  border-left-color: #F9A825;
}

.order-state-ok {
  background: #E8F5E9;
  border-left-color: var(--color-primary);
}

.order-state-bad,
.proof-state-bad {
  background: #FFEBEE;
  border-left-color: #C62828;
}

.proof-card {
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.proof-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.proof-way {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
}

.proof-way-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* ─── Выбор способа получения (как выбор ПВЗ) ─── */
.ship-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ship-option:hover {
  border-color: #A5D6A7;
}

.ship-option:has(input[name="delivery_method"]:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 160, 71, .14);
}

.ship-option input[name="delivery_method"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.ship-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ship-option-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ship-option-name {
  font-weight: 700;
}

.ship-option-tag,
.ship-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #E8F5E9;
  color: var(--color-primary-dark);
  font-size: .7rem;
  font-weight: 700;
}

.ship-option-addr {
  font-size: .88rem;
}

.ship-option-meta {
  font-size: .8rem;
  color: var(--color-text-muted);
}

.ship-option-stock {
  margin-top: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.order-ship {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

/* ─── Код выдачи заказа ─── */
.pickup-code-box {
  padding: 14px 16px;
  border: 1px dashed var(--color-primary);
  border-radius: 12px;
  background: #E8F5E9;
}

.pickup-code-head {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.pickup-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.pickup-code-label {
  font-size: .72rem;
  color: var(--color-text-muted);
}

.pickup-code-number {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.pickup-code-digits {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.1;
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
}

.pickup-code-hint {
  margin: 8px 0 0;
  font-size: .75rem;
  color: var(--color-text-muted);
}

.issue-code-input {
  width: 86px;
  text-align: center;
  letter-spacing: .2em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ─── Точки выдачи ─── */
.point-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
}

.point-card-off {
  opacity: .65;
  border-style: dashed;
}

/* ─── Заказы ─── */
.orders-page {
  max-width: 900px;
  margin: 0 auto;
}

.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
}

.order-card-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.order-card-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.order-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-name {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.order-card-name:hover {
  color: var(--color-primary-dark);
}

.order-card-side {
  min-width: 170px;
  text-align: right;
}

@media (max-width: 576px) {
  .rating-summary {
    gap: 16px;
    padding: 16px;
  }
  .order-card-side {
    text-align: left;
    width: 100%;
  }
}

/* ─── Рынки ─── */
.markets-page {
  max-width: 1100px;
  margin: 0 auto;
}

.markets-search-bar {
  margin-bottom: 16px;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.mc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mc:hover {
  transform: translateY(-4px);
  border-color: #A5D6A7;
  box-shadow: 0 14px 30px rgba(30, 45, 30, .12);
  color: var(--color-text);
}

.mc-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E8F5E9, #D6E4D6);
}

.mc-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.4rem;
  opacity: .35;
}

/* Главное на карточке рынка — открыт он сейчас или нет. */
.mc-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
}

.mc-status-open {
  background: var(--color-primary);
}

.mc-status-closed {
  background: rgba(30, 45, 30, .72);
}

.mc-event {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--color-primary-dark);
  font-size: .72rem;
  font-weight: 600;
}

.mc-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  flex: 1;
}

.mc-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.mc-place {
  margin: 0;
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.mc-city {
  font-weight: 600;
  color: var(--color-text);
}

.mc-hours {
  margin: 0;
  font-size: .82rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.mc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.mc-rating {
  font-size: .85rem;
  font-weight: 600;
}

.mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── Страница рынка ─── */
.market-detail-page {
  max-width: 860px;
  margin: 0 auto;
}

.market-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.market-gallery img {
  height: 240px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.market-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.hours-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
}

.hours-table td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-day {
  color: var(--color-text-muted);
}

.hours-time {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Сегодняшнюю строку подсвечиваем — за ней чаще всего и приходят. */
.hours-today .hours-day,
.hours-today .hours-time {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.event-date {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  line-height: 1;
}

.event-date-day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.event-date-mon {
  display: block;
  margin-top: 3px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

@media (max-width: 576px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }
  .market-gallery img {
    height: 180px;
  }
}

/* ─── Плитки категорий на главной ─── */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cat-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(30, 45, 30, .08);
  transform: translateY(-2px);
  color: var(--color-text);
}

.cat-tile-active {
  border-color: var(--color-primary);
  background: #E8F5E9;
}

.cat-tile-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 6px;
}

.cat-tile-name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
}

.cat-tile-count {
  font-size: .8rem;
  color: var(--color-text-muted);
}

/* ─── Полоса «подберём ярмарку» ─── */
.help-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #43A047, #2E7D32);
  color: #fff;
}

.help-band h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.help-band p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
}

.help-band .btn {
  background: #fff;
  color: var(--color-primary-dark);
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  white-space: nowrap;
}

.help-band .btn:hover {
  background: #E8F5E9;
  color: var(--color-primary-dark);
}

@media (max-width: 576px) {
  .cat-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-tile {
    padding: 14px 12px;
  }
  .hero-section {
    padding: 36px 20px;
  }
  .hero-stats {
    gap: 20px;
  }
  .help-band {
    padding: 24px 20px;
  }
  .fairs-grid {
    grid-template-columns: 1fr;
  }
}
