/* Showcase pages: /ai/, /3d-tur/, /ilovalar/ (and their /ru/ versions).
   Page-only sample mocks built on the shared .widget frame; everything else comes from /styles.css. */

/* ============ AI page ============ */
.ai-hero-visual { min-width: 0; }
.ai-hero-visual .ai-chat__log { min-height: 0; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--radius); background: #eef7f7; border: 1px solid #d3ecec; color: #24485c; font-size: .93rem; line-height: 1.55; }
.ai-note::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31, 184, 188, .18); }

/* Lead insight mock */
.li { display: grid; gap: 16px; }
.li__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e8eef2; }
.li__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; font-weight: 700; color: var(--navy-950); background: linear-gradient(135deg, #7ff0ef, #1fb8bc); }
.li__who { display: grid; gap: 2px; min-width: 0; }
.li__who strong { font-size: .96rem; }
.li__who small { font-size: .74rem; color: #6a7f90; }
.li__stage { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #3a55c9; background: #e8edff; }
.li__fields { display: grid; gap: 6px; list-style: none; }
.li__fields li { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f6f9fb; border: 1px solid #e3ebf0; font-size: .8rem; }
.li__fields li > span:first-child { color: #6a7f90; }
.li__fields b { font-weight: 600; }
.li__tag { padding: 2px 6px; border-radius: 5px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: #0e7c83; background: #dff4f4; }
.li__ai { padding: 16px; border-radius: 14px; color: #e8f1f5; background: linear-gradient(135deg, #0e2f46, #173146); }
.li__ai .mini-label { color: #7ff0ef; }
.li__ai dl { display: grid; gap: 12px; }
.li__ai dt { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9fc3d1; }
.li__ai dd { margin-top: 2px; font-size: .86rem; line-height: 1.5; }

/* AI report mock */
.rep { display: grid; gap: 14px; }
.rep .msg--user { max-width: 92%; }
.rep .msg__body { min-width: 0; flex: 1; }
.rep__chart { display: grid; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #d9efef; }
.rep__chart .mini-label { margin-bottom: 2px; }
.rep__bar { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; gap: 10px; align-items: center; font-size: .74rem; color: #3f5567; }
.rep__bar i { display: block; height: 10px; width: calc(var(--v) * 100%); border-radius: 5px; background: linear-gradient(90deg, #1fb8bc, #5174ff); transform-origin: left; }
.rep__bar b { text-align: right; color: #173146; }
.rep-w.is-visible .rep__bar i { animation: rep-grow .9s var(--ease-out) both; }
@keyframes rep-grow { from { transform: scaleX(0); } }
.rep__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.rep__files li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #e0e8ed; }
.rep__files li > .icon { flex: none; margin-left: auto; color: var(--teal-700); }
.rep__ext { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; font-size: .6rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: #5b7489; }
.rep__ext--xlsx { background: #1f8f55; }
.rep__ext--csv { background: #0e7c83; }
.rep__ext--txt { background: #5b7489; }
.rep__ext--png { background: #5174ff; }
.rep__name { display: grid; gap: 1px; min-width: 0; }
.rep__name b { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.rep__name small { font-size: .68rem; color: #6a7f90; }

/* Staff performance mock */
.staff { display: grid; gap: 10px; }
.staff__cols { display: flex; justify-content: space-between; padding: 0 14px 0 62px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6a7f90; }
.staff__list { display: grid; gap: 8px; list-style: none; }
.staff__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 14px; background: #f6f9fb; border: 1px solid #e3ebf0; }
.staff__list li.is-warn { background: #fffaf0; border-color: #f6dca5; }
.staff__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; color: #fff; background: #29617c; }
.staff__main { display: grid; gap: 3px; min-width: 0; }
.staff__main b { font-size: .9rem; }
.staff__main small { font-size: .74rem; color: #6a7f90; }
.staff__bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: #e3ebf0; overflow: hidden; }
.staff__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, #1fb8bc, #5174ff); }
.is-warn .staff__bar i { background: linear-gradient(90deg, #f2a93b, #e58a1f); }
.staff__conv { font-family: var(--font-head); font-size: 1.02rem; }
.staff .dash__ai { margin-top: 4px; }

/* ============ 3D tour page ============ */
.pano__seasons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 0; border: 0; }
.pano__seasons legend { float: left; margin: 0; padding: 0; }
.pano__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pano__seasons label.seg { cursor: pointer; }
.pano__radio:checked + label.seg { color: #fff; background: #173146; border-color: #173146; }
.pano__radio:focus-visible + label.seg { outline: 3px solid var(--teal); outline-offset: 2px; }
.pano__stage { position: relative; border-radius: 14px; overflow: hidden; background: #dfe9ee; }
.pano__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .5s var(--ease); }
.pano__snow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.pano-w:has(#pano-autumn:checked) .pano__stage img { filter: sepia(.38) saturate(1.3) hue-rotate(-14deg) brightness(.98); }
.pano-w:has(#pano-winter:checked) .pano__stage img { filter: saturate(.28) brightness(1.1) contrast(.94) hue-rotate(12deg); }
.pano-w:has(#pano-winter:checked) .pano__snow {
  opacity: 1;
  background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px), radial-gradient(circle, rgba(255, 255, 255, .85) 0 1.1px, transparent 1.6px);
  background-size: 48px 48px, 30px 30px;
  animation: snow 6s linear infinite;
}
.pano__360 { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(11, 44, 66, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pano__spots { position: absolute; inset: 0; list-style: none; }
.pano__spots li { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 6px; transform: translate(-14px, -50%); }
.pano__dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-size: .8rem; font-weight: 800; color: var(--navy-950); background: #fff; box-shadow: 0 0 0 4px rgba(45, 212, 216, .45), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.pano__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(45, 212, 216, .8); animation: pano-pulse 2.4s var(--ease-out) infinite; }
@keyframes pano-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.pano__label { padding: 4px 9px; border-radius: 8px; font-size: .74rem; font-weight: 700; color: #173146; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); white-space: nowrap; }
.t3-roles { margin-top: 8px; }
.t3-roles .checklist { margin-top: 18px; }
.t3-callout { max-width: 760px; }
.t3-callout .callout { margin-bottom: 0; }

/* ============ Apps page ============ */
.apps-overview .card { display: flex; flex-direction: column; }
.apps-overview .card__more { margin-top: auto; padding-top: 18px; }
.apps-phone { position: relative; display: grid; place-items: center; padding: 12px 0; }
.apps-phone::before { content: ''; position: absolute; top: 50%; left: 50%; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(31, 184, 188, .2) 0%, rgba(81, 116, 255, .08) 45%, transparent 70%); pointer-events: none; }
.apps-phone > .phone { position: relative; }
.apps-more { margin-top: 20px; }
/* Buyer app payment screen (page-only phone mock) */
.phone--pay .phone__screen { padding-bottom: 22px; }
.pay-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pay-card > .icon { color: #13895a; }
.pay-card__brand { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 6px; font-size: .58rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #1f8f55, #0e7c83); }
.pay-card__num { display: grid; gap: 1px; min-width: 0; }
.pay-card__num b { font-size: .86rem; letter-spacing: .04em; }
.pay-auto { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pay-auto > span:first-child { display: grid; gap: 2px; }
.pay-toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #1fb8bc; }
.pay-toggle i { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pay-code { display: flex; gap: 6px; margin-top: 4px; }
.pay-code i { display: grid; place-items: center; width: 30px; height: 34px; border-radius: 8px; border: 1px solid #d5e1e8; background: #f6f9fb; font-style: normal; font-weight: 700; font-size: .9rem; color: #173146; }
.pay-note { font-size: .66rem; line-height: 1.4; color: #6a7f90; text-align: center; }
.split__copy .callout { margin: 24px 0 0; }
.apps-web__list { display: grid; gap: 28px; }
.apps-web__list .checklist { margin-top: 0; }
.apps-web__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.apps-web__cta .btn-row { margin: 0; }
.apps-note { font-size: .9rem; color: var(--fg-muted); }

@media (max-width: 767px) {
  .rep__files { grid-template-columns: minmax(0, 1fr); }
  .staff__cols { padding-left: 62px; }
  .li__fields li { grid-template-columns: minmax(0, 1fr) auto; }
  .li__fields li > span:first-child { grid-column: 1 / -1; font-size: .72rem; }
  .pano__label { font-size: .68rem; padding: 3px 7px; }
  .pano__dot { width: 24px; height: 24px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pano__dot::after { animation: none; display: none; }
}

/* Split inner hero (AI page): the copy column is half width, so the h1 steps down a size. */
.page-hero--split h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
.li__ai dd { margin: 2px 0 0; }
.pano__note { font-weight: 600; color: #7a5200; }
.pano__hint { flex-wrap: nowrap; align-items: flex-start; }
.pano__hint > .icon { flex: none; margin-top: 2px; }
.pano__hint > span { min-width: 0; }

/* CTA contact cards: on narrow phones the shared card overflows (long Instagram handle); tighten it here. */
@media (max-width: 420px) {
  #kompyuter .btn-row .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .cta-band { padding-inline: 20px; }
  .cta-band .contact-card { gap: 12px; padding: 14px; }
  .cta-band .contact-card > span:not(.contact-card__icon) { min-width: 0; }
  .cta-band .contact-card strong { font-size: .95rem; overflow-wrap: anywhere; }
}
