* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: 'Montserrat', sans-serif;
}

:root {
    --text-color: white;
}

@media screen and (min-width: 768px) {
    button {
        cursor: pointer;

        padding: 10px 20px;
        border-radius: 10px;

        background-color: transparent;
        border: none;
        color: var(--text-color);

        width: 100%;

        font-size: 20px;
    }

    body {
        width: 100%;
        height: 100vh;
        
        background-image: url('/static/site/desktop-bg.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        padding: 20px;
    }

    #safe-area {
        width: 60%;
        max-width: 800px;
    }
    
    #main-block {
        position: relative;

        min-height: 180px;
    }

    #head-1 {
        font-size: 60px;
        color: #23FF9D;

        text-shadow: 0 0 30px #23FF9D;
        text-align: left;
    }

    #head-2 {
        font-size: 40px;
        color: white;

        text-shadow: 0 0 30px white;
        text-align: right;
    }

    .head-uc-img {
        position: absolute;

        bottom: 0;
        z-index: -1;
        /* transform: translate(-50%, -50%); */
    }

    .glass-block.promo {
        font-size: 18px;
        font-weight: 800;
    }

    .glass-block {
        padding: 10px 20px;
    }

    #bottom-block {
        width: calc(60% - 20px);

        position: static;

        bottom: 20px;
        left: 20px;
    }

    #bottom-block span {
        cursor: pointer;
    }

    #bottom-block .parts {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 20px;

        width: 50%;
        text-align: center;
        align-items: center;
    }

    .catalog-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;

        justify-items: center;

        margin-top: 20px;
    }

    .product {
        width: 200px;
        gap: 10px;

        align-items: center;
        justify-content: center;
    }

    .product img {
        width: 40%;
        height: auto;
    }

    .product .glass-block {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        
        font-size: 24px;
        font-weight: 800;
    }

    .product .amount {
        font-size: 18px;
        font-weight: 600;
    }

    .popup {
        position: fixed;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;

        display: flex;
        justify-content: center;
        align-items: center;

        font-size: 24px;
        gap: 10px;

        padding: 20px 40px;
        min-width: 400px;
    }
    .popup span {
        font-size: 18px
    }

    .payment-btn {
        width: 49%;

        padding: 5px 20px;
    }

    .payment-btn.active {
        border: 1px solid #00FF11
    }
    
    .close-btn {
        position: absolute;

        top: 10px;
        right: 20px;

        padding: 10px;

        cursor: pointer;
        user-select: none;
    }

    .count-setter {
        width: 100%;
        font-size: 25px;

        align-items: center;
    }

    .plus {
        cursor: pointer;
        user-select: none;
        font-size: 35px;
    }

    .minus {
        cursor: pointer;
        user-select: none;
        font-size: 35px;
    }
}
@media screen and (max-width: 769px) {
    button {
        cursor: pointer;

        padding: 5px 10px;
        border-radius: 10px;

        background-color: transparent;
        border: none;
        color: var(--text-color);

        width: 100%;

        font-size: 16px;
    }

    body {
        width: 100%;
        position: relative;

        min-height: 100dvh;
        /* background: url('/static/site/mobile-bg.webp') no-repeat center center;
        background-size: cover;
        background-attachment: fixed; */

        padding: 20px;
    }

    body::before {
        content: "";
        position: fixed;
        /* width: 100%;
        height: 100dvh; */
        inset: 0;
        transform: scale(1.2);

        background: url('/static/site/mobile-bg.webp') center / cover no-repeat;
        background-attachment: fixed;

        z-index: -1;
    } 

    #safe-area {
        width: 100%;
    }

    #main-block {
        position: relative;        
    }

    #head-1 {
        font-size: 40px;
        color: #23FF9D;

        text-shadow: 0 0 30px #23FF9D;
        text-align: left;
    }

    #head-2 {
        font-size: 30px;
        color: white;

        text-shadow: 0 0 30px white;
        text-align: right;
    }

    .head-uc-img {
        position: absolute;

        bottom: 0;
        z-index: -1;

        width: 124px;
        height: 76px;
        /* transform: translate(-50%, -50%); */
    }    

    .glass-block.promo {
        font-size: 15px;
        font-weight: 600;

        padding: 5px 10px;
    }   
    
    .glass-block {
        padding: 5px 10px;        
    }

    #bottom-block {
        position: static;

        width: 90%;
        
        bottom: 0px;
        left: 50%;
        /* transform: translateX(-50%); */

        padding: 5px 10px;
        gap: 20px;
    }    

    #bottom-block .parts {
        display: flex;
        flex-direction: column;
        justify-content: left;
        gap: 5px;

        text-align: left;
        align-items: left;
        
        font-size: 12px;
    }    

    .catalog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;

        justify-items: center;

        margin-top: 20px;
    }

    .product {
        width: 105px;
        gap: 10px;

        padding: 2px;

        align-items: center;
        justify-content: center;
    }

    .product img {
        width: 50px;
        height: auto;
    }

    .product .glass-block {
        width: 100%;
        text-align: center;
        padding: 10px 5px;
        
        font-size: 16px;
        font-weight: 600;
    }

    .product .amount {
        font-size: 18px;
        font-weight: 600;
    }

    .popup {
        position: fixed;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;

        display: flex;
        justify-content: center;
        align-items: center;

        font-size: 24px;
        gap: 10px;

        width: 90%;

        padding: 20px 40px;
    }
    .popup span {
        font-size: 15px
    }

    .payment-btn {
        width: 49%;

        padding: 5px 20px;
    }

    .payment-btn.active {
        border: 1px solid #00FF11
    }
    
    .close-btn {
        position: absolute;

        top: 10px;
        right: 20px;

        padding: 10px;

        cursor: pointer;
        user-select: none;
    }    

    .count-setter {
        width: 100%;
        font-size: 20px;

        align-items: center;
    }

    .plus {
        cursor: pointer;
        user-select: none;
        font-size: 30px;
    }

    .minus {
        cursor: pointer;
        user-select: none;
        font-size: 30px;
    }    
}

#main-block {
    justify-content: center;
    align-items: center;
}

/* blocks */

.glass-block {
    border-radius: 15px;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    background: rgba(87, 84, 84, 0.5);    

    transition: backdrop-filter 0.3s ease;

    color: var(--text-color)
}

.glass-block:hover {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.glass-block.light {
    background: rgba(255, 255, 255, 0.5);
}

.glass-block.dark {
    background: rgba(0, 0, 0, 0.65);
}


/* constructor */
.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

.space-between {
    justify-content: space-between;
}

.space-around {
    justify-content: space-around;
}

.space-evenly {
    justify-content: space-evenly;
}

/* texts */
.zen-dots {
    font-size: 24px;
    color: var(--text-color);

    font-family: "Zen Dots", sans-serif;
}

.popup-back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
    backdrop-filter: blur(15px);

    transform: scale(1.2);
}

input {
    padding: 10px;
    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    outline: none;
    border: none;

    width: 100%;
}

button {
    padding: 10px;
    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    outline: none;
    border: none;

    transition: all 0.2s ease;
}

button.dark {
    background-color: rgba(0, 0, 0, 0.8);
}

button:active {
    transform: scale(0.95);
}

.spinner {
    width: 30px;
    height: 30px;

    border-radius: 100%;

    border: 4px solid white;
    border-top: 4px solid #00FF11;

    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}