/* ===== Каталог «Все товары» ===== */
.pa {
  --g1: #00bd26; --g2: #009d03;
  --grad: linear-gradient(135deg, #00c92a 0%, #009d03 100%);
  --ink: #15221a; --muted: #6b7b70; --line: #e3eae4; --soft: #f4f8f3;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
}
html:has(.pa) { overflow-x: clip; }
/* баннер и панель на всю ширину окна, шире обёртки сайта (body max 1920px) */
.pa-hero, .pa-bar { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.pa *, .pa *::before, .pa *::after { box-sizing: border-box; }
.pa .container { padding-left: 20px; padding-right: 20px; }

/* ---- баннер ---- */
.pa-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 170px 0 120px;
  background: linear-gradient(135deg, #0d5a20 0%, #06301a 75%);
}
.pa-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(0, 201, 42, .55), transparent 50%),
              radial-gradient(circle at 5% 95%, rgba(255, 213, 74, .22), transparent 45%);
}
.pa-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: paDrift 18s ease-in-out infinite alternate; }
.pa-orb1 { width: 420px; height: 420px; right: -100px; top: 40px; background: #00c92a; }
.pa-orb2 { width: 300px; height: 300px; left: 30%; bottom: -160px; background: #f5c33b; opacity: .2; animation-duration: 24s; }
@keyframes paDrift { to { transform: translate(-70px, 40px) scale(1.15); } }
.pa-leaves { position: absolute; inset: 0; pointer-events: none; }
.pa-leaves span { position: absolute; top: -60px; color: rgba(143, 240, 162, .55); animation: paFall linear infinite; }
.pa-leaves svg { width: var(--s, 28px); height: var(--s, 28px); display: block; }
@keyframes paFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--dx, 80px), 720px) rotate(var(--rot, 360deg)); opacity: 0; }
}
.pa-hero-in { position: relative; z-index: 1; }
.pa-kicker {
  display: inline-block; padding: 8px 16px; border-radius: 30px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
  animation: paUp .8s var(--ease) both;
}
.pa-title {
  font-family: 'RF Dewi', sans-serif; font-weight: 700; font-size: 64px; line-height: 1.02; margin: 22px 0 18px; max-width: 820px;
  animation: paUp .9s .1s var(--ease) both; color: #fff;
}
.pa-title em { display: block; font-style: normal; font-size: .5em; line-height: 1.2; margin-top: 10px; color: #8ff0a2; font-weight: 400; }
.pa-lead { max-width: 560px; font-size: 17px; line-height: 1.6; color: #c8ecce; animation: paUp .9s .2s var(--ease) both; }
.pa-hero-stats { display: flex; gap: 46px; margin-top: 40px; flex-wrap: wrap; animation: paUp .9s .3s var(--ease) both; }
.pa-hero-stats div { display: flex; flex-direction: column; }
.pa-hero-stats b { font-family: 'RF Dewi', sans-serif; font-size: 40px; line-height: 1; }
.pa-hero-stats div > span { font-size: 13px; color: #a9dcb2; margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }
.pa-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: #fff; }
@keyframes paUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---- панель фильтров ---- */
.pa-bar { position: sticky; top: var(--hdr, 90px); z-index: 50; padding: 14px 0; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.pa-bar.stuck { border-color: var(--line); box-shadow: 0 14px 30px -24px rgba(10, 58, 22, .5); }
.pa-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pa-chips { position: relative; display: flex; gap: 6px; padding: 5px; background: var(--soft); border-radius: 40px; border: 1px solid var(--line); flex-wrap: wrap; }
.pa-chip-glider { position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); width: 0; border-radius: 40px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease), background .5s; z-index: 0; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); }
.pa-chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 40px;
  background: transparent; cursor: pointer; font: 500 14px 'Montserrat', sans-serif; color: var(--ink); transition: color .35s; white-space: nowrap;
}
.pa-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--g1)); transition: transform .35s var(--ease); }
.pa-chip:hover i { transform: scale(1.6); }
.pa-chip small { font-size: 12px; opacity: .55; }
.pa-chip.active { color: #fff; }
.pa-tools { display: flex; gap: 10px; align-items: center; }
.pa-search { position: relative; display: block; }
.pa-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.pa-search input, .pa-sort {
  height: 46px; border-radius: 40px; border: 1.5px solid var(--line); background: #fff; font: 14px 'Montserrat', sans-serif; color: var(--ink);
  outline: none; transition: border-color .25s, box-shadow .25s, width .4s var(--ease);
}
.pa-search input { width: 220px; padding: 0 16px 0 42px; }
.pa-search input:focus { width: 280px; border-color: var(--g1); box-shadow: 0 0 0 4px rgba(0, 189, 38, .14); }
.pa-sort { padding: 0 16px; cursor: pointer; }
.pa-sort:focus { border-color: var(--g1); }

/* ---- секции ---- */
.pa-body { padding: 30px 0 90px; }
.pa-section { padding-top: 46px; scroll-margin-top: 170px; }
.pa-section.hide { display: none; }
.pa-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pa-section-head > div { position: relative; }
.pa-section-head h2 { display: flex; align-items: center; gap: 16px; }
.pa-section-dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); animation: paPing 2.4s ease-in-out infinite; }
@keyframes paPing { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--c) 6%, transparent); } }
.pa-section-head h2 { font-family: 'RF Dewi', sans-serif; font-weight: 700; font-size: 38px; line-height: 1.1; color: var(--ink); }
.pa-section-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.pa-more {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 40px; border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; transition: all .35s var(--ease);
}
.pa-more span { transition: transform .35s var(--ease); }
.pa-more:hover { border-color: var(--c); color: var(--c); }
.pa-more:hover span { transform: translateX(5px); }

