/* Живые мокапы hero, 3D-иконки и логотипы платформ, портфолио, «Коротко». Разметка — src/lib/kaymak/service-mocks.ts, движение — src/app/services/mocks.ts. */

/* ───────── Логотипы платформ: глянцевые 3D-пузыри */
:where(.kd) .br { --bg: #2a2a2a; position: relative; flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); isolation: isolate;
  box-shadow: inset 0 -6px 10px rgb(0 0 0 / .28), inset 0 4px 8px rgb(255 255 255 / .35), 0 12px 20px -8px rgb(28 10 11 / .55), 0 2px 3px rgb(28 10 11 / .25); }
:where(.kd) .br::after { content: ""; position: absolute; z-index: 1; left: 17%; top: 8%; width: 50%; height: 32%; border-radius: 50%; background: linear-gradient(rgb(255 255 255 / .75), rgb(255 255 255 / 0)); pointer-events: none; }
:where(.kd) .br img { width: 52%; height: 52%; filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgb(0 0 0 / .25)); }
:where(.kd) .br-instagram { --bg: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
:where(.kd) .br-facebook { --bg: linear-gradient(#1877F2, #0a5bd1); }
:where(.kd) .br-meta { --bg: linear-gradient(135deg, #0081FB, #0064E1 60%, #6a3cf0); }
:where(.kd) .br-whatsapp { --bg: linear-gradient(#3ee27c, #1ebe5d); }
:where(.kd) .br-tiktok { --bg: #111; }
:where(.kd) .br-tiktok img { filter: brightness(0) invert(1) drop-shadow(1.5px 1px 0 #ff0050) drop-shadow(-1.5px -1px 0 #00f2ea); }
:where(.kd) .br-google { --bg: #fff; }
:where(.kd) .br-google img, :where(.kd) .br-googleanalytics img { filter: none; }
:where(.kd) .br-googleanalytics { --bg: #fff; }
:where(.kd) .br-googleanalytics img { filter: brightness(0) saturate(100%) invert(48%) sepia(98%) saturate(1500%) hue-rotate(10deg); }
:where(.kd) .br-youtube { --bg: linear-gradient(#ff2a2a, #d90000); }
:where(.kd) .br-telegram { --bg: linear-gradient(#37aee2, #1e96c8); }
:where(.kd) .br-apple { --bg: linear-gradient(#3a3a3c, #111); }
:where(.kd) .br-android { --bg: linear-gradient(#5be39b, #2fb872); }
:where(.kd) .br-windows { --bg: linear-gradient(#1a8cf0, #0067c0); }
:where(.kd) .br-openai { --bg: linear-gradient(#2b2b2b, #0d0d0d); }
:where(.kd) .br-claude { --bg: linear-gradient(#e3896a, #c96442); }
:where(.kd) .br-googlegemini { --bg: linear-gradient(135deg, #4285F4, #9b72cb 60%, #d96570); }
:where(.kd) .br-looker { --bg: linear-gradient(#5c9bff, #4285F4); }
:where(.kd) .br-googlesheets { --bg: linear-gradient(#3cba63, #188038); }
:where(.kd) .br-make { --bg: linear-gradient(#8a1fff, #6D00CC); }
:where(.kd) .br-n8n { --bg: linear-gradient(#f45f86, #EA4B71); }

/* Стопка логотипов и 3D-глиф в плитке */
:where(.kd) .brs { display: inline-flex; align-items: center; }
:where(.kd) .brs .br { margin-left: -12px; animation: ic-bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
:where(.kd) .brs .br:first-child { margin-left: 0; }
:where(.kd) .ic3d { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--k-red);
  background: linear-gradient(150deg, #fff 0%, var(--k-cream) 45%, var(--k-butter) 100%);
  box-shadow: inset 0 -6px 0 rgb(178 120 60 / .32), inset 0 2px 0 #fff, 0 16px 24px -10px rgb(94 7 14 / .55), 0 2px 3px rgb(94 7 14 / .2);
  transform: rotate(-8deg); transition: transform .6s var(--k-ease-spring); animation: ic-bob 5s ease-in-out infinite; }
:where(.kd) .ic3d svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgb(178 13 20 / .28)); }
@keyframes ic-bob { 50% { translate: 0 -6px; } }
:where(.kd) .k-tile > .ic3d, :where(.kd) .k-tile > .brs { position: absolute; z-index: 3; top: 22px; right: 22px; }
:where(.kd) .k-tile.has-ic > .k-h3 { padding-right: 88px; }
:where(.kd) .k-tile.has-ic:has(> .brs .br:nth-child(3)) > .k-h3 { padding-right: 150px; }
:where(.kd) .k-tile[data-tone="cream"] > .ic3d, :where(.kd) .k-tile[data-tone="pistachio"] > .ic3d, :where(.kd) .k-tile[data-tone="strawberry"] > .ic3d, :where(.kd) .k-tile[data-tone="peach"] > .ic3d {
  color: var(--k-cream); background: linear-gradient(150deg, #ff4a4f 0%, var(--k-red) 45%, var(--k-red-deep) 100%);
  box-shadow: inset 0 -6px 0 rgb(94 7 14 / .45), inset 0 2px 0 rgb(255 255 255 / .35), 0 16px 24px -10px rgb(94 7 14 / .6); }
:where(.kd) .k-tile[data-tone="cream"] > .ic3d svg, :where(.kd) .k-tile[data-tone="pistachio"] > .ic3d svg, :where(.kd) .k-tile[data-tone="strawberry"] > .ic3d svg { filter: drop-shadow(0 2px 0 rgb(94 7 14 / .45)); }
@media (hover: hover) and (pointer: fine) {
  :where(.kd) .k-tile:hover > .ic3d { transform: rotate(8deg) scale(1.1); }
  :where(.kd) .k-tile:hover > .brs .br { animation-duration: 1.4s; }
}
/* ORM-карточки: тот же 3D-глиф, поменьше */
:where(.kd) .orm-ic.ic3d { width: 54px; height: 54px; border-radius: 17px; transform: rotate(-6deg); animation: none;
  color: var(--k-cream); background: linear-gradient(150deg, #ff4a4f 0%, var(--k-red) 45%, var(--k-red-deep) 100%);
  box-shadow: inset 0 -5px 0 rgb(94 7 14 / .45), inset 0 2px 0 rgb(255 255 255 / .35), 0 14px 20px -10px rgb(94 7 14 / .6); }
:where(.kd) .orm-ic.ic3d svg { width: 26px; height: 26px; }
:where(.kd) .orm-i:hover .orm-ic.ic3d { transform: rotate(8deg) scale(1.08); animation: none; }

/* ───────── «Коротко» — ответ одним абзацем */
:where(.kd) .sv-sum { position: relative; z-index: 2; margin-top: -40px; }
:where(.kd) .sum { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px 44px; padding: 34px 38px; border-radius: 30px; background: var(--k-white); box-shadow: var(--k-shadow-card); }
:where(.kd) .sum h2 { margin: 0 0 10px; color: var(--k-red); }
:where(.kd) .sum p { margin: 0; font-size: 17px; line-height: 1.65; }
:where(.kd) .sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-content: center; font-size: 14.5px; }
:where(.kd) .sum dt { opacity: .55; }
:where(.kd) .sum dd { margin: 0; font-weight: 600; }

/* ───────── Hero с мокапом */
:where(.kd) .sv-hero.has-mock > .wrap, :where(.kd) .sv-hero.is-hub > .wrap { min-height: 580px; }
:where(.kd) .sv-hero.has-mock h1, :where(.kd) .sv-hero.has-mock .k-lead, :where(.kd) .sv-hero.is-hub h1 { max-width: 600px; }
:where(.kd) .sv-hero .sv-orb { position: absolute; z-index: -1; left: 52%; top: auto; bottom: 120px; right: auto; width: 74px; }
:where(.kd) .sv-visual { position: absolute; right: 0; top: 0; width: min(520px, 44%); height: 100%; display: grid; place-items: center; }
:where(.kd) .sv-visual > .serp { position: relative; right: auto; top: auto; width: 100%; max-width: 440px; }
:where(.kd) .mock { position: relative; color: var(--k-ink); font-family: var(--k-font-text); }
:where(.kd) .mock-hint { position: absolute; left: 50%; bottom: -34px; translate: -50% 0; white-space: nowrap; font: 600 12.5px var(--k-font-text); color: var(--k-cream); opacity: .8;
  padding: 6px 12px; border-radius: 999px; background: rgb(28 10 11 / .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hint 2.6s ease-in-out infinite; }
@keyframes hint { 50% { translate: -50% -4px; } }
:where(.kd) .mock .card { background: var(--k-white); border-radius: 28px; box-shadow: 0 2px 3px rgb(94 7 14 / .2), 0 40px 80px -30px rgb(60 0 0 / .65); }
:where(.kd) .mock .floaters .br { position: absolute; width: 58px; height: 58px; animation: k-float 6s ease-in-out infinite; }
:where(.kd) .mock .floaters .f1 { left: -34px; top: 14%; }
:where(.kd) .mock .floaters .f2 { right: -30px; top: 42%; width: 50px; height: 50px; animation-delay: -2s; }
:where(.kd) .mock .floaters .f3 { left: -16px; bottom: 12%; width: 44px; height: 44px; animation-delay: -4s; }
:where(.kd) .live { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--k-font-text); text-transform: uppercase; letter-spacing: .08em; color: #2f8a4c; }
:where(.kd) .live i { width: 8px; height: 8px; border-radius: 50%; background: #2fb35a; box-shadow: 0 0 0 0 rgb(47 179 90 / .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgb(47 179 90 / 0); } 100% { box-shadow: 0 0 0 0 rgb(47 179 90 / 0); } }

/* Телефон */
:where(.kd) .mock .phone, :where(.kd) .mock .m-phone { position: relative; width: 268px; height: 540px; box-sizing: border-box; padding: 10px; border-radius: 44px; background: linear-gradient(145deg, #2b2b2e, #0d0d0f);
  box-shadow: inset 0 0 0 2px #3a3a3e, 0 2px 3px rgb(0 0 0 / .4), 0 50px 90px -30px rgb(60 0 0 / .75); transform: rotate(-3deg); }
:where(.kd) .mock .phone::before, :where(.kd) .mock .m-phone::before { content: ""; position: absolute; inset: 10px; border-radius: 35px; background: var(--k-white); }
:where(.kd) .mock .phone > *, :where(.kd) .mock .m-phone > * { position: relative; }
:where(.kd) .mock .notch { position: absolute; z-index: 5; left: 50%; top: 18px; translate: -50% 0; width: 84px; height: 24px; border-radius: 20px; background: #0d0d0f; }

/* ── Instagram */
:where(.kd) .m-insta .phone { overflow: hidden; cursor: pointer; padding: 52px 22px 16px; -webkit-tap-highlight-color: transparent; user-select: none; }
:where(.kd) .ig-top { display: flex; align-items: center; gap: 4px; font-size: 14px; }
:where(.kd) .ig-top i { font-style: normal; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #3897f0; color: #fff; font-size: 8px; }
:where(.kd) .ig-top span { margin-left: auto; opacity: .5; }
:where(.kd) .ig-prof { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
:where(.kd) .ig-ava { flex: none; width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); animation: k-spin 6s linear infinite; }
:where(.kd) .ig-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--k-cream); border: 3px solid #fff; box-sizing: border-box; animation: k-spin 6s linear infinite reverse; }
:where(.kd) .ig-st { flex: 1; display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 2px; text-align: center; }
:where(.kd) .ig-st b { display: block; font: 800 15px var(--k-font-display); font-variant-numeric: tabular-nums; }
:where(.kd) .ig-st b.bump { animation: bump .5s var(--k-ease-spring); color: var(--k-red); }
@keyframes bump { 30% { transform: scale(1.25); } }
:where(.kd) .ig-st small { display: block; font-size: 8.5px; opacity: .6; }
:where(.kd) .ig-bio { margin-top: 10px; font-size: 12px; line-height: 1.4; }
:where(.kd) .ig-bio b { display: block; }
:where(.kd) .ig-bio small { opacity: .7; }
:where(.kd) .ig-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
:where(.kd) .ig-btn > span { text-align: center; padding: 6px; border-radius: 8px; background: #efefef; font: 700 11.5px var(--k-font-text); }
:where(.kd) .ig-btn .on { background: #0095f6; color: #fff; }
:where(.kd) .ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -12px; }
:where(.kd) .ig-grid i { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--k-cream); animation: tile-in .7s var(--k-ease-spring) both; }
:where(.kd) .ig-grid i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1s); }
:where(.kd) .ig-grid i[data-tone="red"] { background: var(--k-mat-red); }
:where(.kd) .ig-grid i[data-tone="blueberry"] { background: var(--k-mat-blueberry); }
:where(.kd) .ig-grid i[data-tone="pistachio"] { background: var(--k-pistachio); }
:where(.kd) .ig-grid i[data-tone="peach"] { background: var(--k-peach); }
:where(.kd) .ig-grid i[data-tone="wine"] { background: var(--k-mat-wine); }
:where(.kd) .ig-grid i[data-tone="strawberry"] { background: var(--k-strawberry); }
:where(.kd) .ig-grid img { width: 80%; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .25)); transition: transform .5s var(--k-ease-spring); }
:where(.kd) .ig-grid i:hover img { transform: scale(1.15) rotate(-6deg); }
:where(.kd) .ig-grid .reel::after { content: "▶"; position: absolute; right: 6px; top: 4px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .5); }
@keyframes tile-in { from { transform: scale(.4); opacity: 0; } }
:where(.kd) .hearts { position: absolute !important; inset: 0; pointer-events: none; z-index: 6; }
:where(.kd) .hearts i { position: absolute; font-style: normal; color: #ff3040; font-size: 18px; translate: -50% -50%; animation: heart 1.5s ease-out forwards; text-shadow: 0 4px 10px rgb(255 48 64 / .4); }
:where(.kd) .hearts i.big { font-size: 64px; animation: heart-big 1s var(--k-ease-spring) forwards; }
@keyframes heart { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: translate(var(--dx), -160px) rotate(var(--r)) scale(.8); } }
@keyframes heart-big { 0% { transform: scale(0); opacity: 1; } 35% { transform: scale(1.25); } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-20px); opacity: 0; } }
:where(.kd) .toasts { position: absolute; left: -190px; top: 250px; width: 220px; display: grid; gap: 8px; z-index: 7; pointer-events: none; }
:where(.kd) .toast { padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .94); box-shadow: 0 16px 30px -12px rgb(60 0 0 / .55); font: 600 12.5px var(--k-font-text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: toast-in .6s var(--k-ease-spring) both; }
:where(.kd) .toast:nth-child(2) { opacity: .75; scale: .96; }
:where(.kd) .toast:nth-child(3) { opacity: .45; scale: .92; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.8); } }

/* ── Разблокировка: профиль под замком → доступ возвращён */
:where(.kd) .m-unlock .phone { cursor: default; }
:where(.kd) .m-unlock .ub-acc { transition: filter .9s, opacity .9s; }
:where(.kd) .m-unlock:not(.is-free) .ub-acc { filter: grayscale(1) blur(2px); opacity: .45; }
:where(.kd) .m-unlock .phone .ub-lock { position: absolute; z-index: 4; inset: 10px; border-radius: 35px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; text-align: center;
  background: rgb(255 255 255 / .5); transition: opacity .6s, transform .6s var(--k-ease-spring); }
:where(.kd) .m-unlock .ub-ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--k-mat-red, var(--k-red)); color: var(--k-cream); box-shadow: var(--k-shadow-red); }
:where(.kd) .m-unlock .ub-ic svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:where(.kd) .m-unlock .ub-lock b { font: 800 19px var(--k-font-display); }
:where(.kd) .m-unlock .ub-lock small { font-size: 12px; opacity: .65; }
:where(.kd) .m-unlock .ub-bar { width: 150px; height: 6px; margin-top: 6px; border-radius: 6px; background: rgb(28 10 11 / .1); overflow: hidden; opacity: 0; transition: opacity .3s; }
:where(.kd) .m-unlock .ub-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--k-red); }
:where(.kd) .m-unlock.is-work .ub-bar { opacity: 1; }
:where(.kd) .m-unlock.is-work .ub-bar i { width: 100%; transition: width 4.6s linear; }
:where(.kd) .m-unlock.is-free .phone .ub-lock { opacity: 0; transform: scale(1.12); pointer-events: none; }
:where(.kd) .m-unlock .phone .ub-ok { position: absolute; z-index: 5; left: 50%; bottom: 26px; translate: -50% 0; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: #1f9d55; color: #fff;
  font: 700 13px var(--k-font-text); box-shadow: 0 14px 26px -10px rgb(31 157 85 / .7); opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .5s, transform .6s var(--k-ease-spring); }
:where(.kd) .m-unlock.is-free .phone .ub-ok { opacity: 1; transform: none; }

/* ── Reels */
:where(.kd) .m-reels .phone { cursor: pointer; overflow: hidden; }
:where(.kd) .m-reels .phone::before { background: radial-gradient(120% 90% at 30% 20%, #ff6a5c, var(--k-red) 45%, var(--k-wine)); }
:where(.kd) .rl-video { position: absolute !important; inset: 10px; border-radius: 35px; overflow: hidden; display: grid; place-items: center; }
:where(.kd) .rl-video img { width: 82%; filter: drop-shadow(0 20px 26px rgb(0 0 0 / .4)); animation: kb 7s ease-in-out infinite alternate; }
:where(.kd) .rl-video .rl-b { position: absolute; width: 34%; right: 8%; top: 18%; animation: k-float 4s ease-in-out infinite; }
@keyframes kb { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.18) rotate(4deg); } }
:where(.kd) .rl-bars { position: absolute !important; left: 22px; right: 22px; top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; z-index: 3; }
:where(.kd) .rl-bars i { height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; position: relative; }
:where(.kd) .rl-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: bar 9s linear infinite; }
:where(.kd) .rl-bars i:nth-child(2)::after { animation-delay: 3s; }
:where(.kd) .rl-bars i:nth-child(3)::after { animation-delay: 6s; }
@keyframes bar { 0% { transform: scaleX(0); } 33.3%, 100% { transform: scaleX(1); } }
:where(.kd) .m-reels .phone .rl-bars i::after { animation-fill-mode: both; }
:where(.kd) .rl-side { position: absolute !important; right: 18px; bottom: 120px; display: grid; gap: 16px; z-index: 3; color: #fff; text-align: center; font-size: 20px; text-shadow: 0 2px 6px rgb(0 0 0 / .35); }
:where(.kd) .rl-side span { display: grid; justify-items: center; }
:where(.kd) .rl-side b { font: 700 11px var(--k-font-text); }
:where(.kd) .rl-cap { position: absolute !important; left: 24px; right: 70px; bottom: 34px; z-index: 3; color: #fff; display: grid; gap: 4px; text-shadow: 0 1px 4px rgb(0 0 0 / .4); }
:where(.kd) .rl-cap b { font-size: 13px; }
:where(.kd) .rl-cap small { font-size: 11.5px; line-height: 1.35; }
:where(.kd) .rl-play { position: absolute !important; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(0 0 0 / .35); color: #fff; font-size: 24px; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--k-ease-spring); }
:where(.kd) .m-reels.paused .rl-play { opacity: 1; transform: scale(1); }
:where(.kd) .m-reels.paused * { animation-play-state: paused !important; }
:where(.kd) .rec { position: absolute !important; z-index: 4; left: 26px; top: 60px; display: flex; align-items: center; gap: 5px; color: #fff; font: 800 10px var(--k-font-text); letter-spacing: .1em; }
:where(.kd) .rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
:where(.kd) .tl { position: absolute; left: -60px; bottom: 34px; width: 300px; padding: 14px; border-radius: 20px; background: rgb(20 12 14 / .88); color: #fff; z-index: 6;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 40px -16px rgb(0 0 0 / .6); transform: rotate(2deg); }
:where(.kd) .tl-h { display: flex; justify-content: space-between; font: 700 11px var(--k-font-text); opacity: .85; margin-bottom: 10px; }
:where(.kd) .tl-h span { font-variant-numeric: tabular-nums; color: #ff6a5c; }
:where(.kd) .tl-tracks { position: relative; display: grid; gap: 6px; }
:where(.kd) .trk { display: flex; gap: 4px; height: 16px; }
:where(.kd) .trk i { width: var(--w); border-radius: 5px; background: linear-gradient(#ff6a5c, var(--k-red)); animation: clip 6s ease-in-out infinite alternate; }
:where(.kd) .trk.t i { background: linear-gradient(#b48cff, var(--k-blueberry)); animation-delay: -2s; }
:where(.kd) .trk.a i { background: repeating-linear-gradient(90deg, #6fd39a 0 2px, #2fb872 2px 4px); height: 10px; align-self: center; }
@keyframes clip { to { transform: translateX(12px); } }
:where(.kd) .ph { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; animation: ph 6s linear infinite; }
@keyframes ph { from { left: 0; } to { left: 100%; } }

/* ── Таргет */
:where(.kd) .m-ads .card { width: 430px; max-width: 100%; padding: 20px; transform: rotate(1.5deg); }
:where(.kd) .ad-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
:where(.kd) .ad-tabs button { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 0; border-radius: 999px; background: var(--k-cream); cursor: pointer; font: 700 13px var(--k-font-text); color: var(--k-ink);
  box-shadow: inset 0 0 0 1.5px rgb(28 10 11 / .08); transition: background .3s, transform .4s var(--k-ease-spring); }
:where(.kd) .ad-tabs button .br { width: 30px; height: 30px; }
:where(.kd) .ad-tabs button[aria-selected="true"] { background: var(--k-ink); color: var(--k-cream); transform: translateY(-2px); }
:where(.kd) .ad-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 8px; }
:where(.kd) .ad-kpi > div { padding: 10px 12px; border-radius: 16px; background: var(--k-cream); }
:where(.kd) .ad-kpi small { display: block; font-size: 11px; opacity: .6; }
:where(.kd) .ad-kpi b { display: block; font: 800 22px var(--k-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
:where(.kd) .ad-kpi em { font: 700 11px var(--k-font-text); font-style: normal; }
:where(.kd) .ad-kpi .up { color: #2f8a4c; }
:where(.kd) .ad-kpi .dn { color: #2f8a4c; }
:where(.kd) .ad-chart { width: 100%; height: 110px; display: block; }
:where(.kd) .ad-chart .line { fill: none; stroke: var(--k-red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
:where(.kd) .m-ads.redraw .ad-chart .line { animation: draw 1.4s cubic-bezier(.3,1,.4,1); }
:where(.kd) .m-ads.redraw .ad-chart .area { animation: fade-in 1.2s ease; }
@keyframes draw { from { stroke-dashoffset: 600; } }
@keyframes fade-in { from { opacity: 0; } }
:where(.kd) .ad-leads { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; min-height: 120px; }
:where(.kd) .ad-leads li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #f6fbf7; font-size: 12.5px; animation: toast-in .6s var(--k-ease-spring) both; }
:where(.kd) .ad-leads li span { opacity: .6; }
:where(.kd) .ad-leads li em { font-style: normal; font-size: 11px; color: #2f8a4c; font-weight: 700; }
:where(.kd) .ad-push { position: absolute; left: -56px; top: -64px; z-index: 6; display: flex; align-items: center; gap: 10px; width: 270px; padding: 10px 14px 10px 10px; border-radius: 20px;
  background: rgb(255 255 255 / .96); box-shadow: 0 24px 40px -16px rgb(60 0 0 / .55); font-size: 12px; transform: rotate(-3deg); }
:where(.kd) .ad-push b { display: block; font-size: 12.5px; }
:where(.kd) .ad-push small { opacity: .7; }
:where(.kd) .ad-push .br { width: 38px; height: 38px; }
:where(.kd) .m-ads.ping .ad-push, :where(.kd) .m-crm.ping .ad-push { animation: ping .7s var(--k-ease-spring); }
@keyframes ping { 0% { transform: rotate(-3deg) translateY(-14px) scale(.9); opacity: .2; } 100% { transform: rotate(-3deg); } }

/* ── Медиасеть: аватары страниц вращаются вокруг телефона */
:where(.kd) .m-feed { width: 460px; height: 560px; display: grid; place-items: center; }
:where(.kd) .orbit { position: absolute; inset: 0; animation: k-spin 40s linear infinite; }
:where(.kd) .orbit span { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; padding: 3px;
  background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); box-shadow: 0 12px 20px -8px rgb(0 0 0 / .45);
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translate(220px) rotate(calc(var(--i) * -360deg / var(--n))); }
:where(.kd) .orbit span img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-sizing: border-box; background: #fff; animation: k-spin 40s linear infinite reverse; }
:where(.kd) .m-feed .phone { padding: 52px 18px 18px; display: grid; align-content: start; gap: 14px; }
:where(.kd) .fd-post { border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
:where(.kd) .fd-h { display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 12px; }
:where(.kd) .fd-h small { margin-left: auto; opacity: .55; font-size: 10.5px; }
:where(.kd) .fd-h .ring { width: 30px; height: 30px; border-radius: 50%; padding: 2px; background: conic-gradient(#feda75, #d62976, #4f5bd5, #feda75); }
:where(.kd) .fd-h .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-sizing: border-box; }
:where(.kd) .fd-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--k-mat-red); }
:where(.kd) .fd-img img { width: 70%; animation: kb 6s ease-in-out infinite alternate; filter: drop-shadow(0 16px 20px rgb(0 0 0 / .35)); }
:where(.kd) .fd-img > span { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: var(--k-cream); color: var(--k-red); font: 800 12px var(--k-font-display); }
:where(.kd) .fd-act { padding: 8px 12px 12px; letter-spacing: .3em; }
:where(.kd) .fd-reach { padding: 14px; border-radius: 18px; background: var(--k-cream); }
:where(.kd) .fd-reach small { display: block; font-size: 11px; opacity: .6; }
:where(.kd) .fd-reach b { font: 800 30px var(--k-font-display); color: var(--k-red); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ── KPI */
:where(.kd) .m-kpi { cursor: pointer; }
:where(.kd) .m-kpi .card { width: 400px; max-width: 100%; padding: 26px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; transform: rotate(-1.5deg); }
:where(.kd) .kp-ring { position: relative; width: 150px; height: 150px; }
:where(.kd) .kp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
:where(.kd) .kp-ring circle { fill: none; stroke: var(--k-cream); stroke-width: 12; }
:where(.kd) .kp-ring .fill { stroke: url(#none); stroke: var(--k-red); stroke-linecap: round; }
:where(.kd) .kp-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
:where(.kd) .kp-ring b { font: 800 34px var(--k-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
:where(.kd) .kp-ring small { font-size: 11px; opacity: .6; }
:where(.kd) .kp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; font-weight: 600; }
:where(.kd) .kp-list li { display: flex; align-items: center; gap: 10px; opacity: .35; transition: opacity .4s; }
:where(.kd) .kp-list li i { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: transparent; background: var(--k-cream); transition: all .4s var(--k-ease-spring); }
:where(.kd) .kp-list li.on { opacity: 1; }
:where(.kd) .kp-list li.on i { background: var(--k-red); color: var(--k-cream); animation: k-jelly .6s both; }
:where(.kd) .kp-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:where(.kd) .kp-stats > div { padding: 12px 14px; border-radius: 16px; background: var(--k-cream); }
:where(.kd) .kp-stats b { display: block; font: 800 24px var(--k-font-display); color: var(--k-red); font-variant-numeric: tabular-nums; }
:where(.kd) .kp-stats small { font-size: 11px; opacity: .6; }
:where(.kd) .confetti { position: absolute; left: 50%; top: 40%; pointer-events: none; z-index: 8; }
:where(.kd) .confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; animation: conf 1.6s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); opacity: 0; } }

/* ── Браузер и устройства */
:where(.kd) .m-browser { width: 520px; max-width: 100%; }
:where(.kd) .win { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 2px 3px rgb(0 0 0 / .25), 0 50px 90px -30px rgb(40 0 0 / .7); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
:where(.kd) .win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1ece6; }
:where(.kd) .win-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
:where(.kd) .win-bar > i:nth-child(2) { background: #febc2e; }
:where(.kd) .win-bar > i:nth-child(3) { background: #28c840; }
:where(.kd) .url { flex: 1; margin-left: 10px; padding: 6px 12px; border-radius: 999px; background: #fff; font: 600 12px var(--k-font-text); display: flex; align-items: center; gap: 4px; }
:where(.kd) .caret { width: 1.5px; height: 14px; background: var(--k-ink); animation: blink 1s steps(2) infinite; }
:where(.kd) .win-body { position: relative; aspect-ratio: 16 / 10; background: #fafafa; overflow: hidden; }
:where(.kd) .win-body img, :where(.kd) .m-phone > img, :where(.kd) .scr img, :where(.kd) .tablet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 4.5s ease; }
:where(.kd) .win-body img.on, :where(.kd) .m-phone > img.on, :where(.kd) .scr img.on, :where(.kd) .tablet img.on { opacity: 1; transform: scale(1); }
:where(.kd) .win-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; background: #fff; }
:where(.kd) .win-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(28 10 11 / .2); cursor: pointer; transition: width .4s var(--k-ease-spring), background .3s; }
:where(.kd) .win-dots button.on { width: 26px; background: var(--k-red); }
:where(.kd) .m-browser .m-phone { position: absolute; right: -26px; bottom: -40px; width: 150px; height: 300px; padding: 7px; border-radius: 28px; transform: rotate(5deg); overflow: hidden; }
:where(.kd) .m-browser .m-phone::before { inset: 7px; border-radius: 22px; }
:where(.kd) .mock .m-phone > img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 22px; }
:where(.kd) .m-browser .notch { top: 12px; width: 46px; height: 13px; }
:where(.kd) .badges { position: absolute; left: -30px; bottom: -22px; display: flex; gap: 8px; flex-wrap: wrap; max-width: 320px; }
/* Плавающие плашки: глянцевые «конфеты» — блик сверху, наклон, всплытие по очереди, блик-пробег раз в несколько секунд.
   Только прямые <span>: внутри tr() кладёт текст во вложенный span, и общий селектор рисовал плашку дважды. */
:where(.kd) .badges > span { --r: -4deg; --c1: #3b2a2b; --c2: var(--k-ink); position: relative; overflow: hidden; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--c1), var(--c2)); color: var(--k-cream); font: 800 12.5px var(--k-font-display); letter-spacing: .01em; white-space: nowrap; rotate: var(--r);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -2px 0 rgb(0 0 0 / .22), 0 1px 2px rgb(0 0 0 / .3), 0 18px 30px -12px rgb(60 0 0 / .7);
  animation: badge-in .9s var(--k-ease-spring) var(--d, 0s) both, badge-float 5s ease-in-out var(--fd, 0s) infinite; transition: transform .35s var(--k-ease-spring); }
:where(.kd) .badges > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / .55) 50%, transparent 68%); translate: -130% 0; animation: badge-shine 5s ease-in-out calc(var(--d, 0s) + 1s) infinite; }
:where(.kd) .badges > span:nth-child(2) { --r: 3deg; --c1: #46b46a; --c2: #23743e; --d: .15s; --fd: -1.6s; }
:where(.kd) .badges > span:nth-child(3) { --r: -2deg; --c1: var(--k-white); --c2: var(--k-butter); color: var(--k-red); --d: .3s; --fd: -3.2s; }
:where(.kd) .badges > span:hover { transform: scale(1.08); }
@keyframes badge-in { from { opacity: 0; scale: .5; } }
@keyframes badge-float { 50% { translate: 0 -8px; } }
@keyframes badge-shine { 0%, 55% { translate: -130% 0; } 80%, 100% { translate: 130% 0; } }
:where(.kd) .m-devices { width: 520px; height: 440px; max-width: 100%; }
:where(.kd) .laptop { position: absolute; left: 0; top: 40px; width: 400px; }
:where(.kd) .laptop .scr { position: relative; aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; border: 10px solid #1a1a1c; border-bottom-width: 14px; overflow: hidden; background: #fff; }
:where(.kd) .laptop .base { height: 14px; margin: 0 -26px; border-radius: 0 0 14px 14px; background: linear-gradient(#d8d4cf, #a9a49e); box-shadow: 0 30px 50px -20px rgb(40 0 0 / .7); }
:where(.kd) .tablet { position: absolute; right: 10px; top: 0; width: 210px; aspect-ratio: 3 / 4; border-radius: 20px; border: 9px solid #1a1a1c; overflow: hidden; background: #fff; transform: rotate(6deg); box-shadow: 0 30px 50px -20px rgb(40 0 0 / .7); }
:where(.kd) .tablet img { object-position: left top; }
:where(.kd) .m-devices .m-phone { position: absolute; right: 120px; bottom: -20px; width: 140px; height: 280px; padding: 7px; border-radius: 26px; overflow: hidden; transform: rotate(-6deg); }
:where(.kd) .m-devices .m-phone::before { inset: 7px; border-radius: 20px; }
:where(.kd) .m-devices .m-phone > img { border-radius: 20px; }
:where(.kd) .m-devices .notch { top: 12px; width: 44px; height: 12px; }
:where(.kd) .push { position: absolute !important; z-index: 6; left: 12px; right: 12px; top: 28px; padding: 8px 10px; border-radius: 14px; background: rgb(255 255 255 / .95); box-shadow: 0 10px 20px -8px rgb(0 0 0 / .45); font-size: 10px; opacity: 0; }
:where(.kd) .push b { display: block; font-size: 10.5px; }
:where(.kd) .m-devices.ping .push { animation: push 3.4s ease both; }
@keyframes push { 0% { opacity: 0; transform: translateY(-20px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ── CRM */
:where(.kd) .m-crm .card { width: 470px; max-width: 100%; padding: 18px; transform: rotate(1deg); }
:where(.kd) .crm-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
:where(.kd) .crm-h > b { font: 800 18px var(--k-font-display); }
:where(.kd) .crm-sum { margin-left: auto; font-size: 12px; opacity: .8; }
:where(.kd) .crm-sum b { color: #2f8a4c; font-variant-numeric: tabular-nums; }
:where(.kd) .board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
:where(.kd) .col { border-radius: 16px; background: var(--k-cream); padding: 8px; min-height: 230px; }
:where(.kd) .col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 12px; }
:where(.kd) .col-h i { font-style: normal; font: 700 11px var(--k-font-text); padding: 2px 8px; border-radius: 999px; background: #fff; }
:where(.kd) [data-col="new"] .col-h i { background: var(--k-red); color: #fff; }
:where(.kd) [data-col="paid"] .col-h i { background: #2fb35a; color: #fff; }
:where(.kd) .col-b { display: grid; gap: 6px; }
:where(.kd) .crd { padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgb(60 0 0 / .1); font-size: 11.5px; display: grid; gap: 2px; animation: crd-in .6s var(--k-ease-spring) both; }
:where(.kd) .crd b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.kd) .crd span { font-weight: 700; color: var(--k-red); }
:where(.kd) .crd em { font-style: normal; font-size: 10.5px; opacity: .55; }
:where(.kd) [data-col="paid"] .crd { box-shadow: inset 3px 0 0 #2fb35a, 0 2px 6px rgb(60 0 0 / .1); }
:where(.kd) [data-col="paid"] .crd span { color: #2f8a4c; }
@keyframes crd-in { from { opacity: 0; transform: translateY(-16px) scale(.9) rotate(-4deg); } }

/* ── ИИ-чат */
:where(.kd) .m-ai .card { width: 430px; max-width: 100%; padding: 18px; display: grid; gap: 12px; transform: rotate(-1deg); }
:where(.kd) .ai-h { display: flex; align-items: center; gap: 10px; }
:where(.kd) .ai-h b { display: block; font: 800 15px var(--k-font-display); }
:where(.kd) .ai-h small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #2f8a4c; }
:where(.kd) .ai-h small i { width: 7px; height: 7px; border-radius: 50%; background: #2fb35a; animation: live 1.6s infinite; }
:where(.kd) .ai-h .brs { margin-left: auto; }
:where(.kd) .ai-h .brs .br { width: 30px; height: 30px; margin-left: -8px; }
:where(.kd) .ai-ava { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--k-cream); background: var(--k-mat-red); box-shadow: var(--k-shadow-red); }
:where(.kd) .ai-ava svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; animation: k-spin 8s linear infinite; }
:where(.kd) .ai-log { display: flex; flex-direction: column; gap: 8px; height: 260px; overflow: hidden; justify-content: flex-end; }
:where(.kd) .msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; animation: toast-in .5s var(--k-ease-spring) both; }
:where(.kd) .msg.me { align-self: flex-end; background: var(--k-red); color: var(--k-cream); border-bottom-right-radius: 6px; animation-name: msg-me; }
:where(.kd) .msg.bot { align-self: flex-start; background: var(--k-cream); border-bottom-left-radius: 6px; animation-name: msg-bot; }
@keyframes msg-me { from { opacity: 0; transform: translateX(20px) scale(.9); } }
@keyframes msg-bot { from { opacity: 0; transform: translateX(-20px) scale(.9); } }
:where(.kd) .msg.typing { display: flex; gap: 4px; padding: 14px; }
:where(.kd) .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgb(28 10 11 / .45); animation: dot 1s infinite; }
:where(.kd) .msg.typing i:nth-child(2) { animation-delay: .15s; }
:where(.kd) .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
:where(.kd) .ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:where(.kd) .ai-chips button { border: 0; padding: 8px 12px; border-radius: 999px; background: var(--k-cream); cursor: pointer; font: 600 12px var(--k-font-text); color: var(--k-ink);
  box-shadow: inset 0 0 0 1.5px rgb(229 20 27 / .25); transition: background .25s, color .25s, transform .4s var(--k-ease-spring); }
:where(.kd) .ai-chips button:hover { background: var(--k-red); color: var(--k-cream); transform: translateY(-2px); }

/* ── Дашборд */
:where(.kd) .m-dash .card { width: 450px; max-width: 100%; padding: 20px; transform: rotate(1.5deg); }
:where(.kd) .ds-h { display: flex; justify-content: space-between; align-items: center; font: 800 15px var(--k-font-display); }
:where(.kd) .ds-kpi { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin: 14px 0; }
:where(.kd) .ds-kpi > div { padding: 10px 12px; border-radius: 16px; background: var(--k-cream); }
:where(.kd) .ds-kpi small { display: block; font-size: 11px; opacity: .6; }
:where(.kd) .ds-kpi b { font: 800 18px var(--k-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(.kd) .ds-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: end; }
:where(.kd) .ds-bars { height: 150px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; }
:where(.kd) .ds-bars i { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
:where(.kd) .ds-bars span { width: 100%; height: var(--h, 20%); border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--k-red), #ff8a80); transition: height 1s var(--k-ease-spring), filter .2s; }
:where(.kd) .ds-bars i:nth-child(3n) span { background: linear-gradient(var(--k-blueberry), #9b7fd1); }
:where(.kd) .ds-bars i:hover span { filter: brightness(1.15) saturate(1.2); }
:where(.kd) .ds-bars i:hover::after { content: attr(title); position: absolute; bottom: calc(var(--h, 20%) + 6px); left: 50%; translate: -50% 0; padding: 4px 8px; border-radius: 8px; background: var(--k-ink); color: #fff; font: 700 10.5px var(--k-font-text); white-space: nowrap; z-index: 2; }
:where(.kd) .ds-donut { text-align: center; }
:where(.kd) .ds-donut svg { width: 110px; height: 110px; transform: rotate(-90deg); }
:where(.kd) .ds-donut circle { fill: none; stroke-width: 6; stroke: var(--k-cream); }
:where(.kd) .ds-donut .s1 { stroke: var(--k-red); stroke-dasharray: 46 54; animation: donut 1.6s var(--k-ease-viscous) both; }
:where(.kd) .ds-donut .s2 { stroke: var(--k-blueberry); stroke-dasharray: 30 70; stroke-dashoffset: -46; animation: donut 1.6s .2s var(--k-ease-viscous) both; }
:where(.kd) .ds-donut .s3 { stroke: var(--k-pistachio); stroke-dasharray: 24 76; stroke-dashoffset: -76; animation: donut 1.6s .4s var(--k-ease-viscous) both; }
@keyframes donut { from { stroke-dasharray: 0 100; } }
:where(.kd) .ds-donut small { display: block; font-size: 10px; opacity: .55; }

/* ───────── Портфолио */
:where(.kd) .wks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
:where(.kd) .wk { display: flex; flex-direction: column; gap: 10px; }
:where(.kd) .wk-shot { position: relative; display: block; border-radius: 20px; background: #fff; box-shadow: var(--k-shadow-card); transition: transform .6s var(--k-ease-spring), box-shadow .4s; }
:where(.kd) .wk-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 20px 20px 0 0; background: #f1ece6; }
:where(.kd) .wk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
:where(.kd) .wk-bar i:nth-child(2) { background: #febc2e; }
:where(.kd) .wk-bar i:nth-child(3) { background: #28c840; }
:where(.kd) .wk-bar em { margin-left: 8px; font: 600 11px var(--k-font-text); font-style: normal; opacity: .6; }
:where(.kd) .wk-scr { display: block; aspect-ratio: 16 / 10; border-radius: 0 0 20px 20px; background: #fafafa center top / cover no-repeat; transition: background-position 3s ease; }
:where(.kd) .wk-m { position: absolute; right: -10px; bottom: -18px; width: 26%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 14px; border: 4px solid #1a1a1c; background: #fff;
  box-shadow: 0 16px 28px -10px rgb(40 0 0 / .55); transform: rotate(6deg); transition: transform .6s var(--k-ease-spring); }
@media (hover: hover) and (pointer: fine) {
  :where(.kd) .wk-shot:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 2px 3px rgb(122 10 18 / .2), 0 40px 60px -24px rgb(122 10 18 / .5); }
  :where(.kd) .wk-shot:hover .wk-m { transform: rotate(-4deg) translateY(-10px) scale(1.06); }
}
:where(.kd) .wk-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
:where(.kd) .wk-t b { font: 800 20px var(--k-font-display); letter-spacing: -.01em; }
:where(.kd) .wk-t small { flex-basis: 100%; font-size: 13px; color: var(--k-red); font-weight: 700; }
:where(.kd) .aur { padding: 3px 9px; border-radius: 999px; background: var(--k-ink); color: var(--k-cream); font: 700 11px var(--k-font-text); }
:where(.kd) .wk > p { margin: 0; font-size: 14px; line-height: 1.55; opacity: .8; }
:where(.kd) .wk-go { align-self: flex-start; font: 700 13.5px var(--k-font-text); text-decoration: none; border-bottom: 1.5px solid var(--k-red); }

/* ───────── Адаптив */
@media (max-width: 1100px) {
  :where(.kd) .sv-visual { width: min(460px, 46%); }
  :where(.kd) .mock { transform: scale(.88); transform-origin: center; }
}
@media (max-width: 1000px) {
  :where(.kd) .sv-hero.has-mock > .wrap, :where(.kd) .sv-hero.is-hub > .wrap { min-height: 0; }
  :where(.kd) .sv-visual { position: relative; width: 100%; height: auto; margin-top: 56px; padding-bottom: 30px; }
  :where(.kd) .mock { transform: none; }
  :where(.kd) .sum { grid-template-columns: 1fr; padding: 26px 24px; }
  :where(.kd) .wks { grid-template-columns: 1fr 1fr; }
  :where(.kd) .sv-hero .sv-orb { display: none; }
}
@media (max-width: 760px) {
  :where(.kd) .sv-visual { margin-top: 40px; overflow: visible; }
  :where(.kd) .mock { scale: .86; }
  :where(.kd) .mock:has(> .card) { scale: 1; width: 100%; }
  :where(.kd) .mock > .card { width: 100%; box-sizing: border-box; transform: none; }
  :where(.kd) .ad-kpi b { font-size: 18px; }
  :where(.kd) .ad-tabs button { padding: 5px 8px 5px 5px; font-size: 12px; gap: 6px; }
  :where(.kd) .ad-tabs button .br { width: 26px; height: 26px; }
  :where(.kd) .m-kpi .card { grid-template-columns: 110px 1fr; }
  :where(.kd) .m-feed { width: 360px; height: 470px; scale: .82; }
  :where(.kd) .orbit span { transform: rotate(calc(var(--i) * 360deg / var(--n))) translate(176px) rotate(calc(var(--i) * -360deg / var(--n))); width: 52px; height: 52px; margin: -26px; }
  :where(.kd) .toasts { left: auto; right: -14px; top: auto; bottom: 26px; width: 196px; }
  :where(.kd) .tl { left: -10px; bottom: -10px; width: 250px; }
  :where(.kd) .ad-push { left: -6px; top: -40px; width: 240px; }
  :where(.kd) .mock .floaters .f1 { left: -10px; } :where(.kd) .mock .floaters .f2 { right: -6px; } :where(.kd) .mock .floaters .f3 { left: 0; }
  :where(.kd) .m-browser { width: 100%; }
  :where(.kd) .m-browser .m-phone { right: -6px; width: 110px; height: 220px; }
  :where(.kd) .badges { left: 0; bottom: -40px; }
  :where(.kd) .m-devices { width: 340px; height: 320px; scale: .95; }
  :where(.kd) .laptop { width: 280px; top: 30px; }
  :where(.kd) .tablet { width: 140px; right: 0; }
  :where(.kd) .m-devices .m-phone { right: 70px; width: 100px; height: 200px; bottom: -10px; }
  :where(.kd) .m-kpi .card { grid-template-columns: 120px 1fr; padding: 20px; }
  :where(.kd) .kp-ring { width: 120px; height: 120px; }
  :where(.kd) .k-tile > .ic3d { width: 52px; height: 52px; border-radius: 16px; top: 18px; right: 18px; }
  :where(.kd) .k-tile > .ic3d svg { width: 26px; height: 26px; }
  :where(.kd) .k-tile > .brs { top: 18px; right: 18px; }
  :where(.kd) .k-tile > .brs .br { width: 38px; height: 38px; margin-left: -10px; }
  :where(.kd) .k-tile > .brs .br:first-child { margin-left: 0; }
  :where(.kd) .k-tile.has-ic > .k-h3 { padding-right: 70px; }
  :where(.kd) .sv-sum { margin-top: -20px; }
  :where(.kd) .sum p { font-size: 15.5px; }
  :where(.kd) .wks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.kd) .mock *, :where(.kd) .ic3d, :where(.kd) .brs .br, :where(.kd) .mock-hint { animation: none !important; }
  :where(.kd) .badges > span::after { animation: none; }
}
