/* site-s26.css — пакет S26: карточки каталога по две в ряд на телефоне, поиск в шапке главной, «Скоро выйдет»,
   «Преимущества», анимированные подложки страницы товара, блоки «Тесты», «Карточки», «Клиника».
   Подключается после site-pages.css и его переопределяет. Анимации не отключаются по prefers-reduced-motion
   (решение Степана для сайта, как и в site-pages.css). */

/* ---------- каталог: на телефоне две карточки в ряд ---------- */
@media (max-width: 640px) {
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcd { padding: 8px; gap: 8px; border-radius: 16px; }
  .pcd-media { border-radius: 11px; }
  .pcd-tag { top: 6px; left: 6px; padding: 3px 8px; font-size: 11px; line-height: 14px; }
  .pcd-dots { bottom: 7px; gap: 4px; }
  .pcd-dot { width: 5px; height: 5px; }
  .pcd-dot.is-on { width: 14px; }
  .pcd-s1 { padding: 12px; gap: 7px; }
  .pcd-cap { font-size: 10px; }
  .pcd-li { font-size: 12px; line-height: 16px; gap: 6px; }
  .pcd-li svg { width: 13px; height: 13px; margin-top: 1.5px; }
  .pcd-s2 { gap: 6px; }
  .pcd-cap2 { font-size: 11px; }
  .pcd-plate { font-size: 14px; line-height: 18px; padding: 6px 8px; }
  .pcd-name { font-size: 14px; line-height: 19px; min-height: 38px; padding: 0 2px; }
  .pcd-price { padding: 0 2px; gap: 2px 6px; }
  .pcd-price b { font-size: 17px; line-height: 22px; }
  .pcd-price s { font-size: 12px; }
  .pcd-btn { min-height: 40px; padding: 0 6px; gap: 6px; border-radius: 10px; font-size: 14px; }
  .pcd-btn svg { width: 16px; height: 16px; }
  .pcd-in { white-space: normal; text-align: center; line-height: 1.15; min-height: 40px; font-size: 13px; }
  .sh-packs { grid-column: 1 / -1; }
}

/* ---------- «Скоро выйдет»: обложка формата A4 слева, подписи и способ сообщить справа; Telegram первым ---------- */
.sh-soon { padding: 24px; gap: 32px; border-radius: 24px; grid-template-columns: 188px minmax(0, 1fr); align-items: stretch; }
.sh-soon-c { aspect-ratio: 210 / 297; border-radius: 12px; align-self: start; }
.sh-soon-c .pcd-plate { font-size: 15px; line-height: 19px; padding: 7px 8px; border-radius: 8px; }
.sh-soon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-soon-c:has(img) { background: none; }
.sh-soon-r { display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; max-width: 520px; }
.sh-soon-t { gap: 8px; }
.sh-soon-n { font-size: 24px; line-height: 30px; }
.sh-soon-t p { font-size: 16px; line-height: 24px; }
.sh-soon-f { gap: 12px; }
.sh-soon-sw { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 12px; background: #EEF1F6; }
.sh-soon-sw[hidden] { display: none; }
.sh-soon-m { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--av-muted); font: 600 14px/1 var(--av-font); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.sh-soon-m:hover:not(.is-on) { color: var(--av-ink); }
.sh-soon-m.is-on { background: #FFFFFF; color: var(--av-ink); box-shadow: 0 1px 3px rgba(8,25,64,.14); }
.sh-soon-m:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.sh-soon-pane[hidden] { display: none; }
.sh-soon-pane > .sp-btn { width: 100%; }
.sh-soon-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--av-muted); }
@media (max-width: 960px) {
  .sh-soon { grid-template-columns: 148px minmax(0, 1fr); padding: 20px; gap: 24px; }
}
@media (max-width: 640px) {
  .sh-soon { grid-template-columns: 104px minmax(0, 1fr); padding: 16px; gap: 14px 16px; }
  .sh-soon-r { display: contents; }
  .sh-soon-t { align-self: center; }
  .sh-soon-n { font-size: 19px; line-height: 25px; }
  .sh-soon-t p { font-size: 14px; line-height: 20px; }
  .sh-soon-f { grid-column: 1 / -1; }
  .sh-soon-c .pcd-plate { font-size: 11px; line-height: 14px; padding: 4px 5px; border-radius: 6px; }
}

