/* Спойлер «Все скидки ярмарки» (05.12.2026): общее + 5 вариантов оформления .nyp-as--1..5 */
.nyp-as { --as-cream: #fff8ea; --as-ink: #2b1d12; --as-mute: #7a6650; --as-gold: #e2b866; --as-red: #b3263a; }
.nyp-as__adm { margin: 0 0 12px; text-align: center; font-size: 12.5px; color: #f6dea0; }
.nyp-as__adm a { display: inline-block; margin: 3px 2px; padding: 3px 10px; border: 1px solid rgba(246, 222, 160, .45); border-radius: 999px; color: #f6dea0; text-decoration: none; }
.nyp-as__adm a.is-on { background: #f6dea0; color: #3a2306; font-weight: 700; }
.nyp-as__det { max-width: none; margin: 0; border-radius: 18px; background: rgba(12, 40, 30, .55); border: 1px solid rgba(230, 196, 120, .35); }
.nyp-as__sum { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; padding: 18px 56px; cursor: pointer; list-style: none; text-align: center; }
.nyp-as__sum::-webkit-details-marker { display: none; }
.nyp-as__sumt { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 800; color: #f6dea0; }
.nyp-as__sumn { font-size: 13px; color: rgba(246, 239, 224, .7); }
.nyp-as__chev { position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid #f6dea0; border-bottom: 2px solid #f6dea0; transform: rotate(45deg); transition: transform .3s; }
.nyp-as__det[open] > .nyp-as__sum .nyp-as__chev { transform: rotate(225deg); margin-top: -2px; }
.nyp-as__body { padding: 0 20px 20px; }
.nyp-as__note { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: rgba(246, 239, 224, .6); }
.nyp-as__gh { margin: 18px 0 10px; font-family: 'Playfair Display', Georgia, serif; font-size: 19px; color: #f6dea0; text-align: left; }
.nyp-as__d { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 999px; font: 800 13px/1.2 Montserrat, sans-serif; text-align: center; white-space: nowrap; color: #fff; background: #8a6a3a; }
.nyp-as__d.is-20 { background: var(--as-red); } .nyp-as__d.is-15 { background: #d0632b; } .nyp-as__d.is-10 { background: #b8892f; } .nyp-as__d.is-5 { background: #7c8a52; } .nyp-as__d.is-gift { background: #1f6b4d; }
.nyp-as a { color: inherit; }

/* 1 — прайс-таблица */
.nyp-as__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.nyp-as__tab { padding: 8px 16px; border: 1px solid rgba(246, 222, 160, .45); border-radius: 999px; background: transparent; color: #f6dea0; font: 600 14px Montserrat, sans-serif; cursor: pointer; }
.nyp-as__tab[aria-selected="true"] { background: #f6dea0; color: #3a2306; }
.nyp-as__tab small { opacity: .7; }
.nyp-as__tbl { width: 100%; border-collapse: collapse; background: var(--as-cream); color: var(--as-ink); border-radius: 12px; overflow: hidden; font-size: 14px; }
.nyp-as__tbl th { padding: 10px 12px; background: #f1e1bf; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--as-mute); }
.nyp-as__tbl td { padding: 9px 12px; border-top: 1px solid #efe2c8; vertical-align: middle; }
.nyp-as__tbl tr.is-first td { border-top: 2px solid #e6d2a8; }
.nyp-as__tbl td:last-child, .nyp-as__tbl th:last-child { text-align: right; width: 1%; }
.nyp-as__brand { width: 22%; font-weight: 700; }
.nyp-as__brand a { text-decoration: none; color: var(--as-red); }

/* 2 — карточки марок */
.nyp-as__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.nyp-as__card { padding: 14px; border-radius: 14px; background: var(--as-cream); color: var(--as-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.nyp-as__ch { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #e2cfa6; }
.nyp-as__ch img { width: 44px; height: 32px; object-fit: contain; }
.nyp-as__cn { flex: 1; font-weight: 800; text-decoration: none; color: var(--as-ink); }
.nyp-as__cmax { font: 800 13px Montserrat, sans-serif; color: var(--as-red); white-space: nowrap; }
.nyp-as__cl { margin: 0; padding: 0; list-style: none; }
.nyp-as__cl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; margin: 0; font-size: 13.5px; line-height: 1.35; background: none; }
.nyp-as__cl li:before { display: none; }
.nyp-as__cl li + li { border-top: 1px solid #f0e4cc; }

/* 3 — аккордеон марок */
.nyp-as__acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 12px; align-items: start; }
.nyp-as__ai { border-radius: 12px; background: var(--as-cream); color: var(--as-ink); }
.nyp-as__ai > summary { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 40px 10px 12px; cursor: pointer; list-style: none; }
.nyp-as__ai > summary::-webkit-details-marker { display: none; }
.nyp-as__ai .nyp-as__chev { right: 16px; border-color: var(--as-mute); }
.nyp-as__ai[open] > summary .nyp-as__chev { transform: rotate(225deg); margin-top: -2px; }
.nyp-as__alogo { flex: 0 0 48px; height: 32px; display: flex; align-items: center; justify-content: center; }
.nyp-as__alogo img { max-width: 48px; max-height: 32px; object-fit: contain; }
.nyp-as__an { flex: 1; font-weight: 800; }
.nyp-as__acnt { font-size: 12px; color: var(--as-mute); }
.nyp-as__amax { font: 800 13px Montserrat, sans-serif; color: var(--as-red); white-space: nowrap; }
.nyp-as__ai .nyp-as__cl { padding: 0 12px 6px; }
.nyp-as__amore { display: block; padding: 0 12px 12px; font-size: 13px; color: var(--as-red); text-decoration: none; }

/* 4 — по размеру скидки */
.nyp-as__lvls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.nyp-as__lvl { position: relative; padding: 16px 16px 12px; border-radius: 14px; background: var(--as-cream); color: var(--as-ink); }
.nyp-as__lh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nyp-as__tag { position: relative; padding: 6px 12px 6px 18px; border-radius: 4px 10px 10px 4px; background: var(--as-red); color: #fff; font: 800 16px Montserrat, sans-serif; }
.nyp-as__tag:before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--as-cream); }
.nyp-as__lvl--15 .nyp-as__tag { background: #d0632b; } .nyp-as__lvl--10 .nyp-as__tag { background: #b8892f; } .nyp-as__lvl--5 .nyp-as__tag { background: #7c8a52; } .nyp-as__lvl--gift .nyp-as__tag { background: #1f6b4d; }
.nyp-as__lh b { flex: 1; } .nyp-as__lh small { color: var(--as-mute); }
.nyp-as__lvl ul { margin: 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; }
.nyp-as__lvl li { margin: 0; padding: 5px 0; font-size: 13.5px; line-height: 1.4; border-top: 1px solid #f0e4cc; background: none; }
.nyp-as__lvl li:before { display: none; }
.nyp-as__lb { font-weight: 700; color: var(--as-red); text-decoration: none; }
.nyp-as__lvl em { color: var(--as-mute); font-style: normal; }

/* 5 — поиск и фильтры */
.nyp-as__ctl { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.nyp-as__q { width: 100%; box-sizing: border-box; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--as-cream); color: var(--as-ink); font: 15px Montserrat, sans-serif; }
.nyp-as__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nyp-as__chip { padding: 6px 12px; border: 1px solid rgba(246, 222, 160, .45); border-radius: 999px; background: transparent; color: #f6dea0; font: 600 13px Montserrat, sans-serif; cursor: pointer; }
.nyp-as__chip.is-on { background: #f6dea0; color: #3a2306; }
.nyp-as__flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 560px; overflow: auto; }
.nyp-as__flat li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--as-cream); color: var(--as-ink); }
.nyp-as__flat li:before { display: none; }
.nyp-as__flat li[hidden] { display: none; }
.nyp-as__ft { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.35; }
.nyp-as__fb { font-weight: 800; color: var(--as-red); text-decoration: none; }
.nyp-as__empty { text-align: center; color: #f6dea0; }

@media (max-width: 600px) {
    .nyp-as__sum { padding: 16px 44px 16px 16px; }
    .nyp-as__sumt { font-size: 19px; }
    .nyp-as__body { padding: 0 10px 14px; }
    .nyp-as__tbl { font-size: 13px; } .nyp-as__tbl thead { display: none; }
    .nyp-as__tbl, .nyp-as__tbl tbody { display: block; }
    .nyp-as__tbl tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; border-top: 1px solid #efe2c8; }
    .nyp-as__tbl td { border: 0 !important; padding: 7px 12px; }
    .nyp-as__tbl td.nyp-as__brand { grid-column: 1 / -1; width: auto; padding: 10px 12px 0; background: #f6ead2; }
    .nyp-as__tbl td.nyp-as__brand:empty { display: none; }
    .nyp-as__cards, .nyp-as__acc, .nyp-as__lvls, .nyp-as__flat { grid-template-columns: 1fr; }
}
/* правки после просмотра */
.nyp-as .nyp-as__gh { margin: 22px 0 14px !important; line-height: 1.25; }
.nyp-as .nyp-as__d { flex-shrink: 0; }
.nyp-as .nyp-as__lb, .nyp-as .nyp-as__fb, .nyp-as .nyp-as__brand a, .nyp-as .nyp-as__brand span { color: var(--as-red); text-decoration: none; }
.nyp-as .nyp-as__cn { color: var(--as-ink); text-decoration: none; }
.nyp-as a.nyp-as__lb:hover, .nyp-as a.nyp-as__fb:hover, .nyp-as .nyp-as__brand a:hover, .nyp-as a.nyp-as__cn:hover { text-decoration: underline; }
