/* Стили доп. экранов — те же токены, отступы и композиция */

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-toolbar h1,
.page-toolbar h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-toolbar p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--foreground);
  font-weight: 500;
}

/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .biz-sidebar {
    position: sticky;
    top: 5rem;
  }
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(
    to bottom right,
    color-mix(in oklch, var(--primary) 10%, transparent),
    color-mix(in oklch, var(--accent) 30%, transparent),
    var(--background)
  );
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .detail-hero {
    padding: 2rem;
  }
}

.detail-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.detail-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-hero-brand .card-icon {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.75rem;
}

.detail-hero h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .detail-hero h1 {
    font-size: 2rem;
  }
}

.detail-hero-desc {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.side-card .card-body {
  padding-top: 0;
}

.side-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  font-size: 0.875rem;
}

.side-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-row:first-child {
  padding-top: 0;
}

.side-row-icon {
  display: flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: color-mix(in oklch, var(--primary) 80%, transparent);
}

.side-row strong {
  display: block;
  font-weight: 500;
  color: var(--foreground);
}

.side-row span,
.side-row a {
  color: var(--muted-foreground);
  text-decoration: none;
  word-break: break-word;
}

.side-row a:hover {
  text-decoration: underline;
  color: var(--foreground);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-foreground);
}

.hours-list li strong {
  font-weight: 500;
  color: var(--foreground);
}

/* Reviews */
.review-card {
  animation: fade-in-up 0.4s ease-out both;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--secondary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-foreground);
}

.review-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.review-author span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.review-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1.25rem 1.5rem;
  animation: fade-in-up 0.4s ease-out both;
}

.stat-card .stat-label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-card .stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-card .stat-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.stat-icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 2rem;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
}

.bar-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
}

.bar-count {
  text-align: right;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* Status badges */
.badge-approved {
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  color: oklch(0.4 0.1 162);
}

.badge-rejected {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--destructive);
}

/* Submission / archive list */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item-card {
  animation: fade-in-up 0.4s ease-out both;
}

.list-item-card .card-footer {
  justify-content: space-between;
}

.reason-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklch, var(--destructive) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--destructive) 20%, transparent);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.reason-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--destructive);
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: 1.5rem;
  animation: fade-in-up 0.4s ease-out both;
}

.about-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.about-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Favorites heart button */
.btn-fav[aria-pressed="true"] {
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--primary);
}

.btn-fav[aria-pressed="true"] svg {
  fill: var(--primary);
}

/* Category tiles */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 720px) {
  .cat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cat-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 8.75rem;
  padding: 1.4rem 1rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.2s;
  animation: fade-in-up 0.4s ease-out both;
}

.cat-tile:hover {
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
  transform: translateY(-2px);
}

.cat-tile.active {
  border-color: color-mix(in oklch, var(--primary) 50%, transparent);
  background: color-mix(in oklch, var(--primary) 6%, transparent);
}

.cat-tile .emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.cat-tile strong {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cat-tile span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