/* ---------- первый экран главной: поиск по темам ---------- */
.sh-hero-s { overflow: visible; background: none; padding: 96px 32px 88px; gap: 28px; z-index: 5; }
.sh-hero-bg { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: linear-gradient(115deg, #DCE6FF 0%, #E8E1FF 50%, #F8C9F5 100%); pointer-events: none; }
.sh-hero-s > :not(.sh-hero-bg) { position: relative; }
.sh-hero-s .sh-h1 { font-size: 44px; line-height: 54px; max-width: 760px; }
.sh-hero-s .sh-lead { max-width: 560px; }
.sh-sr { position: relative; width: min(720px, 100%); margin-top: 4px; text-align: left; }
.sh-sr-box { position: relative; display: flex; align-items: center; height: 64px; border-radius: 18px; background: #FFFFFF; box-shadow: none; }
.sh-sr-ico { position: absolute; left: 20px; top: 50%; margin-top: -11px; color: var(--av-muted); display: flex; pointer-events: none; }
.sh-sr:focus-within .sh-sr-ico { color: var(--av-blue); }
.sh-sr-in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 124px 0 56px; font: 500 18px/24px var(--av-font); color: var(--av-ink); border-radius: 18px; outline: none; -webkit-appearance: none; appearance: none; }
.sh-sr-in::placeholder { color: var(--av-muted); opacity: 1; }
.sh-sr-in::-webkit-search-cancel-button { display: none; }
.sh-sr-ph { position: absolute; left: 56px; right: 130px; top: 0; bottom: 0; display: flex; align-items: center; font: 500 18px/24px var(--av-font); color: var(--av-muted); white-space: nowrap; overflow: hidden; pointer-events: none; }
.sh-sr-ph[hidden] { display: none; }
.sh-sr-ph::after { content: ""; flex: none; width: 2px; height: 22px; margin-left: 2px; background: var(--av-blue); animation: sh-sr-caret 1s steps(1) infinite; }
@keyframes sh-sr-caret { 50% { opacity: 0; } }
.sh-sr-key { position: absolute; right: 66px; top: 50%; margin-top: -12px; height: 24px; padding: 0 8px; display: flex; align-items: center; border-radius: 7px; background: #EEF1F6; color: var(--av-muted); font: 600 12px/1 var(--av-font); pointer-events: none; }
.sh-sr:focus-within .sh-sr-key { opacity: 0; }
.sh-sr-help { position: absolute; right: 14px; top: 50%; margin-top: -19px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #EEF1F6; color: var(--av-muted-2); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.sh-sr-help:hover, .sh-sr.has-tip .sh-sr-help { background: var(--av-ink); color: #FFFFFF; }
.sh-sr-help:focus-visible, .sh-sr-chip:focus-visible, .sh-sr-row:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.sh-sr-tip { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(400px, 100%); padding: 18px 20px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 18px 48px rgba(8,25,64,.22); color: var(--av-ink); font-size: 14px; line-height: 21px; animation: sh-sr-pop .18s ease; }
.sh-sr-tip[hidden] { display: none; }
.sh-sr-tip b { display: block; font: 600 16px/22px var(--av-head); margin-bottom: 8px; }
.sh-sr-tip ol { margin: 0 0 10px; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.sh-sr-tip p { margin: 0; color: var(--av-muted); font-size: 13px; line-height: 19px; }
@keyframes sh-sr-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sh-sr-list { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; right: 0; max-height: min(440px, 62vh); overflow: auto; padding: 8px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 18px 48px rgba(8,25,64,.22); animation: sh-sr-pop .16s ease; }
.sh-sr-list[hidden] { display: none; }
.sh-sr-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--av-ink); }
.sh-sr-row:hover, .sh-sr-row.is-cur { background: #EEF3FF; }
.sh-sr-pic { width: 48px; height: 48px; border-radius: 10px; background: var(--av-sky); overflow: hidden; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--av-head); color: var(--av-blue); }
.sh-sr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-sr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-sr-name { font: 600 16px/22px var(--av-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-sr-sub { font-size: 13px; line-height: 18px; color: var(--av-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-sr-price { font: 600 15px/20px var(--av-head); color: var(--av-ink); white-space: nowrap; }
.sh-sr-note { padding: 8px 10px 6px; font-size: 13px; color: var(--av-muted); }
.sh-sr-empty { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; font-size: 14px; line-height: 20px; color: var(--av-muted); }
.sh-sr-empty b { color: var(--av-ink); font-size: 16px; }
.sh-sr-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: 760px; }
.sh-sr-chip { height: 36px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); color: var(--av-ink); font: 500 14px/1 var(--av-font); cursor: pointer; transition: background .15s; }
.sh-sr-chip:hover { background: rgba(8,25,64,.09); }
@media (hover: none) { .sh-sr-key { display: none; } .sh-sr-in { padding-right: 70px; } .sh-sr-ph { right: 70px; } }
@media (max-width: 640px) {
  .sh-hero-s { padding: 56px 16px 48px; gap: 22px; }
  .sh-hero-s .sh-h1 { font-size: 28px; line-height: 35px; }
  .sh-hero-s .sh-lead { font-size: 15px; line-height: 22px; }
  .sh-sr { margin-top: 0; }
  .sh-sr-box { height: 56px; border-radius: 16px; }
  .sh-sr-ico { left: 16px; }
  .sh-sr-in { padding: 0 64px 0 48px; font-size: 16px; }
  .sh-sr-ph { left: 48px; right: 64px; font-size: 16px; }
  .sh-sr-help { right: 9px; width: 36px; height: 36px; margin-top: -18px; }
  .sh-sr-tip { right: -4px; left: -4px; width: auto; }
  .sh-sr-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .sh-sr-price { display: none; }
  .sh-sr-pic { width: 44px; height: 44px; }
  .sh-sr-try { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sh-sr-try::-webkit-scrollbar { display: none; }
  .sh-sr-chip { flex: none; }
}

/* ---------- «Преимущества Аверно»: вкладки с живыми иллюстрациями ---------- */
.sh-feat { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 4px; }
.sh-feat-tabs { display: flex; flex-direction: column; gap: 10px; }
.sh-feat-tab { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 0; border-radius: 18px; background: #FFFFFF; color: var(--av-ink); text-align: left; cursor: pointer; font: inherit; transition: background .18s; }
.sh-feat-tab:hover:not(.is-on) { background: #F4F7FD; }
.sh-feat-tab.is-on { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--av-blue); }
.sh-feat-tab:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.sh-feat-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--av-sky); color: var(--av-blue); display: flex; align-items: center; justify-content: center; transition: background .18s, color .18s; }
.sh-feat-tab.is-on .sh-feat-ico { background: var(--av-blue); color: #FFFFFF; }
.sh-feat-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sh-feat-tx b { font: 600 17px/22px var(--av-head); }
.sh-feat-tx span { font-size: 14px; line-height: 20px; color: var(--av-muted); }
.sh-feat-stage { position: relative; min-width: 0; border-radius: 24px; padding: 28px; background: linear-gradient(135deg, #E2EBFF 0%, #ECE4FF 55%, #F7D8F6 100%); display: grid; place-items: center; min-height: 460px; overflow: hidden; }
.sh-feat-stage::before { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -110px; border-radius: 50%; background: rgba(255,255,255,.45); }
.sh-feat-panel { position: relative; grid-area: 1 / 1; width: 100%; max-width: 560px; animation: ft-in .35s ease; }
/* панели лежат в одной ячейке, скрытые невидимы, но занимают место: окно всегда высотой с самую высокую (S27-1) */
.sh-feat-stage > .sh-feat-panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; animation: none; }
@keyframes ft-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ft-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--av-sky); color: var(--av-blue-text, #0047D1); font: 700 12px/1 var(--av-font); }
.ft-badge-r { background: #FFE6E9; color: #B3162D; }
.ft-hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--av-muted-2); }
.ft-next { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--av-ink); color: #FFFFFF; font: 600 14px/1 var(--av-font); cursor: pointer; transition: background .15s; }
.ft-next:hover { background: var(--av-blue); }
.ft-next[hidden] { display: none; }
.ft-link { border: 0; background: none; padding: 0; color: var(--av-blue-text, #0047D1); font: 600 14px/1 var(--av-font); cursor: pointer; text-decoration: underline; }
.ft-next:focus-visible, .ft-link:focus-visible, .ft-opt:focus-visible, .ft-rate:focus-visible, .ft-step:focus-visible, .ft-hot:focus-visible, .ft-c-card:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* методичка */
.ft-page { background: #FFFFFF; border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(8,25,64,.14); display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px 20px; }
.ft-page-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.ft-pg { font-size: 12px; color: var(--av-muted-2); }
.ft-page h4 { grid-column: 1 / -1; margin: 0; font: 600 20px/26px var(--av-head); color: var(--av-ink); }
.ft-bone { position: relative; width: 150px; height: 250px; }
.ft-bone-svg { width: 100%; height: 100%; display: block; }
.ft-hot { position: absolute; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ft-dot { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--av-ink); color: #FFFFFF; font: 700 13px/1 var(--av-font); font-style: normal; box-shadow: 0 0 0 4px rgba(255,255,255,.9); transition: transform .18s, background .18s; }
.ft-hot:hover .ft-dot, .ft-hot.is-on .ft-dot { background: var(--av-blue); transform: scale(1.18); }
.ft-hot.is-on .ft-dot { animation: ft-pulse 1.6s ease-out infinite; }
@keyframes ft-pulse { 0% { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 4px rgba(0,88,255,.5); } 100% { box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 16px rgba(0,88,255,0); } }
.ft-hot-1 { left: 10px; top: 4px; }
.ft-hot-2 { right: -2px; top: 104px; }
.ft-hot-3 { left: 59px; top: 118px; }
.ft-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-self: center; }
.ft-legend li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #F4F6FB; cursor: pointer; transition: background .18s, box-shadow .18s; }
.ft-legend li.is-on { background: var(--av-sky); box-shadow: inset 0 0 0 1.5px var(--av-blue); }
.ft-legend b { font-size: 14px; line-height: 18px; color: var(--av-ink); }
.ft-legend span { font-size: 13px; line-height: 18px; color: var(--av-muted); }
.ft-note { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #FFF5E6; border-left: 4px solid #F5B633; }
.ft-note-t { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--av-font); color: #9A5B00; }
.ft-note p { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--av-ink); }
.ft-mn { grid-column: 1 / -1; font-size: 13px; line-height: 19px; color: var(--av-muted-2); }
.ft-mn span { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; background: #EEE3FF; color: #5B2BC0; font-weight: 700; font-size: 12px; }

/* тест */
.ft-quiz { background: #FFFFFF; border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(8,25,64,.14); display: flex; flex-direction: column; gap: 14px; }
.ft-q-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--av-muted); font-weight: 600; }
.ft-q-bar { flex: 1; height: 6px; border-radius: 3px; background: #E6E9EF; overflow: hidden; }
.ft-q-bar i { display: block; height: 100%; width: 0; background: var(--av-blue); border-radius: 3px; transition: width .35s; }
.ft-q-t { margin: 0; font: 600 19px/26px var(--av-head); color: var(--av-ink); }
.ft-q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ft-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 12px; background: #F4F6FB; color: var(--av-ink); font: 500 15px/20px var(--av-font); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: background .15s, box-shadow .15s; }
.ft-opt i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--av-font); font-style: normal; color: var(--av-muted-2); }
.ft-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--av-ink); background: #FFFFFF; }
.ft-opt:disabled { cursor: default; }
.ft-opt.is-right { background: #E4F6EA; box-shadow: inset 0 0 0 2px #1FA253; }
.ft-opt.is-right i { background: #1FA253; color: #FFFFFF; }
.ft-opt.is-wrong { background: #FDE8EA; box-shadow: inset 0 0 0 2px #E0314B; }
.ft-opt.is-wrong i { background: #E0314B; color: #FFFFFF; }
.ft-q-ex { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 20px; animation: ft-in .25s ease; }
.ft-q-ex[hidden] { display: none; }
.ft-q-ex.is-ok { background: #E4F6EA; color: #0F5E2E; }
.ft-q-ex.is-no { background: #FDE8EA; color: #8A1427; }
.ft-q-ex b { font-size: 14px; }
.ft-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.ft-q-score { font-size: 13px; color: var(--av-muted); font-weight: 600; }

/* карточки */
.ft-cards { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.ft-c-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--av-muted-2); }
.ft-c-top b { color: var(--av-ink); }
.ft-c-deck { padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.75); font-weight: 700; font-size: 12px; color: var(--av-ink); }
.ft-c-stack { position: relative; height: 230px; perspective: 1100px; }
.ft-c-stack[hidden] { display: none; }
.ft-c-bg { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 20px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(8,25,64,.1); }
.ft-c-bg1 { transform: translateY(10px) scale(.96); opacity: .75; }
.ft-c-bg2 { transform: translateY(20px) scale(.92); opacity: .5; }
.ft-c-card { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .3s; font: inherit; color: inherit; }
.ft-c-card.is-flip { transform: rotateY(180deg); }
.ft-c-card.is-out { transform: translateX(120%) rotate(12deg); opacity: 0; }
.ft-c-card.is-flip.is-out { transform: rotateY(180deg) translateX(-120%) rotate(-12deg); }
.ft-c-face { position: absolute; inset: 0; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #FFFFFF; box-shadow: 0 16px 40px rgba(8,25,64,.16); }
.ft-c-back { transform: rotateY(180deg); background: linear-gradient(160deg, #0A2160 0%, #0F3FA0 100%); color: #FFFFFF; }
.ft-c-face small { font: 700 11px/1 var(--av-font); letter-spacing: .1em; text-transform: uppercase; color: var(--av-muted-2); }
.ft-c-back small { color: rgba(255,255,255,.65); }
.ft-c-face b { font: 600 24px/30px var(--av-head); text-wrap: balance; }
.ft-c-back b { font: 500 18px/26px var(--av-font); }
.ft-c-face em { font-size: 13px; color: var(--av-muted); font-style: normal; }
.ft-c-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; animation: ft-in .25s ease; }
.ft-c-rate[hidden] { display: none; }
.ft-rate { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 0; border-radius: 12px; background: #FFFFFF; cursor: pointer; font-family: inherit; color: var(--av-ink); transition: transform .15s, box-shadow .15s; }
.ft-rate b { font-size: 15px; }
.ft-rate span { font-size: 12px; color: var(--av-muted); }
.ft-rate:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8,25,64,.14); }
.ft-rate-1 b { color: #C21F39; } .ft-rate-2 b { color: #0A6E3A; } .ft-rate-3 b { color: var(--av-blue-text, #0047D1); }
.ft-c-done { margin: 0; padding: 40px 20px; border-radius: 20px; background: #FFFFFF; text-align: center; font-size: 16px; line-height: 26px; color: var(--av-ink); box-shadow: 0 16px 40px rgba(8,25,64,.14); }
.ft-c-done[hidden] { display: none; }

/* клиника */
.ft-clinic { background: #FFFFFF; border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(8,25,64,.14); display: flex; flex-direction: column; gap: 14px; }
.ft-cl-case p { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--av-ink); }
.ft-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ft-step { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: #F4F6FB; color: var(--av-muted); font: 600 14px/18px var(--av-font); cursor: pointer; transition: background .18s, color .18s; }
.ft-step i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--av-font); font-style: normal; }
.ft-step.is-past { background: #E4F6EA; color: #0F5E2E; }
.ft-step.is-past i { background: #1FA253; color: #FFFFFF; }
.ft-step.is-on { background: var(--av-ink); color: #FFFFFF; }
.ft-step.is-on i { background: var(--av-blue); color: #FFFFFF; }
.ft-cl-body { min-height: 96px; padding: 14px 16px; border-radius: 14px; background: #F4F6FB; }
.ft-cl-body p { margin: 0; font-size: 15px; line-height: 23px; color: var(--av-ink); animation: ft-in .25s ease; }
.ft-cl-body [hidden] { display: none; }
.ft-clinic .ft-next { align-self: flex-end; }

/* проверка билетов */
.ft-tk { background: #FFFFFF; border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(8,25,64,.14); display: flex; flex-direction: column; gap: 14px; }
.ft-tk-lab { font: 700 12px/1 var(--av-font); letter-spacing: .08em; text-transform: uppercase; color: var(--av-muted-2); }
.ft-tk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ft-tk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: #F4F6FB; opacity: 1; }
.ft-tk-q { font-weight: 600; font-size: 15px; line-height: 20px; color: var(--av-ink); }
.ft-tk-v { justify-self: end; padding: 2px 10px; border-radius: 99px; font: 700 12px/18px var(--av-font); }
.ft-tk-p { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--av-muted); }
.ft-tk-row.is-ok .ft-tk-v { background: #E4F6EA; color: #0F5E2E; }
.ft-tk-row.is-mid .ft-tk-v { background: #FFF1D6; color: #8A5200; }
.ft-tk-row.is-no .ft-tk-v { background: #FDE8EA; color: #8A1427; }
.ft-tk.is-run .ft-tk-row { animation: ft-row .5s both; animation-delay: calc(var(--i) * .35s); }
.ft-tk.is-run .ft-tk-sum { animation: ft-row .5s both; animation-delay: 1.6s; }
@keyframes ft-row { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.ft-tk-sum { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--av-sky); font-size: 14px; line-height: 20px; color: var(--av-ink); }
.ft-tk-sum b { color: var(--av-blue-text, #0047D1); }

/* три обещания под вкладками */
.sh-advs { margin-top: 8px; }
.sh-adv { transition: transform .22s, box-shadow .22s; }
.sh-adv:not(.sh-adv-wide):hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(8,25,64,.12); }
.sh-adv-ico { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.7); color: var(--av-blue); display: flex; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .sh-feat { grid-template-columns: minmax(0, 1fr); }
  .sh-feat-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .sh-feat-tabs::-webkit-scrollbar { display: none; }
  .sh-feat-tab { flex: none; scroll-snap-align: start; padding: 10px 14px 10px 10px; align-items: center; gap: 10px; border-radius: 14px; }
  .sh-feat-tab:hover:not(.is-on) { transform: none; }
  .sh-feat-ico { width: 36px; height: 36px; border-radius: 10px; }
  .sh-feat-tx span { display: none; }
  .sh-feat-tx b { font-size: 15px; white-space: nowrap; }
  .sh-feat-stage { min-height: 0; padding: 18px 14px; }
}
@media (max-width: 640px) {
  .ft-page { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ft-bone { margin-inline: auto; }
  .ft-q-opts { grid-template-columns: minmax(0, 1fr); }
  .ft-quiz, .ft-clinic, .ft-tk { padding: 16px; }
  .ft-q-t { font-size: 17px; line-height: 23px; }
  .ft-steps { grid-template-columns: minmax(0, 1fr); }
  .ft-c-stack { height: 210px; }
  .ft-c-face b { font-size: 21px; line-height: 27px; }
  .ft-tk-row { grid-template-columns: minmax(0, 1fr); }
  .ft-tk-v { justify-self: start; }
}

/* ---------- страница товара: «Тесты», «Карточки», «Клиника» ---------- */
.spf { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, var(--sl) 0%, #FFFFFF 120%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sa) 14%, transparent); position: relative; overflow: hidden; }
.spf::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: color-mix(in srgb, var(--sa) 10%, transparent); pointer-events: none; }
.spf > * { position: relative; }
.spf-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.spf-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--sa); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.spf-txt .sp-h2 { margin: 0; }
.spf-lead { margin: 0; font-size: 17px; line-height: 26px; color: var(--av-muted-2); max-width: 460px; }
.spf-pts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.spf-pts li { display: flex; gap: 10px; font-size: 16px; line-height: 24px; color: var(--av-ink); }
.spf-pts svg { flex: none; margin-top: 3px; color: var(--sa); }
.spf-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 6px; }
.spf-facts div { display: flex; flex-direction: column; }
.spf-facts b { font: 600 32px/38px var(--av-head); color: var(--sa); }
.spf-facts span { font-size: 14px; color: var(--av-muted); }
.spf-cta { margin-top: 6px; width: auto; padding: 0 26px; }
.spf-demo { min-width: 0; display: flex; align-items: center; justify-content: center; }
.spf-demo > * { width: 100%; max-width: 540px; }
.spf-demo .ft-cards { gap: 14px; }
.ft-steps { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.ft-q-ex-hint { color: var(--av-muted); }
@media (max-width: 960px) {
  .spf { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 24px; }
}
@media (max-width: 640px) {
  .spf { border-radius: 22px; padding: 22px 16px; }
  .spf-facts b { font-size: 26px; line-height: 32px; }
  .spf-cta { width: 100%; }
}

/* значки в кнопках не сжимаются: в узкой кнопке (две в ряд на телефоне) иконка «Предпросмотр» раньше исчезала */
.sp-btn svg, .pcd-btn svg, .sp-btn img { flex: none; }
@media (max-width: 460px) {
  .spp-btns-2 .sp-btn { padding: 0 8px; gap: 6px; font-size: 15px; }
}

/* телефон: мелкие ссылки и кнопки с удобной зоной нажатия */
@media (hover: none) and (max-width: 640px) {
  .rvc-more { padding-block: 10px; }
  .sp-all { min-height: 40px; display: inline-flex; align-items: center; }
  /* крошки: у каждого пункта одна высота и текст по центру (раньше отступ был только у ссылок, и последний пункт без ссылки стоял выше остальных) */
  .av-crumbs ol { align-items: center; }
  .av-crumbs li { display: flex; align-items: center; min-height: 32px; }
  .spp-crumbs a, .av-crumbs a { display: inline-flex; align-items: center; min-height: 32px; padding-block: 0; }
}

/* ---------- S27: «Набором дешевле» подбирается под человека (один или два пака), поле поиска без подсветки ---------- */
.sh-packs { grid-template-columns: minmax(0, .8fr) repeat(var(--pk-n, 2), minmax(0, 1.2fr)); }
.sh-pk[hidden], .sh-packs.is-none { display: none; }
@media (max-width: 960px) { .sh-packs { grid-template-columns: minmax(0, 1fr); } }
.sh-sr-in { -webkit-tap-highlight-color: transparent; }

/* ---------- S36: плашка «Добавлено в корзину» на телефоне и планшете, значок корзины подпрыгивает ---------- */
.sp-toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 68px); transform: translate(-50%, -12px); z-index: 120; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--av-ink); color: #FFFFFF; font: 600 14px/20px var(--av-font); box-shadow: 0 12px 32px rgba(8, 25, 64, .28); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.sp-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sp-toast button { border: 0; border-radius: 10px; background: #FFFFFF; color: var(--av-ink); font: 700 13px/1 var(--av-font); padding: 10px 14px; min-height: 36px; cursor: pointer; }
@media (min-width: 961px) { .sp-toast { display: none; } }
@keyframes sp-bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.28); } 70% { transform: scale(.94); } }
.hdr-ib.is-bump { animation: sp-bump .55s ease; }
@media (prefers-reduced-motion: reduce) { .sp-toast { transition: none; } .hdr-ib.is-bump { animation: none; } }
