html {
    ::-webkit-scrollbar {
    display: none;
    }
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    height: 2880px;
    background-image: url(images/BACKGROUND.webp);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    cursor: url(images/catcursor.png) 30 25, auto;
}

.enter {
    cursor: url(images/catcursorready.png) 65 59, auto;
}

.button {
    cursor: url(images/catcursorready.png) 65 59, text;
    position: relative;
    bottom: 156px;
}

.container {
    width: 1444px;
    max-height: 2880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header {
    box-shadow: 4px 12px 14px #000000a9;
    position: relative;
    z-index: 3;
    left: 0px;
    bottom: 1px;
}

.linza {
    background-image: url(images/obj\ num.1\ lens.svg);
    position: relative;
    height: 155.62px;
    width: 155.62px;
    z-index: 14;
    pointer-events: none;
}

.registration {
    position: absolute;
    z-index: 3;
    top: 71px;
    left: 119px;
    color: grey;
    width: 153px;
    height: 153px;
    cursor: url("images/catcursorpointer.png") 65 59, pointer;
}

.registration .button {
    height: 153px;
    width: 153px;
    font-size: 19pt;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 200;
    border: 0;
    border-radius: 50%;
    color: #A0A0A0;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: relative;    /* ← для стабильности */
    z-index: 2;
}

.registration .button.hide {
    display: none;
}

.registration .button a {
    text-decoration: none;
    color: #A0A0A0;
}

.registration:hover .button {
    opacity: 1;
    visibility: visible;
}

/* Когда авторизован — кнопка не показывается */
.registration.authorized .button {
    display: none !important;
}

/* Стиль для аватарки */
.user-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 153px;
    height: 153px;
    border-radius: 50%;
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 12;           /* ← линза сверху (13) */
    pointer-events: none;
}

.user-avatar.show {
    display: block;
}

/* Когда авторизован — скрываем кнопку входа */
.registration.authorized .button {
    display: none !important;
}

.registration.authorized:hover .button {
    display: none !important;
}

nav {
    position: sticky;
    top: 3px;
    z-index: 2;
}

.navbarbg {
    position: relative;
    z-index: 1;
    top: -5px;
    left: 0;
    box-shadow: 4px 12px 14px #0000008f;
}

.stripes {
    top: -2px;
    left: 493px;
    position: relative;
}

.ssilka {
    width: 58px;
    height: 69px;
    cursor: url(images/catcursorwaiting.png) 66 61, pointer;
}

main .otstup, footerbucket {
    box-shadow: 4px 12px 14px #0000008c;
}

.tovar {
    position: relative;
    top: -144px;
}

.item {
    position: relative;
    top: 131.84px;
    left: 60.63px;
}

.cardbucket .item, .cardbucket .text {
    position: relative;
    top: 13.2px;
    left: 60.63px;
}

.cardbucket .buttonsbucket {
    position: relative;
    top: 348.69px;
}

.card {
    width: 367.58px;
    height: 390.06px;
    background-image: url(images/cardbg.svg);
    box-shadow: 1px 3px 2.1px #00000025;
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
}

.bottomofcard {
    flex-direction: row;
    align-items: center;
    height: 76px;
    display: flex;
    flex-direction: row;
    color: black;
}

.price {
    display: flex;
    flex-direction: row;
}

.stuff {
    position: relative;
    width: 327.8px;
    height: 286.85px;
    margin-top: 27.6px;
    margin-left: 20.22px;
}

.name {
    min-width: 235.45px;
    font-family: Courier Prime;
    font-weight: 400;
    font-size: 24px;
    margin-left: 20.22px;
}

.pricebg {
    position: relative;
    bottom: 5px;
    width: 86.74px;
    height: 56.77px;
    background-color: rgba(255, 234, 0, 0.54);
    margin-left: 10.2px;
    transform: rotate(-2.06deg);
}

.pricenum {
    position: relative;
    font-family: "Courgette";
    font-weight: 400;
    font-size: 32px;
    right: 84.9px;
}

blue, green, y2k, red, orange, yellow {
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    box-shadow: 3px 5px 2px rgba(41, 28, 0, 0.432);
    border: solid 1px rgba(0, 0, 0, 0.507);
    padding-left: 2px;
    padding-right: 2px;
}

blue {
    background-color: #4D9EB4;
    color: white;
}

green {
    background-color: #2CB254;
    color: white;
}

greener {
    font-family: Seymour One;
}

y2k {
    background-image: url(images/eyes.svg);
    color: white;
    background-position: center center;
    font-style: italic;
}

red {
    background-color: #B92727;
    color: white;
}

orange {
    background-color: #CF6D30;
    color: white;
}

yellow {
    background-color: #DDCC4B;
    color: black;
}


.opisaniye {
    position: relative;
    left: 56.85px;
    top: 50.05px;
    width: 699.28px;
    font-size: 25px;
    /*font-family: Bad Script;
    line-height: 39px;*/
}

