:root {
    color-scheme: dark;
    color: #f4f4f4;
    background: #111111;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #111111;
    color: #f4f4f4;
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
.login-input {
    user-select: text;
    -webkit-user-select: text;
}

.page-shell {
    --text-scale: 1;
    --visual-scale: 1;
    --text-x: 145px;
    --text-y: 280px;
    --visual-x: 475px;
    --visual-y: 20px;
    --bg-scale: 1;

    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #111111;
}

.bg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: min(54.55vw, calc(1047px * var(--bg-scale)));
    height: min(54.55vh, calc(589px * var(--bg-scale)));
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-image: url('../images/line.png');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
}

.text-overlay {
    position: absolute;
    left: var(--text-x);
    top: var(--text-y);
    width: 785px;
    color: #ffffff;
    pointer-events: none;
    z-index: 5;
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    transform: scale(var(--text-scale));
    transform-origin: left top;
    will-change: transform, left, top;
}

.text-overlay-main {
    display: block;
    font-size: 4.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.text-overlay-sub {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.716rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
    color: #d3d3d3;
    opacity: 0.85;
}

.text-overlay-button {
    display: inline-flex;
    margin-top: 100px;
    padding: 18px 31px;
    border-radius: 18px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.text-overlay-button:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
}

.text-overlay-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    pointer-events: auto;
}

.text-overlay-icon {
    display: inline-block;
    margin-left: 0;
    margin-top: 0;
    width: auto;
    height: 144px;
    object-fit: contain;
    position: relative;
    top: -145px;
    left: 270px;
}

.visual-cluster {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 835px;
    height: 709px;
    pointer-events: none;
    z-index: 1;
    transform:
        translate(calc(-50% + var(--visual-x)), calc(-50% + var(--visual-y)))
        scale(var(--visual-scale));
    transform-origin: center center;
    will-change: transform;
}

.center-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 30px), calc(-50% - 40px));
    width: 530px;
    height: 500px;
    background-color: #1f1f1f;
    border-radius: 16px;
    z-index: 0;
}

.chiba-image {
    position: absolute;
    inset: 0;
    background-image: url('../images/Chiba_bez_tenei.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform-origin: center bottom;
    will-change: transform;
    animation: chiba-wobble 5s infinite;
}

@keyframes chiba-wobble {
    0% {
        transform: rotate(-0.4deg) translateX(-0.8px);
        animation-timing-function: linear;
    }

    20% {
        transform: rotate(0.4deg) translateX(0.8px);
    }

    48% {
        transform: rotate(0.4deg) translateX(0.8px);
        animation-timing-function: linear;
    }

    68% {
        transform: rotate(-0.4deg) translateX(-0.8px);
    }

    100% {
        transform: rotate(-0.4deg) translateX(-0.8px);
    }
}

.hero-panel {
    position: absolute;
    top: 20px;
    left: 35px;
    width: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(17, 17, 17, 0.28);
    -webkit-backdrop-filter: blur(21px) saturate(170%) brightness(1.06);
    backdrop-filter: blur(21px) saturate(170%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 36px rgba(0, 0, 0, 0.28);
    z-index: 10;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.14));
    z-index: 0;
    pointer-events: none;
}

.panel-logo-group {
    position: absolute;
    left: 167px;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(-50%);
}

.panel-discord-button {
    margin-left: 0;
}

.panel-logo {
    position: static;
    display: inline-flex;
    align-items: center;
    margin-left: -10px;
    text-decoration: none;
    line-height: 0;
    transform: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.panel-logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.panel-logo__image {
    display: block;
    width: auto;
    height: 82.368px;
    object-fit: contain;
    border-radius: 18px;
}

.hero-panel > .panel-nav {
    position: relative;
    z-index: 1;
}

.panel-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 91px;
    padding: 19px 44px;
    border: none;
    border-radius: 19px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 1.584rem;
    font-weight: 700;
    text-transform: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.panel-login-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
}

.hero-panel > .panel-login-button,
.hero-panel .panel-user-menu__trigger {
    background: #ffffff;
    color: #000000;
    border: none;
}

.hero-panel > .panel-user-menu {
    position: relative;
    margin-right: 91px;
    z-index: 30;
    overflow: visible;
}

.panel-user-menu__trigger {
    margin-right: 0;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.panel-user-menu__dropdown {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    min-width: 100%;
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    overflow: visible;
    pointer-events: none;
}

.panel-user-menu__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 19px 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 19px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.742rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease;
}

