/* Хозтрейд — акции, новости, бренды, отзывы, информационные страницы. */

.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-dark); }
.tag--promo { background: var(--accent-tint); color: #8a5a00; }
.tag--advice { background: #e6eef8; color: #1e4f8a; }

/* Карточки публикаций */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-card:hover { box-shadow: var(--shadow); }
.section--alt .post-card { background: var(--bg); border-color: transparent; }
.post-card__img { aspect-ratio: 16 / 9; background: var(--brand-tint); display: grid; place-items: center; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card--promo .post-card__img { background: linear-gradient(135deg, var(--accent) 0%, #ffd56b 100%); }
.post-card--advice .post-card__img { background: #dce8f6; }
.post-card__ph { font-size: 64px; font-weight: 800; color: rgba(0, 0, 0, .18); }
.post-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.post-card__title { font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--text); text-decoration: none; }
.post-card__title:hover { color: var(--brand-dark); }
.post-card__lead { margin: 0; color: #3d4650; }
.section--promo { background: var(--accent-tint); }
.tabs { margin-bottom: 20px; }

.article h1 { margin-top: 10px; }
.article__img { border-radius: var(--radius); margin: 16px 0; width: 100%; }
.article__lead { font-size: 19px; color: #3d4650; max-width: 70ch; }
.article .prose--page { padding: 24px; }
.article__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Бренды */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brand-tile { display: grid; place-items: center; gap: 4px; min-height: 96px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); text-align: center; }
.brand-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.brand-tile b { font-size: 18px; letter-spacing: -.01em; }
.brand-tile img { max-height: 48px; width: auto; }
.brands--strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.brands--strip .brand-tile { min-height: 72px; }
.brand-head { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; }
.brand-head img { max-width: 160px; max-height: 80px; }

/* Отзывы */
.stars { color: #e0a400; letter-spacing: 1px; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rating-link { color: inherit; text-decoration: none; }
.card__rating { font-size: 14px; color: var(--text); text-decoration: none; }
.card__rating:hover { color: var(--brand-dark); }
.brand-filter { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.rating-link:hover { color: var(--brand-dark); }
.reviews__grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.reviews__list { display: grid; gap: 12px; }
.review { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }
.review header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.review p { margin: 0; }
.review__reply { margin-top: 12px; padding: 10px 14px; background: var(--brand-tint); border-radius: 10px; font-size: 15px; }
.review__reply b { color: var(--brand-dark); }
.review-form h3 { margin: 0; }
.rate { border: 0; padding: 0; margin: 0; }
.rate legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
/* Звёзды справа налево: в разметке 5..1, выбранная подсвечивает себя и все «меньшие» слева */
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { font-size: 32px; line-height: 1; color: #d5dbe1; cursor: pointer; }
.rate__stars label:hover, .rate__stars label:hover ~ label,
.rate__stars input:checked ~ label { color: #e0a400; }
.rate__stars input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.rate.field--error legend { color: var(--danger); }

/* Контакты */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.store { display: grid; gap: 4px; background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--bg); aspect-ratio: 16 / 9; margin-bottom: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Плашка cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--text); color: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; }
.cookie a { color: #fff; }
.cookie .btn { flex: none; }

@media (max-width: 860px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .brand-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
}