.text {
    position: relative;
    top: 131.84px;
    left: 60.63px;
}

.zagolovok {
    position: relative;
    left: 56.85px;
    width: 699.28px;
    height: 51px;
    font-family: "Bagel Fat One", system-ui;
    font-weight: 400;
    font-size: 32px;
}

.buttonsbucket {
    display: flex;
    flex-direction: row;
    gap: 33.35px;
    position: relative;
    right: 123px;
    top: 467.34px;
}

.delete {
    width: 208.17px;
    height: 54.57px;
    font-family: "Alice";
    font-weight: 400;
    font-size: 20px;
    border: 4px solid black;
    border-radius: 23px;
    box-sizing: border-box;
    background-color: transparent;
    cursor: url(images/catcursorshocked.png) 60 63, pointer;
    transition: all 0.2s ease;
}

.delete:hover {
    background-color: #B92727;
    box-shadow: 2px 4px 4px rgba(84, 51, 26, 0.25);
}

.buy {
    width: 167px;
    height: 54.57px;
    font-family: "Alice";
    font-weight: 400;
    font-size: 20px;
    border: 4px solid black;
    border-radius: 23px;
    box-sizing: border-box;
    color: white;
    background-color: black;
    cursor: pointer;
    transition: all 1s ease;
    background-repeat: no-repeat;
}

.buy:hover {
    color: transparent;
    background-image: url(images/catcursorhappy.png);
    background-size: auto;
    background-position: center center;
    border: 2px solid black;
    border-radius: 3px;
    font-weight: 400;
    box-shadow: 2px 4px 4px rgba(84, 51, 26, 0.25);
    width: 167px;
}

.buynothing {
    width: 380px;
    height: 54.57px;
    font-family: "Alice";
    font-weight: 400;
    font-size: 20px;
    border: 4px solid black;
    border-radius: 23px;
    box-sizing: border-box;
    color: white;
    background-color: black;
    cursor: pointer;
    transition: all 2s ease;
    background-repeat: no-repeat;
}

.buynothing:hover {
    color: transparent;
    background-image: url(images/catcursorwaiting.png);
    background-size: auto;
    background-position: center center;
    border: 2px solid black;
    border-radius: 3px;
    font-weight: 400;
    box-shadow: 2px 4px 4px rgba(84, 51, 26, 0.25);
    width: 167px;
}

.openercardbucket {
    background-image: url(images/paperbgbucketopener.svg);
    width: 1417px;
    height: 537px;
    box-shadow: 4px 12px 14px #0000008c;
    display: flex;
    flex-direction: row;
}

.cardbucket {
    background-image: url(images/paperbgbucketspace.svg);
    background-repeat: repeat-y;
    width: 1417px;
    height: 417px;
    box-shadow: 4px 12px 14px #0000008c;
    display: flex;
    flex-direction: row;
    position: relative;
    top: -2px;
}

footerbucket {
    display: inline-block;
    height: 349px;
    width: 1417px;
    position: relative;
    bottom: 148px;
    z-index: 1;
    background-image: url(images/paperbgbucketbuy.svg);
    display: flex;
    flex-direction: row;
}

.finalsum {
    font-family: Source Serif 4;
    font-size: 36px;
    position: relative;
    left: 61px;
    top: 221px;
    width: 973px;
}

button {
    border: 0px;
    border-radius: 37px;
    background-color: transparent;
}

.mylo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 70px;
    position: relative;
    top: 150px;
    transition: all 1s ease;
}

.mylo:hover {
    top: 145px;
    left: 65px;
}

.mylo:hover .layer1{
    box-shadow: 8px 7px 7.3px rgba(54, 0, 44, 0.45);
}

.mylo:active .buytext{
    color: #f982d5;
}

.layer1 {
    position: relative;
    background-image: url(images/layer1.svg);
    width: 312px;
    height: 136px;
    border-radius: 37px;
    z-index: 1;
    transition: all 2s ease;
    position: absolute;
}

/*.mylo:hover .layer1 {
    width: 312px;
    height: 136px;
}

.mylo:hover .layer2 {
    width: 297px;
    height: 126px;
}

.mylo:hover .layer3 {
    width: 279px;
    height: 110px;
}*/

.layer2 {
    position: relative;
    background-image: url(images/layer2.svg);
    box-shadow: inset -1px -1px 2.9px rgba(93, 5, 81, 0.80), inset 1px 1px 4px #ffffff;
    width: 297px;
    height: 126px;
    border-radius: 37px;
    z-index: 2;
    transition: all 2s ease;
    position: absolute;
}

.layer3 {
    position: relative;
    width: 279px;
    height: 110px;
    background-color: #F4CAEB;
    border-radius: 31px;
    box-shadow: inset -1px -1px 2.9px rgba(93, 5, 81, 0.80), inset 1px 1px 4px #ffffff;
    z-index: 4;
    transition: all 2s ease;
    position: absolute;
}

