/* ==========================================================================
   imho24 — живая графика и движение.
   Всё нарисовано кодом (CSS/SVG). Уважаем «уменьшить движение» в настройках системы.
   ========================================================================== */

/* ---------- Первый экран с живой лентой ---------- */
.hero--live { position: relative; overflow: hidden; isolation: isolate; background: #f7f4fb; padding-block: var(--s-8) var(--s-9); }
@media (min-width: 1024px) { .hero--live { padding-block: 56px 72px; } }
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; animation: imho-blob 22s ease-in-out infinite alternate; }
.blob--pink { background: rgba(239, 45, 99, .35); top: -180px; left: -120px; }
.blob--teal { background: rgba(0, 124, 139, .3); top: -140px; right: -160px; animation-duration: 26s; animation-delay: -6s; }
.blob--green { background: rgba(16, 162, 75, .22); bottom: -240px; right: 18%; animation-duration: 30s; animation-delay: -12s; }
.blob--plum { background: rgba(147, 57, 127, .25); bottom: -260px; left: 22%; animation-duration: 24s; animation-delay: -3s; }
@keyframes imho-blob {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(70px, -40px) scale(1.15); }
	100% { transform: translate(-50px, 40px) scale(.92); }
}
.hero__floaties { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaty { position: absolute; width: 44px; height: auto; filter: drop-shadow(0 10px 14px rgba(34, 27, 53, .18)); animation: imho-float 7s ease-in-out infinite alternate; }
.floaty--1 { top: 9%; left: 45%; width: 46px; animation-duration: 8s; }
.floaty--2 { top: 20%; left: 3%; width: 26px; animation-duration: 6s; animation-delay: -2s; }
.floaty--3 { top: 52%; left: 49.5%; width: 40px; animation-duration: 9s; animation-delay: -4s; }
.floaty--4 { top: 7%; right: 5%; width: 22px; animation-duration: 5.5s; animation-delay: -1s; }
.floaty--5 { bottom: 8%; right: 3%; width: 38px; animation-duration: 8.5s; animation-delay: -3s; }
.floaty--6 { bottom: 26%; left: 1.5%; width: 24px; animation-duration: 6.5s; animation-delay: -5s; }
@keyframes imho-float {
	0% { transform: translateY(0) rotate(-6deg); }
	100% { transform: translateY(-18px) rotate(6deg); }
}
@media (max-width: 1023px) { .floaty--1, .floaty--3, .floaty--6 { display: none; } }
.hero__live { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 var(--s-5); padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px -12px rgba(34, 27, 53, .35); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.pulse-dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--rec); }
.pulse-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--rec); opacity: 0; animation: imho-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes imho-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hero--live .hero__title { font-size: clamp(32px, 1.2rem + 3vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; max-width: 14ch; }
.hero--live .search--xl .search__input { box-shadow: 0 16px 40px -22px rgba(34, 27, 53, .45); border-color: transparent; }
.chip--sec .i { color: var(--sec); transition: transform .2s var(--ease); }
.chip--sec { background: rgba(255, 255, 255, .85); }
.chip--sec:hover { border-color: var(--sec); background: color-mix(in srgb, var(--sec) 8%, #fff); }
.chip--sec:hover .i { transform: scale(1.18) rotate(-8deg); }

/* Живая лента мнений */
.live { position: relative; }
.live__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-bottom: 12px; font-weight: 700; font-size: var(--fs-md); }
.live__head .faint { font-weight: 400; }
@media (max-width: 640px) { .hero__live { font-size: 13px; } .live__head .faint { flex-basis: 100%; padding-left: 18px; } }
.live__stage { position: relative; height: 470px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; padding: 6px 4px 6px 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 100%); }
@media (max-width: 1023px) { .live__stage { height: 380px; } }
.live__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; color: inherit; text-decoration: none; flex: none; }
.live__item.alt { margin-left: 34px; }
@media (max-width: 1023px) { .live__item.alt { margin-left: 0; } }
.live__item .avatar { box-shadow: 0 6px 14px -6px rgba(34, 27, 53, .45); }
.live__bubble { display: grid; gap: 4px; padding: 14px 18px 15px; border-radius: var(--r-bubble-tl); background: #fff; border: 1px solid rgba(231, 226, 239, .9); box-shadow: 0 14px 34px -20px rgba(34, 27, 53, .4); transition: transform .25s var(--ease), box-shadow .25s; }
.live__item:hover .live__bubble { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(34, 27, 53, .5); }
.live__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.live__top strong { color: var(--ink); }
.live__top .pill { font-size: 12px; padding: 1px 9px; }
.live__obj { font-weight: 700; color: var(--ink); }
.live__text { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live__date { font-size: 12px; color: var(--ink-3); }
.live__item.is-enter { animation: imho-live-in .65s var(--ease) both; }
.live__item.is-enter .stars__on { animation: imho-stars 1s .35s ease-out both; }
.live__item.is-enter .pill { animation: imho-pop .45s 1.1s var(--ease) both; }
.live__item.is-leave { animation: imho-live-out .5s ease both; }
@keyframes imho-live-in { from { opacity: 0; transform: translateY(26px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes imho-live-out { to { opacity: 0; transform: translateY(-24px) scale(.95); } }
@keyframes imho-stars { from { width: 0; } }
@keyframes imho-pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
/* «печатает…» */
.live__typing .live__bubble { width: max-content; padding: 14px 18px; display: flex; align-items: center; }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 16px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: imho-typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes imho-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
.live__typing-label { font-size: var(--fs-sm); color: var(--ink-3); margin-left: 10px; }

/* ---------- Бегущая строка «обсуждают» ---------- */
.ticker { position: relative; overflow: hidden; background: var(--ink); padding: 14px 0; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.ticker__track { display: flex; width: max-content; animation: imho-ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.ticker__list a { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; white-space: nowrap; font-size: var(--fs-sm); transition: background-color .2s; }
.ticker__list a:hover { background: rgba(255, 255, 255, .18); }
.ticker__thumb { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; flex: none; }
.ticker__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.ticker__thumb .thumb-letter { font-size: 13px; }
.ticker__name { font-weight: 600; }
.ticker__rate { display: inline-flex; align-items: center; gap: 3px; color: #ffc53d; font-weight: 700; }
.ticker__n { color: rgba(255, 255, 255, .6); }
@keyframes imho-ticker { to { transform: translateX(-50%); } }

/* ---------- «Что говорят люди» — круговая диаграмма ---------- */
.pulse__grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .pulse__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; } }
.pulse__chart { position: relative; width: min(340px, 80vw); margin-inline: auto; }
.donut { display: block; width: 100%; height: auto; transform: rotate(-90deg); overflow: visible; }
.donut circle { fill: none; stroke-width: 5.2; }
.donut__track { stroke: var(--line); }
.donut__seg { stroke-dasharray: calc(var(--len) * 1px) 100px; stroke-dashoffset: calc(var(--off) * 1px - 25px); transition: stroke-dasharray 1.6s var(--ease); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center b { font-size: clamp(40px, 7vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--rec); }
.donut__center span { color: var(--ink-2); font-weight: 600; }
.pulse__legend { display: grid; gap: 14px; margin: var(--s-6) 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pulse__legend { grid-template-columns: repeat(3, 1fr); } }
.pulse__legend li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--mist); }
.pulse__legend .dot { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; }
.pulse__legend b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.pulse__legend span:last-child { color: var(--ink-2); font-size: var(--fs-sm); }
.pulse__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.pulse__facts b { color: var(--ink); font-size: var(--fs-lg); font-weight: 700; margin-right: 4px; }

/* ---------- Цветные разделы каталога ---------- */
.catdir--sec { display: block; columns: 4 270px; column-gap: var(--s-4); }
.catdir--sec .catdir__group { break-inside: avoid; margin-bottom: var(--s-4); padding: 18px 18px 10px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.catdir--sec .catdir__group:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(34, 27, 53, .45); border-color: color-mix(in srgb, var(--sec) 35%, var(--line)); }
.catdir__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; color: var(--ink); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--sec) 30%, transparent); }
.catdir__name { flex: 1; font-weight: 700; font-size: var(--fs-lg); line-height: 1.25; }
.catdir__head .n { color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.catdir__head:hover .catdir__name { color: var(--sec); }
.sec-badge { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px 15px 15px 5px; background: var(--sec); color: #fff; box-shadow: 0 10px 20px -10px var(--sec); transition: transform .3s var(--ease); }
.catdir__group:hover .sec-badge { transform: rotate(-8deg) scale(1.08); }

/* ---------- Блоки «Пишете отзывы?» / «Представляете компанию?» ---------- */
.path { position: relative; overflow: hidden; }
.path__art { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.mini-bubble { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-bubble); background: var(--mist); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; box-shadow: 0 10px 24px -16px rgba(34, 27, 53, .5); animation: imho-bob 5s ease-in-out infinite; }
.mini-bubble--1 { color: var(--star); }
.mini-bubble--2 { animation-delay: -2.5s; }
.path--rep .mini-bubble { background: rgba(255, 255, 255, .95); color: var(--plum); }
.path--rep .mini-bubble--4 { animation-delay: -2s; color: var(--rec); }
@keyframes imho-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Карточки: живой отклик на наведение ---------- */
.obj-tile, .rcard__bubble { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .7s var(--ease); }
.obj-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(34, 27, 53, .5); }
a.rcard__bubble { display: block; color: inherit; text-decoration: none; }
a.rcard__bubble:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(34, 27, 53, .5); border-color: var(--line-2); }
.rcard__obj b { color: var(--ink); }
.rcard__title { display: block; }
.rcard__text { display: -webkit-box; }
.btn--bubble { box-shadow: 0 10px 24px -12px rgba(239, 45, 99, .7); transition: background-color .15s, transform .15s var(--ease), box-shadow .2s; }
.btn--bubble:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(239, 45, 99, .8); }
.review__bubble { transition: box-shadow .25s var(--ease), border-color .25s; }
.review:hover > .review__inner .review__bubble { border-color: var(--line-2); box-shadow: 0 16px 34px -26px rgba(34, 27, 53, .45); }

/* ---------- Появление при прокрутке ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .25s, border-color .25s; transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }
.js-motion [data-reveal].is-done { transition-delay: 0s; }
.js-motion .obj-tile.is-visible:hover, .js-motion .catdir--sec .catdir__group.is-visible:hover { transform: translateY(-3px); }
.js-motion .pulse__chart:not(.is-visible) .donut__seg { stroke-dasharray: 0 100px; }

/* Панель рейтинга объекта: звёзды загораются, полосы растут */
.js-motion .rating-panel .stars__on { transition: width 1.1s .2s var(--ease); }
.js-motion .rating-panel:not(.is-visible) .stars__on { width: 0 !important; }
.dist__bar i { transform-origin: left; transition: transform 1s var(--ease); }
.js-motion .rating-panel:not(.is-visible) .dist__bar i { transform: scaleX(0); }
.js-motion .rating-panel .dist li:nth-child(2) .dist__bar i { transition-delay: .08s; }
.js-motion .rating-panel .dist li:nth-child(3) .dist__bar i { transition-delay: .16s; }
.js-motion .rating-panel .dist li:nth-child(4) .dist__bar i { transition-delay: .24s; }
.js-motion .rating-panel .dist li:nth-child(5) .dist__bar i { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
	.blob, .floaty, .pulse-dot::after, .ticker__track, .mini-bubble, .typing i, .live__item.is-enter, .live__item.is-leave, .live__item.is-enter .stars__on, .live__item.is-enter .pill { animation: none !important; }
	.js-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
	.ticker__track { width: auto; flex-wrap: wrap; }
	.ticker__list[aria-hidden] { display: none; }
}