/* ---- карточки ---- */
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.pa-card {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(10, 58, 22, .05); transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s;
  transform-style: preserve-3d; will-change: transform;
}
.pa-card:hover { box-shadow: 0 40px 70px -30px color-mix(in srgb, var(--c) 55%, rgba(10, 58, 22, .5)); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.pa-card.hide { display: none; }
.pa-media {
  position: relative; aspect-ratio: 1 / .92; border-radius: 25px 25px 0 0; overflow: hidden; display: grid; place-items: center; padding: 26px;
  background: radial-gradient(circle at 50% 115%, color-mix(in srgb, var(--c) 32%, transparent), transparent 62%),
              linear-gradient(165deg, #f7faf6, color-mix(in srgb, var(--c) 9%, #fff));
}
.pa-media::before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); transform: scale(.8); transition: transform .8s var(--ease); }
.pa-media::after { content: ''; position: absolute; width: 55%; height: 10px; bottom: 9%; border-radius: 50%; background: rgba(0, 0, 0, .12); filter: blur(8px); transition: transform .7s var(--ease), opacity .7s; }
.pa-card:hover .pa-media::before { transform: scale(1.12); }
.pa-card:hover .pa-media::after { transform: scale(.75); opacity: .6; }
.pa-media img {
  position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px;
  transition: transform .8s var(--ease); animation: paBob 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s);
}
.pa-card:hover .pa-media img { transform: translateY(-12px) scale(1.07) rotate(-2deg); }
@keyframes paBob { 50% { translate: 0 -6px; } }
.pa-noimg { position: relative; color: var(--c); opacity: .6; }
.pa-noimg svg { width: 70px; height: 70px; }
.pa-tag { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 6px 13px; border-radius: 30px; font-size: 12px; font-weight: 500; color: #fff; background: color-mix(in srgb, var(--c) 90%, #000); }
.pa-vol { position: absolute; z-index: 2; top: 16px; right: 16px; padding: 6px 12px; border-radius: 30px; font-size: 12px; background: rgba(255, 255, 255, .9); color: var(--ink); border: 1px solid var(--line); }
.pa-shine { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 26px; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .5), transparent 42%); mix-blend-mode: soft-light; }
.pa-card:hover .pa-shine { opacity: 1; }

