/* Тема boberbox · главная по макету A2 (компьютер A2-Home, телефон A2-Mobile, до 767px) и страница «Пазл по фото».
   Подключается только на этих страницах (модуль «Бобёр-конфигуратор»). Токены — в boberbox.css. */

.bb-home { --bb-gut: 24px; background: var(--bb-bg); color: var(--bb-text); font-family: var(--bb-font) }
@media (max-width: 575.98px) { .bb-home { --bb-gut: 14px } }
.bb-home a { text-decoration: none }
.bb-home h1, .bb-home h2, .bb-home h3 { color: inherit }

/* ---------- общие элементы блоков ---------- */
.bb-sec { padding-top: 72px }
.bb-home { padding-bottom: 72px }
.bb-block { display: contents }
.bb-preview { position: sticky; top: 0; z-index: 50; background: var(--bb-amber); color: #1C120C; text-align: center; font-weight: 800; padding: 8px 14px }
.bb-h2--xl { font-size: 52px; margin-top: 8px }

.bb-home a:focus-visible, .bb-home button:focus-visible, .bb-pill input:focus-visible + span { outline: 3px solid var(--bb-amber); outline-offset: 2px }

/* лента с прокруткой (на телефоне; .bb-row — на всех размерах) */
@media (max-width: 767.98px) {
  .bb-row, .bb-home .bb-row-m { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--bb-gut) * -1); padding: 0 var(--bb-gut) 6px; scroll-padding: 0 var(--bb-gut) }
  .bb-row-m::-webkit-scrollbar { display: none }
  .bb-row-m > * { scroll-snap-align: start; flex: 0 0 auto }
}

/* ---------- 1. Первый экран ---------- */
.bb-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 72% 45%, #FFE6B8 0%, #FFF3DE 32%, #FBF0E0 60%, #F5E4CB 100%); --px: 0; --py: 0 }
.bb-hero__bg { position: absolute; inset: 0; pointer-events: none; transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px)); transition: transform .4s ease-out }
.bb-hero__bg svg { position: absolute }
.bb-hero__in { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; position: relative }
.bb-hero__text { flex: 1 1 440px; min-width: 0; position: relative; z-index: 2 }
.bb-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800; color: #7A4A26; box-shadow: 0 4px 14px rgba(122,74,38,.1) }
.bb-hero__badge span { width: 8px; height: 8px; border-radius: 50%; background: #3AA39A }
.bb-hero__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 72px; line-height: 1; margin: 22px 0 18px }
.bb-hero__title span { color: var(--bb-accent) }
.bb-hero__lead { font-size: 19px; line-height: 1.55; color: var(--bb-text2); margin: 0 0 28px; max-width: 470px }
.bb-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px }
.bb-hero__btns .bb-btn { padding: 18px 28px }
.bb-hero__search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 8px 8px 8px 16px; max-width: 520px; box-shadow: 0 10px 30px rgba(122,74,38,.12); margin: 0 }
.bb-hero__search input[type=search] { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 600 15px var(--bb-font); color: var(--bb-text); height: 44px }
.bb-hero__search button { height: 44px; padding: 0 18px; border-radius: 13px; border: 0; background: var(--bb-wood2); color: var(--bb-gold); font: 800 14px var(--bb-font); cursor: pointer }
.bb-hero__bullets { display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--bb-text2) }

.bb-hero__stage { flex: 1 1 620px; min-width: 0; height: 640px; position: relative; display: flex; align-items: center; justify-content: center }
.bb-hero__halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.95) 0%, rgba(255,214,140,.45) 45%, rgba(255,214,140,0) 70%); animation: bbhalo 5s ease-in-out infinite }
.bb-hero__layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .35s ease-out, scale .7s cubic-bezier(.2,.8,.2,1) }
.bb-hero__layer--far { transform: translate(calc(var(--px) * 22px), calc(var(--py) * 22px)) }
.bb-hero__layer--near { transform: translate(calc(var(--px) * 38px), calc(var(--py) * 38px)); pointer-events: none; z-index: 3 }
.bb-hero__stage:hover .bb-hero__layer--far { scale: 1.07 }
.bb-hero__stage:hover .bb-hero__layer--near { scale: 1.14 }
.bb-hero__bober { position: relative; z-index: 2; width: 430px; height: auto; translate: calc(var(--px) * 6px) calc(var(--py) * 6px); transition: translate .5s ease-out; animation: bbbreathe 5s ease-in-out infinite; pointer-events: none }

