/* site-pages.css — страницы основного сайта: главная-каталог, товар и пак, «О проекте», документ, 404.
   Образец — холсты Home, Product, Pack, About, Document, NotFound, карточки ProductCard и ReviewCard.
   Префиксы: sp- общие блоки, pcd- карточка товара, rvc- отзыв, sh- главная, spp- товар и пак,
   sa- «О проекте», sd- документ, snf- 404. Цвет предмета — переменные --s, --sl, --sd на блоке. */

/* ---------- общее ---------- */
.sp-main { background: var(--av-bg); font-size: 17px; line-height: 28px; }
/* товар, пак и «О проекте»: один фон на все блоки, светлее прежнего серого */
.sp-main-soft { background: var(--av-bg-soft); }
.sp-main a { color: var(--av-ink); }
.sp-main a:hover { color: var(--av-blue); }
.av-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-sec { padding-block: 56px; }
.sp-sec-s { padding-block: 40px; }
.sp-col { display: flex; flex-direction: column; gap: 24px; }
.sp-h2 { font-family: var(--av-head); font-weight: 600; font-size: 28px; line-height: 36px; color: var(--av-ink); margin: 0; text-wrap: balance; }
/* все заголовки разделов — одного размера (sp-h2-md / sp-h2-sm оставлены в разметке как метки) */
.sp-lead { margin: 0; color: var(--av-muted-2); font-size: 17px; line-height: 26px; max-width: 760px; }
.sp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sp-head-b { align-items: baseline; flex-wrap: wrap; }
.sp-head-c { align-items: center; flex-wrap: wrap; }
.sp-count { color: var(--av-muted); font-size: 15px; }
.sp-all { font-size: 15px; font-weight: 700; color: var(--av-blue) !important; text-decoration: none; }
.sp-pill { display: inline-flex; align-items: center; font-size: 12px; line-height: 16px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: var(--sl, #F0F0F5); color: var(--sd, var(--av-ink)); align-self: flex-start; }
.sp-pill-dark { background: var(--av-ink); color: #FFFFFF; }
a.sp-pill, .sp-main a.sp-pill { text-decoration: none; color: var(--sd, var(--av-ink)); transition: filter .2s ease; }
a.sp-pill.sp-pill-dark, a.sp-pill.sp-pill-own { color: #FFFFFF; }
a.sp-pill:hover, .sp-main a.sp-pill:hover { color: var(--sd, var(--av-ink)); filter: brightness(.94) saturate(1.1); }
a.sp-pill.sp-pill-dark:hover, a.sp-pill.sp-pill-own:hover { color: #FFFFFF; }
a.sp-pill:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.sp-off { background: var(--av-sky); color: var(--av-blue-text, #0047D1); border-radius: 99px; padding: 2px 9px; font: 700 13px/18px var(--av-font); white-space: nowrap; }
.sp-off-blue { background: var(--av-blue); color: #FFFFFF; }
.sp-ph { background-color: #E6E8EE; background-image: repeating-linear-gradient(135deg, rgba(8,25,64,.05) 0 10px, transparent 10px 20px); }
.sp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; font: 700 16px/1 var(--av-font); text-decoration: none; cursor: pointer; padding: 0 20px; border: 0; white-space: nowrap; }
.sp-btn-sm { min-height: 44px; font-size: 15px; }
.sp-btn-buy, .sp-btn-blue { background: var(--av-blue); color: #FFFFFF !important; }
.sp-btn-buy:hover, .sp-btn-blue:hover { background: var(--av-blue-hover); }
.sp-btn-dark { background: var(--av-ink); color: #FFFFFF !important; }
.sp-btn-dark:hover { background: var(--av-ink-hover); }
/* «Предпросмотр»: при наведении заливка цветом (у страницы товара — цветом предмета), без сдвига и тени; глаз переворачивается.
   Без @media (prefers-reduced-motion) — как и остальные анимации сайта */
.sp-btn-pre { background: #FFFFFF; color: var(--av-ink) !important; box-shadow: inset 0 0 0 1.5px var(--av-line-2); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.sp-btn-pre:hover { background: var(--av-ink); color: #FFFFFF !important; box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.sp-btn-pre svg { transition: transform .4s ease; }
.sp-btn-pre:hover svg { transform: rotateX(180deg); }
/* «Перейти к методичке» в «Вам также подойдёт»: при наведении только ярче — без сдвига и тени */
.sp-btn-go { background: #FFFFFF; color: var(--sa, var(--av-ink)) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa, var(--av-ink)) 45%, #fff); transition: filter .2s ease, box-shadow .2s ease; }
.sp-also-c:hover .sp-btn-go, .sp-btn-go:hover { box-shadow: inset 0 0 0 1.5px var(--sa, var(--av-ink)); filter: brightness(1.15) saturate(1.25); }
.sp-btn-soft { background: var(--av-bg); color: var(--av-ink) !important; box-shadow: inset 0 0 0 1.5px #DDE2EC; }
.sp-btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.sp-btn-line { background: rgba(255,255,255,.6); color: var(--av-ink) !important; box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.sp-btn-line:hover { background: #FFFFFF; }
.sp-btn-white { background: #FFFFFF; color: var(--av-ink) !important; }
.sp-btn-white:hover { background: var(--av-sky); }
.sp-btn-ghost { background: rgba(255,255,255,.1); color: #FFFFFF !important; }
.sp-btn-ghost:hover { background: rgba(255,255,255,.18); }
.sp-btn.is-in { background: var(--av-sky); color: var(--av-blue-text, #0047D1) !important; box-shadow: inset 0 0 0 1.5px var(--av-blue); }
.sp-btn.is-in:hover { background: color-mix(in srgb, var(--av-sky) 80%, var(--av-blue)); }
.sp-btn:focus-visible, .sp-arw:focus-visible, .sp-q summary:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- карточка товара (ProductCard) ---------- */
.pcd { position: relative; background: #FFFFFF; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%; }
.pcd-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--s); isolation: isolate; }
/* обложка-картинка закрывает всё поле, цвет предмета под ней просвечивал каёмкой по скруглению */
.pcd-media:has(.pcd-s0 .pcd-img) { background: none; }
.pcd-slide { position: absolute; inset: 0; display: none; border-radius: inherit; }
.pcd-slide.is-on { display: block; }
.pcd-s1.is-on, .pcd-s2.is-on { display: flex; }
.pcd-img, .pcd-ex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pcd-s1 { flex-direction: column; justify-content: center; gap: 12px; padding: 22px; background: var(--sl); color: var(--sd); }
.pcd-cap { font-size: 12px; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.pcd-li { display: flex; gap: 8px; font-weight: 700; font-size: 16px; line-height: 22px; }
.pcd-li svg { flex: none; margin-top: 3px; }
.pcd-s2 { flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--sl); }
.pcd-s2 .pcd-ex { position: static; width: 60%; height: auto; border-radius: 6px; box-shadow: 0 10px 24px rgba(8,25,64,.15); }
.pcd-sx { background: var(--sl); }
.pcd-sx.is-on { display: flex; align-items: center; justify-content: center; }
.pcd-sxi { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.pcd-page { width: 52%; aspect-ratio: 1 / 1.414; background: #FFFFFF; border-radius: 6px; box-shadow: 0 10px 24px rgba(8,25,64,.15); padding: 10% 8%; display: flex; flex-direction: column; gap: 6%; }
.pcd-page span { height: 3%; background: #DDE2EC; border-radius: 2px; }
.pcd-page span:nth-child(1) { height: 7%; width: 60%; background: var(--s); }
.pcd-page span:nth-child(2) { height: 32%; background: var(--sl); border-radius: 5px; }
.pcd-page span:nth-child(5) { width: 70%; }
.pcd-cap2 { font-size: 13px; font-weight: 700; color: var(--sd); }
.pcd-plate { position: absolute; top: 7%; left: 8%; right: 8%; background: #FFFFFF; border-radius: 8px; padding: 10px 12px; text-align: center; font: 700 22px/26px var(--av-head); color: var(--s); overflow-wrap: anywhere; }
.pcd-plate-sm { font-size: 13px; line-height: 17px; padding: 6px; }
.pcd-fan { position: absolute; left: 12%; right: 12%; bottom: 13%; height: 52%; }
.pcd-fan span { position: absolute; bottom: 0; width: 38%; aspect-ratio: 1 / 1.414; background: #FFFFFF; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pcd-fan .pcd-f1 { left: 6%; transform: rotate(-7deg); }
.pcd-fan .pcd-f3 { right: 6%; transform: rotate(7deg); }
.pcd-fan .pcd-f2 { left: 31%; z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
/* пока неизвестно, что уже куплено (см. site-early.js), кнопки покупки не показываем, но место за ними держим */
.av-wait [data-card] [data-cart-add], .av-wait .spp-btns, .av-wait .spp-mbar .sp-btn, .av-wait .spp-offer [data-cart-add] { visibility: hidden; }
.pcd-tag { position: absolute; top: 10px; left: 10px; border-radius: 99px; padding: 4px 10px; font: 700 12px/16px var(--av-font); z-index: 4; }
.pcd-new { background: #FFFFFF; color: var(--av-blue); }
.pcd-own, .sp-pill-own { background: #0058FF; color: #FFFFFF; }
.pcd.is-owned .pcd-new { display: none; }
.pcd-arr { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 3; padding: 0; }
.pcd:hover .pcd-arr, .pcd:focus-within .pcd-arr { opacity: 1; }
.pcd-l { left: 8px; }
.pcd-r { right: 8px; }
.pcd-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; pointer-events: none; }
.pcd-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .2s; }
.pcd-dot.is-on { width: 18px; background: #FFFFFF; }
.pcd-name { font-weight: 600; font-size: 17px; line-height: 23px; color: var(--av-ink) !important; text-decoration: none; min-height: 46px; padding: 0 4px; transition: color .15s; }
.pcd-name::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.pcd:hover .pcd-name { color: var(--av-blue) !important; }
.pcd-name:focus-visible { outline: none; }
.pcd:has(.pcd-name:focus-visible) { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.pcd-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 4px; margin-top: auto; }
.pcd-price b { font: 600 22px/28px var(--av-head); color: var(--av-ink); font-variant-numeric: tabular-nums; }
.pcd-price s { font-size: 14px; color: #8A93A3; font-variant-numeric: tabular-nums; }
.pcd-btn { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 12px; font: 700 16px/1 var(--av-font); text-decoration: none; cursor: pointer; padding: 0 18px; border: 1.5px solid var(--av-ink); white-space: nowrap; background: var(--av-ink); color: #FFFFFF !important; }
.pcd-btn:hover { background: #FFFFFF; color: var(--av-ink) !important; }
.pcd-btn.is-in { background: var(--av-sky); color: var(--av-blue-text, #0047D1) !important; border-color: var(--av-blue); }
.pcd-btn.is-in:hover { background: color-mix(in srgb, var(--av-sky) 80%, var(--av-blue)); color: var(--av-blue-text, #0047D1) !important; }
/* «Открыть в кабинете» не похоже на «В корзине»: белая кнопка с тёмной рамкой и значком кабинета */
.pcd-in { background: #FFFFFF; color: var(--av-ink) !important; border-color: var(--av-ink); }
.pcd-in:hover { background: var(--av-ink); color: #FFFFFF !important; }
.pcd-btn:focus-visible, .pcd-arr:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
@media (hover: none) { .pcd-arr { display: none; } }

/* ---------- отзывы (ReviewCard) ---------- */
.sp-rv-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sp-rv-track::-webkit-scrollbar { display: none; }
.sp-rv-track.is-gliding, .sp-rv-track.is-dragging { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) {
  .sp-rv-track { cursor: grab; -webkit-user-select: none; user-select: none; }
  .sp-rv-track img { -webkit-user-drag: none; }
  .sp-rv-track.is-dragging, .sp-rv-track.is-dragging * { cursor: grabbing !important; }
}
.sp-rv-track:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 4px; border-radius: 20px; }
/* в ряд входит целое число карточек: 4 на компьютере, 2 на планшете — без обрезанной карточки у края */
.sp-rv-item { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
@media (max-width: 960px) { .sp-rv-item { flex-basis: calc((100% - 16px) / 2); } }
.sp-arws { display: flex; gap: 10px; }
.sp-arw { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--av-line-2); background: #FFFFFF; color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sp-arw:hover { border-color: var(--av-ink); }
.rvc { position: relative; width: 100%; height: 420px; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--av-text); }
.rvc-sm { height: 380px; }
.rvc-in { display: flex; flex-direction: column; gap: 16px; padding: 24px; flex: 1; min-height: 0; }
.rvc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rvc-chip { display: inline-block; min-width: 0; font-size: 12px; line-height: 16px; font-weight: 700; padding: 5px 10px; border-radius: 99px; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; background: var(--sl, #F0F0F5); color: var(--sd, var(--av-ink)); }
.rvc-av { width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rvc-av img { width: 100%; height: 100%; object-fit: cover; }
.rvc-ini { background: var(--sl); color: var(--sd); font-weight: 800; }
.rvc-txt { margin: 0; font-size: 16px; line-height: 25px; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.rvc-name { font-weight: 800; color: var(--av-ink); }
.rvc-sub { font-size: 14px; line-height: 20px; color: var(--av-muted); }
.rvc-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--av-blue); font: 700 14px var(--av-font); cursor: pointer; margin-top: -8px; }
.rvc-accent .rvc-chip { background: #FFFFFF; }
.rvc-accent .rvc-txt { color: #1B1D22; }
.rvc-accent .rvc-sub { color: var(--av-muted-2); }
.rvc-dark { color: #FFFFFF; }
.rvc-dark .rvc-subj { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--av-line-2); }
.rvc-dark .rvc-name { color: #FFFFFF; }
.rvc-dark .rvc-sub { color: var(--av-line-2); }
.rvc-dark .rvc-more { color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 3px; }
.rvc-dark .rvc-ini { border-radius: 12px; width: 40px; height: 40px; background: rgba(255,255,255,.16); color: #FFFFFF; }
.rvc-dark .rvc-av { border-radius: 12px; width: 40px; height: 40px; }
.rvc-foot { display: flex; align-items: center; gap: 12px; }
.rvc-foot-sb { justify-content: space-between; padding: 0 8px 8px; }
.rvc-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rvc-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 24px 24px; background: linear-gradient(180deg, rgba(8,25,64,0), rgba(8,25,64,.92) 45%); color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.rvc-over .rvc-chip { align-self: flex-start; }
.rvc-over .rvc-name { color: #FFFFFF; }
.rvc-over .rvc-sub { color: var(--av-line-2); }
.rvc-line { margin: 0; font-size: 15px; line-height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rvc-u { font-size: 14px; font-weight: 700; text-decoration: underline; }
.rvc-in-shot { padding: 16px; gap: 14px; }
.rvc-shot { flex: 1; border-radius: 14px; background: #E8EDF5; overflow: hidden; min-height: 0; }
.rvc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rvc-vid { position: absolute; inset: 0; background: #2C2F37; }
.rvc-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: var(--av-ink); }
.rvc-over-v { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-top: 60px; background: linear-gradient(180deg, rgba(27,29,34,0), rgba(27,29,34,.95) 50%); }
.rvc-hit { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; border-radius: 20px; }
.rvc-hit:focus-visible, .rvc-more:focus-visible { outline: 3px solid var(--av-blue); outline-offset: -3px; }
.sp-dlg { border: 0; border-radius: 24px; padding: 32px 28px 28px; max-width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); box-shadow: 0 24px 60px rgba(8,25,64,.25); font-family: var(--av-font); color: var(--av-text); }
.sp-dlg::backdrop { background: rgba(8,25,64,.45); }
.sp-dlg h3 { margin: 0 40px 4px 0; font: 600 20px/26px var(--av-head); color: var(--av-ink); }
.sp-dlg .rvm-sub { margin: 0 0 16px; color: var(--av-muted); font-size: 14px; }
.sp-dlg p { white-space: pre-line; }
.sp-dlg img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.sp-dlg-shot { padding: 12px; max-width: min(960px, calc(100vw - 32px)); }
.sp-dlg-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 8px; border: 0; background: rgba(255,255,255,.9); color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sp-dlg-x:hover { background: var(--av-sky); }
/* «Задать вопрос»: окно выбора — чат поддержки или почта */
.sp-ask { width: min(520px, calc(100vw - 32px)); }
.sp-ask-list { display: grid; gap: 10px; }
.sp-ask-o { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--av-bg-soft, #F6F6FA); box-shadow: inset 0 0 0 1.5px transparent; color: var(--av-ink) !important; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.sp-ask-o[hidden] { display: none; }
.sp-ask-o:hover { background: var(--av-sky); box-shadow: inset 0 0 0 1.5px var(--av-blue); }
.sp-ask-o:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.sp-ask-o > svg { box-sizing: border-box; flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #FFFFFF; color: var(--av-blue); }
.sp-ask-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-ask-t b { font-size: 16px; line-height: 22px; font-weight: 700; }
.sp-ask-t span { font-size: 14px; line-height: 20px; color: var(--av-muted); overflow-wrap: anywhere; }
.sp-ask-go { flex: none; font-size: 14px; font-weight: 700; color: var(--av-blue); }

/* ---------- вузы ---------- */
.sp-unis { padding-block: 40px 16px; }
.sp-ticker { overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sp-ticker-row { display: flex; width: max-content; animation: sp-tick 40s linear infinite; }
.sp-ticker-part { display: flex; gap: 16px; padding-right: 16px; }
.sp-ticker:hover .sp-ticker-row { animation-play-state: paused; }
@keyframes sp-tick { to { transform: translateX(-50%); } }
.sp-uni { width: 168px; height: 72px; border-radius: 14px; background: #FFFFFF; flex: none; display: flex; align-items: center; justify-content: center; padding: 10px 16px; color: #6B7383; font-size: 13px; font-weight: 600; text-align: center; line-height: 17px; }
.sp-uni img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- хлебные крошки (как в блоге) ---------- */
.av-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: var(--av-muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.av-crumbs li + li::before { content: '›'; margin-right: 8px; }
.av-crumbs a { color: inherit !important; text-decoration: none; }
.av-crumbs a:hover { color: var(--av-ink) !important; text-decoration: underline; }
@media (max-width: 639px) { .av-crumbs ol { font-size: 13px; line-height: 18px; } }

/* ---------- частые вопросы ---------- */
/* телефон и планшет: картинка, вопросы, карточка с кнопкой (aside «растворён», его части — элементы сетки);
   от 860 px: слева белая карточка с картинкой и кнопкой, справа вопросы */
.sp-faqgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.sp-faqhelp { display: contents; }
.sp-faqpic { order: 1; position: relative; max-width: 480px; margin-inline: auto; border-radius: 20px; overflow: hidden; background: var(--av-sky); }
.sp-faqpic img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.sp-faqbubble { position: absolute; top: 8%; right: 4%; max-width: 44%; margin: 0; padding: 10px 12px; background: #FFFFFF; border-radius: 16px 16px 16px 4px; box-shadow: 0 4px 14px rgba(8,25,64,.14); font-weight: 600; font-size: 14px; line-height: 19px; color: var(--av-ink); }
.sp-faq { order: 2; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sp-faqhelp-b { order: 3; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #FFFFFF; border-radius: 20px; }
.sp-faqhelp-t { margin: 0; font-weight: 700; font-size: 19px; line-height: 26px; color: var(--av-ink); }
.sp-faqhelp-p { margin: -6px 0 0; font-size: 15px; line-height: 22px; color: var(--av-muted); }
.sp-faqhelp-b .sp-btn { min-height: 48px; font-size: 15px; width: 100%; }
.sp-faqhelp-m { text-align: center; font-size: 14px; line-height: 20px; color: var(--av-muted); overflow-wrap: anywhere; }
@media (min-width: 860px) {
  .sp-faqgrid { grid-template-columns: 340px minmax(0, 1fr); gap: 20px; }
  .sp-faqhelp { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: #FFFFFF; border-radius: 24px; }
  .sp-faqpic { order: 0; max-width: none; margin-inline: 0; border-radius: 16px; }
  .sp-faq { order: 0; }
  .sp-faqhelp-b { order: 0; padding: 0; background: none; border-radius: 0; gap: 12px; }
  .sp-faqbubble { font-size: 13px; line-height: 18px; }
}
.sp-q { background: #FFFFFF; border-radius: 18px; padding: 0 24px; border: 1px solid transparent; transition: border-color .25s ease; }
.sp-q:hover:not([open]) { border-color: var(--av-line-2); }
.sp-q[open]:not(.is-closing) { border-color: var(--sa, var(--av-ink)); }
.sp-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding-block: 16px; font-weight: 700; font-size: 17px; line-height: 24px; color: var(--av-ink); }
.sp-q summary span { flex: 1; min-width: 0; }
.sp-q summary::-webkit-details-marker { display: none; }
/* значок: плитка со скруглением; в открытом вопросе тёмная, плюс повёрнут в крестик */
.sp-plus { stroke-width: 2.6; box-sizing: border-box; flex: none; width: 34px; height: 34px; padding: 9px; border-radius: 10px; background: var(--sl, var(--av-bg)); color: var(--sd, var(--av-ink)); transition: background-color .2s ease, color .2s ease; }
.sp-plus path { transition: transform .3s ease; transform-origin: 50% 50%; }
.sp-q summary:hover .sp-plus { background: color-mix(in srgb, var(--sl, var(--av-bg)) 78%, var(--sa, var(--av-ink))); }
.sp-q[open]:not(.is-closing) .sp-plus { background: var(--sa, var(--av-ink)); color: #FFFFFF; }
.sp-q[open]:not(.is-closing) .sp-plus path { transform: rotate(45deg); }
.sp-q.is-anim { overflow: hidden; }
.sp-faq-a { color: var(--av-muted-2); font-size: 16px; line-height: 25px; padding-bottom: 20px; }
.sp-faq-a p { margin: 0 0 10px; }
.sp-faq-a p:last-child { margin: 0; }
.sp-faq-a ol, .sp-faq-a ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.sp-faq-a a { color: var(--av-blue) !important; }
.sp-faqfig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 20px; }
.sp-faqfig .sp-faq-a { padding: 0; }
.sp-faqfig img { width: 100%; height: auto; border-radius: 14px; }

/* ---------- статьи ---------- */
.sp-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-art { background: #FFFFFF; border-radius: 18px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.sp-art-img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.sp-art-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.sp-art-m { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--av-muted); }
.sp-art-t { font-weight: 700; font-size: 17px; line-height: 24px; color: var(--av-ink); }
.sp-art:hover .sp-art-t { color: var(--av-blue); }
.sp-arts-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-art-s { display: flex; gap: 12px; align-items: center; background: #FFFFFF; border-radius: 14px; padding: 10px; text-decoration: none; min-width: 0; }
.sp-art-s-img { width: 72px; height: 56px; border-radius: 10px; flex: none; object-fit: cover; display: block; }
.sp-art-s { transition: background-color .2s ease, box-shadow .2s ease; }
.sp-art-s:hover { background: var(--sl, var(--av-sky)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa, var(--av-blue)) 38%, transparent); }
.sp-art-s:hover .sp-art-s-t { color: var(--sd, var(--av-blue)); }
.sp-art-s-t { display: block; font-weight: 700; font-size: 15px; line-height: 21px; color: var(--av-ink); transition: color .2s ease; }
.sp-art-s-m { display: block; font-size: 13px; color: var(--av-muted); }
.sp-art:focus-visible, .sp-art-s:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- «Вам также подойдёт» ---------- */
.sp-also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-also-c { text-decoration: none; color: var(--av-ink); }
.sp-also-c .spp-kit-stack { width: 40%; }
.sp-also-n { min-height: 46px; }
.sp-also-c:hover .sp-also-n { color: var(--av-blue); }
.sp-also-pr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.sp-also-pr b { font: 600 22px/28px var(--av-head); color: var(--av-ink); font-variant-numeric: tabular-nums; }
.sp-also-pr s { font-size: 14px; color: #8A93A3; font-variant-numeric: tabular-nums; }
.sp-also-c:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- главная (Home) ---------- */
.sh-top { padding-top: 32px; padding-bottom: 8px; }
.sh-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 72px 32px; background: linear-gradient(115deg, #DCE6FF 0%, #E8E1FF 50%, #F8C9F5 100%); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.sh-hero-btn { position: relative; margin-top: 8px; width: auto; padding: 0 28px; }
.sh-trust { position: relative; margin: 0; font-size: 15px; line-height: 22px; color: var(--av-muted-2); }
.sh-trust b { font-weight: 800; color: var(--av-ink); }
#kurs { scroll-margin-top: 88px; }
.sh-hero-mark { position: absolute; left: -40px; top: -30px; width: 380px; height: 380px; opacity: .55; }
.sh-h1 { position: relative; margin: 0; font: 600 40px/48px var(--av-head); color: var(--av-ink); max-width: 820px; text-wrap: balance; }
.sh-lead { position: relative; margin: 0; color: var(--av-muted-2); font-size: 17px; line-height: 26px; max-width: 520px; }
.sh-kurs { padding-top: 32px; padding-bottom: 8px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: #FFFFFF; color: var(--av-ink); font: 500 15px/20px var(--av-menu); cursor: pointer; transition: box-shadow .15s, color .15s, background .15s; }
.sh-chip:hover:not(.is-on) { box-shadow: inset 0 0 0 1.5px var(--av-ink); color: var(--av-ink); }
.sh-chip.is-on { background: var(--av-ink); color: #FFFFFF; }
.sh-mini[hidden] { display: none; }
.sh-krow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sh-mini { background: #FFFFFF; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.sh-mini-c { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--s); isolation: isolate; }
/* с картинкой цвет предмета под ней не нужен: он просвечивал каёмкой по скруглению */
.sh-mini-c:has(.sh-mini-img) { background: none; }
.sh-mini-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.sh-mini:hover .sh-mini-img, .sh-mini:focus-visible .sh-mini-img { transform: scale(1.08); }
.sh-mini-c .pcd-fan { height: 46%; bottom: 10%; }
.sh-mini-c .pcd-plate { font-size: 11px; line-height: 14px; padding: 5px 6px; }
/* название — не больше двух строк, место под две строки занято всегда: цены стоят на одном уровне */
.sh-mini-n { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--av-ink); height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sh-mini-p { font: 600 15px/20px var(--av-head); color: var(--av-ink); }
.sh-mini:hover .sh-mini-n { color: var(--av-blue); }
.sh-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-tab { height: 42px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent; background: #E6E9EF; color: var(--av-muted); font: 500 15px/20px var(--av-menu); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sh-tab:hover:not(.is-on) { background: #D5DAE4; color: var(--av-ink); }
.sh-tab.is-on { background: var(--av-ink); border-color: var(--av-ink); color: #FFFFFF; }
.sh-tab-gold { background: #F5B633; border-color: #F5B633; color: #FFFFFF; font-weight: 700; }
.sh-tab-gold:hover:not(.is-on), .sh-tab-gold:hover { background: #E9A51C; border-color: #E9A51C; color: #FFFFFF; }
.sh-tab-gold.is-on { background: #E09A12; border-color: #E09A12; }
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sh-grid [hidden] { display: none !important; }
.sh-packs { grid-column: 1 / -1; background: #FFFFFF; border-radius: 24px; padding: 28px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 20px; align-items: stretch; }
.sh-packs-t { align-self: center; font: 600 28px/36px var(--av-head); color: var(--av-ink); }
/* карточка пака в полосе: белая с градиентом, без рамки */
.sh-pk { position: relative; overflow: hidden; background: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; gap: 16px; align-items: center; min-width: 0; text-decoration: none; }
.sh-glow { position: absolute; inset: 0; background: radial-gradient(120% 70% at 15% 0%, rgba(0,88,255,.16), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(115,0,255,.10), transparent 70%); pointer-events: none; }
.sh-pk-c { position: relative; width: 96px; flex: none; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--s); }
.sh-pk-c:has(img) { background: none; }
.sh-pk-c .pcd-fan { height: 62%; bottom: 14%; }
.sh-pk-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-pk-b { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sh-pk-n { font-weight: 800; font-size: 17px; line-height: 23px; color: var(--av-ink); }
.sh-pk:hover .sh-pk-n { color: var(--av-blue); }
.sh-pk-pr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-pk-pr b { font: 600 22px/28px var(--av-head); color: var(--av-ink); }
.sh-pk-pr s { font-size: 14px; color: #8A93A3; }
.sh-soon-sec { padding-top: 8px; }
.sh-soon { background: #FFFFFF; border-radius: 24px; padding: 20px; display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.sh-soon-c { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--s); overflow: hidden; }
.sh-soon-c .pcd-plate { font-size: 14px; line-height: 18px; padding: 8px; }
.sh-soon-fan { opacity: .6; }
.sh-soon-t { display: flex; flex-direction: column; gap: 8px; }
.sh-soon-n { font-weight: 800; font-size: 20px; line-height: 26px; color: var(--av-ink); }
.sh-soon-t p { margin: 0; color: var(--av-muted); font-size: 16px; line-height: 24px; }
.sh-soon-f { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.sh-soon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sh-soon-row .sp-btn { min-height: 50px; }
.sh-soon-tg { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--av-muted); font-size: 14px; line-height: 20px; }
.sh-soon-note { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 18px; color: var(--av-muted); }
.sh-soon-note a { color: inherit; text-decoration: underline; }
.sh-soon-tg[hidden] { display: none; }
.sh-soon-tg .sp-btn { min-height: 44px; }
.sh-soon-msg { margin: 0; font-size: 14px; line-height: 20px; color: var(--av-ink); }
.sh-soon-msg:empty { display: none; }
.sh-soon-msg.is-err { color: var(--av-red); }
.sh-advs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sh-adv { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sh-adv h3 { margin: 0; font: 600 18px/24px var(--av-head); color: var(--av-ink); text-wrap: balance; }
.sh-adv p { margin: 0; font-size: 16px; line-height: 24px; color: var(--av-muted-2); }
.sh-adv-wide { grid-column: 1 / -1; padding: 22px 28px; background: linear-gradient(115deg, #DCE6FF 0%, #E8E1FF 50%, #F8C9F5 100%); }
.sh-adv-wide h3 { font-size: 17px; }
.sh-tab:focus-visible, .sh-chip:focus-visible, .sh-mini:focus-visible, .sh-pk:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- товар и пак (Product, Pack) ---------- */
.spp-crumbs { padding-top: 20px; }
/* хлебные крошки в цвет предмета: ссылки — акцент, разделитель — его бледный оттенок, текущая страница — тёмный оттенок */
.spp-crumbs ol { color: var(--sd); }
.spp-crumbs li + li::before { color: color-mix(in srgb, var(--sa) 50%, transparent); }
.spp-crumbs a { color: var(--sa) !important; }
.spp-crumbs a:hover { color: var(--sd) !important; }
.spp-crumbs li[aria-current] { color: var(--sd); font-weight: 700; }
.spp-top { padding-top: 24px; padding-bottom: 56px; }
.spp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
/* страница товара и пака — в цвете предмета: синий сайта внутри неё заменяется акцентом предмета (--sa) */
.spp { --av-blue: var(--sa); --av-blue-hover: color-mix(in srgb, var(--sa) 82%, #000); --av-blue-text: var(--sa); --av-sky: var(--sl); }
.spp-checks svg, .spp-kit-pts svg, .spp-safe svg, .spp-oc-list svg { color: var(--sa); }
.spp .sp-btn-dark, .spp .sp-pill-dark { background: var(--sa); }
.spp .sp-btn-dark:hover { background: var(--av-blue-hover); }
/* «В корзине»: светлая кнопка с синим текстом и на странице методички (иначе фон предмета из .spp .sp-btn-dark перекрывал его, и тёмный текст сливался с тёмным фоном) */
.spp .sp-btn.is-in { background: var(--av-sky); }
.spp .sp-btn.is-in:hover { background: color-mix(in srgb, var(--av-sky) 80%, var(--av-blue)); }
.spp .sp-btn-pre { color: var(--sa) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa) 45%, #fff); }
.spp .sp-btn-pre:hover { background: var(--sa); color: #FFFFFF !important; box-shadow: inset 0 0 0 1.5px var(--sa); }
.spp .sp-btn-soft { background: var(--sl); color: var(--sa) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sa) 30%, #fff); }
.spp .sp-btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--sa); }
.spp .spp-bachip.is-good { background: var(--sa); }
.spp-gal { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* окно галереи одной высоты для всех слайдов — страница не прыгает при переключении */
.spp-gal-main { --gp: 40px; flex: 1 1 auto; aspect-ratio: 1 / 1; border-radius: 24px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(8,25,64,.06); }
/* узоры подложки галереи (doc.bgPreset): рисуются в цвете предмета (--sa) поверх выбранного цвета подложки */
.spp-gal-main[data-bgp="aurora"] { background-image: radial-gradient(60% 55% at 12% 16%, color-mix(in srgb, var(--sa) 30%, transparent), transparent 72%), radial-gradient(55% 50% at 94% 84%, color-mix(in srgb, var(--sa) 24%, transparent), transparent 70%), radial-gradient(38% 38% at 80% 10%, rgba(255,255,255,.75), transparent 70%); }
.spp-gal-main[data-bgp="dots"] { background-image: radial-gradient(color-mix(in srgb, var(--sa) 34%, transparent) 1.6px, transparent 1.9px); background-size: 22px 22px; }
.spp-gal-main[data-bgp="grid"] { background-image: linear-gradient(rgba(8,25,64,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(8,25,64,.07) 1px, transparent 1px); background-size: 28px 28px; }
.spp-gal-main[data-bgp="ecg"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cpath d='M0 34H72l6-3 5 3h7l5-26 8 46 7-20h12l5-5 6 5h107' fill='none' stroke='%23081940' stroke-opacity='.32' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(rgba(8,25,64,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8,25,64,.045) 1px, transparent 1px); background-repeat: repeat-x, repeat, repeat; background-position: 0 88%, 0 0, 0 0; background-size: 240px 60px, 24px 24px, 24px 24px; }
.spp-gal-main[data-bgp="waves"] { background-image: radial-gradient(130% 52% at 28% 114%, color-mix(in srgb, var(--sa) 30%, transparent) 56%, transparent 57%), radial-gradient(135% 48% at 82% 120%, color-mix(in srgb, var(--sa) 18%, transparent) 56%, transparent 57%); }
.spp-shot { position: absolute; inset: var(--gp); display: flex; align-items: center; justify-content: center; }
.spp-shot[hidden] { display: none; }
.spp-shot picture { display: contents; }
.spp-shot img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 12px 32px rgba(8,25,64,.10); }
/* плашки преимуществ на слайдах листалки: показываются вместе со своим слайдом, в стиле плашек «до / после» */
.spp-gchips { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.spp-gchips[hidden] { display: none; }
.spp-gchips .spp-bachip { max-width: 100%; font-size: 14px; line-height: 18px; padding: 8px 14px 8px 8px; border-radius: 12px; box-shadow: 0 6px 16px rgba(8,25,64,.18); }
.spp-gchips .spp-bachip i { width: 24px; height: 24px; font-size: 13px; }
.spp-a4 { height: 100%; max-width: 100%; aspect-ratio: 1 / 1.414; border-radius: 16px; box-shadow: 0 12px 32px rgba(8,25,64,.10); background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 8% 8% 6%; text-align: center; }
.spp-a4 b { font: 700 clamp(20px, 6.4vw, 30px)/1.2 var(--av-head); color: var(--av-ink); overflow-wrap: break-word; hyphens: auto; }
.spp-a4 span { font-size: 17px; color: var(--av-muted-2); }
.spp-a4 i { font: 700 12px var(--av-head); letter-spacing: .08em; color: var(--av-ink); font-style: normal; margin-top: 24px; }
.spp-thumbs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spp-thumbs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.spp-thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: #FFFFFF; cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1.414; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.spp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spp-thumb.is-on { border-color: var(--av-blue); }
.spp-th-t { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--av-ink); padding: 4px; text-align: center; }
.spp-thumb:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.spp-collage { height: 100%; max-width: 100%; aspect-ratio: 0.72; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.spp-collage .spp-mini { aspect-ratio: auto; min-height: 0; }
.spp-mini { aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; background: var(--av-ink); color: #FFFFFF; box-shadow: 0 10px 24px rgba(8,25,64,.18); display: flex; }
.spp-mini img { width: 100%; height: 100%; object-fit: cover; }
.spp-mini-ph { flex-direction: column; justify-content: space-between; padding: 14px; }
.spp-mini-ph span { font-size: 9px; letter-spacing: .12em; font-weight: 700; opacity: .65; text-transform: uppercase; }
.spp-mini-ph b { font: 600 16px/20px var(--av-head); hyphens: auto; overflow-wrap: break-word; }
.spp-collage .spp-mini:nth-child(2) { background: #2A3A60; }
.spp-collage .spp-mini:nth-child(3) { background: #0047D1; }
.spp-collage .spp-mini:nth-child(4) { background: var(--av-muted-2); }
.spp-info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.spp-titles { display: flex; flex-direction: column; gap: 14px; }
.spp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.spp-chips .sp-pill { font-size: 13px; }
.spp-h1 { margin: 0; font: 600 36px/44px var(--av-head); color: var(--av-ink); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.spp-lead { margin: 0; color: var(--av-muted-2); font-size: 17px; line-height: 27px; }
.spp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; line-height: 24px; }
.spp-checks li { display: flex; gap: 12px; align-items: flex-start; }
.spp-checks svg { flex: none; margin-top: 2px; }
.spp-buy { container-type: inline-size; margin-top: auto; background: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--av-line); }
.spp-owned { display: flex; gap: 10px; align-items: flex-start; background: var(--av-sky); color: var(--sd); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 20px; }
.spp-owned svg { flex: none; }
.spp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spp-now { font: 500 28px/34px var(--av-head); color: var(--av-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spp-price s { font-size: 16px; color: var(--av-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spp-save { font-size: 14px; color: var(--av-blue-text, #0047D1); font-weight: 700; }
.spp-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--av-line-2); border-radius: 14px; overflow: hidden; }
.spp-facts div { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 0; }
.spp-facts div + div { border-left: 1.5px solid var(--av-line-2); }
.spp-facts dt { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--av-muted); font-weight: 600; }
.spp-facts dd { margin: 0; font-weight: 600; color: var(--av-ink); font-size: 15px; line-height: 21px; }
@container (max-width: 380px) {
  .spp-facts { grid-template-columns: minmax(0, 1fr); }
  .spp-facts div { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 14px; }
  .spp-facts div + div { border-left: 0; border-top: 1.5px solid var(--av-line-2); }
}
.spp-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.spp-btns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.spp-btns-2:has(> .sp-btn:only-child) { grid-template-columns: minmax(0, 1fr); }
.spp-btns-2 .sp-btn { min-height: 48px; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.2; }
.spp-safe { margin: 0; font-size: 14px; line-height: 20px; color: var(--av-muted); display: flex; gap: 10px; align-items: flex-start; }
.spp-safe svg { flex: none; }
.spp-toc { display: flex; flex-direction: column; gap: 10px; }
.spp-tsec { background: #FFFFFF; border-radius: 16px; padding: 0 24px; border: 1px solid transparent; transition: border-color .25s ease; }
.spp-tsec:hover:not(.is-open) { border-color: var(--av-line-2); }
.spp-tsec.is-open { border-color: var(--sa); }
.spp-th { margin: 0; font: inherit; }
.spp-tsum { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 72px; color: var(--av-ink); }
.spp-tsum:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; border-radius: 12px; }
.spp-tnum { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 600 15px/1 var(--av-head); background: var(--sl); color: var(--sd); }
.spp-ttl { flex: 1; min-width: 0; font-weight: 800; font-size: 19px; line-height: 26px; }
.spp-tico { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--sl); color: var(--sd); display: flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.spp-tico svg { transition: transform .3s ease; }
.spp-tsec.is-open .spp-tico { background: var(--sa); color: #FFFFFF; }
.spp-tsec.is-open .spp-tico svg { transform: rotate(45deg); }
.spp-tbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.spp-tsec.is-open .spp-tbody { grid-template-rows: 1fr; }
.spp-tin { overflow: hidden; min-height: 0; }
.spp-tin { transition: visibility .3s; }
.spp-tsec:not(.is-open) .spp-tin { visibility: hidden; }
.spp-tlist { margin: 0; padding: 0 0 24px 60px; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 24px; color: var(--av-muted-2); }
.spp-tlist li { display: flex; align-items: baseline; gap: 10px; }
.spp-tlist li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sa); transform: translateY(-2px); }
.spp-tgroups { display: flex; flex-direction: column; gap: 18px; padding: 0 0 24px 60px; }
.spp-tgroups .spp-tlist { padding: 0; }
.spp-tgh { font-weight: 800; font-size: 16px; line-height: 22px; color: var(--av-ink); margin-bottom: 6px; }
.spp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spp-why-c { background: #FFFFFF; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.spp-why-img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.spp-why-b { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.spp-why-n { width: 36px; height: 36px; border-radius: 10px; background: var(--sd); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 600 15px var(--av-head); }
.spp-why-b h3 { margin: 0; font-size: 19px; line-height: 26px; color: var(--av-ink); }
.spp-why-b p { margin: 0; font-size: 15px; line-height: 24px; color: var(--av-muted-2); }
.spp-ba { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; user-select: none; background: #F4F1EA; }
.spp-ba-l, .spp-ba-r { position: absolute; inset: 0; }
.spp-ba-r { clip-path: inset(0 0 0 var(--pos)); background: #FFFFFF; }
.spp-ba img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spp-ba-lbl { position: absolute; top: 20px; left: 24px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A7F6A; background: rgba(255,255,255,.85); border-radius: 99px; padding: 4px 10px; }
.spp-ba-lbl-r { left: auto; right: 24px; color: var(--av-blue); }
.spp-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--av-ink); pointer-events: none; }
.spp-ba-knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--av-ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 6px 18px rgba(8,25,64,.3); }
.spp-ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.spp-ba:has(input:focus-visible) .spp-ba-knob { outline: 3px solid var(--av-blue); outline-offset: 3px; }
.spp-ba-over { position: absolute; bottom: 24px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.spp-ba-over-l { left: 24px; align-items: flex-start; }
.spp-ba-over-r { right: 24px; align-items: flex-end; }
.spp-bachip { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 22px; font-weight: 800; padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: 0 6px 18px rgba(8,25,64,.16); background: #FFFFFF; color: var(--av-red); }
.spp-bachip i { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 15px; flex: none; background: #F6E5E8; color: var(--av-red); }
.spp-bachip.is-good { background: var(--av-ink); color: #FFFFFF; }
.spp-bachip.is-good i { background: var(--av-blue); color: #FFFFFF; }
.spp-ba-legend { display: none; }
.spp-ba-cap { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A7F6A; }
.spp-ba-cap.is-good { color: var(--av-blue); }
.spp-offer-h { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.spp-offer-h p { margin: 0; color: var(--av-muted); font-size: 16px; line-height: 24px; }
.spp-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; width: 100%; }
.spp-oc { background: #FFFFFF; border-radius: 24px; border: 1px solid var(--av-line); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(8,25,64,.08); position: relative; min-width: 0; }
.spp-oc-pack { border-color: #B9CCF5; }
/* прежнее синее и сиреневое свечение сверху карточки пака, теперь движется: слой больше блока, его покачивают и поворачивают.
   Без @media (prefers-reduced-motion): на Windows с отключёнными анимациями он тоже должен переливаться */
.spp-oc-pack .spp-oc-top { overflow: hidden; }
.spp-oc-top > .spp-oc-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spp-oc-glow::before { content: ""; position: absolute; inset: -35%; background: radial-gradient(120% 70% at 15% 0%, rgba(0,88,255,.22), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(115,0,255,.16), transparent 70%), radial-gradient(60% 50% at 85% 10%, rgba(248,201,245,.55), transparent 70%); animation: sp-glow 9s ease-in-out infinite alternate; will-change: transform; }
@keyframes sp-glow { 0% { transform: translate(-7%, -5%) rotate(0deg) scale(1); } 50% { transform: translate(7%, 4%) rotate(14deg) scale(1.12); } 100% { transform: translate(-4%, 7%) rotate(-10deg) scale(1.04); } }
.spp-oc-top { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.spp-oc-top > * { position: relative; }
.spp-oc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.spp-oc-n { font-weight: 800; font-size: 20px; line-height: 26px; color: var(--av-ink); }
.spp-oc-pr { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spp-oc-price { font: 600 40px/44px var(--av-head); color: var(--av-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spp-oc-note { font-size: 14px; line-height: 19px; color: var(--av-muted); }
.spp-oc-list { list-style: none; margin: 0; padding: 24px 28px 28px; display: grid; gap: 14px; border-top: 1px solid var(--av-line); font-size: 16px; line-height: 22px; flex: 1; align-content: start; }
.spp-oc-list li { display: flex; gap: 12px; align-items: flex-start; }
.spp-oc-list svg { flex: none; margin-top: 1px; }
.spp-oc-more { padding: 0 28px 24px; font-size: 14px; font-weight: 700; color: var(--av-blue) !important; text-decoration: none; }
/* «Варианты товара»: те же карточки, что в «Одна методичка или весь пак», до трёх в ряд */
.spp-vars-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 16px; }
.spp-oc-badge { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--av-sky); color: var(--av-blue-text, #0047D1); }
.spp-kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spp-kit-c { background: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.spp-kit-stack { position: relative; width: 46%; align-self: center; margin-block: 6px 4px; aspect-ratio: 1 / 1.414; }
.spp-kit-cover { position: absolute; inset: 0; z-index: 2; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px rgba(8,25,64,.18); background: var(--av-ink); display: flex; }
.spp-kit-cover img { width: 100%; height: 100%; object-fit: cover; }
.spp-kit-ph { display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: #FFFFFF; width: 100%; }
.spp-kit-ph span { font-size: 9px; letter-spacing: .12em; font-weight: 700; opacity: .65; text-transform: uppercase; }
.spp-kit-ph b { font: 600 13px/17px var(--av-head); hyphens: auto; overflow-wrap: break-word; }
.spp-kit-c:nth-child(2) .spp-kit-cover { background: #2A3A60; }
.spp-kit-c:nth-child(3) .spp-kit-cover { background: #0047D1; }
.spp-kit-c:nth-child(4) .spp-kit-cover { background: var(--av-muted-2); }
.spp-kit-page { position: absolute; inset: 0; z-index: 1; background: #FFFFFF; border-radius: 8px; box-shadow: 0 6px 16px rgba(8,25,64,.16); overflow: hidden; padding: 10% 9%; display: flex; flex-direction: column; gap: 6%; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.spp-kit-page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spp-kit-page i { height: 3%; border-radius: 2px; background: #DDE2EC; }
.spp-kit-page i:first-child { height: 7%; width: 55%; background: var(--av-ink); opacity: .8; }
.spp-kit-page i:nth-child(2) { height: 34%; background: var(--av-sky); border-radius: 5px; }
.spp-kit-page-l { transform: translateX(-14%) scale(.94); }
.spp-kit-page-r { transform: translateX(14%) scale(.94); }
.spp-kit-c:hover .spp-kit-page-l, .spp-kit-c:focus-within .spp-kit-page-l { transform: translateX(-52%) scale(.94); }
.spp-kit-c:hover .spp-kit-page-r, .spp-kit-c:focus-within .spp-kit-page-r { transform: translateX(52%) scale(.94); }
@media (hover: none) { .spp-kit-page-l { transform: translateX(-34%) scale(.94); } .spp-kit-page-r { transform: translateX(34%) scale(.94); } }
.spp-kit-n { font-weight: 800; font-size: 17px; line-height: 23px; color: var(--av-ink); }
.spp-kit-pts { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 8px; font-size: 15px; line-height: 21px; color: var(--av-muted-2); flex: 1; }
.spp-kit-pts li { display: flex; gap: 8px; align-items: flex-start; }
.spp-kit-pts svg { flex: none; margin-top: 2px; }
.spp-kit-sp { flex: 1; }
.spp-kit-pr { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--av-line); }
.spp-kit-pr div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--av-muted); }
.spp-kit-pr b { color: var(--av-ink); font-variant-numeric: tabular-nums; }
.spp-kit-pr b.is-blue { color: var(--av-blue-text, #0047D1); }
.spp-kit-link { font-size: 14px; font-weight: 700; color: var(--av-blue) !important; text-align: center; text-decoration: none; }
.spp-mbar { display: none; }

/* ---------- «О проекте» (About) ---------- */
.sa-top { padding-top: 32px; }
.sa-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 64px 56px; background: linear-gradient(115deg, #DCE6FF 0%, #E8E1FF 50%, #F8C9F5 100%); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.sa-hero-t { display: flex; flex-direction: column; gap: 20px; }
.sa-pill { align-self: flex-start; background: rgba(255,255,255,.75); color: var(--av-ink); border-radius: 99px; padding: 6px 14px; font: 700 13px/18px var(--av-font); }
.sa-h1 { margin: 0; font: 600 42px/52px var(--av-head); color: var(--av-ink); text-wrap: balance; }
.sa-lead { margin: 0; color: var(--av-muted-2); font-size: 18px; line-height: 29px; max-width: 560px; }
.sa-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sa-btns .sp-btn { min-height: 48px; padding: 0 22px; }
.sa-stack { position: relative; height: 340px; }
.sa-sheet { position: absolute; width: 200px; aspect-ratio: 1 / 1.414; background: #FFFFFF; border-radius: 10px; box-shadow: 0 18px 40px rgba(8,25,64,.18); padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.sa-sheet-l { left: 4%; top: 30px; transform: rotate(-8deg); }
.sa-sheet-r { right: 4%; top: 30px; transform: rotate(8deg); }
.sa-sheet-c { left: 50%; margin-left: -100px; top: 0; z-index: 2; box-shadow: 0 26px 56px rgba(8,25,64,.26); }
.sa-bar { height: 9px; border-radius: 3px; background: #DDE2EC; }
.sa-hd { height: 14px; width: 62%; border-radius: 4px; }
.sa-blk { height: 70px; border-radius: 8px; }
.sa-blk-s { height: 46px; }
.sa-nums-sec { padding-bottom: 8px; }
.sa-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sa-num { background: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sa-num b { font: 600 36px/44px var(--av-head); color: var(--av-ink); font-variant-numeric: tabular-nums; }
.sa-num span { font-size: 15px; line-height: 22px; color: var(--av-muted); }
.sa-why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.sa-why-t { display: flex; flex-direction: column; gap: 18px; }
.sa-why-t p { margin: 0; font-size: 18px; line-height: 30px; color: var(--av-muted-2); }
.sa-why-t .sa-why-lead { font-weight: 700; color: var(--av-ink); font-size: 20px; line-height: 31px; }
.sa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-step { background: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.sa-step-n { width: 36px; height: 36px; border-radius: 10px; background: var(--av-ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 600 16px var(--av-head); }
.sa-step h3 { margin: 0; font: 600 18px/24px var(--av-head); color: var(--av-ink); }
.sa-step p { margin: 0; font-size: 16px; line-height: 24px; color: var(--av-muted-2); }
.sa-inside { background: #FFFFFF; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.sa-page { position: relative; width: min(100%, 340px); aspect-ratio: 1 / 1.414; margin: 0 auto; background: #FFFFFF; border-radius: 12px; box-shadow: 0 20px 50px rgba(8,25,64,.14); border: 1px solid var(--av-line); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.sa-page > span:not(.sa-mk) { border-radius: 4px; display: block; }
.sa-sheet-p { padding: 0; overflow: hidden; display: block; }
.sa-sheet-p img, .sa-page-p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-page-p { padding: 0; overflow: hidden; display: block; }
.sa-step-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--av-bg); }
.sa-step-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa-page-tbl { height: 18%; border-radius: 8px; background: repeating-linear-gradient(180deg, #F0F0F5 0 18px, #FFFFFF 18px 36px); border: 1px solid var(--av-line); }
.sa-mk { position: absolute; right: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--av-blue); color: #FFFFFF; font: 800 13px/26px var(--av-font); text-align: center; box-shadow: 0 0 0 3px #FFFFFF; }
.sa-feat { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.sa-feat li { display: flex; gap: 14px; align-items: flex-start; }
.sa-feat .sa-mk { position: static; flex: none; }
.sa-feat b { display: block; color: var(--av-ink); font-size: 17px; line-height: 24px; }
.sa-feat span:not(.sa-mk) { font-size: 16px; line-height: 24px; color: var(--av-muted-2); }
.sa-have-sec { padding-top: 8px; }
.sa-have { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-hv { background: #FFFFFF; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
a.sa-hv:hover { border-color: var(--av-blue); }
.sa-hv-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.sa-hv-ic .hdr-ico { width: 24px; height: 24px; }
.sa-hv h3 { margin: 0; font: 600 19px/26px var(--av-head); color: var(--av-ink); }
.sa-hv p { margin: 0; font-size: 16px; line-height: 24px; color: var(--av-muted-2); flex: 1; }
.sa-go { font-weight: 700; font-size: 15px; color: var(--av-blue); }
.sa-soonb { align-self: flex-start; background: #FDF1DE; color: #7A4A00; border-radius: 99px; padding: 4px 12px; font: 700 13px/18px var(--av-font); }
.sa-cta { background: var(--av-ink); border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: #FFFFFF; }
.sa-cta-t { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.sa-cta-t span:last-child { color: var(--av-line-2); font-size: 16px; line-height: 25px; }
.sa-cta-h { font: 600 26px/34px var(--av-head); text-wrap: balance; }
.sa-hv:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- документ (Document) ---------- */
.sd { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }

.sd-head { display: flex; flex-direction: column; gap: 12px; }
.sd-h1 { margin: 0; font: 600 36px/44px var(--av-head); color: var(--av-ink); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--av-muted); }
.sd-meta a, .sd-doc a, .sd-revs a { color: var(--av-blue) !important; }
.sd-lay { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.sd-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.sd-box { background: #FFFFFF; border-radius: 18px; padding: 18px 12px; display: flex; flex-direction: column; }
.sd-cap { font-size: 12px; letter-spacing: .1em; font-weight: 800; color: var(--av-muted); padding: 0 10px 8px; text-transform: uppercase; }
.sd-tl { display: block; padding: 7px 10px; border-radius: 8px; font-size: 15px; line-height: 21px; color: var(--av-muted-2) !important; text-decoration: none; }
.sd-tl:hover { background: var(--av-sky); color: var(--av-ink) !important; }
.sd-tl.is-on { background: var(--av-ink); color: #FFFFFF !important; }
.sd-tm { display: none; background: #FFFFFF; border-radius: 16px; padding: 0 18px; }
.sd-tm summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--av-ink); }
.sd-tm summary::-webkit-details-marker { display: none; }
.sd-tm[open] summary svg { transform: rotate(180deg); }
.sd-tm-in { display: flex; flex-direction: column; padding-bottom: 12px; }
.sd-doc { background: #FFFFFF; border-radius: 24px; padding: 48px 56px; max-width: 820px; min-width: 0; }
.sd-doc h2 { position: relative; font: 600 22px/30px var(--av-head); color: var(--av-ink); margin: 40px 0 14px; scroll-margin-top: 88px; overflow-wrap: break-word; hyphens: auto; }
.sd-doc h2:first-child { margin-top: 0; }
.sd-doc h3 { font-size: 18px; line-height: 26px; color: var(--av-ink); margin: 24px 0 10px; }
.sd-anc { position: absolute; margin-left: 8px; opacity: 0; color: #8A93A3 !important; text-decoration: none; font: 600 18px var(--av-font); }
.sd-doc h2:hover .sd-anc, .sd-anc:focus { opacity: 1; }
.sd-doc p { margin: 0 0 14px; color: #2E333D; }
.sd-doc ul, .sd-doc ol { margin: 0 0 14px; padding-left: 22px; color: #2E333D; }
.sd-doc li { margin-bottom: 6px; }
.sd-tbl { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--av-line); border-radius: 14px; }
.sd-tbl table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 22px; }
.sd-tbl th { background: var(--av-bg); color: var(--av-ink); text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--av-line); }
.sd-tbl td { padding: 12px 14px; border-bottom: 1px solid #EEF1F6; vertical-align: top; color: #2E333D; }
.sd-tbl tr:last-child td { border-bottom: 0; }
.sd-doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--av-bg); border-radius: 6px; padding: 1px 6px; color: var(--av-ink); }
.sd-ask { margin-top: 36px; background: var(--av-sky); border-radius: 16px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; color: var(--av-ink); }
.sd-ask svg { flex: none; }
.sd-revs { margin: 0; padding: 24px 28px; background: #FFFFFF; border-radius: 20px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sd-cur { color: var(--av-muted); font-size: 14px; }
.sdl { display: flex; flex-direction: column; gap: 28px; }
.sdl-lead { margin: 0; max-width: 720px; font-size: 17px; line-height: 26px; color: var(--av-muted-2); }
.sdl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sdl-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 16px; align-items: center; background: #FFFFFF; border-radius: 20px; padding: 22px 22px 18px; color: var(--av-ink) !important; text-decoration: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s ease, transform .2s ease; }
.sdl-card:hover { box-shadow: inset 0 0 0 1.5px var(--av-blue); transform: translateY(-2px); }
.sdl-ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; background: var(--av-sky); color: var(--av-blue); display: flex; align-items: center; justify-content: center; align-self: start; }
.sdl-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sdl-t b { font: 700 17px/24px var(--av-font); color: var(--av-ink); overflow-wrap: break-word; hyphens: auto; }
.sdl-t span { font-size: 14px; line-height: 20px; color: var(--av-muted); }
.sdl-go { grid-column: 2; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font: 700 15px/20px var(--av-font); color: var(--av-blue); }
.sdl-ask { margin-top: 8px; max-width: 820px; }
@media (max-width: 960px) { .sdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sdl-grid { grid-template-columns: minmax(0, 1fr); } .sdl-card { padding: 18px; } }

/* ---------- 404 (NotFound) ---------- */
.snf { padding-block: 48px 64px; display: flex; flex-direction: column; gap: 40px; min-height: calc(100vh - var(--av-hdr-h)); }
.snf-hero { position: relative; border-radius: 24px; padding: 56px 32px; background: linear-gradient(115deg, #DCE6FF 0%, #E8E1FF 50%, #F8C9F5 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.snf-code { font: 700 96px/96px var(--av-head); color: var(--av-ink); letter-spacing: .02em; }
.snf-h1 { margin: 0; font: 600 32px/40px var(--av-head); color: var(--av-ink); text-wrap: balance; }
.snf-p { margin: 0; font-size: 17px; line-height: 26px; color: var(--av-muted-2); max-width: 560px; }
.snf-search { position: relative; width: 100%; max-width: 560px; margin-top: 8px; }
.snf-sbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.snf-field { position: relative; }
.snf-inp { height: 54px; border-radius: 14px; border: 1.5px solid var(--av-blue); padding: 0 16px 0 46px; font: 500 16px var(--av-font); color: var(--av-ink); width: 100%; background: #FFFFFF; }
.snf-inp:focus { outline: none; box-shadow: 0 0 0 3px var(--av-sky); }
.snf-sico { position: absolute; left: 16px; top: 17px; color: var(--av-muted); pointer-events: none; display: flex; }
.snf-btn { min-height: 54px; border-radius: 14px; padding: 0 22px; }
.snf-res { position: absolute; left: 0; right: 0; top: 62px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 18px 40px rgba(8,25,64,.16), 0 0 0 1px rgba(8,25,64,.06); padding: 6px; z-index: 10; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.snf-ri { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--av-ink) !important; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 20px; }
.snf-ri:hover, .snf-ri.is-cur { background: var(--av-sky); }
.snf-ri span { font: 600 14px var(--av-head); white-space: nowrap; }
.snf-none { padding: 10px 12px; font-size: 15px; color: var(--av-muted); }
.snf-sec { display: flex; flex-direction: column; gap: 16px; }
.snf-h2 { margin: 0; font: 600 28px/36px var(--av-head); color: var(--av-ink); }
.snf-subj { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.snf-st { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 110px; border-radius: 18px; padding: 16px; text-decoration: none; font-weight: 800; font-size: 15px; line-height: 20px; transition: transform .15s; background: var(--sl); color: var(--sd) !important; }
.snf-st:hover { transform: translateY(-2px); }
.snf-st i { width: 28px; height: 28px; border-radius: 9px; display: block; background: var(--s); }
.snf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.snf-links { display: flex; gap: 12px; flex-wrap: wrap; }
.snf-line { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; border-radius: 12px; padding: 0 20px; background: #FFFFFF; color: var(--av-ink) !important; font: 700 15px/1 var(--av-font); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--av-line-2); }
.snf-line:hover { box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.snf-line .hdr-ico { width: 20px; height: 20px; }
.snf-st:focus-visible, .snf-line:focus-visible, .snf-ri:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- планшет ---------- */
@media (max-width: 960px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-krow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-packs, .sh-soon { grid-template-columns: minmax(0, 1fr); }
  .sh-advs { grid-template-columns: minmax(0, 1fr); }
  .sp-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-arts-s, .sp-also-grid { grid-template-columns: minmax(0, 1fr); }
  .spp-hero { grid-template-columns: minmax(0, 1fr); }
  .spp-gal-main { --gp: 24px; }
  .spp-buy { margin-top: 0; }
  .spp-offer, .spp-why, .spp-vars-3 { grid-template-columns: minmax(0, 1fr); }
  .spp-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-hero { grid-template-columns: minmax(0, 1fr); padding: 48px 32px; }
  .sa-stack { height: 280px; }
  .sa-why { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-inside, .sa-have { grid-template-columns: minmax(0, 1fr); }
  .sd-lay { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sd-side { display: none; }
  .sd-tm { display: block; }
  .sd-doc { padding: 32px 28px; max-width: none; }
  .snf-subj { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .snf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  .sp-main { font-size: 16px; line-height: 26px; }
  .sp-sec { padding-block: 36px; }
  .sp-col { gap: 16px; }
  .sp-h2, .snf-h2, .sh-packs-t { font-size: 22px; line-height: 30px; }
  .sp-arws { display: none; }
  .sp-rv-item { flex-basis: 84%; }
  .rvc { height: 380px; }
  .sp-q { padding: 0 16px; }
  .sp-q summary { font-size: 16px; line-height: 22px; min-height: 60px; padding-block: 12px; }
  .sp-faqpic { max-width: none; }
  .sp-faq-a { font-size: 15px; line-height: 23px; }
  .sp-faqfig { grid-template-columns: minmax(0, 1fr); }
  .sp-arts { grid-template-columns: minmax(0, 1fr); }
  .sh-hero { padding: 44px 20px; }
  .sh-hero-mark { width: 240px; height: 240px; left: -50px; top: -20px; }
  .sh-h1 { font-size: 26px; line-height: 34px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-krow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-tabs { gap: 8px; }
  .sh-tab { height: 38px; padding: 0 14px; font-size: 15px; }
  .sh-packs { padding: 20px; }
  .sh-soon-row { grid-template-columns: minmax(0, 1fr); }
  .spp-h1 { font-size: 28px; line-height: 36px; }
  .spp-tsec { padding: 0 14px; }
  .spp-tsum { gap: 12px; min-height: 64px; }
  .spp-ttl { font-size: 16px; line-height: 22px; }
  .spp-tnum { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
  .spp-tlist { padding: 0 0 18px 44px; font-size: 15px; line-height: 22px; }
  .spp-tgroups { padding: 0 0 18px 44px; }
  .spp-ba { aspect-ratio: 4 / 5; }
  .spp-ba-over { display: none; }
  .spp-ba-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .spp-ba-legend > div { display: flex; flex-direction: column; gap: 8px; }
  .spp-ba-legend .spp-bachip { box-shadow: none; font-size: 14px; line-height: 18px; padding: 8px 12px 8px 8px; }
  .sp-ask-o { flex-wrap: wrap; }
  .sp-ask-go { margin-left: 58px; }
  .spp-gchips { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
  .spp-gchips .spp-bachip { font-size: 13px; line-height: 17px; padding: 6px 12px 6px 6px; }
  .spp-oc-top { padding: 22px 20px 20px; }
  .spp-oc-list { padding: 20px; }
  .spp-oc-price { font-size: 32px; line-height: 38px; }
  .spp-kit { grid-template-columns: minmax(0, 1fr); }
  .spp-thumbs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .spp-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #FFFFFF; border-top: 1px solid var(--av-line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 12px; align-items: center; box-shadow: 0 -6px 20px rgba(8,25,64,.08); }
  .spp-mbar-p { display: flex; flex-direction: column; flex: none; }
  .spp-mbar-p b { font: 600 20px/24px var(--av-head); color: var(--av-ink); }
  .spp-mbar-p s { font-size: 13px; color: var(--av-muted); }
  .spp-mbar .sp-btn { flex: 1; min-height: 48px; }
  .spp { padding-bottom: 80px; }
  html.av-lock .spp-mbar { display: none; }
  .sa-hero { padding: 32px 20px; gap: 24px; }
  .sa-h1 { font-size: 28px; line-height: 36px; }
  .sa-stack { height: 230px; }
  .sa-sheet { width: 140px; padding: 12px 10px; gap: 6px; }
  .sa-sheet-c { margin-left: -70px; }
  .sa-blk { height: 44px; }
  .sa-num { padding: 18px; }
  .sa-num b { font-size: 26px; line-height: 32px; }
  .sa-why-t p { font-size: 16px; line-height: 26px; }
  .sa-why-t .sa-why-lead { font-size: 17px; line-height: 26px; }
  .sa-steps { grid-template-columns: minmax(0, 1fr); }
  .sa-inside { padding: 20px; gap: 24px; }
  .sa-cta { padding: 28px 20px; flex-direction: column; align-items: stretch; gap: 24px; }
  .sa-cta .sp-btn { width: 100%; justify-content: center; text-align: center; }
  .sa-btns { flex-direction: column; align-items: stretch; width: 100%; }
  .sd-h1 { font-size: 24px; line-height: 32px; }
  .sd-anc { display: none; }
  .sd-doc { padding: 22px 18px; border-radius: 18px; }
  .sd-doc h2 { font-size: 18px; line-height: 25px; margin-top: 30px; }
  .snf { padding-block: 24px 40px; gap: 28px; }
  .snf-hero { padding: 36px 18px; }
  .snf-code { font-size: 64px; line-height: 64px; }
  .snf-h1 { font-size: 24px; line-height: 30px; }
  .snf-sbox { grid-template-columns: minmax(0, 1fr); }
  .snf-res { top: 124px; }
  .snf-subj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snf-st { min-height: 88px; }
  .snf-cards { grid-template-columns: minmax(0, 1fr); }
  .snf-links .snf-line { flex: 1 1 100%; justify-content: center; }
}



/* содержание: вложенные пункты (2 и 3 уровень) */
.spp-tlist li.spp-tl1 { margin-left: 22px; }
.spp-tlist li.spp-tl2 { margin-left: 44px; }
.spp-tlist li.spp-tl1::before { width: 5px; height: 5px; background: transparent; border: 1.5px solid var(--sa); box-sizing: border-box; }
.spp-tlist li.spp-tl2::before { width: 8px; height: 2px; border-radius: 1px; transform: translateY(-4px); }
.spp-tlist li.spp-tl1, .spp-tlist li.spp-tl2 { font-size: 15px; }
@media (max-width: 640px) {
  .spp-tlist li.spp-tl1 { margin-left: 16px; }
  .spp-tlist li.spp-tl2 { margin-left: 32px; }
}

/* бесплатные обновления (E2): плашка у цены; показывает site-pages.js, если включена в админке */
.spp-upd { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #E8F5EE; color: #17623C; font-size: 14px; line-height: 20px; }
.spp-upd[hidden] { display: none; }
.spp-upd svg { flex: none; margin-top: 1px; }
.spp-upd > span { display: flex; flex-direction: column; min-width: 0; }
.spp-upd > span > span { font-size: 13px; line-height: 18px; color: #2E7A53; }
.spp-upd [data-upd-date]:empty { display: none; }

/* ---------- варианты товара: «Методичка | PRO» в карточке покупки (S20) ---------- */
.spp-vsw { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 5px; background: var(--sl, var(--av-sky)); border-radius: 18px; margin-top: auto; }
.spp-vsw + .spp-buy { margin-top: 0; }
.spp-vsw-b { appearance: none; border: 0; background: transparent; border-radius: 13px; padding: 9px 10px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; font: inherit; color: var(--sd, var(--av-ink)); min-width: 0; transition: background-color .2s ease, box-shadow .2s ease; }
.spp-vsw-n { font-size: 14px; line-height: 18px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.spp-vsw-b b { font: 600 15px/20px var(--av-head); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .85; }
.spp-vsw-b:hover { background: rgba(255, 255, 255, .55); }
.spp-vsw-b[aria-checked="true"] { background: #FFFFFF; box-shadow: 0 1px 3px rgba(8, 25, 64, .12), 0 0 0 1.5px var(--sa, var(--av-ink)); }
.spp-vsw-b:focus-visible { outline: 2px solid var(--sa, var(--av-blue)); outline-offset: 2px; }
.spp-vinc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; line-height: 21px; color: var(--av-ink); }
.spp-vinc li { display: flex; gap: 10px; align-items: flex-start; }
.spp-vinc svg { flex: none; margin-top: 2px; color: var(--sa, var(--av-blue)); }
.spp-vinc li.is-plus { font-weight: 600; }
.spp-vinc li.is-plus svg { color: var(--sd, var(--av-ink)); }
@media (prefers-reduced-motion: reduce) { .spp-vsw-b { transition: none; } }
