:root {
    --gradient-bg: linear-gradient(#2A2A43, #03030A);
    --gradient-bg-2: linear-gradient(#03030A, rgba(41, 41, 66, 10%), #03030A);
    --gradient-bg-180: linear-gradient(360deg, #2A2A43, #03030A);

    
    --main: #5E5BE6;
    --main-1: #535196;
    --main-2: #2E2D68;
    --main-dark: #181828;
    --main-dark-transparent-80: rgba(24, 24, 40, 80%);
    --main-dark-1: #1F1F38;
    --main-dark-2: #393968;
    
    --white: #FFFFFF;
    --white-transparent-60: rgba(255, 255, 255, 60%);
    --white-transparent-10: rgba(255, 255, 255, 10%);

    --grey: #737373;

    --light-black: #12101b;
    --light-black-1: #0E0E16;
    --light-black-1-transparent-70: rgba(14, 14, 22, 70%);
    --light-black-2: #03030A;
    --light-black-3: #11111C;

    --black-transparent-40: rgba(0, 0, 0, 40%);

    --red: #ff5757;
    --red-transparent-30: rgba(255, 87, 87, 30%);
    --dark-red: #FF0000;

    --green: #59F669;
    --dark-green: #45AF49;
    --dark-green-transparent-30: rgba(69, 175, 73, 30%);

    --dark-orange: #C6892F;
    --dark-orange-transparent-30: rgba(198, 137, 47, 30%);
    --orange: #fcb83b;

    --turquoise: #00B2FF;
    --purple: #5E5BE6;
    --gold: #FFB800;


    --fs-1: 8px;
    --fs-2: 10px;
    --fs-3: 12px;
    --fs-4: 14px;
    --fs-5: 16px;
    --fs-6: 20px;
    --fs-7: 32px;
    --fs-8: 48px;

    --br-1: 6px;
    --br-2: 7px;
    --br-3: 16px;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

html, body {
   height: 100%;
}

input,
button,
textarea {
    all: unset;
}

ul {
    list-style: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--white-transparent-60);
}

a {
    text-decoration: none;
}

button {
    border: none;
    font-family: 'Montserrat', sans-serif;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    border-radius: 1px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: var(--main-dark-1);
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background-color: var(--light-black);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--main-dark);
    border-radius: 3px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button,
input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.container {
    min-height: 100%;

    grid-template-rows: 1fr auto;
    padding-top: 100px;
    box-sizing: border-box;

    background-color: var(--light-black-2);
}

.main {
    display: grid;
    align-items: start;
}

.advertisement {
    max-width: 1160px;
    padding: 100px 16px 0 16px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.advertisement--disable a .advertisement__block {
    display: none;
}

.advertisement--disable a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;

    font-size: var(--fs-5);
    background-color: var(--light-black-1-transparent-70);
    border-radius: var(--br-2);
    color: var(--white);
}

.advertisement__block {
    width: 100%;
    height: auto;
    justify-self: center;
}

.advertisement__block--disable {
    width: 100%;
    height: auto;
    justify-self: center;
}

@media (max-width: 900px) {
    .advertisement {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.uppercase {
    text-transform: uppercase;
}

.semi-bold {
    font-weight: 600;
}

.bold {
    font-weight: 700;
}

.hover {
    cursor: pointer;
    transition: .2s;
}

h1 {
    font-size: var(--fs-8);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-7);
    font-weight: 700;
}

h3 {
    font-size: var(--fs-5);
    font-weight: 600;
}

h5 {
    font-size: var(--fs-3);
    font-weight: 600;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    padding: 12px 20px;
    width: 220px;
    top: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    left: 50%;
    margin-left: -60px;
    font-size: var(--fs-3);
    color: var(--white);
    background-color: var(--main-dark);
    border-radius: var(--br-2);
    position: absolute;
    z-index: 1;

}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

.catalog-block {
    gap: 10px;
    padding: 20px;

    border-radius: var(--br-2);
    background-color: var(--light-black-1-transparent-70);
}

.catalog-block__photo {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: 100%; 
    border-radius: var(--br-2); 
    transition: .3s;
}

.catalog-block__photo:hover {
    background-size: 130%;
    transition: .3s;
}

.catalog-block__name {
    word-break: break-word;
    color: var(--white-transparent-60);
}

.catalog-block__bottom {
    justify-content: space-between;
    align-items: center;
}

.catalog-block__watch {
    padding: 12px 20px;

    font-size: var(--fs-3);
    color: var(--white);
    background-color: var(--main);
    border-radius: var(--br-1);
}

.catalog-block__price {
    padding: 12px;

    font-size: var(--fs-4);
    color: var(--white);
    background-color: var(--main-dark);
    border-radius: var(--br-1);
}

.catalog__more {
    width: fit-content;

    padding: 15px 20px;
    justify-self: center;

    font-size: var(--fs-3);
    color: var(--white);
    border: 1px solid var(--main-dark-1);
    border-radius: var(--br-1);
}

.modal-bg {
    position: fixed;

    height: 100%;
    width: 100%;

    left: 0;
    top: 0;

    background-color: var(--black-transparent-40);

    visibility: hidden;
    opacity: 0;
    transition: .3s;
    z-index: 4;
}

.catalog-modal {
    position: fixed;

    width: 620px;

    padding: 30px;
    gap: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: var(--main-dark-transparent-80);
    border-radius: var(--br-3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    visibility: hidden;
    opacity: 0;
    transition: .3s;
    z-index: 5;
}

.catalog-modal.show {
    visibility: visible;
    opacity: 1;
    transition: .3s;

    height: 375px;
}

.catalog-modal.show ~ .modal-bg {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}

.catalog-modal__title {
    position: relative;

    padding-left: 18px;

    color: var(--white);
}

.catalog-modal__title::before {
    position: absolute;

    content: '';

    left: 0;
    top: 50%;
    transform: translateY(-50%);

    height: 8px;
    width: 8px;

    border-radius: 50%;
    background-color: var(--main);
}

.catalog-modal__content {
    gap: 40px;
    grid-template-columns: 220px 1fr;
    align-content: start;
}

.catalog-modal__left-area {
    gap: 20px;
    max-height: 0px;
}

.catalog-modal__image {
    height: 220px;
    width: 220px;

    border-radius: var(--br-2);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.catalog-modal__seller {
    gap: 20px;
}

.catalog-modal__seller-title {
    font-size: var(--fs-3);
    color: var(--grey);
}

.catalog-modal__seller-nick {
    font-size: var(--fs-3);
    color: var(--white);
}

.catalog-modal__name {
    color: var(--white-transparent-60);
}

.catalog-modal__right-area {
    gap: 20px;
    align-content: start;
}

.catalog-modal__price {
    padding: 12px;

    width: fit-content;

    font-size: var(--fs-4);
    color: var(--white);
    background-color: var(--light-black-1);
    border-radius: var(--br-1);
}

.catalog-modal__product {
    gap: 10px;
}

.catalog-modal__product-title {
    color: var(--grey);
}

.catalog-modal__product-descr {
    padding: 20px;
    align-items: center;
    gap: 20px;

    background-color: var(--light-black-1);
    border-radius: var(--br-2);
}

.catalog-modal__product-text {
    font-size: var(--fs-3);
    color: var(--white-transparent-60);
    word-break: break-word;
    
    transition: .3s;

    max-height: 130px;
    overflow: hidden;
    overflow-y: scroll;
}

.catalog-modal__product-copy {
    justify-content: center;
    align-items: center;

    height: 36px;
    min-width: 36px;
    width: 36px;

    background-color: var(--main);
    border-radius: var(--br-2);
}

.catalog-modal__product-copy svg {
    min-width: 16px;
    width: 16px;
    height: auto;

    fill: var(--white);
}

.catalog-modal__rating {
    gap: 10px;
}

.catalog-modal__rating-title {
    color: var(--grey);
}

.catalog-modal__form-rating {
    gap: 20px;
}

.catalog-modal__form-radio {
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: start;
}

.catalog-modal__form-radio input {
    display: none;
}

.catalog-modal__rating-star {
    min-width: 17px;
    width: 17px;
    height: auto;

    fill: var(--grey);
}

.catalog-modal__form-radio input:checked ~ label svg,
.catalog-modal__form-radio input:hover ~ label svg,
.catalog-modal__rating-star--active.active {
    fill: var(--gold);
}

.catalog-modal__form-save {
    padding: 15px;
    text-align: center;

    font-size: var(--fs-3);
    color: var(--white);
    border-radius: var(--br-1);
    border: 1px solid var(--main-dark-2);
}

@media (hover: hover) {
    .catalog-modal__form-save:hover {
        background-color: var(--main-dark-2);
    }
}

@media (hover: hover) {
    .hover:hover {
        transition: .2s;
    }

    .catalog__more:hover {
        background-color: var(--main-dark-1);
    }
}

.header {
    position: fixed;
    width: 100%;

    background-color: var(--light-black);

    z-index: 3;
}

.header__content {
    max-width: 1160px;

    justify-content: space-between;
    align-items: center;
    padding: 34px 16px;
    margin: 0 auto;
}

.header__left-area {
    gap: 40px;
    align-items: center;
}

.header__logo {
    line-height: 0;
}

.header__logo img {
    min-width: 100px;
    width: 100px;
    height: auto;
}

.header__nav {
    gap: 30px;
    align-items: center;
}

.header__nav-elem {
    font-size: var(--fs-3);
    color: var(--grey);

    gap: 12px;
    align-items: center;
}

.header__nav-elem svg {
    min-width: 16px;
    width: 16px;
    height: auto;

    fill: var(--main);
    filter: drop-shadow(0 0 5px var(--main));
}

.header__right-area {
    gap: 20px;
    align-items: center;
}

.header__notification {
    position: relative;

    height: 45px;
    width: 45px;

    align-items: center;
    justify-content: center;

    border-radius: var(--br-1);
    background-color: var(--main-dark);
}

.header__notification svg {
    min-width: 17px;
    width: 17px;
    height: auto;

    fill: var(--grey);
}

.header__notification-active {
    position: absolute;

    height: 12px;
    width: 12px;

    bottom: 10px;
    right: 10px;
    align-items: center;
    justify-content: center;

    font-size: var(--fs-1);
    color: var(--white);
    background-color: var(--main);
    border-radius: 50%;
}

.notification-dropdown {
    position: fixed;

    width: 260px;

    max-height: 350px;
    overflow: hidden;
    overflow-y: scroll;
    visibility: hidden;

    padding: 20px;
    gap: 20px;
    top: 73px;
    box-sizing: border-box;
    margin-left: -107px;

    background-color: var(--light-black-3);
    border-radius: var(--br-1);

    opacity: 0;
    transition: .3s;
    z-index: 2;
}

.notification-dropdown.show {
    top: 78px;

    opacity: 1;
    visibility: visible;
    transition: .3s;
}

.notification-dropdown__clear {
    padding: 12px;
    text-align: center;

    font-size: var(--fs-3);
    color: var(--red);
    border-radius: var(--br-1);
    background-color: var(--red-transparent-30);
}

.notification-dropdown__not-notification {
    padding: 10px 0;
    text-align: center;

    font-size: var(--fs-3);
    color: var(--grey);
}

.notification-dropdown__notification {
    gap: 5px;
}

.notification-dropdown__nick-area {
    justify-content: space-between;
    gap: 10px;
}

.notification-dropdown__nick {
    font-size: var(--fs-2);
    color: var(--grey);
}

.notification-dropdown__date {
    font-size: var(--fs-2);
    color: var(--grey);
}

.notification-dropdown__descr {
    font-size: var(--fs-3);
    color: var(--white);
}

.notification-dropdown__descr a{
    color: var(--main);
}

.header__not-authorized {
    align-items: center;
    gap: 40px;
}

.header__login {
    height: 45px;

    padding: 0 45px;
    gap: 15px;
    align-items: center;

    font-size: var(--fs-3);
    color: var(--white);
    background-color: var(--main);
    border-radius: var(--br-1);
}

.header__login svg {
    min-width: 14px;
    width: 14px;
    height: auto;

    fill: var(--white);
}

.header__registration {
    font-size: var(--fs-3);
    color: var(--grey);
    text-align: center;
}

.header__authorized {
    align-items: center;
    gap: 20px;
}

.header__nick,
.header__balance {
    height: 45px;

    padding: 0 20px;
    gap: 10px;
    align-items: center;

    font-size: var(--fs-3);
    color: var(--white);
    background-color: var(--main-dark);
    border-radius: var(--br-1);
}

.header__balance span {
    white-space: nowrap;
}

.header__nick svg {
    min-width: 14px;
    width: 14px;
    height: auto;

    fill: var(--main);
}

.header__balance svg {
    min-width: 22px;
    width: 22px;
    height: auto;

    fill: var(--main);
}

.header__action,
.mobile-menu,
.mobile-menu .header__not-authorized,
.mobile-menu .header__authorized {
    display: none;
}

@media (max-width: 1070px) {
    .header__action {
        display: flex;

        height: 45px;
        width: 45px;

        align-items: center;
        justify-content: center;

        border-radius: var(--br-1);
        background-color: var(--main-dark);
    }

    .header__action svg {
        height: 17px;
        width: 17px;

        fill: var(--white);
    }

    .mobile-menu {
        position: fixed;
        display: grid;

        height: 100%;

        align-content: start;
        padding: 28px 16px;
        box-sizing: border-box;
        gap: 30px;
        right: -40px;
        top: 0;

        background-color: var(--light-black);

        visibility: hidden;
        opacity: 0;
        transition: .3s;
        z-index: 5;
    }

    .mobile-menu.open {
        right: 0;

        visibility: visible;
        opacity: 1;
        transition: .3s;
    }

    .mobile-menu.open ~ .modal-bg {
        visibility: visible;
        opacity: 1;
        transition: .3s;
    }

    .mobile-menu__cross {
        display: flex;

        height: 30px;
        width: 30px;

        align-items: center;
        justify-content: center;
        justify-self: end;

        border-radius: var(--br-1);
        background-color: var(--red-transparent-30);
    }

    .mobile-menu__cross svg {
        height: 12px;
        width: 12px;

        fill: var(--red);
    }

    .mobile-menu__nav {
        gap: 12px;
    }

    .mobile-menu__nav .header__nav-elem {
        padding: 12px 20px;

        color: var(--white);
    }
    
    .header__nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .mobile-menu .header__not-authorized,
    .mobile-menu .header__authorized {
        display: grid;
    }

    .header__right-area > .header__notification,
    .header__right-area > .header__not-authorized,
    .header__right-area > .header__authorized {
        display: none;
    }
}

@media (hover: hover) {
    .notification-dropdown__clear:hover {
        color: var(--white);
        background-color: var(--red);
    }

    .header__registration:hover {
        color: var(--white);
    }

    .header__nav-elem:hover {
        color: var(--white);
    }

    .header__notification:hover svg {
        fill: var(--white);
    }
}

/* .footer {
    background-color: var(--light-black);
}

.footer__content {
    max-width: 1160px;

    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    padding: 34px 16px;
    gap: 30px;
    margin: 0 auto;
}

.footer__logo {
    min-width: 100px;
    width: 100px;
    height: auto;
}

.footer__social-elem {
    height: 24px;
    width: 24px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--main-dark-1);
    border-radius: var(--br-1);
}

.footer__social-elem svg {
    min-width: 13px;
    width: 13px;
    height: auto;

    fill: var(--white);
}

@media (hover: hover) {
    .footer__social-elem:hover {
        background-color: var(--main);
        border: 1px solid var(--main);
    }
} */

.footer { 
    background-color: var(--light-black); 
    } 
    
    .footer__content { 
    max-width: 1160px; 
    
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    padding: 34px 0; 
    margin: 0 auto; 
    } 
    
    .footer__logo { 
    min-width: 100px; 
    width: 100px; 
    height: auto; 
    } 
    
    .footer__nav { 
    gap: 30px; 
    align-items: center; 
    } 
    
    .footer__nav-elem { 
    font-size: var(--fs-3); 
    color: var(--grey); 
    } 
    
    .footer__social { 
    gap: 10px; 
    align-items: center; 
    justify-self: end; 
    } 
    
    .footer__social-elem { 
    height: 24px; 
    width: 24px; 
    
    align-items: center; 
    justify-content: center; 
    
    border: 1px solid var(--main-dark-1); 
    border-radius: var(--br-1); 
    } 
    
    .footer__social-elem svg { 
    min-width: 13px; 
    width: 13px; 
    height: auto; 
    
    fill: var(--white); 
    } 
    
    @media (hover: hover) { 
    .footer__nav-elem:hover { 
    color: var(--white); 
    } 
    
    .footer__social-elem:hover { 
    background-color: var(--main); 
    border: 1px solid var(--main); 
    } 
    }

.rating {
    min-width: 10px;
    width: 10px;
    height: auto;

    stroke: var(--grey);
}

.rating--active {
    stroke: var(--gold);
}


/* */
#toast-container>.toast-success {
    background-color: var(--dark-green);
}

#toast-container>.toast-error {
    background-color: var(--red);
}

.toast-title {
    font-size: var(--fs-4);
    margin-bottom: 8px;
    margin-left: 28px;
}

.toast-message {
    font-size: var(--fs-3);
}

#toast-container>div {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border-radius: var(--br-2) !important;
    background-position: 20px 10px !important;
    background-size: 16px !important;
    padding: 12px 20px !important;
    
}

/**/

@media (max-width: 360px) {
    h1 {
        font-size: var(--fs-7);
    }
}

.blurred {
    filter: blur(5px);
    cursor: pointer;
}