.bb-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(181,84,28,.28); width: 430px; height: 430px; animation: bbspin 140s linear infinite }
.bb-ring.r2 { width: 560px; height: 560px; border-color: rgba(44,127,184,.22); animation-direction: reverse; animation-duration: 110s }
.bb-ring.r3 { width: 690px; height: 690px; border-style: dotted; border-width: 2px; border-color: rgba(181,84,28,.2); animation-duration: 180s }
.bb-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--bb-amber) }
.bb-ring.r2::after { background: var(--bb-blue2); top: auto; bottom: -5px }
.bb-ring.r3::after { display: none }

/* элемент орбиты: свой угол, радиус, скорость и направление + покачивание */
.bb-orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) }
.bb-orb__spin { animation: bbspin var(--dur) linear infinite; animation-direction: var(--dir) }
.bb-orb__pos { transform: translate(var(--r), var(--dy)) rotate(calc(var(--a) * -1)) }
.bb-orb__unspin { animation: bbspin var(--dur) linear infinite; animation-direction: var(--udir) }
.bb-orb__bob { position: relative; animation: bbbob var(--bob) ease-in-out infinite; animation-delay: var(--delay) }
.bb-orb__bob > * { position: absolute; left: calc(var(--size) / -2); top: calc(var(--size) / -2); width: var(--size); height: var(--size) }
.bb-orb__piece { transform: rotate(var(--rot)); filter: drop-shadow(0 6px 8px rgba(43,26,16,.25)) }
.bb-orb:has(.bb-chip:hover), .bb-orb:has(.bb-chip:focus-visible) { z-index: 5 }
.bb-orb:has(.bb-chip:hover) *, .bb-orb:has(.bb-chip:focus-visible) * { animation-play-state: paused !important }
.bb-chip { display: block; transition: transform .3s }
.bb-chip img { width: 100%; height: 100%; display: block; border-radius: 50%; filter: drop-shadow(0 10px 14px rgba(43,26,16,.3)) }
.bb-chip:hover, .bb-chip:focus-visible { transform: scale(1.35) }
.bb-chip__tip { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap; background: var(--bb-wood2); color: var(--bb-gold); font: 800 12px var(--bb-font); padding: 6px 10px; border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none }
.bb-chip:hover .bb-chip__tip, .bb-chip:focus-visible .bb-chip__tip { opacity: 1 }

.bb-hero__hit { position: absolute; right: 10px; bottom: 40px; z-index: 4; background: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: 0 14px 30px rgba(122,74,38,.18); display: flex; gap: 12px; align-items: center; color: var(--bb-text) !important; line-height: 1.3; transition: transform .2s }
.bb-hero__hit:hover { transform: translateY(-2px) }
.bb-hero__hit img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; mix-blend-mode: multiply }
.bb-hero__hit > span { display: flex; flex-direction: column }
.bb-hero__hit-label { font-size: 12px; color: var(--bb-text2); font-weight: 700 }
.bb-hero__hit-name { font-weight: 800 }
.bb-hero__hit b { font-family: var(--bb-font-head); font-weight: 400; font-size: 18px }
.bb-hero__hit s { color: #8A6B52; font-size: 13px }

.bb-float { animation: bbfloat 7s ease-in-out infinite }
.bb-d2 { animation-delay: -2.5s; animation-duration: 9s }
.bb-d3 { animation-delay: -4s; animation-duration: 8s }
@keyframes bbspin { to { rotate: 360deg } }
@keyframes bbbob { 0%, 100% { translate: 0 0 } 50% { translate: 0 -9px } }
@keyframes bbbreathe { 0%, 100% { scale: 1 } 50% { scale: 1.018 } }
@keyframes bbhalo { 0%, 100% { opacity: .75; scale: .96 } 50% { opacity: 1; scale: 1.06 } }
@keyframes bbfloat { 0%, 100% { translate: 0 0; rotate: var(--r) } 50% { translate: 0 -14px; rotate: calc(var(--r) + 10deg) } }

/* ---------- лента тем (телефон) ---------- */
/* лента тем: по умолчанию только на телефоне (настройка блока) */
.bb-themes { padding-top: 18px; padding-bottom: 4px }
.bb-themes__item { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-align: center; color: var(--bb-text) !important; line-height: 1.2 }
.bb-themes__item > span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden }
.bb-themes__item img { width: 60px; height: 60px; object-fit: cover }
@media (min-width: 768px) { .bb-themes { justify-content: center; padding: 32px 24px 0 } .bb-themes__item { width: 96px; font-size: 14px } .bb-themes__item > span { width: 80px; height: 80px } .bb-themes__item img { width: 76px; height: 76px } }