.panel-user-menu__item--panel,
.panel-user-menu__item--logout {
    -webkit-backdrop-filter: blur(48px) saturate(170%) brightness(1.06);
    backdrop-filter: blur(48px) saturate(170%) brightness(1.06);
}

.panel-user-menu__item--panel {
    background: rgba(17, 17, 17, 0.28);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}

.panel-user-menu__item--logout {
    background: rgba(50, 28, 21, 0.45);
    border: 0.5px solid rgba(85, 40, 25, 0.65);
    color: #ffffff;
}

.panel-user-menu__item--panel:hover {
    background: rgba(17, 17, 17, 0.28);
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

.panel-user-menu__item--logout:hover {
    background: rgba(50, 28, 21, 0.45);
    border-color: rgba(85, 40, 25, 0.8);
    opacity: 1;
    transform: translateY(-1px);
}

.panel-user-menu.is-open .panel-user-menu__item {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.panel-user-menu.is-open .panel-user-menu__item:hover {
    transform: translateY(-1px);
}

.panel-user-menu.is-open .panel-user-menu__dropdown {
    pointer-events: auto;
}

.panel-user-menu.is-open .panel-user-menu__item:nth-child(1) {
    transition-delay: 0.04s;
}

.panel-user-menu.is-open .panel-user-menu__item:nth-child(2) {
    transition-delay: 0.12s;
}

.panel-nav {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-left: 409px;
}

.panel-nav-group {
    display: flex;
    align-items: center;
}

.panel-nav-group--compact {
    gap: 50px;
}

.panel-nav-button,
.panel-reference-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 19px 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 19px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.742rem;
    font-weight: 600;
    text-transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.panel-nav-button:hover,
.panel-reference-button:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.panel-nav-button--active,
.panel-nav-button--active:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transform: none;
}

body.reference-page .hero-panel {
    position: fixed;
    top: 20px;
    left: 35px;
    width: calc(100vw - 70px);
    z-index: 20;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: none;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 22px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 1.08rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
}

h1 {
    margin: 0 0 29px;
    font-size: 5.04rem;
    line-height: 1.05;
    color: #ffffff;
}

p {
    margin: 0 0 29px;
    font-size: 1.32rem;
    color: #d7d7d7;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 31px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #111111;
    background: #f4f4f4;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

body.login-page {
    overflow: hidden;
}

.login-shell,
.login-visual {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.login-shell {
    position: relative;
}

.login-visual {
    position: relative;
}

.login-image {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    transform: translateX(200px);
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    z-index: 2;
}

.login-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    transform: none;
}

.login-square {
    width: 50vw;
    height: 100vh;
}

.login-square-black {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
        to left,
        rgba(17, 17, 17, 0) 0%,
        rgba(17, 17, 17, 0.99) 1.26%,
        #111111 1.26%,
        #111111 100%
    );
    z-index: 1;
}

.login-form-panel {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(calc(-50% + 160px), -50%);
    width: min(90%, 800px);
    z-index: 3;
}

.login-form-title {
    margin: 0 0 56px;
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-size: clamp(4rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 66px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-label {
    font-size: 1.84rem;
    font-weight: 600;
    color: #e4e4e4;
}

.login-input {
    width: 100%;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 2rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.login-input::placeholder {
    color: #8a8a8a;
}

.login-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: #1f1f1f;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 28px 48px;
    border: none;
    border-radius: 21px;
    background: #ffffff;
    color: #000000;
    font-size: 2rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-submit-icon {
    width: 2rem;
    height: 2rem;
    filter: brightness(0);
}

.login-submit-text {
    margin-left: 10px;
}

.login-submit:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}

.login-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 28px 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 21px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 0, 0, 0.1) 22%,
        rgba(0, 0, 0, 0.1) 78%,
        rgba(255, 255, 255, 0.12) 100%
    );
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.login-register-button:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.17) 0%,
        rgba(0, 0, 0, 0.15) 22%,
        rgba(0, 0, 0, 0.15) 78%,
        rgba(255, 255, 255, 0.17) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.login-message {
    margin: 0 0 32px;
    font-size: 1.5rem;
    line-height: 1.4;
}

.login-message-error {
    color: #ff8a8a;
}

.login-message-success {
    color: #9dffb0;
}

html.reference-page,
html.reference-page body {
    overflow: visible;
    height: auto;
}

body.reference-page {
    overflow: visible;
    --ui-scale: 1;
}

