.ii-site-brand { display: inline-flex; flex: 0 0 auto; gap: 8px; align-items: center; color: inherit; text-decoration: none; }
.ii-site-brand img { display: none; }
.ii-site-brand::before { content: ""; width: 40px; height: 40px; flex: 0 0 auto; background: url("./brand-icon.svg") center / contain no-repeat; }
.ii-site-brand:not(.ii-home-link)::after { content: "ИИ-мастерская\00000a Андрея Спирина"; white-space: pre; font: 700 12px/1.25 system-ui, sans-serif; }
.ii-site-brand:not(.ii-home-link)::after, .ii-home-link span { color: #f499ad; background: linear-gradient(105deg,#ff9ad8,#ffd97a,#7ff0e6); background-clip: text; -webkit-text-fill-color: transparent; }
.ii-site-brand-row { position: relative; z-index: 2; padding: 12px 16px; }
.ii-home-link span { font: 700 16px/1.25 system-ui, sans-serif; }
.ii-back-to-top { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: calc(16px + env(safe-area-inset-left, 0px)); z-index: 10000; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #ffc38a; border-radius: 50%; color: #fff; background: #21182b; box-shadow: 0 3px 14px #0006; font: 700 25px/1 system-ui; cursor: pointer; }
.ii-back-to-top[hidden] { display: none; }
.ii-back-to-top:focus-visible { outline: 2px solid #ff8509; outline-offset: 3px; }
@media (max-width: 540px) { .ii-site-brand::before { width: 36px; height: 36px; } }
