/* Курсор-комета (js/site/ui/cursor.js): кольцо как в заставке и светящийся хвост на холсте.
   Системный курсор прячем, только когда скрипт включил комету (класс has-custom-cursor, только для мыши). */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }
html.has-custom-cursor input,
html.has-custom-cursor textarea { cursor: text !important; }

.cursor {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* поверх окон входа и заявки */
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.cursor.is-on { opacity: 1; }
/* Пока страница появляется, курсора не видно. */
body:has(.site--intro) .cursor { opacity: 0; }
.cursor__trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    will-change: transform;
}
.cursor__ring::before {
    content: '';
    position: absolute;
    top: -17px;
    left: -17px;
    width: 34px;
    height: 34px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: none; /* середина прозрачная */
    /* Тонкая тёмная обводка снаружи — чтобы кольцо было видно и на белых окнах. */
    box-shadow: 0 0 0 1px rgb(20 24 60 / .35), 0 0 18px rgb(150 160 255 / .5);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
/* При нажатии кольцо чуть сжимается. */
.cursor.is-down .cursor__ring::before { transform: scale(.78); }