.reference-shell {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: #111111;
    --reference-image-scale: 1.4217;
    --ui-scale: 1;
    transform: scale(var(--ui-scale));
    transform-origin: top left;
    width: calc(100% / var(--ui-scale));
}

.reference-main-visual {
    position: absolute;
    display: block;
    width: max-content;
    max-width: 100%;
    z-index: 1;
}

.reference-main-image {
    position: relative;
    z-index: 1;
    display: block;
    max-width: none;
    width: auto;
    height: auto;
    border-radius: 28px;
    transform: scale(var(--reference-image-scale));
    transform-origin: top left;
    pointer-events: none;
    user-select: none;
}

.reference-sidebar {
    position: relative;
    margin: 140px 0 0 115px;
    z-index: 5;
}

.reference-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    width: max-content;
}

.reference-main-row {
    position: relative;
    width: 100%;
    min-height: 0;
}

.reference-main-row + .reference-side-button {
    position: relative;
    z-index: 6;
}

.reference-main-heading {
    position: absolute;
    left: calc(100% + 110px);
    top: calc(50% - 14px);
    max-width: min(920px, calc((100vw / var(--ui-scale, 1)) - 115px - 110px - 100% - 40px));
    pointer-events: none;
    font-family: inherit;
    z-index: 2;
}

.reference-main-title {
    margin: 0;
    font-size: clamp(2rem, 3.64vw, 2.91rem);
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    transform: translateY(-50%);
}

.reference-main-intro {
    margin: calc(14px - 0.6 * clamp(2rem, 3.64vw, 2.91rem)) 0 0;
    font-size: 1.716rem;
    font-weight: 400;
    line-height: 1.55;
    color: #d3d3d3;
}

.reference-main-intro-line {
    display: block;
    white-space: nowrap;
}

.reference-main-intro-line + .reference-main-intro-line {
    margin-top: calc(2 * 1.55em - 60px);
}

.reference-side-button,
.account-side-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 18px 106px 18px 16px;
    border: 0.5px solid transparent;
    border-radius: 32px;
    background: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
    font-size: 2.059rem;
    font-weight: 600;
    text-transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.reference-side-button:hover,
.account-side-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.reference-side-button--active,
.reference-side-button--active:hover {
    background: #321c15;
    border-color: #602c1b;
    opacity: 1;
    transform: none;
}

.account-side-button--active,
.account-side-button--active:hover {
    background: #203325;
    border-color: #468357;
    opacity: 1;
    transform: none;
}

.reference-card {
    width: min(100%, 760px);
    padding: 40px 36px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reference-title {
    margin: 0 0 16px;
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #ffffff;
}

.reference-intro {
    margin: 0 0 32px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #c8c8c8;
}

.reference-section {
    margin-bottom: 24px;
}

.reference-heading {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #ffffff;
}

.reference-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #d0d0d0;
}

.reference-back-link {
    display: inline-block;
    margin-top: 12px;
    color: #bdbdbd;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.reference-back-link:hover {
    color: #ffffff;
}

.reference-article {
    position: absolute;
    left: 598px;
    right: 0;
    top: 266px;
    z-index: 2;
    width: auto;
    max-width: none;
    pointer-events: none;
}

.reference-article-title {
    margin: 0;
    font-size: clamp(2rem, 3.64vw, 2.91rem);
    font-weight: 600;
    color: #ffffff;
    white-space: normal;
}

.reference-shell[data-active-section="about"] .reference-article {
    font-weight: 500;
}

.reference-shell[data-active-section="about"] .reference-article-title {
    font-weight: 650;
}

.reference-article-subtitle {
    margin: 1rem 0 0;
    font-size: 1.716rem;
    font-weight: 400;
    line-height: 1.55;
    color: #d3d3d3;
    white-space: normal;
}

.reference-article-subtitle-line {
    display: block;
}

.reference-article-image {
    display: block;
    margin-top: 2rem;
    width: 100%;
    max-width: min(1843.64px, 100%);
    height: auto;
    border-radius: 28px;
    pointer-events: none;
    user-select: none;
}

.reference-article-socials {
    margin: calc(1.5rem + 50px) 0 0;
    font-size: 3.0888rem;
    font-weight: 650;
    line-height: 1.55;
    color: #ffffff;
}

.reference-article-socials-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    width: 100%;
    max-width: min(1843.64px, 100%);
    margin-top: 1.25rem;
    pointer-events: auto;
}

.reference-social-button {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 24.7px 68.2px 24.7px 68.2px;
    border-radius: 24.7px;
    font-size: 2.2646rem;
    text-transform: lowercase;
}

