/* Страницы v3: подарок, подборки, пагинация, служебные. Дизайн-система та же, что в style.css (токены, радиусы, кнопки). */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--night); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec--tight { padding: clamp(40px, 5vw, 72px) 0; }
.small-h2 { font-size: clamp(22px, 1.1rem + 1vw, 32px); font-weight: 800; }
.note { margin-top: 20px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* ---- Карточка подарка (теперь ссылка на страницу) ---- */
.product__img { display: block; background: #fff; text-decoration: none; border-bottom: 2px solid #eef1fa; }
.product__img img { object-fit: contain; padding: 10px; background: #fff; }
.product__name a { text-decoration: none; color: inherit; }
.product__name a:hover { color: var(--red); }
.product__inside { text-decoration: underline dotted; text-underline-offset: 4px; }
.product__img img, .pdp__main img, .candy__img img, .cat img { outline: 1px solid oklch(0 0 0 / .06); outline-offset: -1px; }
.product__price, .pdp__price, .kids td, .picker__found { font-variant-numeric: tabular-nums; }

/* ---- Плитки упаковок и цен ---- */
.cat { background: var(--night-2); }
.cat img { object-fit: contain; background: #fff; padding: 14px 14px 78px; }
.pack img { object-fit: contain; background: #fff; }
.budget-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.budget-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #fff; text-decoration: none; box-shadow: 0 4px 0 #dfe5f5; font-weight: 700; color: var(--muted); transition: transform .2s var(--ease); }
.budget-tile:hover { transform: translateY(-3px); }
.budget-tile b { font-family: var(--f-head); font-size: 16px; color: var(--red); }

.more { display: flex; gap: 12px 24px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn--ghost-dark { background: #fff; color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.btn--ghost-dark:hover { background: var(--night); color: #fff; box-shadow: inset 0 0 0 2px var(--night); }
.sortsel select, .bar select { min-height: 44px; border-radius: 999px; border: 2px solid #e2e6f3; background: #fff; padding: 0 16px; font-weight: 700; }

/* ---- Пагинация ---- */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 36px 0 8px; }
.pager a, .pager__cur, .pager__gap { min-width: 44px; height: 44px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #e2e7f4; }
.pager__gap { background: none; box-shadow: none; }
.pager a:hover { color: var(--red); }
.pager__cur { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-d); }

/* ---- Шапка страницы: компактный вариант и хлебные крошки ---- */
.page-hero--sm { padding: 48px 0 130px; }
.page-hero--sm h1 { font-size: clamp(28px, 1.2rem + 2.4vw, 50px); max-width: 24ch; }
.page-hero .drift { color: var(--snow); }
.crumbs a { text-decoration: none; opacity: .85; }
.crumbs a:hover { text-decoration: underline; opacity: 1; }
.listing { padding-top: 28px; }
.chips--links { margin-top: 14px; }
.chip { text-decoration: none; display: inline-flex; align-items: center; }
a.chip:hover { border-color: var(--red); color: var(--red); }

/* ---- Страница подарка ---- */
.pdp { position: relative; z-index: 4; margin-top: -92px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); background: #fff; border-radius: 28px; padding: clamp(18px, 2.5vw, 32px); box-shadow: 0 30px 60px rgba(10, 20, 48, .18); border: 3px solid var(--gold); max-width: calc(var(--wrap) - 2 * var(--m)); }
.pdp__main { background: #fff; border-radius: 20px; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid #eef1fa; }
.pdp__main img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp__thumb { width: 88px; height: 66px; border-radius: 14px; border: 3px solid transparent; background: #fff; padding: 0; overflow: hidden; box-shadow: 0 0 0 2px #eef1fa; transition: border-color .2s var(--ease), scale .15s var(--ease); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp__thumb[aria-pressed='true'] { border-color: var(--red); }
.pdp__thumb:active { scale: .96; }
.pdp__price { font-family: var(--f-head); font-weight: 800; font-size: clamp(34px, 2rem + 1vw, 48px); line-height: 1; color: var(--red); }
.pdp__price small { font-family: var(--f-text); font-size: 15px; color: var(--muted); font-weight: 700; }
.pdp__act { margin-top: 18px; flex-wrap: wrap; }
.pdp__act .btn { flex: 1; min-width: 170px; }
.pdp__sum { margin-top: 12px; font-weight: 800; min-height: 1.5em; }
.pdp__note { color: var(--muted); font-size: 14px; margin-top: 4px; }
.specs { margin: 22px 0 0; display: grid; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dotted #dfe4f2; }
.specs dt { color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-weight: 800; text-align: right; }
.inserts { margin-top: 18px; }
.inserts h2 { font-size: 16px; margin-bottom: 8px; }
.inserts ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 700; }
.inserts li small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }

.inside { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.candy { position: relative; background: #fff; border-radius: 18px; padding: 14px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: 0 4px 0 #e5e9f5; }
.candy__img { display: grid; place-items: center; height: 96px; width: 100%; }
.candy__img img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; outline: 0; }
.candy__ph { width: 56px; height: 56px; border-radius: 50%; background: var(--ice); }
.candy__name { font-weight: 800; line-height: 1.2; font-size: 15px; }
.candy__maker { color: var(--muted); font-size: 13px; font-weight: 700; }
.candy__qty { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; border-radius: 999px; font-weight: 800; font-size: 12px; padding: 2px 8px; }

.pdp__text { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.prose { max-width: 72ch; }
.prose--wide { max-width: 820px; }
.prose p { font-size: 17px; }
.prose p + p, .prose p + h2 { margin-top: 14px; }
.prose h2 { margin: 28px 0 12px; font-size: clamp(22px, 1.1rem + 1vw, 32px); }
.prose h2:first-child { margin-top: 0; }
.kids { width: 100%; border-collapse: collapse; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 0 #e2e7f4; }
.kids caption { text-align: left; font-family: var(--f-head); font-weight: 800; font-size: 18px; padding: 0 0 12px; }
.kids th, .kids td { padding: 13px 18px; border-bottom: 1px dashed #dfe4f2; text-align: left; font-weight: 700; }
.kids td { text-align: right; font-weight: 800; color: var(--red); }
.kids tr:last-child th, .kids tr:last-child td { border-bottom: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn__a { display: block; padding: 18px 22px; border-radius: 18px; background: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 4px 0 #e2e7f4; transition: transform .2s var(--ease); }
.pn__a:hover { transform: translateY(-3px); color: var(--red); }
.pn__a small { display: block; color: var(--muted); font-weight: 700; }
.pn__a--r { text-align: right; }

/* ---- Подборки: вопросы ---- */
.faq-title { margin: 36px 0 18px; font-size: clamp(22px, 1.1rem + 1vw, 32px); }
.sec--ice .faq { margin: 0; max-width: 880px; }

/* ---- Контакты ---- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contacts__list { margin: 0; display: grid; gap: 14px; }
.contacts__list > div { background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 4px 0 #e2e7f4; }
.contacts__list dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.contacts__list dd { margin: 4px 0 0; font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--red); }

/* ---- 404 ---- */
.hero--404 { min-height: min(72svh, 640px); }
.hero--404 .hero .wrap, .hero--404 .wrap { padding-bottom: 130px; }

@media (max-width: 1150px) {
  .pdp, .pdp__text, .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .page-hero h1, .page-hero--sm h1 { font-size: 26px; }
  .page-hero--sm { padding: 36px 0 110px; }
  .pdp { margin-top: -80px; border-radius: 22px; }
  .budget-row, .pn { grid-template-columns: 1fr; }
  .inside { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pdp__act .btn { min-width: 0; }
  .cat img { padding-bottom: 70px; }
}
