/* Volontyr Ratings — тёмный «изумруд»: стекло, медали, мягкие анимации (та же семья, что Volontyr Travel) */
:root {
  --acc: 52,211,153; /* акцент — изумрудный */
  --bg: #050c0a; --card: rgba(255,255,255,.035); --card-hi: rgba(255,255,255,.06);
  --line: rgba(var(--acc),.24); --line2: rgba(255,255,255,.08); --line3: rgba(255,255,255,.14);
  --text: #eef6f2; --muted: #9db0a8; --dim: #64776f;
  --accent: #34d399; --accent2: #a7f3d0;
  --grad: linear-gradient(135deg, #d1fae5 0%, #34d399 50%, #0ea5a4 100%);
  --gold: linear-gradient(135deg, #fbe7bf 0%, #e3b871 45%, #a87a3a 100%);
  --silver: linear-gradient(135deg, #fafafa 0%, #c9ccd1 50%, #8b9098 100%);
  --bronze: linear-gradient(135deg, #f6cfa8 0%, #c98a55 50%, #865631 100%);
  --star: #f5c451; --warn: #fbbf24; --red: #ff9c88;
  --r: 22px; --r-sm: 14px; --shadow: 0 20px 50px -24px rgba(0,0,0,.8); --ease: cubic-bezier(.2,.8,.2,1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif; --font-h: 'Unbounded', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.45 var(--font); }
body { min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* фон */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .26; animation: drift 28s ease-in-out infinite alternate; }
.bg i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(circle, #10b981, transparent 65%); }
.bg i:nth-child(2) { right: -25vmax; top: 15vh; background: radial-gradient(circle, #0e7490, transparent 65%); animation-duration: 36s; animation-delay: -8s; }
.bg i:nth-child(3) { left: 20vw; bottom: -35vmax; background: radial-gradient(circle, #a16207, transparent 65%); animation-duration: 42s; animation-delay: -16s; opacity: .14; }
.bg::before, .bg::after { content: ''; position: absolute; inset: 0; background-repeat: no-repeat; animation: twinkle 4.5s ease-in-out infinite alternate; }
.bg::before { background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #d1fae5, transparent), radial-gradient(1.5px 1.5px at 42% 62%, #fff, transparent), radial-gradient(1px 1px at 88% 48%, #fff, transparent), radial-gradient(1.5px 1.5px at 24% 86%, #a7f3d0, transparent), radial-gradient(1px 1px at 64% 32%, #fff, transparent); }
.bg::after { background-image: radial-gradient(1px 1px at 32% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 76%, #fbe7bf, transparent), radial-gradient(1px 1px at 6% 52%, #fff, transparent), radial-gradient(1.5px 1.5px at 56% 92%, #fff, transparent), radial-gradient(1px 1px at 70% 66%, #d1fae5, transparent), radial-gradient(1px 1px at 18% 38%, #fff, transparent); animation-duration: 6.5s; animation-delay: -3s; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .85; } }
@keyframes drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); } }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100vw - 760px) / 2)) 10px;
  background: rgba(5,12,10,.62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; }
.brand img { border-radius: 11px; box-shadow: 0 6px 20px -8px rgba(var(--acc),.6); }
.brand__name { font: 500 16px/1 var(--font-h); letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
.brand__name b { font-weight: 600; color: var(--text); }
.top__lang { height: 34px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--acc),.08); color: var(--accent2); font-weight: 800; font-size: 13px; }
.lang { position: relative; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 2px; min-width: 160px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8,20,16,.96); box-shadow: var(--shadow); animation: pop .22s var(--ease) both; }
.lang__menu[hidden] { display: none; }
.lang__menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 11px; background: none; font-size: 14px; font-weight: 700; text-align: left; }
.lang__menu button b { width: 26px; color: var(--accent2); font-size: 12.5px; }
.lang__menu button:hover, .lang__menu button.is-on { background: rgba(var(--acc),.12); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(-4px); } }
.caret { font-style: normal; font-size: 10px; margin-left: 2px; display: inline-block; transition: transform .25s var(--ease); }
.is-open .caret { transform: rotate(180deg); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 14px 16px 90px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* главный экран */
.hero { display: grid; gap: 8px; padding: 18px 2px 4px; animation: rise .7s var(--ease) both; }
.hero__kicker { justify-self: start; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--acc),.08); color: var(--accent2); font-size: 12px; font-weight: 800; }
.hero__title { margin: 0; font: 600 clamp(30px, 8vw, 46px)/1.05 var(--font-h); letter-spacing: -.03em; background: linear-gradient(180deg, #fff 30%, #b7e9d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #d1fae5, #34d399, #0ea5a4, #34d399, #d1fae5); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero__sub { max-width: 560px; color: var(--muted); font-size: 15px; font-weight: 600; }

/* поиск */
.search { display: flex; align-items: center; height: 62px; padding-left: 16px; border-radius: 20px; border: 1.5px solid rgba(var(--acc),.45); background: rgba(8,20,16,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .25s; }
.search:focus-within { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 5px rgba(var(--acc),.12); }
.search__icon { width: 22px; height: 22px; flex: none; color: var(--star); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: none; font-size: 16.5px; font-weight: 700; }
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--dim); font-weight: 600; font-size: clamp(12px, 3.5vw, 16px); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { display: grid; place-items: center; width: 50px; height: 50px; margin-right: 6px; flex: none; border: 0; border-radius: 15px; background: var(--grad); color: #04261b; box-shadow: 0 8px 22px -8px rgba(var(--acc),.7); transition: transform .15s var(--ease); }
.search__go svg { width: 22px; height: 22px; }
.search__go:active { transform: scale(.93); }

#out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 4px; }
#out > * { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.sect { margin: 0 2px; font: 600 15px/1.2 var(--font-h); }
.hint { margin: 0 2px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.note { padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--warn); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }

/* популярные категории */
/* категории: компактные плитки, у каждой своя цветная иконка-«приложение» со свечением */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat { --c1: #34d399; --c2: #0ea5a4; position: relative; overflow: hidden; display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px 12px 9px 9px; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); text-align: left; font: 700 14px/1.2 var(--font); letter-spacing: -.005em; transition: border-color .45s var(--ease), transform .45s var(--ease), background .45s var(--ease); animation: catIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes catIn { from { opacity: 0; transform: translateY(6px); } }
.cat::before { content: ''; position: absolute; left: -24px; top: 50%; width: 96px; height: 96px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, var(--c1), transparent 70%); opacity: .06; transition: opacity .5s var(--ease); pointer-events: none; }
.cat i { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--c2) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 26%, transparent); color: var(--c1); transition: background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease); }
.cat i svg { width: 20px; height: 20px; stroke-width: 1.8; }
.cat span { position: relative; min-width: 0; }
@media (hover: hover) {
  .cat:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c1) 28%, transparent); background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
  .cat:hover::before { opacity: .13; }
  .cat:hover i { transform: scale(1.04); background: color-mix(in srgb, var(--c2) 28%, transparent); border-color: color-mix(in srgb, var(--c1) 40%, transparent); }
}
.cat:active { transform: scale(.97); }
.cat--phone { --c1: #60a5fa; --c2: #2563eb; } .cat--headphones { --c1: #c084fc; --c2: #7c3aed; } .cat--tv { --c1: #22d3ee; --c2: #0e7490; }
.cat--washer { --c1: #5eead4; --c2: #0d9488; } .cat--fridge { --c1: #93c5fd; --c2: #3b82f6; } .cat--laptop { --c1: #a5b4fc; --c2: #4f46e5; }
.cat--robot { --c1: #6ee7b7; --c2: #059669; } .cat--coffee { --c1: #fbbf24; --c2: #b45309; } .cat--watch { --c1: #fda4af; --c2: #e11d48; }
.cat--tablet { --c1: #fdba74; --c2: #ea580c; } .cat--vacuum { --c1: #bef264; --c2: #4d7c0f; } .cat--fryer { --c1: #fca5a5; --c2: #dc2626; }

/* шапка результата */
.head { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); }
.head b { font: 600 clamp(19px, 5vw, 24px)/1.15 var(--font-h); letter-spacing: -.02em; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font-size: 12px; font-weight: 800; }
.pill--acc { border-color: var(--line); color: var(--accent2); background: rgba(var(--acc),.08); }
.pill--warn { border-color: rgba(251,191,36,.35); color: var(--warn); background: rgba(251,191,36,.08); }

/* карточка товара */
.list { display: grid; gap: 12px; }
.pr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); box-shadow: var(--shadow); opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s, background .25s; }
.pr.is-in { opacity: 1; transform: none; }
.pr.is-seen, .pr.is-seen * { transition-delay: 0s !important; }
.pr.is-seen { transition: border-color .25s, background .25s; }
.pr:hover { border-color: var(--line3); background: var(--card-hi); }
.pr--1 { padding-top: 22px; border-color: rgba(227,184,113,.55); background: linear-gradient(160deg, rgba(227,184,113,.12), rgba(255,255,255,.02) 50%); }
.pr__head { display: flex; align-items: stretch; gap: 14px; }
/* оценка — ровно посередине между брендом и строкой ниже карточки (поэтому блок дотянут вниз на величину отступа) */
.pr__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: -4px; }
.pr__info .pr__name { flex: none; }
.pr__info .pr__score { margin: auto 0; position: relative; top: -6px; }
@media (max-width: 640px) { .pr__info { margin-bottom: -6px; } }
.medal { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 600 14px/1 var(--font-h); color: #1a1408; box-shadow: 0 6px 16px -6px rgba(0,0,0,.8); }
.medal--n { color: var(--muted); border: 1px solid var(--line3); background: none; box-shadow: none; }
.medal--2 { background: var(--silver); } .medal--3 { background: var(--bronze); }
/* фото товара слева от названия; медаль — значком в углу фото */
.pi { position: relative; width: clamp(108px, 32vw, 150px); height: clamp(108px, 32vw, 150px); align-self: start; flex: none; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(145deg, rgba(var(--acc),.16), rgba(255,255,255,.03)); }
.pi img { width: 100%; height: 100%; object-fit: contain; border-radius: 15px; background: #fff; padding: 6px; }
.pi__l { font: 600 40px/1 var(--font-h); color: var(--accent2); opacity: .8; }
.pi--img .pi__l { display: none; }
.pi--art svg { width: 100%; height: 100%; border-radius: 15px; }
.pi .medal { position: absolute; top: -10px; left: -10px; width: 32px; height: 32px; font-size: 13px; }
.pi .medal--n { background: #0b1a15; }
.pr--1 .pi { border-color: rgba(227,184,113,.45); }
.medal__crown { position: absolute; top: -11px; left: 50%; width: 17px; transform: translateX(-50%); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-2px); } }
.pr__name { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pr__name b { font: 600 16.5px/1.25 var(--font-h); letter-spacing: -.01em; }
.pr__name small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pr__score { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.pr__score .stars { white-space: nowrap; }
.pr__score small { flex-basis: 100%; }
.pr__score b { font: 600 22px/1 var(--font-h); }
.pr__score small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
/* звёзды заполняются золотом слева направо */
.stars { position: relative; display: inline-block; color: rgba(255,255,255,.16); font-size: 14px; letter-spacing: 1px; line-height: 1; }
.stars::before { content: '★★★★★'; }
.stars i { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; white-space: nowrap; font-style: normal; color: var(--star); text-shadow: 0 0 10px rgba(245,196,81,.45); transition: width 1.2s var(--ease) .3s; }
.is-in .stars i { width: var(--w); }
.is-seen .stars i { transition: none; }
/* фото: выезжает при появлении, приподнимается при наведении */
.pr .pi { opacity: 0; transform: scale(.82) rotate(-4deg); transition: opacity .6s var(--ease) .12s, transform .7s cubic-bezier(.3,1.5,.5,1) .12s; }
.pr.is-in .pi { opacity: 1; transform: none; }
.pr.is-seen .pi { transition: transform .4s var(--ease); }
@media (hover: hover) { .pr.is-in:hover .pi { transform: translateY(-4px) rotate(-2deg) scale(1.03); } }
/* бегущая подсветка рамки у №1 и у поиска */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }
.pr--1::before, .search::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: orbit 6s linear infinite; }
.pr--1::before { background: conic-gradient(from var(--a), transparent 0 62%, #fbe7bf 76%, #e3b871 82%, transparent 92%); }
.search { position: relative; }
.search::before { inset: -1.5px; background: conic-gradient(from var(--a), transparent 0 60%, var(--accent2) 75%, var(--accent) 82%, transparent 92%); animation-duration: 5s; }
/* блик на золотой медали */
.medal--1 { background: linear-gradient(115deg, #a87a3a 0%, #e3b871 32%, #fff7e0 46%, #e3b871 60%, #a87a3a 100%); background-size: 260% 100%; animation: gleam 3.8s ease-in-out infinite; }
@keyframes gleam { 0%, 45% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
/* подробности раскрываются по очереди */
.pr__more--anim > * { animation: rise .45s var(--ease) both; }
.pr__more--anim > :nth-child(2) { animation-delay: 60ms; } .pr__more--anim > :nth-child(3) { animation-delay: 120ms; }
.pr__more--anim > :nth-child(4) { animation-delay: 180ms; } .pr__more--anim > :nth-child(5) { animation-delay: 240ms; }
.pr__why { color: var(--text); font-size: 14px; font-weight: 600; }
/* «Купить»: справа на широком экране, под фото — на телефоне */
.pr__buy { flex: none; width: 210px; display: grid; align-content: center; gap: 8px; }
.btn--buy { min-height: 54px; flex-wrap: wrap; column-gap: 6px; row-gap: 0; font-size: 15px; position: relative; overflow: hidden; }
.btn--buy small { font-size: 12px; font-weight: 700; opacity: .75; }
.btn--buy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: buyShine 4.5s ease-in-out infinite; }
@keyframes buyShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn--buy:hover { filter: brightness(1.08); }
.btn--shops { min-height: 40px; font-size: 12.5px; white-space: nowrap; }
@media (max-width: 640px) {
  .pr__head { flex-wrap: wrap; }
  .pr__buy { width: 100%; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .btn--buy { flex-direction: column; }
  .btn--shops { min-height: 54px; }
}
.sheet__sub { margin: -4px 0 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.shoplist { display: grid; gap: 10px; }
@media (min-width: 560px) { .shoplist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shoprow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255,255,255,.035); text-decoration: none; transition: border-color .2s, background .2s, transform .15s var(--ease); animation: rise .4s var(--ease) both; }
.shoprow:nth-child(2) { animation-delay: 50ms; } .shoprow:nth-child(3) { animation-delay: 100ms; } .shoprow:nth-child(4) { animation-delay: 150ms; } .shoprow:nth-child(5) { animation-delay: 200ms; }
.shoprow:hover { border-color: var(--line); background: rgba(var(--acc),.07); }
.shoprow:active { transform: scale(.98); }
.shoprow__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(var(--acc),.12); color: var(--accent2); font: 600 18px/1 var(--font-h); }
.shoprow__t { display: grid; gap: 2px; min-width: 0; }
.shoprow__t b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shoprow__t small { color: var(--dim); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shoprow__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line3); color: var(--muted); font-weight: 800; transition: background .2s, color .2s; }
.shoprow:hover .shoprow__go { background: var(--accent); border-color: var(--accent); color: #04261b; }
.shoprow--main { border-color: var(--line); background: rgba(var(--acc),.06); }
.shoprow--main .shoprow__ic { background: var(--grad); color: #04261b; }
.shoprow--main .shoprow__go { background: var(--grad); border-color: transparent; color: #04261b; }
@media (min-width: 560px) { .sheet__card { padding: 22px 22px calc(24px + env(safe-area-inset-bottom)); gap: 14px; } }
.pr__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pr__more { display: grid; gap: 12px; }
.pr__more[hidden] { display: none; }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pc div { display: grid; gap: 6px; padding: 12px; border-radius: var(--r-sm); background: rgba(0,0,0,.22); border: 1px solid var(--line2); }
.pc b { font-size: 13px; }
.pc ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pc .plus b { color: var(--accent); } .pc .minus b { color: var(--red); }
@media (max-width: 520px) { .pc { grid-template-columns: minmax(0, 1fr); } }
.srcs { display: grid; gap: 6px; }
.src { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); text-decoration: none; font-size: 13.5px; font-weight: 700; }
a.src:hover { border-color: var(--line3); }
.src small { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.shops { display: flex; flex-wrap: wrap; gap: 6px; }
.shop { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--acc),.07); font-size: 13px; font-weight: 800; text-decoration: none; }
.shop:hover { background: rgba(var(--acc),.14); }

/* кнопки */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 12px; border-radius: 14px; border: 1px solid transparent; font-weight: 800; font-size: 13.5px; text-decoration: none; text-align: center; transition: transform .15s var(--ease), filter .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn--acc { background: var(--grad); color: #04261b; box-shadow: 0 10px 24px -12px rgba(var(--acc),.8); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line3); }
.btn--ghost.is-on { border-color: var(--accent); color: var(--accent2); background: rgba(var(--acc),.1); }
.btn--more { width: 100%; border: 1.5px dashed rgba(var(--acc),.5); background: rgba(var(--acc),.05); color: var(--accent2); min-height: 52px; }

/* загрузка */
.load { display: grid; gap: 12px; }
.load__title { display: flex; align-items: center; gap: 10px; color: var(--accent2); font-weight: 800; }
.load__stars { display: inline-flex; gap: 2px; }
.load__stars b { color: rgba(255,255,255,.15); font-size: 18px; animation: starPulse 1.6s ease-in-out infinite; }
.load__stars b:nth-child(2) { animation-delay: .15s; } .load__stars b:nth-child(3) { animation-delay: .3s; } .load__stars b:nth-child(4) { animation-delay: .45s; } .load__stars b:nth-child(5) { animation-delay: .6s; }
@keyframes starPulse { 0%, 100% { color: rgba(255,255,255,.15); transform: scale(1); } 35% { color: var(--star); transform: scale(1.3) rotate(15deg); text-shadow: 0 0 12px rgba(245,196,81,.7); } }
.load__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.load__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); animation: fill 45s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes fill { to { width: 94%; } }
@keyframes spin { to { transform: rotate(360deg); } }
.load__steps { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.skel { height: 120px; border-radius: var(--r); border: 1px solid var(--line2); background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { padding: 34px 16px; border-radius: var(--r); border: 1px dashed var(--line3); text-align: center; color: var(--muted); font-weight: 600; }

/* сравнение */
.cmpbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); min-height: 50px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--grad); color: #04261b; font-weight: 800; box-shadow: 0 14px 34px -10px rgba(var(--acc),.8); animation: pop .3s var(--ease) both; }
.cmpbar[hidden] { display: none; }
.cmpbar.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.12); } }
.cmp { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.cmp table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 9px 8px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.cmp th { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; width: 90px; }
.cmp td b { font-size: 13.5px; }
.cmp .best { color: var(--accent); font-weight: 800; }

/* нижнее окно */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet__bg { position: absolute; inset: 0; background: rgba(2,8,6,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.sheet__card { position: relative; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(180deg, #0d201a, #06100d); transform: translateY(100%); transition: transform .32s var(--ease); }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__card { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet__head b { font: 600 18px/1.2 var(--font-h); }
.sheet__x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line3); background: rgba(255,255,255,.04); }

.foot { max-width: 760px; margin: 0 auto; padding: 10px 16px calc(28px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.8; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .pr, .pr .pi { opacity: 1; transform: none; } .stars i { width: var(--w); } }

/* ---------- полезные блоки: награды, наш выбор, фильтры, оценки по критериям, «дешевле», кому подойдёт ---------- */
.head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.head__share { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; }

.aws { display: flex; flex-wrap: wrap; gap: 6px; }
.aw { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid; }
.aw--best { color: #fbe7bf; border-color: rgba(227,184,113,.5); background: rgba(227,184,113,.12); }
.aw--budget { color: var(--accent2); border-color: var(--line); background: rgba(var(--acc),.1); }
.aw--premium { color: #d8c8ff; border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.12); }
.aw--for { color: #bfe3ff; border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.1); }

.picks { display: grid; gap: 10px; }
.picks__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .picks__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; } .picks__row::-webkit-scrollbar { display: none; } .pick { flex: 0 0 72%; scroll-snap-align: start; } }
.pick { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--card); text-align: left; transition: border-color .2s, transform .15s var(--ease), background .2s; animation: rise .5s var(--ease) both; }
.pick:nth-child(2) { animation-delay: 70ms; } .pick:nth-child(3) { animation-delay: 140ms; }
.pick:hover { background: var(--card-hi); }
.pick:active { transform: scale(.98); }
.pick b { font: 600 14.5px/1.25 var(--font-h); }
.pick small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pick__aw { font-size: 12px; font-weight: 800; }
.pick--best { border-color: rgba(227,184,113,.45); background: linear-gradient(160deg, rgba(227,184,113,.12), rgba(255,255,255,.02) 60%); } .pick--best .pick__aw { color: #fbe7bf; }
.pick--budget .pick__aw { color: var(--accent2); } .pick--budget:hover { border-color: var(--line); }
.pick--premium .pick__aw { color: #d8c8ff; } .pick--premium:hover { border-color: rgba(167,139,250,.45); }

.filters { display: grid; gap: 8px; }
.filters__row { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.filters__row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--line3); }
.chip.is-on { color: #04261b; background: var(--grad); border-color: transparent; }

.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 8px; }
.bar span { color: var(--muted); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar b { font: 600 13px/1 var(--font-h); }
.bar i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #0ea5a4, #34d399); transition: width 1.1s var(--ease) .35s; }
.bar i.hi::after { background: linear-gradient(90deg, #34d399, #d1fae5); }
.bar i.lo::after { background: linear-gradient(90deg, #b45309, #fbbf24); }
.is-in .bar i::after { width: var(--v); }
.is-seen .bar i::after { transition: none; }

.alt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(var(--acc),.05); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; transition: background .2s; }
.alt span { flex: 1; min-width: 0; }
.alt b { color: var(--text); font-weight: 800; }
.alt em { font-style: normal; color: var(--accent); font-weight: 800; white-space: nowrap; }
.alt:hover { background: rgba(var(--acc),.1); }

.fit { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: rgba(0,0,0,.22); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.fit b { color: var(--text); }

.pr.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: var(--shadow), 0 0 0 3px rgba(var(--acc),.6); } }

.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--accent2); }
.filters__sep { flex: none; width: 1px; margin: 6px 4px; background: var(--line3); }

/* ---------- «Коротко», как это работает, пример сравнения ---------- */
.verdict { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(var(--acc),.12), rgba(var(--acc),.03)); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.verdict b { color: var(--accent2); margin-right: 4px; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--card); animation: rise .5s var(--ease) both; }
.how__step i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(var(--acc),.1); border: 1px solid rgba(var(--acc),.18); color: var(--accent2); }
.how__step i svg { width: 22px; height: 22px; }
.how__step b { font: 600 14px/1.25 var(--font-h); }
.how__step p { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; }

.ex { display: grid; gap: 10px; }
.ex__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .ex__row { grid-template-columns: minmax(0, 1fr); } }
.ex__col { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 16px; border-radius: 18px; border: 1px solid var(--line2); background: var(--card); }
.ex__col small { color: var(--dim); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ex__n { position: absolute; top: 12px; right: 14px; font: 600 13px/1 var(--font-h); color: var(--dim); }
.ex__col b { font: 600 15px/1.25 var(--font-h); }
.ex__col em { font-style: normal; font-size: 13px; font-weight: 800; }
.ex__col p { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.ex__col--bad em { color: var(--red); }
.ex__col--bad b { text-decoration: line-through; text-decoration-color: rgba(255,156,136,.6); }
.ex__col--good { border-color: rgba(227,184,113,.5); background: linear-gradient(160deg, rgba(227,184,113,.12), rgba(255,255,255,.02) 60%); }
.ex__col--good .ex__n { color: #e3b871; }
.ex__col--good em { color: var(--star); }
.head .verdict b { font: inherit; font-weight: 800; letter-spacing: 0; }
.stats { color: var(--accent2); font-size: 13px; font-weight: 700; }

/* ---------- главная: глобус, меняющееся слово, живое демо ---------- */
.hero { position: relative; }
.hero > :not(.hero__globe) { position: relative; z-index: 1; }
.hero__globe { position: absolute; z-index: 0; right: -70px; top: -50px; width: 440px; height: 440px; pointer-events: none; opacity: 0; animation: globeIn 1.6s var(--ease) .2s forwards;
  -webkit-mask: radial-gradient(closest-side, #000 82%, transparent); mask: radial-gradient(closest-side, #000 82%, transparent); }
@keyframes globeIn { from { opacity: 0; transform: scale(.9) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .hero__globe { width: 320px; height: 320px; right: -120px; top: -40px; animation-name: globeInM; } @keyframes globeInM { from { opacity: 0; transform: scale(.9); } to { opacity: .55; transform: none; } } }
.hero__title .rot { display: inline-block; color: #fff; -webkit-text-fill-color: #fff; transition: transform .32s var(--ease), opacity .32s var(--ease), filter .32s; }
.hero__title .rot.is-out { opacity: 0; transform: translateY(-.35em) rotateX(60deg); filter: blur(4px); }
.hero__title .rot.is-in { animation: rotIn .5s var(--ease); }
@keyframes rotIn { from { opacity: 0; transform: translateY(.35em) rotateX(-60deg); filter: blur(4px); } }

.rd { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(var(--acc),.07), rgba(255,255,255,.015) 60%); box-shadow: var(--shadow); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rd.is-out { opacity: 0; transform: translateY(6px); }
.rd__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rd__head b { font: 600 15px/1.2 var(--font-h); }
.rd__head span { color: var(--dim); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rd__mode { color: var(--muted); font-size: 13px; font-weight: 700; transition: color .4s; }
.rd__mode.is-b { color: var(--accent2); animation: rise .45s var(--ease); }
.rd__list { position: relative; }
.rd__row { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px 0 8px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(5,12,10,.55); transition: transform .9s cubic-bezier(.65,0,.25,1), border-color .5s, background .5s, opacity .5s; }
.rd__pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line3); color: var(--muted); font: 600 12px/1 var(--font-h); transition: background .5s, color .5s, border-color .5s; }
.rd__name { display: grid; min-width: 0; }
.rd__name b { font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd__name small { color: var(--dim); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rd__r { font: 600 14px/1 var(--font-h); white-space: nowrap; }
.rd__r em { font-style: normal; color: var(--star); }
.rd__tag { display: inline-block; margin-left: 6px; transform: scale(.8); opacity: 0; padding: 1px 7px; border-radius: 999px; background: rgba(255,156,136,.12); border: 1px solid rgba(255,156,136,.4); color: var(--red); font-size: 10.5px; font-weight: 800; white-space: nowrap; transition: opacity .4s .5s, transform .4s .5s var(--ease); }
.rd__row.is-few { opacity: .7; border-color: rgba(255,156,136,.3); }
.rd__row.is-few .rd__tag { opacity: 1; transform: none; }
.rd__row.is-few .rd__name b { text-decoration: line-through; text-decoration-color: rgba(255,156,136,.7); }
.rd__row.is-top { border-color: rgba(227,184,113,.6); background: linear-gradient(90deg, rgba(227,184,113,.14), rgba(5,12,10,.55)); }
.rd__row.is-top .rd__pos { background: var(--gold); color: #1a1408; border-color: transparent; }

/* ---------- подиум в демо ---------- */
.rd__pod { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.rd.is-pod .rd__pod { opacity: 1; }
.rd.is-pod .rd__row { opacity: 0 !important; transform: translateY(var(--y, 0)) scale(.96); transition: opacity .4s var(--ease); }
.pod { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
.pod b { max-width: 100%; font-size: 12.5px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; animation: fadeUp .5s var(--ease) forwards; animation-delay: calc(var(--pd) + .45s); }
.pod small { color: var(--muted); font-size: 11px; font-weight: 700; opacity: 0; animation: fadeUp .5s var(--ease) forwards; animation-delay: calc(var(--pd) + .55s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pod__m { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 14px/1 var(--font-h); color: #1a1408; box-shadow: 0 8px 18px -8px rgba(0,0,0,.9); transform: translateY(-30px) scale(.4); opacity: 0; animation: medalDrop .8s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(var(--pd) + .3s); }
.pod__col { position: relative; display: block; width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; height: 0; animation: podUp .9s cubic-bezier(.2,.9,.2,1) forwards; animation-delay: var(--pd); }
.pod--1 { --pd: .25s; --h: 112px; } .pod--2 { --pd: 0s; --h: 78px; } .pod--3 { --pd: .12s; --h: 56px; }
.pod--1 .pod__m { background: var(--gold); width: 40px; height: 40px; } .pod--2 .pod__m { background: var(--silver); } .pod--3 .pod__m { background: var(--bronze); }
.pod--1 .pod__col { background: linear-gradient(180deg, rgba(227,184,113,.5), rgba(227,184,113,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 -10px 30px -12px rgba(227,184,113,.7); }
.pod--2 .pod__col { background: linear-gradient(180deg, rgba(201,204,209,.4), rgba(201,204,209,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.pod--3 .pod__col { background: linear-gradient(180deg, rgba(201,138,85,.42), rgba(201,138,85,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
@keyframes podUp { to { height: var(--h); } }
@keyframes medalDrop { to { opacity: 1; transform: none; } }
.pod__col em { position: absolute; left: 50%; top: 0; font-style: normal; font-size: 12px; color: var(--star); text-shadow: 0 0 8px rgba(245,196,81,.8); opacity: 0; animation: burst 1.3s cubic-bezier(.15,.8,.3,1) forwards; animation-delay: calc(1.05s + var(--d)); }
.pod__col em:nth-child(3n) { color: #fff7e0; font-size: 9px; } .pod__col em:nth-child(4n) { color: var(--accent2); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, 0) scale(.4) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1) rotate(var(--r)); } }

/* ---------- загрузка: радар-сканер магазинов разных стран ---------- */
.scan { display: grid; place-items: center; padding: 60px 0 22px; } /* отступ от поиска — флажки сверху не прилипают к строке */
.scan__radar { position: relative; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc),.10), rgba(var(--acc),.02) 60%, transparent 70%); border: 1px solid rgba(var(--acc),.25); }
.scan__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(52,211,153,.45), rgba(52,211,153,0) 70deg, transparent 360deg); animation: sweep 2.2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.scan__ring { position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(var(--acc),.25); }
.scan__ring--2 { inset: 42%; border-style: solid; border-color: rgba(var(--acc),.18); }
.scan__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--star); font-size: 22px; text-shadow: 0 0 14px rgba(245,196,81,.8); animation: corePulse 1.6s ease-in-out infinite; }
@keyframes corePulse { 50% { transform: translate(-50%, -50%) scale(1.25); } }
.scan__dot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(0); display: grid; justify-items: center; gap: 2px; animation: dotIn .5s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: var(--d); }
.scan__dot em { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(8,20,16,.92); border: 1px solid var(--line); font-style: normal; font-size: 16px; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: dotPing 1.4s ease-out; animation-delay: var(--d); }
.scan__dot small { padding: 1px 7px; border-radius: 999px; background: rgba(8,20,16,.9); color: var(--muted); font: 600 9.5px/1.5 var(--font-h); letter-spacing: .06em; white-space: nowrap; }
.scan__dot small b { color: var(--accent); opacity: 0; animation: fadeIn .3s forwards; animation-delay: calc(var(--d) + .9s); }
@keyframes dotIn { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 100% { box-shadow: 0 0 0 14px rgba(52,211,153,0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- медаль №1 в результатах: падает с отскоком и вспышкой ---------- */
.pr--1.is-in:not(.is-seen) .pi .medal--1 { animation: medalFall .9s cubic-bezier(.3,1.6,.45,1) .35s both, gleam 3.8s ease-in-out 1.4s infinite; }
@keyframes medalFall { from { opacity: 0; transform: translateY(-46px) scale(1.6) rotate(-25deg); } }
.pr--1.is-in:not(.is-seen) .pi .medal--1::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fbe7bf; opacity: 0; animation: medalFlash .9s ease-out 1s; pointer-events: none; }
@keyframes medalFlash { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* слова заголовка, которые меняются; у выбранной категории линия прорисовывается слева направо */
.hero__title .tw { display: inline-block; transition: transform .32s var(--ease), opacity .32s var(--ease), filter .32s; }
.hero__title .tw.is-out { opacity: 0; transform: translateY(-.35em) rotateX(60deg); filter: blur(4px); }
.hero__title .tw.is-in { animation: rotIn .5s var(--ease); }
.hero__title .rot { position: relative; }
.hero__title .rot::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .075em; border-radius: 1em; background: linear-gradient(90deg, #34d399, #a7f3d0 60%, rgba(167,243,208,.2)); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.65,0,.25,1) .1s; box-shadow: 0 0 12px rgba(52,211,153,.5); }
.hero__title .rot.is-fixed::after { transform: scaleX(1); }
.hero__title .rot.is-static::after { transition: none; }
.hero__title span.tw { color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- Ask AI: плавающая кнопка и чат ---------- */
.ai-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 8px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #0f3d2e, #0b2a22); color: var(--text); font-weight: 800; font-size: 14.5px; letter-spacing: .01em;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--acc),.45), 0 0 26px -6px rgba(var(--acc),.55); transition: transform .35s var(--ease), opacity .3s, box-shadow .3s; animation: fabIn .7s var(--ease) .6s both; }
.ai-fab::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a), transparent 0 60%, var(--accent2) 75%, var(--accent) 82%, transparent 92%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: orbit 4s linear infinite; pointer-events: none; }
.ai-fab__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #04261b; box-shadow: 0 0 16px rgba(var(--acc),.6); animation: sparkle 3s ease-in-out infinite; }
.ai-fab__ic svg { width: 20px; height: 20px; }
@keyframes sparkle { 50% { transform: rotate(18deg) scale(1.08); } }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@media (hover: hover) { .ai-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--acc),.7), 0 0 34px -4px rgba(var(--acc),.7); } }
.ai-fab:active { transform: scale(.96); }
.ai-fab.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
@media (max-width: 520px) { .ai-fab { height: 48px; padding-right: 16px; font-size: 14px; } .ai-fab__ic { width: 32px; height: 32px; } }
.cmpbar { left: 50%; } /* «Сравнить» остаётся по центру, Ask AI — справа */

.ai { position: fixed; inset: 0; z-index: 55; }
.ai[hidden] { display: none; }
.ai__bg { position: absolute; inset: 0; background: rgba(2,8,6,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.ai__card { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #0d201a, #06100d); box-shadow: 0 30px 70px -20px rgba(0,0,0,.95), 0 0 40px -18px rgba(var(--acc),.6);
  transform-origin: bottom right; transform: translateY(16px) scale(.92); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.3,1.2), opacity .25s; }
.ai.is-open .ai__bg { opacity: 1; }
.ai.is-open .ai__card { transform: none; opacity: 1; }
@media (max-width: 520px) { .ai__card { right: 0; left: 0; bottom: 0; width: 100%; height: min(82vh, 640px); border-radius: 24px 24px 0 0; border-bottom: 0; transform-origin: bottom center; transform: translateY(100%); } }
.ai__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line2); }
.ai__head div { flex: 1; min-width: 0; display: grid; }
.ai__head b { font: 600 16px/1.2 var(--font-h); }
.ai__head small { color: var(--muted); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai__logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #04261b; font-size: 19px; box-shadow: 0 0 18px rgba(var(--acc),.5); }
.ai__log { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.5; animation: rise .35s var(--ease) both; }
.msg p { margin: 0; } .msg p + p { margin-top: 6px; }
.msg ul { margin: 4px 0; padding-left: 18px; display: grid; gap: 3px; }
.msg b { color: var(--accent2); }
.msg--ai { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--grad); color: #04261b; border-bottom-right-radius: 6px; }
.msg--typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); animation: dots 1.2s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai__sugg { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.ai__sugg::-webkit-scrollbar { display: none; }
.ai__sugg:empty { display: none; }
.ai__sugg button { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--acc),.07); color: var(--accent2); font-size: 12.5px; font-weight: 700; white-space: nowrap; animation: rise .4s var(--ease) both; }
.ai__sugg button:nth-child(2) { animation-delay: 60ms; } .ai__sugg button:nth-child(3) { animation-delay: 120ms; }
.ai__sugg button:hover { background: rgba(var(--acc),.14); }
.ai__form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line2); }
.ai__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line3); background: rgba(255,255,255,.04); font-size: 15px; font-weight: 600; }
.ai__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--acc),.12); }
.ai__form button { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 14px; background: var(--grad); color: #04261b; }
.ai__form button svg { width: 20px; height: 20px; }

/* ---------- фильтры: спокойная панель ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line2); }
.seg button { height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; transition: background .25s var(--ease), color .25s; }
.seg button:hover { color: var(--text); }
.seg button.is-on { background: rgba(var(--acc),.14); color: var(--accent2); box-shadow: inset 0 0 0 1px rgba(var(--acc),.35); }
.sel { position: relative; display: inline-flex; }
.sel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 15px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.035); color: var(--text); font: 800 13px var(--font); cursor: pointer; transition: border-color .2s; }
.sel select:hover { border-color: var(--line3); }
.sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sel.is-on select { border-color: rgba(var(--acc),.45); color: var(--accent2); background: rgba(var(--acc),.08); }
.sel option { background: #0b1a15; color: var(--text); }
@media (max-width: 560px) { .seg { display: flex; width: 100%; } .seg button { flex: 1; padding: 0 8px; } .sel { flex: 1; } .sel select { width: 100%; } }

/* ---------- подкатегории: кнопки выезжают из плитки ---------- */
.cats { grid-auto-flow: dense; }
.cat__more { position: relative; margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.05); font-style: normal; transition: transform .35s var(--ease), background .3s; }
.cat__more::before { content: ''; position: absolute; left: 50%; top: 45%; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translate(-50%, -50%) rotate(45deg); }
.cat.is-open { border-color: color-mix(in srgb, var(--c1) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 16%, transparent), rgba(255,255,255,.02)); }
.cat.is-open .cat__more { transform: rotate(180deg); background: color-mix(in srgb, var(--c2) 30%, transparent); }
.subs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c1) 28%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 9%, transparent), rgba(255,255,255,.015)); transform-origin: top center; animation: subsIn .38s cubic-bezier(.2,.9,.3,1.15) both; }
.subs.is-closing { animation: subsOut .25s var(--ease) both; }
@keyframes subsIn { from { opacity: 0; transform: translateY(-8px) scaleY(.85); } }
@keyframes subsOut { to { opacity: 0; transform: translateY(-6px) scaleY(.9); } }
.subchip { flex: 1 0 auto; min-width: 64px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(5,12,10,.55); color: var(--text); font: 600 14px/1 var(--font-h); white-space: nowrap; transition: border-color .25s, background .25s, transform .2s var(--ease); }
.subs .subchip { opacity: 0; animation: chipPop .4s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(80ms + var(--j) * 45ms); }
@keyframes chipPop { from { opacity: 0; transform: translateY(-6px) scale(.85); } to { opacity: 1; transform: none; } }
.subchip--all { font: 800 13px/1 var(--font); color: var(--muted); }
@media (hover: hover) { .subchip:hover { border-color: color-mix(in srgb, var(--c1, #34d399) 50%, transparent); background: color-mix(in srgb, var(--c1, #34d399) 12%, transparent); transform: translateY(-1px); } }
.subchip:active { transform: scale(.96); }
.subrow { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.subrow::-webkit-scrollbar { display: none; }
.subrow .subchip { flex: none; height: 38px; }
.subrow .subchip.is-on { border-color: rgba(var(--acc),.5); background: rgba(var(--acc),.14); color: var(--accent2); }