.reference-social-button__icon {
    display: block;
    width: 2.2646rem;
    height: 2.2646rem;
    flex-shrink: 0;
    filter: invert(1);
    pointer-events: none;
}

.reference-social-button--discord {
    background: #17202d;
    border: 1px solid #20395d;
}

.reference-social-button--discord:hover {
    background: #17202d;
    border-color: #20395d;
    opacity: 0.9;
}

.reference-social-button--youtube {
    background: #290f0f;
    border: 1px solid #903926;
}

.reference-social-button--youtube:hover {
    background: #290f0f;
    border-color: #903926;
    opacity: 0.9;
}

.reference-social-button--telegram {
    background: rgba(61, 110, 139, 0.45);
    border: 1px solid rgba(77, 147, 188, 0.65);
}

.reference-social-button--telegram:hover {
    background: rgba(61, 110, 139, 0.45);
    border-color: rgba(77, 147, 188, 0.65);
    opacity: 0.9;
}

.reference-social-button--twitch {
    background: #221a2e;
    border: 1px solid #4d3273;
}

.reference-social-button--twitch:hover {
    background: #221a2e;
    border-color: #4d3273;
    opacity: 0.9;
}

html.shop-page,
html.shop-page body {
    overflow: visible;
    height: auto;
}

body.shop-page {
    overflow: visible;
}

body.shop-page .hero-panel {
    position: fixed;
    top: 20px;
    left: 35px;
    width: calc(100% - 70px);
    z-index: 20;
}

html.ankety-page,
html.ankety-page body {
    overflow: visible;
    height: auto;
}

body.ankety-page {
    overflow: visible;
}

body.ankety-page .hero-panel {
    position: fixed;
    top: 20px;
    left: 35px;
    width: calc(100% - 70px);
    z-index: 20;
}

.ankety-shell {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: #111111;
}

.ankety-title {
    margin: 140px 0 0 115px;
    font-size: clamp(2rem, 3.64vw, 2.91rem);
    font-weight: 600;
    color: #ffffff;
}

.shop-shell {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: #111111;
}

.shop-toolbar {
    margin-top: 40px;
}

.shop-toolbar-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: calc(100vw - 360px);
    margin-left: calc(50% - 50vw + 180px);
}

.shop-add-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin: 0;
    padding: 18px 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: #1f1f1f;
    color: #ffffff;
    font-family: inherit;
    font-size: 2.059rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.shop-add-offer-button:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.shop-search {
    position: relative;
    width: 100%;
}

.shop-offer-row {
    width: 100%;
    margin-left: 0;
    border: 1px solid #8d6bb8;
    border-radius: 28px;
    background: #1f1533;
    overflow: hidden;
}

.shop-offer-input {
    display: block;
    width: 100%;
    padding: 22px 35px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 2rem;
    font-weight: 500;
    outline: none;
}

.shop-offer-input::placeholder {
    color: #a894c8;
}

.shop-offer-input:focus {
    background: rgba(141, 107, 184, 0.12);
}

.shop-offers {
    width: calc(100vw - 360px);
    margin: 28px 0 0 calc(50% - 50vw + 180px);
}

.shop-offers-list {
    display: grid;
    gap: 16px;
}

.shop-offer-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border: 1px solid #8d6bb8;
    border-radius: 28px;
    background: #1f1533;
}

.shop-offer-card--highlight {
    border-color: #c9b3e8;
    box-shadow: 0 0 0 1px rgba(201, 179, 232, 0.35);
}

.shop-offer-card__image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.shop-offer-card__body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.shop-offer-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
}

.shop-offer-card__description {
    margin: 0;
    color: #d8c9ef;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.shop-offer-card__seller,
.shop-offer-card__id {
    margin: 0;
    color: #a894c8;
    font-size: 1.25rem;
    font-weight: 500;
}

.shop-offer-card__price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 600;
}

.shop-offer-card__price-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.shop-offers-empty {
    margin: 0;
    padding: 24px 0;
    color: #a894c8;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.shop-add-section {
    position: relative;
    width: calc(100vw - 360px);
    margin: 40px 0 0 calc(50% - 50vw + 180px);
    min-height: calc(100vh - 220px);
    padding-bottom: 220px;
}

.shop-add-section__title {
    margin: 0 0 24px;
    font-size: 2.4rem;
    font-weight: 600;
    color: #ffffff;
}

.shop-add-section__form {
    display: grid;
    gap: 20px;
}