.pa-info { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; margin: 0; }
.pa-name { font-family: 'RF Dewi', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--ink); margin: 0; }
.pa-desc { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.pa-price { font-family: 'RF Dewi', sans-serif; font-weight: 700; font-size: 26px; color: var(--g2); white-space: nowrap; }
.pa-price small { font-size: .65em; }

/* количество — поверх стилей сайта */
.pa .pa-qty { display: flex; align-items: center; width: auto; max-width: none; margin: 0; height: 40px; padding: 0 4px; border-radius: 40px; background: var(--soft); border: 1px solid var(--line); }
.pa .pa-qty .down, .pa .pa-qty .up {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; user-select: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); border: 0;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.pa .pa-qty .down:hover, .pa .pa-qty .up:hover { background: var(--c); color: #fff; transform: scale(1.08); }
.pa .pa-qty .down:active, .pa .pa-qty .up:active { transform: scale(.9); }
.pa .pa-qty .num_show { display: flex; align-items: baseline; gap: 3px; padding: 0 8px; width: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pa .pa-qty .num_show input { width: 18px; padding: 0; border: 0; background: transparent; text-align: right; font: 700 15px 'Montserrat', sans-serif; color: var(--ink); }
.pa .pa-qty .num_show > span { position: static; font-size: 12px; }
.pa .pa-qty.bump .num_show input { animation: paBump .35s var(--ease); }
@keyframes paBump { 50% { transform: scale(1.5); color: var(--g2); } }

.pa-buy {
  position: relative; overflow: hidden; width: 100%; height: 52px; border: 0; border-radius: 40px; cursor: pointer; margin-top: 4px;
  font: 700 15px 'RF Dewi', sans-serif; color: #fff; background: var(--grad); box-shadow: 0 14px 26px -14px rgba(0, 157, 3, .95);
  transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}
.pa-buy:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 32px -14px rgba(0, 157, 3, 1); }
.pa-buy:active { transform: scale(.97); }
.pa-buy::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.pa-buy:hover::before { left: 130%; }
.pa-buy.in_cart { background: #fff; color: var(--g2); border: 1.5px solid var(--g1); box-shadow: none; }
.pa-buy.in_cart .fa-trash { margin-left: 8px; color: #d93a3f; padding: 6px; border-radius: 50%; transition: background .2s; }
.pa-buy.in_cart .fa-trash:hover { background: rgba(217, 58, 63, .1); }
.pa-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .5); animation: paRipple .6s linear; pointer-events: none; }
@keyframes paRipple { to { transform: scale(4); opacity: 0; } }

/* полёт в корзину */
.pa-fly { position: fixed; z-index: 2000; pointer-events: none; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .35); transition: transform .85s cubic-bezier(.5, -0.3, .7, 1), opacity .85s ease-in; }
.shop_ic.pa-shake { animation: paShake .6s var(--ease); }
@keyframes paShake { 25% { transform: scale(1.25) rotate(-12deg); } 50% { transform: scale(1.1) rotate(10deg); } 75% { transform: scale(1.18) rotate(-6deg); } }

/* появление */
.pa-reveal { opacity: 0; transform: translateY(40px) scale(.97); }
.pa-reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.pa-card.pa-reveal.in { transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms), transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s; }
.pa-pop { animation: paPop .55s var(--ease) both; }
@keyframes paPop { from { opacity: 0; transform: scale(.9) translateY(14px); } }

.pa-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.pa-empty span { display: inline-block; color: var(--g1); animation: paBob 4s ease-in-out infinite; }
.pa-empty svg { width: 64px; height: 64px; }
.pa-empty h3 { font-family: 'RF Dewi', sans-serif; font-size: 24px; color: var(--ink); margin: 12px 0 6px; }

/* логотип сайта на тёмном баннере */
body:has(.pa) header:not(.header) .logo { padding: 0; background: none; box-shadow: none; transition: background .3s; }
body:has(.pa) header:not(.header) .logo a { background-image: url(../img/logo_white.png); }

