main, footer {
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/images/bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top left;
}

.shop-icon,
.cart-icon {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 0.5rem;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cart-icon img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.shop-icon img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.cart-badge {
    position: absolute;
    bottom: 15%;
    right: 15%;
    transform: translate(50%, 50%);
    background-color: #FFD700;
    color: #000;
    font-weight: bold;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.logo {
    width: 20%;
    margin: 2rem 0;
}

.boxes img {
    width: 16rem;
}

.bg-pattern {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bg-pattern-adaptive {
    position: relative;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bg-pattern .goods {
    width: 45%;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

footer {
    min-height: auto;
    width: 100%;
    padding: 3rem 1rem;
    text-align: center;
    box-sizing: border-box
}

.logo {
    width: 20%;
    height: auto;
    z-index: 2;
}

.big-text {
    margin: 10% 10%;
    font-size: 5rem;
}

.gold-upper {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2rem;
    background: linear-gradient(90deg, #ffb000, rgb(255 239 16));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(181, 145, 145, 0.5);
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    word-wrap: break-word;
}

.white-upper {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(244, 234, 234, 0.5);
    display: inline-block;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    word-wrap: break-word;
}

.chances {
    font-size: 1rem;
}

.old-price {
    text-decoration: line-through;
    text-decoration-color: #d8c3c3;
}

.old-price::after {
    content: "";
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #d8c3c3;
    transform: translateY(-50%);
}

.important-info-block {
    margin: 5% 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border: 3px solid rgba(255, 228, 108, 0.75);
    box-shadow: 0 0 20px rgba(221, 212, 60, 0.38), 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
}

.important-info-block,
.important-info-block p {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.chances-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.3rem;
}

.chances-block .chances {
    display: flex;
    justify-content: space-between;
    text-align: center;
}


.products-container {
    position: relative;
    height: 210vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0 1rem;
    box-sizing: border-box;
}

.products-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 80%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}

.products-slider > .product-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 45%;
    height: 90%;
}

.product-card {
    width: 100%;
    height: 85%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 3px solid #ffe46c;
    box-shadow: 0 0 20px rgba(221, 212, 60, 0.8), 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card-preview {
    width: auto;
    height: 50%;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 4px 12px rgba(0,0,0,0.3);
}

.make-order-btn {
    margin: auto 5% auto 5%;
    width: 80%;
    height: 15%;
    object-fit: contain;
    display: block;
}

.cart-order-btn {
    margin: 5%;
    height: 15%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.cart-order-btn > img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.top-sale {
    position: absolute;
    top: -5%;
    right: -5%;
    width: 25%;
    height: auto;
    z-index: 2;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 10%;
}

.steps-container .important-info-block {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: left;
}

.steps-container .important-info-block > div {
    margin: 5% 3%;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.step > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.step .gold-upper,
.step .white-upper {
    margin: 0;
    padding: 0;
    text-align: left;
}

.instruction-container {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0 1rem;
    box-sizing: border-box;
}

.instruction-container .mascot-img {
    width: 45%;
}

.explanation-container {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 0 1rem;
    box-sizing: border-box;
}

.explanation-container .important-info-block {
    margin: 5% 10%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: justify;
}

.explanation-container .important-info-block .text-block {
    margin: 2%;
}

.explanation-container .important-info-block .text-block .gold-upper,
.explanation-container .important-info-block .text-block .white-upper {
    margin: 0;
    padding: 0;
    text-align: left;
}

.explanation-container .important-info-block .white-upper {
    margin: 0;
    padding: 0;
    font-size: 1.2rem;
    text-align: justify;
    line-height: 1.6;
}

.card-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-product {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 3px solid rgba(255, 228, 108, 0.75);
    box-shadow: 0 0 20px rgba(221, 212, 60, 0.38), 0 2px 8px rgba(0,0,0,0.2);
    padding: 0.5rem;
}

.cart-product-img {
    width: auto;
    max-width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 1rem;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cart-product-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cart-btn {
    font-family: 'Arial Black', 'Impact', sans-serif;
    text-transform: uppercase;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 2px 2px 4px rgba(244, 234, 234, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 214, 0, 0.19);
    border: 3px solid rgba(255, 228, 108, 0.75);
    box-shadow: 0 0 20px rgba(221, 212, 60, 0.38), 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #000;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: rgba(255, 214, 0, 0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.remove-product {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(230, 15, 15, 0.6);
    border: 2px solid rgba(255, 228, 108, 0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-weight: bold;
    color: #fff;
    transition: all 0.2s ease;
}

.remove-product:hover {
    background: rgba(230, 15, 15, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.form-group label,
.form-group span {
    flex: 0 0 40%;
    text-align: left;
}

.form-group .white-upper {
    margin: 0;
}

.form-control {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 228, 108, 0.75);
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    outline: none;
    margin: 10px;
    color: #ffd700;
}

.form-control:focus {
    border-color: #ffe46c;
    box-shadow: 0 0 10px rgba(255, 228, 108, 0.6);
    background: rgba(255, 255, 255, 0.05);
    color: #ffd700;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle-group {
    display: flex;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.toggle-group input {
    display: none;
}

.toggle-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 228, 108, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.toggle-btn:hover {
    background: rgba(255, 228, 108, 0.2);
}

.toggle-group input:checked + .toggle-btn {
    background: rgba(255, 214, 0, 0.8);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 228, 108, 0.8);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-block-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.footer-block-left > img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.footer-block-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.5;
}

.footer-block-right a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-block-right a:hover {
    color: #2563eb;
}

@media (max-width: 768px) {
    .logo {
        width: 40%;
    }

    .gold-upper {
        font-size: 1.5rem;
    }

    .white-upper {
        font-size: 1.5rem;
    }

    .chances {
        font-size: 1rem;
    }

    .bg-pattern {
        height: 60vh;
    }

    .bg-pattern .goods {
        width: 80%;
    }

    .products-container {
        height: 115vh;
    }

    .top-sale {
        position: absolute;
        top: -10%;
        right: -10%;
        width: 45%;
        height: auto;
        z-index: 2;
    }

    .products-slider > .product-wrapper {
        width: 75%;
    }

    .big-text {
        font-size: 2.5rem;
    }

    .bg-pattern {
        height: 60vh;
    }

    .instruction-container .mascot-img {
        width: 80%;
    }

    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
    }

    .cart-product-img {
        max-width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .cart-product-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    .cart-product-quantity {
        justify-content: flex-start;
        width: 100%;
        padding: 15%;
    }

    .cart-product-quantity .white-upper {
        padding: 0;
    }
}