.buytext {
    width: 312px;
    height: 136px;
    font-family: Oi;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 6;
    transition: all 1s ease;
    color: #FFFFFF;
    text-shadow: 
    -2px -2px #f982d5,
    2px 2px 2.1px rgba(185, 56, 157, 0.81),
    2px 2px 2.6px rgba(237, 114, 214, 0.46);
    font-size: 20px;
    line-height: 57px;
    font-family: Oi;
}

/*.mylo:hover .buytext {
    color: white;
    text-shadow: 
    -2px -2px #f982d5,
    2px 2px 2.1px rgba(185, 56, 157, 0.81),
    2px 2px 2.6px rgba(237, 114, 214, 0.46);
    font-size: 20px;
    line-height: 51px;
    bottom: 11px;
    font-family: Oi;
}*/

.buytext bigger {
    position: relative;
    bottom: 5px;
    font-size: 64px;
    transition: all 1s ease;
}

/*.mylo:hover bigger {
    font-size: 64px;
}*/

.buttons {
    position: relative;
    z-index: 9;
    top: -59px;
    left: 5px;
    display: flex;
    gap: 42px;
    list-style: none;
    text-decoration: none;
    margin-left: 0px;
}

.buttons button {
    background-image: url(images/texturebuttons.svg);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
    height: 82px;
}

.tech {
    width: 193px;
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
}

.tech a {
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
}

.about_us {
    width: 130px;
    cursor: url(images/catcursorproud.png) 64 60, pointer;
}

.about_us a {
    cursor: url(images/catcursorproud.png) 64 60, pointer;
}

.bucket {
    width: 201px;
    margin-left: 245px;
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
}

.bucket a {
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
}

.buttons button a {
    color: #8F8F8F;
    font-family: "Bad Script", cursive;
    font-size: 24px;
}

.buttons .bucket a {
    cursor: url(images/catcursorproud.png) 64 60, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8F8F8F;
    font-family: "Bad Script", cursive;
    font-size: 24px;
    padding: 40.80835px;
    padding-bottom: 17.75px;
    padding-top: 17.75px;
    background-image: url(images/texture.png);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
}

.buttons .about_us a {
    cursor: url(images/catcursorproud.png) 64 60, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8F8F8F;
    font-family: "Bad Script", cursive;
    font-size: 24px;
    padding: 42px;
    padding-bottom: 17.75px;
    padding-top: 17.75px;
    background-image: url(images/texture.png);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
}

.buttons .tech a {
    cursor: url(images/catcursorpointer.png) 65 59, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8F8F8F;
    font-family: "Bad Script", cursive;
    font-size: 24px;
    padding: 62.225px;
    padding-bottom: 17.75px;
    padding-top: 17.75px;
    background-image: url(images/texture.png);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
}

.buttons .mainer a {
    cursor: url(images/catcursorwaiting.png) 66 61, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8F8F8F;
    font-family: "Bad Script", cursive;
    font-size: 24px;
    padding: 106.3585px;
    padding-bottom: 17.75px;
    padding-top: 17.75px;
    background-image: url(images/texture.png);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
}

ul, a {
    list-style: none;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.041);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
}

.modal.show {
    display: flex;
}

/* Контент окна */
.modal-content {
    width: 491px;
    height: 502px;
    background-image: url(images/fone.png);
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Крестик */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Заголовок */
.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: Oi, Arial, sans-serif;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
}

.login {
    margin-top: 78px;
    margin-left: 135px;
    width: 290px;
}

.pochta {
    margin-top: 64px;
    margin-left: 147.3px;
    width: 278px;
}

.parol {
    margin-top: 75px;
    margin-left: 184px;
    width: 245px;
    font-size: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 0px;
    color: black;
    background-color: transparent;
    font-family: BIZ UDMincho;
    font-size: 24px;
    padding-top: 10px;
    padding-bottom: 0px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.parol input {
    width: 100%;
    padding: 12px;
    border: 0px;
    color: black;
    background-color: transparent;
    font-family: BIZ UDMincho;
    font-size: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    letter-spacing: 5px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
}

.form-group input.error {
    border-color: #ff4444;
}

/* Сообщение об ошибке */
.error-message {
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
    margin-bottom: -18px;
    text-align: end;
    color: black;
}

.pochtaoshibka.show {
    display: block;
    margin-bottom: -18px;
    text-align: end;
    color: black;
}

/* Кнопка отправки */
.submit-btn {
    width: 138px;
    height: 89px;
    margin-left: 330px;
    background-image: url(images/zvezda.svg);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 49px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    transform: rotate(-4deg);
}

/* Успешное сообщение */
.success-message {
    text-align: center;
    color: #00e796;
    margin-top: 15px;
    display: none;
}

.success-message.show {
    display: block;
}

.formauehala {
    position: relative;
    bottom: 6px;
}