/* Каталог подарков в стиле «Ленты»; подключается поверх seo.css и home.css. */
.breadcrumbs { display: flex; gap: 6px; align-items: baseline; padding-top: 20px; font-size: 13px; }
.breadcrumbs .sep { margin: 0; }

.cat-head { padding: 40px 0 0; max-width: 820px; }
.cat-head h1 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 20px; }
.cat-head .lead { font-size: 19px; line-height: 1.5; color: var(--text-muted); margin: 0; max-width: 38em; }
.cat-head .cta-row { margin-top: 32px; }

.cat-count { margin: 56px 0 0; font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }

/* Валюта цен: капсула в шапке, поверх неё прозрачный нативный select — системный список на телефоне и доступность из коробки */
.cur-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: var(--surface-2); color: var(--text); font: 600 15px/1 var(--num); cursor: pointer; transition: background-color .15s; }
.cur-pill:hover { background: color-mix(in srgb, var(--surface-2) 94%, var(--text)); }
.cur-pill:focus-within { outline: 2px solid var(--fill); outline-offset: 2px; }
.cur-pill-chev { color: var(--text-muted); }
.cur-pill select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }

.grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; padding: 0; gap: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--surface); color: var(--text); text-align: left; transition: background-color .15s; }
.tile:hover { background: var(--surface-2); text-decoration: none; }
.tile-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0; background: var(--surface-2); }
.tile-name { padding: 16px 20px 2px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { display: flex; flex-direction: column; padding: 0 20px 20px; font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-from { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.p-to { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-muted); }
.rate-note { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); }

.cat-more { margin-top: 56px; padding: 32px; border-radius: 24px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cat-more h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.cat-more p { margin: 0; font-size: 17px; color: var(--text-muted); }
.cat-more .btn { flex: none; padding: 15px 28px; font-size: 17px; }

@media (prefers-color-scheme: dark) {
  .tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cat-head { padding-top: 20px; }
  .cat-head h1 { font-size: clamp(26px, 7.4vw, 32px); line-height: 1.08; margin-bottom: 14px; }
  .cat-head .lead { font-size: 16px; }
  .cat-head .cta-row { flex-wrap: nowrap; margin-top: 24px; }
  .cat-head .cta-row .btn { flex: 1; text-align: center; padding-inline: 12px; white-space: nowrap; font-size: 16px; }
  .cat-count { margin-top: 32px; font-size: 15px; }
  .header-cta .btn-primary { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .tile { border-radius: 20px; }
  .tile-name { padding: 12px 14px 2px; font-size: 14px; line-height: 18px; }
  .tile-price { padding: 0 14px 14px; }
  .p-from { font-size: 16px; line-height: 20px; }
  .p-to { font-size: 13px; line-height: 18px; }
  .cat-more { margin-top: 40px; padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cat-more h2 { font-size: 21px; }
  .cat-more p { font-size: 15px; }
  .cat-more .btn { text-align: center; }
}

/* Меньше пустоты перед подвалом */
main.container { padding-bottom: 64px; }
@media (max-width: 640px) { main.container { padding-bottom: 40px; } }