/* меню шапки: «стекло» поверх баннера, обычный вид на белой шапке */
body:has(.pa) .in_header_left { max-width: none; width: auto; }
body:has(.pa) header nav { display: flex; align-items: center; gap: 2px; margin-left: 22px; padding: 5px; border-radius: 40px; transition: background .35s, border-color .35s, box-shadow .35s; border: 1px solid transparent; }
body:has(.pa) header nav a { margin: 0; padding: 10px 16px; border-radius: 30px; font-size: 15px; transition: background .3s, color .3s; }
body:has(.pa) header:not(.header) nav { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
body:has(.pa) header:not(.header) nav a { color: #e9f8ec; }
body:has(.pa) header:not(.header) nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
body:has(.pa) header:not(.header) nav a[href$="/products_all"] { background: #fff; color: #0a3a16; }
body:has(.pa) header.header nav { background: #f4f8f3; border-color: #e3eae4; }
body:has(.pa) header.header nav a:hover { background: #fff; color: #009d03; }
body:has(.pa) header.header nav a[href$="/products_all"] { background: linear-gradient(135deg, #00c92a, #009d03); color: #fff; }
@media (max-width: 1440px) { body:has(.pa) header nav a { padding: 9px 12px; font-size: 14px; } }
@media (max-width: 1280px) { body:has(.pa) header nav { display: none; } }

/* ---- адаптив (сайт фиксирует viewport 480px на телефонах) ---- */
@media (max-width: 1024px) {
  .pa-title { font-size: 50px; }
  .pa-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .pa-hero { padding: 140px 0 100px; }
  .pa-title { font-size: 40px; }
  .pa-lead { font-size: 15px; }
  .pa-hero-stats { gap: 28px; }
  .pa-hero-stats b { font-size: 30px; }
  .pa-bar { padding: 10px 0; }
  .pa-chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .pa-chips::-webkit-scrollbar { display: none; }
  .pa-tools { width: 100%; }
  .pa-search { flex: 1; }
  .pa-search input, .pa-search input:focus { width: 100%; }
  .pa-section-head { flex-direction: column; align-items: flex-start; }
  .pa-section-head h2 { font-size: 30px; }
  .pa-grid { gap: 12px; }
  .pa-media { padding: 14px; border-radius: 19px 19px 0 0; }
  .pa-card, .pa-shine { border-radius: 20px; }
  .pa-info { padding: 14px; }
  .pa-name { font-size: 15px; }
  .pa-desc { display: none; }
  .pa-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .pa-price { font-size: 22px; }
  .pa .pa-qty { justify-content: space-between; }
  .pa-buy { height: 46px; font-size: 14px; }
  .pa-tag { top: 10px; left: 10px; font-size: 10px; padding: 4px 9px; }
  .pa-vol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pa *, .pa *::before, .pa *::after { animation: none !important; transition: none !important; }
  .pa-reveal { opacity: 1; transform: none; }
}

/* ===== v2: композиция баннера, плитка линейки, фото на всю карточку ===== */
.pa-hero { min-height: 700px; }
/* ---- витрина линеек в баннере ---- */
.pa-show { position: absolute; z-index: 1; top: 130px; right: max(30px, calc(50% - 760px)); width: 640px; height: 520px; --c: #00a91c; animation: paArtIn 1s .2s var(--ease) backwards; }
.pa-show-orb { position: absolute; left: 50%; top: 44%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%;
  background-color: var(--c); transition: background-color 1s var(--ease); opacity: .55;
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.55) 45%, transparent 70%); mask: radial-gradient(circle, #000 0%, rgba(0,0,0,.55) 45%, transparent 70%);
  animation: paOrb 7s ease-in-out infinite; }
@keyframes paOrb { 50% { transform: scale(1.08); } }
.pa-show-ring { position: absolute; left: 50%; top: 44%; width: 430px; height: 430px; margin: -215px 0 0 -215px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); animation: paSpin 24s linear infinite; }
.pa-show-ring::before { content: ''; position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); }
.pa-show-ring i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, .55); }
@keyframes paSpin { to { transform: rotate(360deg); } }
.pa-show-stage { position: absolute; left: 50%; top: 44%; width: 460px; height: 380px; margin: -190px 0 0 -230px; }
.pa-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transform: translateY(46px) scale(.86); filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.pa-slide.leave { opacity: 0; transform: translateY(-36px) scale(1.04); filter: blur(6px); }
.pa-slide.active { opacity: 1; transform: none; filter: none; }
.pa-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; animation: paFloat 6s ease-in-out infinite; }
.pa-slide-fans_of img { max-height: 92%; }
@keyframes paFloat { 50% { translate: 0 -12px; } }

.pa-show-info { position: absolute; left: -60px; bottom: 74px; width: 300px; height: 168px; }
.pa-info-slide { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateX(-16px); pointer-events: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.pa-info-slide.active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.pa-info-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c8ecce; }
.pa-info-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pa-info-name { font: 700 26px/1.1 'RF Dewi', sans-serif; color: #fff; }
.pa-info-sub { font-size: 13px; color: #c8ecce; }
.pa-info-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pa-info-price { font: 700 18px 'RF Dewi', sans-serif; color: #fff; }
.pa-info-go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 30px; cursor: pointer;
  background: #fff; color: #0a3a16; font: 700 13px 'RF Dewi', sans-serif; transition: transform .3s var(--ease); }
.pa-info-go em { font-style: normal; transition: transform .3s var(--ease); }
.pa-info-go:hover { transform: translateY(-2px); }
.pa-info-go:hover em { transform: translateX(4px); }

.pa-show-nav { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 40px;
  background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.pa-show-dot { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 5px; border: 0; border-radius: 30px; cursor: pointer;
  background: transparent; color: #c8ecce; font: 700 12px 'RF Dewi', sans-serif; white-space: nowrap; transition: background .4s, color .4s; }
.pa-show-dot img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .9); padding: 3px; }
.pa-show-dot:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pa-show-dot.active { background: rgba(255, 255, 255, .95); color: #0a3a16; }
.pa-show-dot i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--c); }
.pa-show-dot.active i { animation: paProgress var(--dur, 4.5s) linear forwards; }
.pa-show.paused .pa-show-dot.active i { animation-play-state: paused; }
@keyframes paProgress { to { width: 100%; } }
@keyframes paArtIn { from { opacity: 0; transform: translateY(60px) scale(.9); } }
.pa-hero-in { max-width: 1560px; }
.pa-hero-in > * { max-width: 640px; }

/* плитка линейки — заполняет пустое место в ряду (span ставит JS) */
.pa-line {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 300px; padding: 30px; border-radius: 26px; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .28), transparent 45%),
              linear-gradient(145deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, color-mix(in srgb, var(--c) 70%, #062a10) 100%);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 80%, #000);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.pa-line:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -28px color-mix(in srgb, var(--c) 90%, #000); }
.pa-line-leaf { position: absolute; right: -50px; top: -40px; color: rgba(255, 255, 255, .16); transition: transform 1.2s var(--ease); }
.pa-line-leaf svg { width: 280px; height: 280px; animation: paSway 9s ease-in-out infinite; transform-origin: 30% 90%; }
@keyframes paSway { 50% { transform: rotate(10deg); } }
.pa-line:hover .pa-line-leaf { transform: scale(1.12) rotate(-8deg); }
.pa-line-kicker { position: relative; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.pa-line-name { position: relative; font: 700 40px/1.05 'RF Dewi', sans-serif; }
.pa-line-sub { position: relative; font-size: 15px; opacity: .9; max-width: 360px; }
.pa-line-meta { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pa-line-meta span { padding: 6px 13px; border-radius: 30px; font-size: 13px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px); }
.pa-line-go { position: relative; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 20px; border-radius: 40px; background: #fff; color: var(--c); font: 700 14px 'RF Dewi', sans-serif; transition: gap .35s var(--ease); }
.pa-line-go em { font-style: normal; transition: transform .35s var(--ease); }
.pa-line:hover .pa-line-go em { transform: translateX(5px); }
.pa-line.wide { flex-direction: row; align-items: flex-end; flex-wrap: wrap; column-gap: 30px; min-height: 220px; }
.pa-line.wide .pa-line-kicker, .pa-line.wide .pa-line-name { flex-basis: 100%; }
.pa-line.wide .pa-line-go { margin-left: auto; }
.pa-section-head { margin-bottom: 22px; }

/* фото заполняет верх карточки */
.pa-media { padding: 0; place-items: stretch; }
.pa-media::before, .pa-media::after { display: none; }
.pa-media img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; animation: none; transition: transform 1s var(--ease); }
.pa-card:hover .pa-media img { transform: scale(1.08); }
.pa-media .pa-noimg { place-self: center; }

@media (max-width: 1280px) { .pa-art { display: none; } .pa-hero { min-height: 0; } }
@media (max-width: 760px) {
  .pa-media { padding: 0; }
  .pa-line { min-height: 0; padding: 22px; }
  .pa-line-name { font-size: 28px; }
  .pa-line-leaf svg { width: 180px; height: 180px; }
  .pa-line.wide { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .pa-line.wide .pa-line-kicker, .pa-line.wide .pa-line-name { flex-basis: auto; }
  .pa-line.wide .pa-line-go { margin-left: 0; }
}
/* название линейки уже на плитке — заголовок секции не дублируем */
.pa-section-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.pa-section { padding-top: 36px; }

/* v3: плитка линейки — фото-баннер линейки, текст слева */
.pa-line {
  color: var(--ink); justify-content: center;
  background: linear-gradient(90deg, #f5f5f5 0%, rgba(245, 245, 245, .92) 32%, rgba(245, 245, 245, 0) 62%), var(--bg) right center / cover no-repeat, #f5f5f5;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(10, 58, 22, .05);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), background-size 1.2s var(--ease);
}
.pa-line::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); border-radius: 26px 0 0 26px; }
.pa-line:hover { box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--c) 60%, rgba(10, 58, 22, .5)); }
.pa-line > * { max-width: 46%; }
.pa-line-kicker { color: var(--c); opacity: 1; font-weight: 500; }
.pa-line-name { color: var(--ink); }
.pa-line-sub { color: var(--muted); opacity: 1; }
.pa-line-meta span { background: #fff; border-color: var(--line); color: var(--ink); backdrop-filter: none; }
.pa-line-go { background: var(--c); color: #fff; box-shadow: 0 12px 24px -12px var(--c); }
.pa-line.wide { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; min-height: 300px; }
.pa-line.wide > * { max-width: 40%; }
.pa-line.wide .pa-line-kicker, .pa-line.wide .pa-line-name { flex-basis: auto; }
.pa-line.wide .pa-line-go { margin-left: 0; }
@media (max-width: 760px) {
  .pa-line { min-height: 230px; background: linear-gradient(90deg, #f5f5f5 0%, rgba(245, 245, 245, .9) 45%, rgba(245, 245, 245, 0) 80%), var(--bg) 70% center / cover no-repeat, #f5f5f5; }
  .pa-line > *, .pa-line.wide > * { max-width: 62%; }
  .pa-line-sub { font-size: 13px; }
}
/* витрина: товар и круг правее, карточка левее — без наложения */
.pa-show-orb, .pa-show-ring { left: 64%; }
.pa-show-stage { left: 64%; width: 420px; margin-left: -210px; }
.pa-show-info { left: -110px; bottom: 96px; width: 290px; }
.pa-show-nav { left: 54%; }

/* ===== Фолбэки кнопки корзины: фон и текст не могут стать невидимыми ===== */
.pa .pa-buy { color: #fff; background-color: #00a804; background-image: var(--grad); }
.pa .pa-buy:hover, .pa .pa-buy:active { color: #fff; }
.pa .pa-buy.in_cart, .pa .pa-buy.in_cart:hover, .pa .pa-buy.in_cart:active {
  background-color: #fff; background-image: none; color: var(--g2);
  box-shadow: 0 10px 22px -14px rgba(0, 157, 3, .5);
}
.pa .pa-buy.in_cart:hover .fa-trash { background: rgba(217, 58, 63, .12); }