.shop-add-section__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-add-section__submit {
    padding: 18px 28px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: #1f1f1f;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-add-section__submit:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.shop-add-section__cancel {
    color: #a894c8;
    font-size: 1.6rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-add-section__cancel:hover {
    color: #ffffff;
}

.shop-add-section__error {
    margin: 0;
    color: #ff8a8a;
    font-size: 1.4rem;
}

.shop-add-item-picker {
    display: grid;
    gap: 12px;
    width: min(100%, 840px);
}

.shop-add-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(100%, 840px);
}

.shop-add-title-field {
    flex: 1;
    min-width: 0;
    width: auto;
}

.shop-add-item-panel {
    width: min(100%, 560px);
}

.shop-add-description-field {
    width: min(100%, 840px);
}

.shop-add-title-field,
.shop-add-description-field {
    border: 1px solid #8d6bb8;
    border-radius: 20px;
    background: #1f1533;
    overflow: hidden;
}

.shop-add-title-input,
.shop-add-description-input {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    resize: vertical;
}

.shop-add-title-input {
    padding: 14px 20px;
    font-size: 1.4rem;
}

.shop-add-description-input {
    min-height: 198px;
    padding: 27px 20px;
    font-size: 1.45rem;
    line-height: 1.45;
}

.shop-add-title-input::placeholder,
.shop-add-description-input::placeholder {
    color: #a894c8;
}

.shop-add-title-input:focus,
.shop-add-description-input:focus {
    background: rgba(141, 107, 184, 0.12);
}

.shop-add-price-field {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 560px);
    margin-top: 38px;
    padding: 14px 18px;
    border: 1px solid #8d6bb8;
    border-radius: 20px;
    background: #1f1533;
}

.shop-add-price-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 500;
    outline: none;
}

.shop-add-price-input::placeholder {
    color: #a894c8;
}

.shop-add-price-field:focus-within {
    background: rgba(141, 107, 184, 0.12);
    border-color: #a894c8;
}

.shop-add-price-icon {
    flex-shrink: 0;
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: auto;
    pointer-events: none;
}

.shop-add-item-panel {
    position: relative;
    z-index: 1;
}

.shop-add-item-panel.is-open {
    z-index: 40;
}

