/* Techora's AI consultant (js/assistant.js), a Plugix AI sales assistant. Techora's own tokens: white, ink, soft greys,
   one cobalt accent; Plugix appears only as a quiet «Powered by» credit. Desktop: a launcher pill and a floating panel;
   phones: the «Консультант» tab and a full-screen sheet. */

/* ------------------------------------------------------------------ entry points on the page */
/* the «Консультант» tab: the Plugix mark in its own navy badge, raised a little, with a slow halo — it's the special one */
.tabbar .tab-ask { gap: 3px; }
.tabbar .tab-ask .tab-ask-i { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -9px; border-radius: 50%; font-style: normal; color: #fff; background: radial-gradient(circle at 32% 26%, #34418a, #101938 68%); box-shadow: 0 0 0 2.5px #fff, 0 6px 16px rgba(43, 89, 255, .38); }
.tabbar .tab-ask .tab-ask-i::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(43, 89, 255, .55); opacity: 0; animation: tca-breath 7s ease-out infinite 2s; }
.tabbar .tab-ask .pmark { width: 19px; height: 19px; font-size: 19px; }
.tabbar .tab-ask .tab-ask-dot { position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2px #fff; }
.tabbar .tab-ask span { color: var(--acc-t); font-weight: 700; }
.tabbar .tab-ask:active .tab-ask-i { transform: scale(.92); }

.pp-ask { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px 11px 11px; border-radius: 14px; background: var(--acc-soft); transition: background-color .2s; margin-top: 2px; }
.pp-ask:hover { background: rgba(43, 89, 255, .16); }
.pp-ask-i { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 19px; }
.pp-ask > span:not(.pp-ask-i) { display: grid; gap: 1px; flex: 1; min-width: 0; }
.pp-ask b { font-size: 14.5px; font-weight: 700; }
.pp-ask small { font-size: 12.5px; color: var(--ink-3); }
.pp-ask-a { font-size: 18px; color: var(--acc-t); transition: transform .25s var(--ease); }
.pp-ask:hover .pp-ask-a { transform: translateX(3px); }

.sg-row.sg-ask { grid-template-columns: 40px 1fr auto; background: var(--acc-soft); margin-bottom: 4px; }
.sg-row.sg-ask:hover, .sg-row.sg-ask[aria-selected=true] { background: rgba(43, 89, 255, .16); }
.sg-ask-i { width: 40px; height: 40px; border-radius: 12px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 20px; }
.sg-ask .sg-pt b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-ask-a { color: var(--acc-t); font-size: 17px; }

/* ------------------------------------------------------------------ launcher (desktop): «Techora × Plugix»
   An ink capsule with an accent hairline and glow, the Plugix «P» in its own navy badge (with an «online» dot and a
   ring that breathes twice every few seconds), «Запитати консультанта» over «AI-консультант від [P Plugix]».
   Folds into the badge while you scroll down; leans a few pixels toward the pointer; lifts on hover. */
.tca { --spring: cubic-bezier(.2, 1.15, .32, 1); --out: cubic-bezier(.16, 1, .3, 1); --pnavy: #101938; }
.pmark { width: 1em; height: 1em; display: block; flex: none; }
.tca-pwm { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; vertical-align: -1px; }
.tca-pwm .pmark { width: 1.05em; height: 1.05em; }
.tca-pwm b { font-weight: 800; letter-spacing: -.02em; }
.tca-launch { position: fixed; right: 24px; bottom: calc(24px + var(--dodge, 0px)); z-index: 56; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 8px; border-radius: 99px; color: #fff; text-align: left;
  background: radial-gradient(120% 160% at 0% 0%, rgba(43, 89, 255, .34), transparent 52%), linear-gradient(180deg, #1c222c, #0b0e12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 44px rgba(13, 16, 20, .34), 0 4px 14px rgba(43, 89, 255, .22);
  opacity: 0; transform: translateY(22px) scale(.92); pointer-events: none; translate: var(--mx, 0px) var(--my, 0px);
  transition: opacity .35s var(--out) .24s, transform .7s var(--spring), translate .5s var(--out), bottom .5s var(--out), padding .5s var(--out), gap .5s var(--out); }
/* the gradient hairline */
.tca-launch::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(150deg, rgba(160, 182, 255, .85), rgba(43, 89, 255, .28) 38%, rgba(43, 89, 255, .06) 64%, rgba(125, 155, 255, .55)); -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); }
/* a breathing accent glow around it (an outer shadow only: it never tints the capsule; opacity is composited) */
.tca-launch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(43, 89, 255, .25), 0 10px 46px 4px rgba(43, 89, 255, .5); opacity: .2; animation: tca-glow 7s ease-in-out infinite; will-change: opacity; }
.tca.ready .tca-launch { opacity: 1; transform: none; pointer-events: auto; }
.tca.ready .tca-launch:hover { transform: translateY(-2px); }
.tca.ready .tca-launch:active { transform: translateY(0) scale(.98); transition-duration: .15s; }
.tca-l-badge { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.tca-l-mark { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 25px; background: radial-gradient(circle at 32% 26%, #3a4796, var(--pnavy) 66%); box-shadow: inset 0 0 0 1px rgba(190, 200, 255, .38), 0 0 18px rgba(43, 89, 255, .45); }
.tca-l-mark .pmark { width: 25px; height: 25px; }
.tca-l-ring { position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(150, 172, 255, .75); opacity: 0; animation: tca-breath 7s ease-out infinite 1.2s; pointer-events: none; }
.tca-l-ring.r2 { animation-delay: 2s; }
.tca-l-dot { position: absolute; z-index: 2; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2.5px #10141a; }
.tca-l-t { display: grid; gap: 2px; line-height: 1.2; max-width: 240px; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--out), opacity .3s; }
.tca-l-t b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.tca-l-t small { font-size: 12px; color: rgba(242, 244, 247, .68); font-weight: 500; }
.tca-l-t small .tca-pwm { color: #fff; }
.tca-launch.compact:not(:hover):not(:focus-visible) { padding: 0 8px; gap: 0; }
.tca-launch.compact:not(:hover):not(:focus-visible) .tca-l-t { max-width: 0; opacity: 0; }
@keyframes tca-breath { 0% { transform: scale(.94); opacity: 0; } 4% { opacity: .9; } 22% { transform: scale(1.45); opacity: 0; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes tca-glow { 0%, 100% { opacity: .18; } 18% { opacity: .75; } 40% { opacity: .22; } }
.tca.tca-lift .tca-launch { bottom: calc(84px + var(--dodge, 0px)); }
.tca.tca-lift .tca-tip, .tca.tca-lift .tca-teaser { bottom: calc(162px + var(--dodge, 0px)); }
html.cmp-on .tca-launch { bottom: calc(100px + var(--dodge, 0px)); }
html.cmp-on .tca-tip, html.cmp-on .tca-teaser { bottom: calc(178px + var(--dodge, 0px)); }
html.tca-open .cmp-tray { opacity: 0; pointer-events: none; }
html.locked .tca-launch, html.tca-open .tca-launch { opacity: 0; pointer-events: none; transform: scale(.96); transition: opacity .12s, transform .3s var(--out); }
.tca-tip { position: fixed; right: 24px; bottom: calc(100px + var(--dodge, 0px)); z-index: 56; max-width: 290px; margin: 0; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink-2); font-size: 13px; line-height: 1.45; box-shadow: 0 18px 50px rgba(13, 16, 20, .2), 0 0 0 1px var(--hair-2); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease), bottom .45s var(--ease); }
.tca-tip::after { content: ''; position: absolute; right: 38px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 4px rgba(13, 16, 20, .05); }
.tca-tip.on { opacity: 1; transform: none; }
html.locked .tca-tip, html.tca-open .tca-tip { opacity: 0; }

/* the proactive teaser: once per session, a few seconds in; a speech bubble above the launcher (the tab on phones) */
.tca-teaser { position: fixed; right: 24px; bottom: calc(100px + var(--dodge, 0px)); z-index: 56; display: flex; align-items: flex-start; max-width: 300px; border-radius: 18px 18px 6px 18px; background: #fff; box-shadow: 0 22px 60px rgba(13, 16, 20, .22), 0 0 0 1px var(--hair-2); opacity: 0; transform: translateY(10px) scale(.94); transform-origin: 85% 100%; transition: opacity .35s var(--out), transform .55s var(--spring), bottom .5s var(--out); }
.tca-teaser.on { opacity: 1; transform: none; }
.tca-teaser-b { display: flex; align-items: flex-start; gap: 11px; padding: 12px 4px 13px 12px; text-align: left; line-height: 1.35; }
.tca-teaser-m { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 26%, #3a4796, var(--pnavy) 66%); box-shadow: 0 4px 12px rgba(43, 89, 255, .3); }
.tca-teaser-m .pmark { width: 18px; height: 18px; }
.tca-teaser-t { display: grid; gap: 3px; }
.tca-teaser-b small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-t); }
.tca-teaser-b b { font-size: 14px; font-weight: 700; color: var(--ink); }
.tca-teaser-x { flex: none; width: 30px; height: 30px; margin: 7px 7px 0 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--ink-3); }
.tca-teaser-x:hover { background: var(--soft); color: var(--ink); }
html.locked .tca-teaser, html.tca-open .tca-teaser { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ panel: it grows out of the launcher */
.tca-back { position: fixed; inset: var(--H) 0 0 0; z-index: 95; background: radial-gradient(110% 90% at 100% 100%, rgba(13, 16, 20, .3), rgba(13, 16, 20, .07) 64%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s var(--out); }
.tca.is-open .tca-back { opacity: 1; transition-duration: .5s; }
.tca:not(.is-open) .tca-back, .tca:not(.is-open) .tca-panel { pointer-events: none; }
.tca-panel, .tca-shade { position: fixed; right: 24px; bottom: 24px; width: min(430px, calc(100vw - 48px)); height: min(760px, calc(100vh - var(--H) - 36px)); border-radius: 24px; }
/* its depth, outside the clip: fades in once the panel has landed */
.tca-shade { z-index: 96; box-shadow: 0 40px 100px rgba(13, 16, 20, .3), 0 0 0 1px var(--hair-2); opacity: 0; transition: opacity .18s; pointer-events: none; }
.tca.settled .tca-shade { opacity: 1; transition-duration: .4s; }
.tca-panel { z-index: 96; background: #fff; display: flex; flex-direction: column; overflow: hidden; outline: none;
  /* closed: clipped to the launcher's pill (vars from js morph()), a touch smaller, scaled from the launcher's centre */
  clip-path: inset(var(--ct, 70%) var(--cr, 0px) var(--cb, 0px) var(--cl, 40%) round var(--cr0, 32px)); transform: scale(.965); transform-origin: var(--ox, 85%) var(--oy, 96%);
  transition: clip-path .44s cubic-bezier(.6, 0, .25, 1) .05s, transform .44s cubic-bezier(.6, 0, .25, 1) .05s; }
.tca.is-open .tca-panel { clip-path: inset(0 0 0 0 round 24px); transform: none; transition: clip-path .6s var(--out), transform .7s var(--spring); }
/* the launcher's ink, fading to the white panel as it grows (and back as it folds) */
.tca-panel::after { content: ''; position: absolute; inset: 0; z-index: 40; pointer-events: none; background: radial-gradient(120% 120% at 0% 0%, rgba(43, 89, 255, .3), transparent 50%), linear-gradient(180deg, #1c222c, #0b0e12); opacity: 1; transition: opacity .16s ease .22s; }
.tca.is-open .tca-panel::after { opacity: 0; transition: opacity .2s cubic-bezier(.4, 0, .6, 1) .04s; }
/* the content arrives in order: header, then the conversation, then the composer (and leaves at once on close) */
.tca-panel > * { opacity: 0; transform: translateY(10px); transition: opacity .14s, transform .2s; }
.tca.is-open .tca-panel > * { opacity: 1; transform: none; transition: opacity .45s var(--out) var(--sd, .14s), transform .6s var(--out) var(--sd, .14s); }
.tca-panel > .tca-h { --sd: .12s; }
.tca-panel > .tca-ctx, .tca-panel > .tca-call { --sd: .16s; }
.tca-panel > .tca-log { --sd: .18s; }
.tca-panel > .tca-cwrap { --sd: .26s; }
.tca.is-open .tca-h .tca-ava { animation: tca-pop .7s var(--spring) both .16s; }
.tca.is-open .tca-strip img { animation: tca-pop .65s var(--spring) both; animation-delay: calc(.2s + var(--k, 0) * 45ms); }
.tca.is-open .tca-hello h3 { animation: tca-rise .55s var(--out) both .3s; }
.tca.is-open .tca-hello p { animation: tca-rise .55s var(--out) both .35s; }
.tca.is-open .tca-hello .tca-hello-s { animation-delay: .39s; }
.tca.is-open .tca-q { animation: tca-rise .5s var(--out) both; animation-delay: calc(.42s + var(--i, 0) * 50ms); }
.tca.is-open .tca-vinv { animation: tca-rise .55s var(--out) both .6s; }
@keyframes tca-rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes tca-pop { from { opacity: 0; transform: translateY(6px) scale(.6); } }
.tca-grip { display: none; }

.tca-h { flex: none; display: flex; align-items: center; gap: 11px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--hair-2); }
.tca-ava { position: relative; flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.tca-ava svg { width: 26px; height: 26px; }
.tca-id { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tca-id b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.tca-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 3px; }
.tca-on { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tca-on .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.tca-pwr { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--hair); font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.tca-pwr .tca-pwm { color: var(--pnavy); font-size: 11.5px; }
.tca-pwr:hover { border-color: var(--ink); color: var(--ink); }
.tca-cart { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--ink-2); flex: none; transition: background-color .2s; }
.tca-cart:hover { background: var(--soft); }
.tca-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; transform: scale(.0001); transition: transform .3s var(--ease); }
.tca-n.has { transform: scale(1); }
.tca-n.bump { animation: bump .5s var(--ease); }
.tca-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--soft); flex: none; transition: background-color .2s; }
.tca-x:hover { background: var(--soft-2); }

/* the open product */
.tca-ctx { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; background: var(--soft); border-bottom: 1px solid var(--hair-2); }
.tca-ctx-p { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.tca-ctx-p img { width: 38px; height: 38px; border-radius: 10px; background: var(--pack); object-fit: cover; flex: none; }
.tca-ctx-p span { display: grid; min-width: 0; line-height: 1.25; }
.tca-ctx-p small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tca-ctx-p b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tca-ctx-p em { font-style: normal; font-weight: 800; font-size: 14px; margin-left: auto; white-space: nowrap; }
.tca-ctx-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--ink-3); flex: none; }
.tca-ctx-x:hover { background: #fff; color: var(--ink); }

/* the live voice call */
.tca-call { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--ink); color: #fff; }
.tca-eq { display: flex; align-items: center; gap: 3px; height: 26px; flex: none; }
.tca-eq i { width: 4px; height: 26px; border-radius: 2px; background: var(--acc-d); transform: scaleY(var(--l, .2)); transition: transform .08s linear; }
.tca-call.me .tca-eq i { background: #fff; }
.tca-call-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.tca-call-t b { font-size: 14px; }
.tca-call-t small { font: 500 11.5px/1.4 var(--mono); color: var(--on-d2); }
.tca-v-mute { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 19px; flex: none; }
.tca-v-mute[aria-pressed=true] { background: #fff; color: var(--ink); }
.tca-v-end { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 12px; background: var(--acc); font-weight: 700; font-size: 13.5px; flex: none; }
.tca-v-end svg { font-size: 16px; }

/* ------------------------------------------------------------------ the log */
.tca-log { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.tca-log > * { flex-shrink: 0; }
.tca-empty { display: grid; gap: 16px; align-content: start; }
.tca-hello { display: grid; gap: 6px; }
.tca-strip { display: flex; margin-bottom: 8px; }
.tca-strip img { width: 46px; height: 46px; border-radius: 13px; background: var(--pack); object-fit: cover; border: 3px solid #fff; margin-left: -9px; box-shadow: 0 4px 12px rgba(13, 16, 20, .1); }
.tca-strip img:first-child { margin-left: -3px; }
.tca-hello h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tca-hello p { font-size: 14.5px; color: var(--ink-2); }
.tca-hello .tca-hello-s { font-size: 13px; color: var(--ink-3); }
.tca-qs { display: flex; flex-wrap: wrap; gap: 7px; }
.tca-q { padding: 9px 13px; border-radius: 12px; background: var(--soft); font-size: 13.5px; font-weight: 600; text-align: left; line-height: 1.3; transition: background-color .2s, color .2s; }
.tca-q:hover { background: var(--acc-soft); color: var(--acc-t); }
.tca-q.ctx { background: var(--acc-soft); color: var(--acc-t); }
.tca-q.ctx:hover { background: rgba(43, 89, 255, .16); }
.tca-vinv { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 11px; border-radius: 14px; border: 1px solid var(--hair); text-align: left; transition: border-color .2s; }
.tca-vinv:hover { border-color: var(--ink); }
.tca-vinv-i { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 19px; flex: none; }
.tca-vinv > span:not(.tca-vinv-i) { flex: 1; display: grid; line-height: 1.3; }
.tca-vinv b { font-size: 14px; }
.tca-vinv small { font-size: 12px; color: var(--ink-3); }
.tca-vinv > svg { color: var(--ink-3); font-size: 17px; }
@keyframes tca-in { from { opacity: 0; transform: translateY(8px); } }

.tca-m { animation: tca-in .35s var(--ease) both; }
.tca-u { align-self: flex-end; max-width: 86%; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 18px 18px 5px 18px; font-size: 14.5px; line-height: 1.45; }
.tca-u small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--on-d2); margin-bottom: 2px; }
.tca-a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.tca-a > .tca-ava { width: 30px; height: 30px; border-radius: 10px; }
.tca-a > .tca-ava svg { width: 19px; height: 19px; }
.tca-a-b { min-width: 0; display: grid; }
.tca-txt { font-size: 14.5px; line-height: 1.55; color: var(--ink); display: grid; gap: 8px; padding-top: 4px; }
.tca-txt:empty { display: none; }
.tca-txt strong { font-weight: 800; }
.tca-txt ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.tca-vtag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.tca-think { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 13.5px; }
.tca-think span { margin-right: 4px; }
.tca-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); animation: tca-dot 1.1s infinite ease-in-out; }
.tca-think i:nth-child(3) { animation-delay: .15s; }
.tca-think i:nth-child(4) { animation-delay: .3s; }
@keyframes tca-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.tca-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--acc); vertical-align: -2px; margin-left: 2px; animation: tca-blink 1s steps(2) infinite; }
.tca-txt p:last-of-type .tca-caret { display: inline-block; }
@keyframes tca-blink { 50% { opacity: 0; } }
.tca-note { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); background: var(--soft); padding: 7px 12px; border-radius: 99px; max-width: 100%; }
.tca-note > svg { color: var(--acc); flex: none; }
.tca-note.warn > svg { color: var(--ink-3); }
.tca-note:has(.tca-note-card) { align-self: stretch; background: none; padding: 0; border-radius: 0; display: block; }
.tca-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.tca-retry { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--hair); font-weight: 700; font-size: 13px; justify-self: start; }
.tca-retry:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ cards */
.tca-ui { display: grid; gap: 10px; }
.tca-ui:empty { display: none; }
.tca-txt:not(:empty) + .tca-ui:not(:empty) { margin-top: 10px; }
.tca-card { animation: tca-in .45s var(--ease) both; animation-delay: var(--d, 0ms); min-width: 0; }
.tca-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tca-cap span { letter-spacing: .04em; white-space: nowrap; }
.tca-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 11px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.tca-btn svg { font-size: 17px; }
.tca-btn:active { transform: scale(.97); }
.tca-btn.acc { background: var(--acc); color: #fff; }
.tca-btn.acc:hover { background: var(--acc-2); }
.tca-btn.acc.got { background: var(--acc-soft); color: var(--acc-t); }
.tca-btn.line { border: 1px solid var(--hair); background: #fff; color: var(--ink); }
.tca-btn.line:hover { border-color: var(--ink); }
.tca-btn.line[aria-pressed=true] { border-color: var(--acc); color: var(--acc-t); background: var(--acc-soft); }
.tca-btn.sm { height: 30px; padding: 0 9px; font-size: 11.5px; border-radius: 9px; }
.tca-btn.sm svg { font-size: 14px; }
.tca-btn.ic { width: 36px; height: 36px; padding: 0; flex: none; }
.tca-btn.pop { animation: pop .5s var(--ease); }
.tca-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tca-link { font-weight: 700; color: var(--acc-t); text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }

/* product cards: a swipeable rail of real product cards */
.tca-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 224px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px 0 -56px; padding: 2px 16px 6px 56px; scroll-padding-left: 56px; }
.tca-rail::-webkit-scrollbar { display: none; }
.tca-pc { scroll-snap-align: start; border: 1px solid var(--hair-2); border-radius: 18px; background: #fff; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 6px 18px rgba(13, 16, 20, .05); }
.tca-pc-img { position: relative; display: block; aspect-ratio: 1.3; background: var(--pack); overflow: hidden; }
.tca-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tca-pc-img:hover img { transform: scale(1.04); }
.tca-pc-img .badges { left: 9px; top: 9px; }
.tca-pc-b { padding: 10px 11px 11px; display: grid; gap: 4px; align-content: start; }
.tca-pc h4 { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.tca-pc h4 button { text-align: left; }
.tca-pc h4 button:hover { color: var(--acc-t); }
.tca-pc-s { font-size: 12px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tca-pc-av { font-size: 11.5px; color: var(--ink-2); }
.tca-pc-av .av::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 1px; }
.tca-pc-av .av-no::before { background: var(--ink-3); }
.tca-pc-p { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin: 2px 0 6px; }
.tca-pc-p b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tca-pc-p small { font-size: 11.5px; color: var(--ink-3); }
.tca-pc-b > .tca-btn.acc { width: 100%; }
.tca-pc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.tca-pc-2 .tca-btn { height: 34px; font-size: 12px; padding: 0 4px; gap: 3px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tca-pc-2 .tca-btn svg { font-size: 14px; }
.tca-pc-2 .tca-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tca-pc-2 [data-tca-pp] svg { display: none; } /* «Детальніше» needs the room more than the chevron does */
/* a narrow card stacks «Порівняти» and «Детальніше», so no label is ever clipped */
.tca-pc-b { container-type: inline-size; }
@container (max-width: 205px) { .tca-pc-2 { grid-template-columns: 1fr; } }
.tca-ps.one .tca-rail { grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 2px 0 6px; scroll-padding-left: 0; }
.tca-ps.one .tca-pc { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto; }
.tca-ps.one .tca-pc-img { aspect-ratio: auto; height: 100%; min-height: 190px; }
.tca-cmpnote { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.tca-cmpnote > svg { color: var(--acc); }

/* added to cart */
.tca-added { border-radius: 18px; background: var(--soft); padding: 13px 14px 14px; }
.tca-added-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tca-added-h svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--acc); color: #fff; }
.tca-added-p { display: flex; align-items: center; gap: 11px; margin-top: 10px; }
.tca-added-p img { width: 48px; height: 48px; border-radius: 12px; background: var(--pack); object-fit: cover; }
.tca-added-p span { display: grid; line-height: 1.3; }
.tca-added-p b { font-size: 14.5px; }
.tca-added-p small { font-size: 12.5px; color: var(--ink-3); }
.tca-added-s { font-size: 12.5px; color: var(--ink-2); margin-top: 9px; }
.tca-added .tca-acts .tca-btn { flex: 1 1 auto; }

/* comparison */
.tca-cmp-s { overflow-x: auto; scrollbar-width: thin; border: 1px solid var(--hair-2); border-radius: 16px; }
.tca-cmp-t { min-width: calc(96px + var(--n) * 110px); }
.tca-cmp-r { display: grid; grid-template-columns: 96px repeat(var(--n), minmax(110px, 1fr)); font-size: 12.5px; border-top: 1px solid var(--hair-2); }
.tca-cmp-r > * { padding: 7px 9px; min-width: 0; }
.tca-cmp-r.top { border-top: 0; align-items: end; }
.tca-cmp-r.diff { background: rgba(43, 89, 255, .035); }
.tca-cmp-l { color: var(--ink-3); position: sticky; left: 0; background: #fff; z-index: 1; font-size: 12px; }
.tca-cmp-r.diff .tca-cmp-l { background: #f7f9ff; }
.tca-cmp-p { display: grid; gap: 5px; justify-items: start; padding-top: 11px !important; }
.tca-cmp-p img { width: 58px; height: 58px; border-radius: 12px; background: var(--pack); object-fit: cover; }
.tca-cmp-p b { font-size: 13px; line-height: 1.25; }
.tca-cmp .best { color: var(--acc-t); font-weight: 800; }

/* a department */
.tca-cat-b { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--hair-2); background: #fff; transition: border-color .2s; }
.tca-cat-b:hover { border-color: var(--ink); }
.tca-cat-imgs { display: flex; grid-row: span 2; }
.tca-cat-imgs img { width: 44px; height: 44px; border-radius: 12px; background: var(--pack); object-fit: cover; border: 2px solid #fff; margin-left: -12px; }
.tca-cat-imgs img:first-child { margin-left: 0; }
.tca-cat-t { display: grid; line-height: 1.3; }
.tca-cat-t b { font-size: 14px; }
.tca-cat-t small { font-size: 12.5px; color: var(--ink-3); }
.tca-cat-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--acc-t); grid-column: 2; }

/* delivery for a city */
.tca-dl { border-radius: 18px; border: 1px solid var(--hair-2); padding: 13px 14px 14px; background: #fff; }
.tca-dl-h { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.tca-dl-h svg { color: var(--acc); font-size: 19px; grid-row: span 2; }
.tca-dl-h b { font-size: 15px; }
.tca-dl-h small { font-size: 12px; color: var(--ink-3); }
.tca-dl ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.tca-dl li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair-2); font-size: 13px; }
.tca-dl li > svg { font-size: 19px; color: var(--ink-2); }
.tca-dl li span { display: grid; line-height: 1.3; }
.tca-dl li small { font-size: 12px; color: var(--ink-3); }
.tca-dl li em { font-style: normal; font-weight: 700; font-size: 12px; text-align: right; max-width: 120px; }
.tca-dl-st { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding-top: 9px; border-top: 1px solid var(--hair-2); line-height: 1.45; }
.tca-dl-st svg { color: var(--ink-3); flex: none; margin-top: 2px; }
.tca-dl-st small { color: var(--ink-3); font-size: 11.5px; }
.tca-dl-n { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.tca-dl-mine { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--acc-t); font-weight: 600; margin-top: 10px; }

/* the TV size */
.tca-tv { border-radius: 18px; border: 1px solid var(--hair-2); padding: 12px 14px 14px; background: #fff; }
.tca-tv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tca-tv-plan { background: var(--soft); border-radius: 14px; padding: 6px; }
.tca-tv-plan svg { width: 100%; height: auto; display: block; }
.tca-tv-plan .w { stroke: var(--ink-3); stroke-width: 2; }
.tca-tv-plan .tv { fill: var(--ink); }
.tca-tv-plan .cone { fill: rgba(43, 89, 255, .1); stroke: var(--acc); stroke-width: 1; stroke-dasharray: 3 3; }
.tca-tv-plan .sofa { fill: #fff; stroke: var(--ink-3); }
.tca-tv-plan .dim { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.tca-tv-plan text { font: 600 9px var(--font); fill: var(--ink-2); }
.tca-tv-rec { display: grid; justify-items: start; line-height: 1.2; }
.tca-tv-rec small { font-size: 12px; color: var(--ink-3); }
.tca-tv-rec b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--acc-t); line-height: 1.05; }
.tca-tv-rec span { font-size: 12px; color: var(--ink-2); }
.tca-tv-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.tca-tv-l li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--hair-2); }
.tca-tv-l li > button:first-child { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; }
.tca-tv-l img { width: 44px; height: 44px; border-radius: 11px; background: var(--pack); object-fit: cover; }
.tca-tv-l span { display: grid; min-width: 0; line-height: 1.3; }
.tca-tv-l b { font-size: 13.5px; }
.tca-tv-l small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tca-tv-l em { font-style: normal; font-weight: 800; font-size: 13.5px; white-space: nowrap; }

/* ------------------------------------------------------------------ composer */
.tca-cwrap { flex: none; border-top: 1px solid var(--hair-2); padding: 10px 12px 9px; background: #fff; display: grid; gap: 7px; }
.tca-comp { display: flex; align-items: flex-end; gap: 6px; background: var(--soft); border-radius: 18px; padding: 6px 6px 6px 14px; border: 1.5px solid transparent; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.tca-comp:focus-within { background: #fff; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.tca-comp textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; font-size: 15px; line-height: 1.4; padding: 9px 0; height: 39px; max-height: 110px; outline: none; }
.tca-comp textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.tca-mic, .tca-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 20px; transition: background-color .2s, color .2s; }
.tca-mic { color: var(--ink-2); }
.tca-mic:hover { background: var(--soft-2); color: var(--ink); }
.tca-send { background: var(--acc); color: #fff; }
.tca-send:hover { background: var(--acc-2); }
.tca-send[disabled] { opacity: .45; }
.tca-foot { font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.4; }
.tca-foot a { color: var(--ink-2); font-weight: 600; text-underline-offset: 2px; }
.tca-vsheet { animation: tca-in .3s var(--ease) both; }
.tca-v-go { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px; border-radius: 18px; background: var(--soft); }
.tca-v-i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; }
.tca-v-go b { font-size: 15px; }
.tca-v-go p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.tca-v-go .tca-acts { grid-column: 1 / -1; margin-top: 8px; }
.tca-v-go .tca-btn.acc { flex: 1; }

/* ------------------------------------------------------------------ phones: the tab opens a sheet that slides up (drag it down to close) */
@media (max-width: 760px) {
  .tca-launch, .tca-tip { display: none; }
  /* the teaser docks over the tab bar for a few seconds: it never covers the page itself */
  .tca-teaser { left: 0; right: 0; bottom: 0; max-width: none; z-index: 58; align-items: center; padding-bottom: env(safe-area-inset-bottom); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(13, 16, 20, .18), 0 0 0 1px var(--hair-2); transform: translateY(105%); transform-origin: 50% 100%; transition: opacity .3s var(--out), transform .5s cubic-bezier(.2, .95, .25, 1); }
  .tca-teaser.on { transform: none; }
  .tca-teaser-b { flex: 1; align-items: center; min-height: 68px; padding: 10px 6px 10px 16px; }
  .tca-teaser-b b { font-size: 13.5px; }
  .tca-teaser-x { margin: 0 10px 0 0; width: 36px; height: 36px; background: var(--soft); }
  html.cmp-on .tca-teaser { display: none; }
  .tca-back { inset: 0; background: rgba(13, 16, 20, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .tca-shade { display: none; }
  .tca-panel { inset: auto 0 var(--kb, 0px) 0; top: calc(8px + env(safe-area-inset-top)); width: auto; height: auto; border-radius: 24px 24px 0 0; clip-path: none; transform: translateY(105%); transform-origin: 50% 100%; box-shadow: 0 -18px 50px rgba(13, 16, 20, .22); transition: transform .45s cubic-bezier(.5, 0, .3, 1); }
  .tca.is-open .tca-panel { clip-path: none; transform: translateY(var(--drag, 0px)); transition: transform .62s cubic-bezier(.2, .95, .25, 1); }
  .tca.dragging .tca-panel { transition: none; }
  .tca-panel::after { display: none; }
  .tca-grip { display: grid; place-items: center; height: 16px; padding-top: 7px; flex: none; touch-action: none; }
  .tca-grip i { width: 40px; height: 5px; border-radius: 3px; background: var(--soft-2); }
  .tca-h { padding: 6px 10px 10px 14px; gap: 10px; touch-action: none; }
  .tca-ava { width: 38px; height: 38px; }
  .tca-id b { font-size: 15.5px; }
  .tca-on { font-size: 11.5px; }
  .tca-cwrap { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
  .tca-rail { grid-auto-columns: 64%; }
  .tca-ps.one .tca-pc { grid-template-columns: 40% minmax(0, 1fr); }
  .tca-comp textarea { font-size: 16px; }
  html.tca-lock body { overflow: hidden; }
}
@media (max-width: 380px) {
  .tca-on { display: none; }
}

/* reduced motion: everything appears at once (html.reduced in style.css); the living cues hold still */
html.reduced .tca-l-ring, html.reduced .tabbar .tab-ask .tab-ask-i::before { animation: none; opacity: 0; }
html.reduced .tca-launch::after { animation: none; opacity: .3; }
html.reduced .tca-launch { translate: none; }
html.reduced .tca, html.reduced .tca *, html.reduced .tca *::before, html.reduced .tca *::after, html.reduced .tca-panel::after { transition-delay: 0s !important; animation-delay: 0s !important; }

/* ------------------------------------------------------------------ «Розгорнути»: a large centred window, 80% of the screen
   (owner 17.10). Default stays the compact side panel; the header button toggles. Text and the composer keep a readable
   column; product cards become a grid. */
.tca-wide { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); flex: none; transition: background-color .2s, color .2s; }
.tca-wide:hover { background: var(--soft); color: var(--ink); }
.tca-wide svg { width: 21px; height: 21px; }
.tca-wide .tca-wide-off, .tca.wide .tca-wide .tca-wide-on { display: none; }
.tca.wide .tca-wide .tca-wide-off { display: block; }
@media (min-width: 1024px) {
  .tca.wide .tca-panel, .tca.wide .tca-shade { right: 10vw; bottom: 10vh; width: 80vw; height: 80vh; border-radius: 28px; }
  .tca.is-open .tca-panel, .tca.wide.is-open .tca-panel { transition: clip-path .6s var(--out), transform .7s var(--spring), right .55s var(--out), bottom .55s var(--out), width .55s var(--out), height .55s var(--out), border-radius .55s var(--out); }
  .tca-shade { transition: opacity .18s, right .55s var(--out), bottom .55s var(--out), width .55s var(--out), height .55s var(--out); }
  .tca.wide.is-open .tca-panel { clip-path: inset(0 0 0 0 round 28px); }
  .tca.wide .tca-back { inset: 0; background: rgba(13, 16, 20, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .tca.wide .tca-log { padding: 26px max(24px, calc((100% - 1040px) / 2)) 30px; gap: 18px; }
  .tca.wide .tca-txt, .tca.wide .tca-empty { max-width: 780px; }
  .tca.wide .tca-u { max-width: min(86%, 680px); }
  .tca.wide .tca-cwrap { padding-left: max(16px, calc((100% - 1040px) / 2)); padding-right: max(16px, calc((100% - 1040px) / 2)); }
  .tca.wide .tca-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; overflow: visible; scroll-snap-type: none; margin: 0; padding: 2px 0 6px; }
  .tca.wide .tca-ps.one .tca-rail { grid-template-columns: minmax(0, 560px); }
  .tca.wide .tca-pc-b { padding: 12px 14px 14px; gap: 5px; }
  .tca.wide .tca-pc h4 { font-size: 15.5px; }
  .tca.wide .tca-pc-p b { font-size: 20px; }
  .tca.wide .tca-pc-2 .tca-btn { height: 36px; font-size: 12.5px; }
}
@media (max-width: 1023px) { .tca-wide { display: none; } }