/* ---------- 2. Коллекции ---------- */
.bb-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 18px }
.bb-col__tile { grid-column: span 3; border-radius: 32px; position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; color: var(--bb-text); background: var(--bb-kraft2); transition: transform .25s }
.bb-col__tile .bb-col__img { filter: drop-shadow(0 12px 16px rgba(43,26,16,.25)) }
.bb-col__tile:hover { transform: translateY(-3px) }
.bb-col__title { font-family: var(--bb-font-head); font-size: 28px; line-height: 1.1; position: relative; z-index: 1 }
.bb-col__text { font-size: 14px; position: relative; z-index: 1; margin-top: 2px }
.bb-col__img { position: absolute; right: -40px; bottom: -50px; width: 210px; height: 210px; transition: transform .4s }
.bb-col__tile:hover .bb-col__img { transform: rotate(-6deg) scale(1.04) }
.bb-col__tile--main { grid-column: span 6; grid-row: span 2; justify-content: flex-end; padding: 36px; color: #fff !important; background: radial-gradient(circle at 70% 40%, #3E6A9B 0%, #1B2E47 55%, #101B2B 100%) }
.bb-col__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5 }
.bb-col__tile--main .bb-col__img { right: -40px; top: 20px; bottom: auto; width: 380px; height: 380px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)) }
.bb-col__body { position: relative; z-index: 1; max-width: 330px; display: flex; flex-direction: column; align-items: flex-start }
.bb-col__badge { display: inline-block; background: var(--bb-amber); color: #1C120C; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800 }
.bb-col__tile--main .bb-col__title { font-size: 44px; line-height: 1; margin: 14px 0 10px }
.bb-col__tile--main .bb-col__text { color: #D7E3F2; font-size: 16px; line-height: 1.5 }
.bb-col__tile--photo { background: var(--bb-wood2); color: var(--bb-gold) !important }
.bb-col__tile--photo .bb-col__text { color: #E6CFA6; max-width: 170px }
.bb-col__tile--photo .bb-col__img { right: -24px; bottom: -24px; width: 190px; height: 190px; object-fit: cover; border-radius: 24px; transform: rotate(6deg); border: 4px solid var(--bb-gold) }
.bb-col__tile--photo:hover .bb-col__img { transform: rotate(2deg) scale(1.04) }
/* фото товара (jpg на белом фоне) — обрезаем по кругу, чтобы не было белого квадрата */
.bb-col__img--round { border-radius: 50%; object-fit: cover; background: #fff }
.bb-col__tile .bb-col__img--round { filter: none; box-shadow: 0 12px 24px rgba(43,26,16,.25) }
.bb-col__tile--main .bb-col__img--round { filter: none; box-shadow: 0 30px 40px rgba(0,0,0,.45) }

/* ---------- 3. Подбор подарка ---------- */
.bb-gift { background: var(--bb-kraft); border-radius: 36px; padding: 36px 400px 36px 36px; position: relative; overflow: hidden; min-height: 300px }
.bb-gift__bober { position: absolute; right: -10px; bottom: -6px; width: 400px; height: auto; pointer-events: none }
.bb-gift__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 0 0 20px; position: relative }
.bb-gift__groups { display: flex; flex-wrap: wrap; gap: 22px; position: relative }
.bb-gift__group { flex: 1 1 220px; border: 0; margin: 0; padding: 0; min-width: 0 }
.bb-gift__group:first-child { flex-basis: 260px }
.bb-gift__group legend { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--bb-text2); margin-bottom: 8px; padding: 0; width: auto; border: 0 }
.bb-gift__opts { display: flex; gap: 6px; flex-wrap: wrap }
.bb-pill { position: relative; margin: 0; cursor: pointer }
.bb-pill input { position: absolute; opacity: 0; width: 1px; height: 1px }
.bb-pill span { display: inline-flex; align-items: center; min-height: 40px; font: 700 14px var(--bb-font); padding: 10px 14px; border-radius: 999px; background: var(--bb-bg); color: var(--bb-text); transition: background-color .15s, color .15s }
.bb-pill:hover span { background: #fff }
.bb-pill input:checked + span { background: var(--bb-text); color: var(--bb-gold) }
.bb-gift__go { margin-top: 22px; position: relative }
.bb-gift__steps { display: flex; gap: 6px; margin: 2px 0 16px; position: relative }
.bb-gift__steps span { flex: 1; height: 5px; border-radius: 3px; background: #DCC6A4 }
.bb-gift__steps span.is-on { background: var(--bb-accent) }

/* ---------- 4. Хиты ---------- */
.bb-cards > .bb-card { width: calc((100% - 80px) / 5); min-width: 220px }

/* ---------- 5. Почему любят ---------- */
.bb-sec:has(.bb-why) { padding-top: 88px }
.bb-why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 270px; gap: 18px }
.bb-why__card { border-radius: 32px; overflow: hidden; position: relative }
.bb-why__card > img { width: 100%; height: 100%; object-fit: cover; display: block }
.bb-why__card--a { grid-column: span 5; grid-row: span 2 }
.bb-why__card--a > img { object-position: center 40% }
.bb-why__card--b { grid-column: span 4; grid-row: span 2 }
.bb-why__card--b > img { object-position: center 55% }
.bb-why__note { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,249,239,.94); border-radius: 22px; padding: 18px 20px; color: var(--bb-text2); line-height: 1.45 }
.bb-why__title { font-family: var(--bb-font-head); font-size: 26px; color: var(--bb-text); line-height: 1.15; margin-bottom: 4px }
.bb-why__small { color: var(--bb-text2); font-size: 14px; line-height: 1.45 }
.bb-why__card--c { grid-column: span 3; background: var(--bb-kraft2); padding: 22px }
.bb-why__card--c .bb-why__title, .bb-why__card--d .bb-why__title { font-size: 24px }
.bb-why__card--c .bb-why__title, .bb-why__card--c .bb-why__small { position: relative; z-index: 1; max-width: 170px }
.bb-why__card--c > img { position: absolute; right: -24px; bottom: -6px; width: 270px; height: auto }
.bb-why__card--d { grid-column: span 3; background: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: space-between }

/* ---------- 6. Гравировка и рамки ---------- */
.bb-sec:has(.bb-duo) { padding-top: 64px }
.bb-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px }
.bb-duo__card { border-radius: 32px; padding: 32px; position: relative; overflow: hidden; min-height: 260px; display: block }
.bb-duo__card p { line-height: 1.5; max-width: 330px; margin: 0 0 18px; position: relative }
.bb-duo__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 8px 0 12px; max-width: 360px; position: relative }
.bb-duo__card--light { background: #fff; color: var(--bb-text) }
.bb-duo__card--light p { color: var(--bb-text2) }
.bb-duo__card--light > img { position: absolute; right: -16px; bottom: -8px; width: 250px; height: auto }
.bb-duo__quote { display: inline-flex; align-items: center; background: var(--bb-kraft); border-radius: 14px; padding: 12px 16px; font-family: var(--bb-font-head); font-size: 18px; color: #5A3620; border: 2px dashed #C9A97E; position: relative; max-width: calc(100% - 200px) }
.bb-duo__card--blue { background: var(--bb-blue); color: #fff !important }
.bb-duo__card--blue .bb-eyebrow { color: var(--bb-gold) }
.bb-duo__card--blue .bb-duo__title { max-width: 320px }
.bb-duo__card--blue p { color: #D7E3F2; max-width: 300px }
.bb-duo__frame { position: absolute; right: 16px; bottom: 16px; width: 230px; height: 230px; transform: rotate(6deg); filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); transition: transform .4s }
.bb-duo__card--blue:hover .bb-duo__frame { transform: rotate(0deg) scale(1.03) }
.bb-duo__card--blue .bb-btn { position: relative }

/* ---------- 7. Доски садху ---------- */
.bb-sadhu { border-radius: 36px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 78% 50%, #6B4226 0%, #3A2416 55%, #2B1A10 100%); color: #F3E6CF; padding: 48px 520px 48px 48px; min-height: 380px }
.bb-sadhu__mandala { position: absolute; right: 120px; top: 50%; translate: 0 -50%; opacity: .14 }
.bb-sadhu__img { position: absolute; right: 60px; top: 26px; height: 420px; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); rotate: 6deg }
.bb-sadhu__body { position: relative; max-width: 560px }
.bb-sadhu__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 50px; line-height: 1.02; margin: 10px 0 14px; color: var(--bb-gold) }
.bb-sadhu p { font-size: 18px; line-height: 1.55; color: #E6CFA6; margin: 0 0 22px }
.bb-sadhu__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; font-size: 14px; font-weight: 700 }
.bb-sadhu__chips span { border: 1px solid var(--bb-text2); border-radius: 999px; padding: 8px 14px }
.bb-sadhu .bb-btn { padding: 17px 28px }

/* ---------- 8. Секретный пазл ---------- */
.bb-secret { border-radius: 36px; position: relative; overflow: hidden; background: var(--bb-kraft2); padding: 44px 44px 44px 460px; min-height: 340px }
.bb-secret__map { position: absolute; inset: 0; width: 100%; height: 100% }
.bb-secret__bober { position: absolute; left: 10px; bottom: -6px; width: 430px; height: auto }
.bb-secret__body { position: relative; max-width: 560px }
.bb-secret__btns { display: flex; flex-wrap: wrap; gap: 10px }
.bb-secret__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 46px; line-height: 1.02; margin: 8px 0 12px }
.bb-secret p { font-size: 19px; line-height: 1.5; color: var(--bb-text2); margin: 0 0 22px }
.bb-secret p b { color: var(--bb-text) }

/* ---------- 9. Отзывы ---------- */
.bb-rating { background: #fff; border-radius: 18px; padding: 12px 18px; font-weight: 800 }
.bb-rating span { color: var(--bb-amber) }
.bb-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px }
.bb-review { background: #fff; border-radius: 28px; padding: 14px; margin: 0; display: flex; flex-direction: column }
.bb-review__photo { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: 20px; object-fit: cover; display: block; background: var(--bb-kraft) }
.bb-review__photo--none { display: flex; align-items: center; justify-content: center; opacity: .9 }
.bb-review__stars { margin: 12px 6px 0; color: var(--bb-line2); letter-spacing: 2px }
.bb-review__stars .is-on { color: var(--bb-amber) }
.bb-review__text { margin: 6px 6px 10px; padding: 0; border: 0; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden }
.bb-review__who { margin: auto 6px 6px; font-size: 14px; font-weight: 700; color: var(--bb-text2) }
.bb-review__who b { color: var(--bb-text) }
.bb-review__who a { color: var(--bb-text2) !important; text-decoration: underline !important; text-decoration-color: var(--bb-line2) !important }

/* ---------- 10. Для компаний ---------- */
.bb-biz { background: linear-gradient(110deg, #3A2416 0%, #5A3620 60%, #7A4A26 100%); color: #F3E6CF; border-radius: 36px; padding: 40px 40px 40px 44px; position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: center }
.bb-biz__img { position: absolute; right: 0; top: 0; height: 100%; width: 42%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%) }
.bb-biz__body { position: relative; max-width: 620px }
.bb-biz__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 42px; line-height: 1.05; margin: 8px 0 10px; color: var(--bb-gold) }
.bb-biz p { margin: 0 0 22px; color: #E6CFA6; line-height: 1.5; max-width: 560px }
.bb-biz .bb-btn { padding: 17px 28px }

/* ---------- SEO-текст из модуля «HTML» ---------- */
/* SEO-текст главной: карточка; длинный текст свёрнут до ~5 строк с градиентом и кнопкой «Читать полностью» */
.bb-seo { color: var(--bb-text2); line-height: 1.6; font-size: 15px }
.bb-seo__box { background: #fff; border-radius: var(--bb-r-card); padding: 32px 40px 28px; border: 1px solid var(--bb-line) }
.bb-seo__text { position: relative; max-width: 980px }
.bb-seo__text > div > :last-child, .bb-seo__text > :last-child { margin-bottom: 0 }
.bb-seo h1, .bb-seo h2, .bb-seo h3 { font-family: var(--bb-font-head); font-weight: 400; color: var(--bb-text); font-size: 30px; line-height: 1.15; margin: 0 0 14px }
.bb-seo h1 ~ h2, .bb-seo h2 ~ h2, .bb-seo h3 { font-size: 24px; margin-top: 28px }
.bb-seo img { max-width: 100%; height: auto; border-radius: 20px }
/* старая разметка Bootstrap внутри текста: картинка слева, текст справа */
.bb-seo .row { display: flex; flex-wrap: nowrap; gap: 24px; align-items: flex-start; margin: 0 }
.bb-seo .row > [class*="col-"] { flex: 1 1 0; min-width: 0; max-width: none; width: auto; padding: 0 }
.bb-seo .row > [class*="col-"]:first-child:has(> img:only-child) { flex: 0 0 220px }
.bb-seo.is-clamped .bb-seo__text { max-height: 180px; overflow: hidden }
.bb-seo.is-clamped .bb-seo__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none }
.bb-seo.is-clamped.is-open .bb-seo__text { max-height: none } /* сильнее мобильного max-height из @media ниже */
.bb-seo.is-clamped.is-open .bb-seo__text::after { display: none }
.bb-seo__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--bb-accent); font: 800 15px/1.4 var(--bb-font); cursor: pointer }
.bb-seo__more:hover span { text-decoration: underline; text-underline-offset: 3px }
.bb-seo__more b { transition: transform .2s }
.bb-seo.is-open .bb-seo__more b { transform: rotate(180deg) }
.bb-seo a { color: var(--bb-accent) !important }

/* ---------- планшет: без жёстких отступов под картинки ---------- */
@media (max-width: 1199.98px) {
  .bb-hero__title { font-size: 60px }
  .bb-gift { padding-right: 300px }
  .bb-gift__bober { width: 300px }
  .bb-sadhu { padding-right: 380px }
  .bb-sadhu__img { height: 340px; right: 30px; top: 40px }
  .bb-secret { padding-left: 360px }
  .bb-secret__bober { width: 340px }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .bb-col__tile { grid-column: span 6 }
  .bb-col__tile--main { grid-column: span 12 }
  .bb-why__card--a, .bb-why__card--b { grid-column: span 6 }
  .bb-why__card--c, .bb-why__card--d { grid-column: span 6 }
  .bb-cards > .bb-card { width: calc((100% - 40px) / 3) }
  .bb-gift { padding-right: 36px; padding-bottom: 200px }
  .bb-gift__bober { width: 260px }
  .bb-sadhu { padding-right: 300px }
  .bb-sadhu__img { height: 280px }
  .bb-secret { padding: 36px 36px 260px }
  .bb-secret__bober { width: 300px }
  .bb-biz__img { width: 36% }
  .bb-biz__body { max-width: 62% }
}

/* ---------- телефон (A2-Mobile) ---------- */
@media (max-width: 767.98px) {
  .bb-home { display: flex; flex-direction: column }
  .bb-home > *, .bb-block > * { width: 100%; min-width: 0 }
  .bb-block > * { order: var(--om, 0) }
  .bb-o-seo { order: 9999 }
  .bb-block > .bb-themes { margin: 0; padding-left: var(--bb-gut); padding-right: var(--bb-gut); scroll-padding: 0 var(--bb-gut) }
  .bb-sec, .bb-sec:has(.bb-why), .bb-sec:has(.bb-duo) { padding-top: 32px }
  .bb-home { padding-bottom: 32px }
  .bb-sec__head { flex-wrap: nowrap; align-items: baseline; margin-bottom: 14px }
  .bb-sec__head > div { min-width: 0 }
  .bb-sec__head--center { justify-content: flex-start; text-align: left }
  .bb-eyebrow { font-size: 12px; letter-spacing: 1.5px }
  .bb-h2, .bb-h2--xl { font-size: 28px; margin-top: 4px }
  .bb-more { border: 0; padding: 0; color: var(--bb-accent) !important; font-size: 14px; white-space: nowrap }
  .bb-btn { min-height: 50px; border-radius: 14px; padding: 0 18px }

  /* первый экран: заголовок → бобёр → кнопки */
  .bb-hero { background: radial-gradient(ellipse at 50% 62%, #FFE6B8 0%, #FFF3DE 40%, #FBF0E0 75%) }
  .bb-hero__bg { display: none }
  .bb-hero__in { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding-top: 20px; padding-bottom: 24px }
  .bb-hero__text { display: contents }
  .bb-hero__badge, .bb-hero__search { display: none }
  .bb-hero__title { order: 1; font-size: 40px; line-height: 1.02; margin: 0 0 10px }
  .bb-hero__lead { order: 2; font-size: 15px; line-height: 1.5; margin: 0 }
  .bb-hero__stage { order: 3; flex: none; height: 330px; margin: 4px calc(var(--bb-gut) * -1) 0 }
  .bb-hero__btns { order: 4; flex-direction: column; gap: 10px; margin: 0 }
  .bb-hero__btns .bb-btn { height: 54px; border-radius: 16px; padding: 0 18px; width: 100% }
  .bb-hero__bullets { order: 5; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 12px }
  .bb-hero__halo { width: 260px; height: 260px }
  .bb-hero__layer { transform: none !important; scale: .52 !important }
  .bb-hero__layer--near, .bb-orb--desk, .bb-hero__hit, .bb-chip__tip { display: none }
  .bb-chip img { filter: drop-shadow(0 6px 10px rgba(43,26,16,.3)) }
  .bb-hero__bober { width: 250px; translate: none }

  /* лента тем */

  /* коллекции лентой */
  .bb-col { grid-template-columns: none; grid-auto-rows: auto }
  .bb-col__tile { width: 200px; height: 300px; border-radius: 26px; padding: 20px }
  .bb-col__tile:hover { transform: none }
  .bb-col__title { font-size: 26px }
  .bb-col__img { left: 10px; right: auto; bottom: -20px; width: 200px; height: 200px }
  .bb-col__tile--main { width: 280px; padding: 20px }
  .bb-col__tile--main .bb-col__img { right: -40px; left: auto; top: 0; width: 240px; height: 240px }
  .bb-col__tile--main .bb-col__title { font-size: 30px; margin: 8px 0 0 }
  .bb-col__tile--main .bb-col__text { font-size: 14px }
  .bb-col__badge { font-size: 12px; padding: 4px 10px }
  .bb-col__tile--photo .bb-col__img { left: 16px; bottom: 16px; width: 168px; height: 168px; border-radius: 18px; border-width: 3px; transform: none }

  /* подбор подарка по шагам */
  .bb-gift { border-radius: 26px; padding: 20px; min-height: 0 }
  .bb-gift__bober { right: -30px; top: -6px; bottom: auto; width: 200px }
  .bb-gift__title { font-size: 26px; margin: 0 0 4px; max-width: 190px; line-height: 1.05 }
  .bb-gift__sub { font-size: 13px; color: var(--bb-text2); margin-bottom: 70px; position: relative }
  .bb-gift__groups { flex-direction: column; gap: 14px }
  .bb-gift__group { flex: none }
  .bb-gift.is-stepper .bb-gift__group:not(.is-active) { display: none }
  .bb-gift__group legend { font-size: 12px; letter-spacing: 1px }
  .bb-gift__steps { margin-top: 14px }
  .bb-gift__next, .bb-gift__go { width: 100%; height: 52px; margin-top: 0 }
  .bb-gift__next[hidden], .bb-gift__go[hidden] { display: none !important }

  /* хиты */
  .bb-cards > .bb-card { width: 160px; min-width: 0 }

  /* почему любят */
  .bb-why { grid-template-columns: none; grid-auto-rows: auto }
  .bb-why__card, .bb-why__card--a, .bb-why__card--b, .bb-why__card--c { width: 260px; height: 340px; border-radius: 24px }
  .bb-why__note { left: 10px; right: 10px; bottom: 10px; border-radius: 16px; padding: 12px 14px; font-size: 13px }
  .bb-why__title, .bb-why__card--c .bb-why__title { font-size: 20px }
  .bb-why__card--c { padding: 18px }
  .bb-why__card--c .bb-why__title { font-size: 22px }
  .bb-why__card--c .bb-why__small { font-size: 13px }
  .bb-why__card--c > img { left: 0; right: auto; bottom: 0; width: 280px }

  /* две плитки */
  .bb-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .bb-duo__card { border-radius: 22px; padding: 14px; height: 190px; min-height: 0 }
  .bb-duo__title { font-size: 18px; line-height: 1.1; margin: 0 }
  .bb-duo__card--light > img { right: -10px; bottom: -6px; width: 140px }
  .bb-duo__frame { right: -14px; bottom: -14px; width: 130px; height: 130px; transform: rotate(8deg) }

  /* доски садху: вся карточка — ссылка */
  .bb-sadhu { border-radius: 24px; padding: 20px 150px 20px 20px; min-height: 230px }
  .bb-sadhu__img { right: -6px; top: 14px; height: 210px; rotate: 8deg; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)) }
  .bb-sadhu__title { font-size: 28px; margin: 4px 0 6px }
  .bb-sadhu p { font-size: 14px; line-height: 1.45; margin-bottom: 16px }
  .bb-sadhu .bb-btn { min-height: 44px; padding: 0 18px; border-radius: 12px }
  .bb-stretch::after { content: ""; position: absolute; inset: 0 }
  .bb-sadhu__body { position: static }

  /* секретный пазл */
  .bb-secret { border-radius: 24px; padding: 20px 20px 0; min-height: 0 }
  .bb-secret__body { padding-bottom: 20px }
  .bb-secret__title { font-size: 26px; margin: 4px 0 6px }
  .bb-secret p { font-size: 15px; line-height: 1.45; margin-bottom: 14px }
  .bb-secret .bb-btn { white-space: nowrap }
  .bb-secret__body { padding-right: 96px }
  .bb-secret__bober { left: auto; right: 0; bottom: 0; width: 150px }

  /* отзывы */
  .bb-sec__head .bb-rating { padding: 0; background: none; font-size: 13px; white-space: nowrap }
  [data-block=reviews] .bb-sec__head { flex-wrap: wrap }
  [data-block=reviews] .bb-h2 { font-size: 24px }
  .bb-reviews { grid-template-columns: none }
  .bb-review { width: 250px; border-radius: 20px; padding: 12px }
  .bb-review__photo { aspect-ratio: auto; height: 150px; border-radius: 14px }
  .bb-review__text { font-size: 14px; margin: 6px 4px 8px; -webkit-line-clamp: 5 }
  .bb-review__who { margin: auto 4px 0; font-size: 13px }

  /* компании */
  .bb-biz { display: block; background: var(--bb-wood2); border-radius: 24px; padding: 0; min-height: 0 }
  .bb-biz__img { position: static; width: 100%; height: 170px; -webkit-mask-image: none; mask-image: none; display: block }
  .bb-biz__body { padding: 18px 20px 20px }
  .bb-biz__title { font-size: 24px; margin: 4px 0 6px }
  .bb-biz p { font-size: 14px; margin-bottom: 14px }
  .bb-biz .bb-btn { width: 100%; padding: 0 18px }

  .bb-seo h1, .bb-seo h2, .bb-seo h3 { font-size: 24px }
  .bb-seo__box { padding: 22px 18px 18px; border-radius: 22px }
  .bb-seo .row { flex-direction: column; gap: 12px }
  .bb-seo .row > [class*="col-"]:first-child:has(> img:only-child) { flex: none; width: 160px }
  .bb-seo.is-clamped .bb-seo__text { max-height: 200px }
}

/* ---------- «Пазл по фото» ---------- */
.bb-photo { padding-top: 28px; padding-bottom: 72px }
.bb-photo__crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--bb-text2) }
.bb-photo__crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6 }
.bb-photo__crumbs a { color: var(--bb-text2) !important }
.bb-photo__card { position: relative; overflow: hidden; border-radius: 36px; background: radial-gradient(ellipse at 75% 45%, #FFE6B8 0%, #FFF3DE 40%, #F5E4CB 100%); padding: 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center }
.bb-photo__title { font-family: var(--bb-font-head); font-weight: 400; font-size: 56px; line-height: 1.02; margin: 12px 0 16px }
.bb-photo__lead { font-size: 19px; line-height: 1.55; color: var(--bb-text2); margin: 0 0 14px; max-width: 520px }
.bb-photo__soon { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 700; color: var(--bb-text2); margin: 6px 0 26px; box-shadow: 0 6px 18px rgba(122,74,38,.1) }
.bb-photo__soon svg { flex: none }
.bb-photo__btns { display: flex; flex-wrap: wrap; gap: 12px }
.bb-photo__btns .bb-btn { padding: 18px 28px }
.bb-photo__pics { position: relative; min-height: 420px }
.bb-photo__example { position: absolute; right: 0; top: 0; width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; border: 6px solid var(--bb-gold); transform: rotate(4deg); box-shadow: 0 30px 50px rgba(43,26,16,.25) }
.bb-photo__bober { position: absolute; left: -10px; bottom: -10px; width: 58%; height: auto; filter: drop-shadow(0 16px 24px rgba(43,26,16,.25)) }
.bb-photo__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px }
.bb-photo__step { background: #fff; border-radius: 28px; padding: 22px }
.bb-photo__step b { display: flex; width: 40px; height: 40px; border-radius: 50%; background: var(--bb-kraft); align-items: center; justify-content: center; font-family: var(--bb-font-head); font-weight: 400; font-size: 20px; margin-bottom: 10px }
.bb-photo__step div { font-weight: 800; margin-bottom: 4px }
.bb-photo__step p { margin: 0; color: var(--bb-text2); line-height: 1.5; font-size: 15px }
@media (max-width: 991.98px) {
  .bb-photo__card { grid-template-columns: none; padding: 28px }
  .bb-photo__pics { min-height: 340px; max-width: 420px; width: 100%; margin: 0 auto }
}
@media (max-width: 767.98px) {
  .bb-photo { padding-top: 16px; padding-bottom: 32px }
  .bb-photo__card { border-radius: 24px; padding: 20px; gap: 18px }
  .bb-photo__title { font-size: 36px }
  .bb-photo__lead { font-size: 15px }
  .bb-photo__btns .bb-btn { width: 100%; height: 54px; border-radius: 16px; padding: 0 18px }
  .bb-photo__pics { min-height: 300px }
  .bb-photo__steps { grid-template-columns: none; gap: 12px }
  .bb-photo__step { border-radius: 20px; padding: 16px }
}

/* ---------- без анимаций, если так просит система ---------- */
@media (prefers-reduced-motion: reduce) {
  .bb-hero *, .bb-hero__bober, .bb-hero__halo, .bb-ring, .bb-float { animation: none !important; transition: none !important }
  .bb-hero__bg, .bb-hero__layer { transform: none !important }
  .bb-hero__bober { translate: none !important }
}