.shop-add-item-panel__content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    z-index: 41;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-add-item-panel.is-open .shop-add-item-panel__content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.shop-add-item-panel__content-inner {
    max-height: min(48vh, 300px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #8d6bb8;
    border-radius: 20px;
    background: #1a1228;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.shop-add-item-panel__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #8d6bb8;
    border-radius: 20px;
    background: #1f1533;
    color: #ffffff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-add-item-panel__toggle::after {
    content: "▾";
    color: #a894c8;
    font-size: 1.4rem;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-add-item-panel.is-open .shop-add-item-panel__toggle::after {
    transform: rotate(0deg);
}

.shop-add-item-panel:not(.is-open) .shop-add-item-panel__toggle::after {
    transform: rotate(-90deg);
}

.shop-add-item-panel__toggle:hover {
    background: rgba(141, 107, 184, 0.12);
    border-color: #a894c8;
}

.shop-add-item-panel__label {
    font-size: 1.35rem;
    font-weight: 600;
}

.shop-add-item-list {
    display: grid;
    gap: 8px;
}

.shop-add-item-card {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #8d6bb8;
    border-radius: 14px;
    background: #1f1533;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-28px);
    transition:
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.shop-add-item-panel:not(.is-open) .shop-add-item-card {
    transition-delay: 0ms;
}

.shop-add-item-panel.is-open .shop-add-item-card {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(var(--item-index) * 48ms + 20ms);
}

.shop-add-item-card:hover,
.shop-add-item-card--active {
    background: rgba(141, 107, 184, 0.16);
    border-color: #a894c8;
}

.shop-add-item-card--active {
    font-weight: 600;
}

.shop-add-item-preview {
    flex-shrink: 0;
}

.shop-add-item-preview__image {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-add-item-preview:not([hidden]) .shop-add-item-preview__image {
    opacity: 1;
    transform: scale(1);
}

html.cabinet-page,
html.cabinet-page body {
    overflow: visible;
    height: auto;
}

body.cabinet-page {
    overflow: visible;
}

body.cabinet-page .hero-panel {
    position: fixed;
    top: 20px;
    left: 35px;
    width: calc(100% - 70px);
    z-index: 20;
}

.cabinet-shell {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: #111111;
}

.cabinet-shell > .site-footer {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
}

.cabinet-sidebar {
    position: relative;
    margin: 140px 0 0 115px;
    z-index: 5;
}

.cabinet-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    width: max-content;
}

.cabinet-schet-anchor {
    position: relative;
    width: 100%;
}

.cabinet-schet-copy {
    position: absolute;
    top: 50%;
    left: calc(100% + 60px);
    width: max-content;
    transform: translateY(calc(-50% + 120px));
    pointer-events: none;
}

.cabinet-schet-intro {
    margin: 0;
    color: #ffffff;
    font-size: 2.55rem;
    font-weight: 600;
    white-space: nowrap;
}

.cabinet-schet-subtitle {
    margin: 10px 0 0;
    color: #c5c5c5;
    font-size: 1.62rem;
    font-weight: 500;
    line-height: 1.35;
}

.cabinet-schet-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    pointer-events: auto;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cabinet-schet-input::placeholder {
    color: #9a9a9a;
}

.cabinet-schet-input:focus {
    border-color: rgba(255, 255, 255, 0.32);
    background: #242424;
}

.cabinet-schet-input + .cabinet-schet-input {
    margin-top: 30px;
}

.cabinet-schet-copy .cabinet-deposit-request__form {
    margin: 0;
    pointer-events: auto;
}

.cabinet-schet-copy .cabinet-deposit-request__submit {
    display: flex;
    width: 65%;
    margin-top: 30px;
    margin-left: auto;
    box-sizing: border-box;
}

.cabinet-schet-form-status {
    width: 65%;
    margin-top: 30px;
    margin-left: auto;
    text-align: right;
    transform: translate(288px, 30px);
}

.cabinet-schet-form-status__hash {
    font-size: 1.5em;
}

.cabinet-schet-error {
    margin: 14px 0 0;
    color: #ff8a8a;
    font-size: 1.35rem;
    font-weight: 500;
    pointer-events: auto;
}

.kirich {
    position: absolute;
    top: 516px;
    left: 1607px;
    width: 512px;
    height: 632px;
    z-index: 1;
    overflow: visible;
}

.kirich__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top right, #0dff4f 0%, #043d22 100%);
    background-size: 100% 512px;
    background-repeat: no-repeat;
}

.kirich__base {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 360px;
    height: 140px;
    background: #111111;
    transform: translateX(-50%);
    z-index: 3;
}

.kirich__image {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 730px;
    height: auto;
    transform: translateX(calc(-50% - 45px));
    object-fit: contain;
    object-position: center bottom;
    z-index: 2;
    pointer-events: none;
}

.cabinet-deposit-request {
    position: absolute;
    top: 1128px;
    left: 1607px;
    width: min(100%, 512px);
    display: grid;
    gap: 14px;
    z-index: 2;
}

.cabinet-deposit-request__form {
    margin: 0;
}

.cabinet-deposit-request__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border: 0.5px solid #468357;
    border-radius: 18px;
    background: #203325;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cabinet-deposit-request__submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cabinet-deposit-request__status,
.cabinet-deposit-request__meta {
    margin: 0;
    color: #a894c8;
    font-size: 1.35rem;
    font-weight: 500;
}

.cabinet-deposit-request__status--success {
    color: #74f0b8;
}

.cabinet-deposit-request__status--error {
    color: #ff8a8a;
}

.page-enter-item {
    opacity: 0;
    translate: -36px -36px;
}

body.page-enter-active .page-enter-item {
    animation: page-enter-float 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--enter-delay, 0ms);
}

.text-overlay-sub.page-enter-item {
    --enter-opacity: 0.85;
}

@keyframes page-enter-float {
    from {
        opacity: 0;
        translate: -36px -36px;
    }

    to {
        opacity: var(--enter-opacity, 1);
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-enter-item {
        opacity: 1;
        translate: none;
        animation: none;
    }

    .reference-enter-item {
        opacity: 1;
        translate: none;
        animation: none;
    }
}

.reference-enter-item {
    opacity: 0;
    translate: 0 56px;
}

body.reference-enter-active .reference-enter-item {
    animation: reference-enter-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--enter-delay, 0ms);
}

@keyframes reference-enter-rise {
    from {
        opacity: 0;
        translate: 0 56px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

.reference-shell > .site-footer {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
}

.site-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 80px 35px 96px;
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: min(100%, calc(100vw - 70px));
    margin: 0 auto;
    margin-left: 200px;
}

.site-footer__logo {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo-image {
    display: block;
    width: auto;
    height: 96px;
    object-fit: contain;
    border-radius: 24px;
}

.site-footer__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__text {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__subtitle {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
}
