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;
    height: 2880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.header {
    box-shadow: 4px 12px 14px #000000a9;
    position: relative;
    z-index: 2;
    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: 1;
}

.navbarbg {
    position: relative;
    z-index: 1;
    top: -5px;
    left: 0;
    box-shadow: 4px 12px 14px #0000008f;
}

.stripes {
    top: -2px;
    left: 5px;
    position: relative;
}

.ssilka {
    width: 58px;
    height: 69px;
    cursor: url(images/catcursorwaiting.png) 66 61, pointer;
}

main {
    width: 1417px;
    min-height: 2473px;
    background-image: url(images/Subtract.svg);
    box-shadow: 4px 12px 14px #0000008c;
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% 2473px;
    position: absolute;
    top: 338px;
}

.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);
    object-fit: fill;
    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/texturebuttons.svg);
    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: 40.80835px;
    padding-bottom: 17.75px;
    padding-top: 17.75px;
    background-image: url(images/texturebuttons.svg);
    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/texturebuttons.svg);
    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/texturebuttons.svg);
    border: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 4px 12px 14px #0000008c;
}

ul, a {
    list-style: none;
    text-decoration: none;
}

.hero {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 112.58px;
    left: 60.63px;
    height: 641px;
}

.hero h1 {
    font-family: Cormorant SC;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 11.12px;
}

.hero h2 {
    font-family: Bad Script;
    font-weight: 400;
    font-size: 24px;
    height: auto;
    line-height: 39px;
}

p {
    margin-top: 42px;
}

.text1 {
    height: 461.81px;
    min-width: 573.98px;
    max-width: 573.98px;
}

.photoapatishe {
    position: relative;
    bottom: 31px;
    right: 7px;
    z-index: 0;
}

.techno {
    position: relative;
    top: 89px;
}

.techno h1 {
    position: relative;
    font-family: Cormorant SC;
    font-size: 36px;
    font-weight: bold;
    top: 60.63px;
    left: 60.63px;
}

.assortiment {
    position: relative;
    margin-top: 133.79px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 1216.67px;
    height: 827.62px;
    margin-left: 100.04px;
    margin-right: 100.04px;
    gap: 56.97px;
    row-gap: 47.49px;
}

.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;
}

.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;
}

.about--us {
    display: flex;
    flex-direction: row;
    position: relative;
    left: 60.63px;
    width: 1282.95px;
    margin-top: 183px;
    height: 532px;
}

.text3 {
    height: 377.67px;
    min-width: 574px;
    max-width: 574px;
}

.about--us h1 {
    position: relative;
    font-family: Cormorant SC;
    font-size: 36px;
    font-weight: bold;
    margin-top: 69.39px;
    top: 0px;
    left: 0px;
}

.about--us h2 {
    font-family: Bad Script;
    font-weight: 400;
    font-size: 24px;
    height: auto;
    line-height: 39px;
    margin-top: 0;
}

.logo {
    margin-left: 183px;
}

#hero {
    scroll-margin-top: 70px
}

#techno {
    scroll-margin-top: 30px
}

.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: url(images/catcursorshocked.png) 60 63, 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;
    cursor: url(images/catcursorproud.png)  64 60, pointer;
}

.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;
    cursor: url(images/catcursorproud.png)  64 60, pointer;
}

.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: url(images/catcursorpointer.png) 65 59, 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: block;
    position: relative;
    bottom: 150px;
    text-shadow: 0px 1px 1px #073a1f;
    margin-bottom: -45px;
}

.success-message.show {
    display: block;
}

.warning-message {
    text-align: left;
    color: red;
    text-shadow: 0px 1px 1px #230404;
    position: relative;
    bottom: 100px;
    bottom: 95px;
    width: 323px;
    left: 47px;
}

.formauehala {
    position: relative;
    bottom: 6px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}