/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    min-height: 100vh;
    background: #110219;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    color: #f0e9d8;
}
.app {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: radial-gradient(circle at 30% 10%, #1f0432 0%, #0a0110 100%);
}

/* ========================================
   КАСТОМНИЙ СКРОЛБАР
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(17, 2, 25, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(229, 193, 88, 0.1);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e5c158, #b8942a);
    border-radius: 10px;
    border: 1px solid rgba(229, 193, 88, 0.3);
    box-shadow: 0 0 20px rgba(229, 193, 88, 0.15);
    transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5d86e, #c9a23a);
    box-shadow: 0 0 30px rgba(229, 193, 88, 0.3);
}
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #d4b04a, #a07a20);
}
::-webkit-scrollbar-corner {
    background: rgba(17, 2, 25, 0.8);
}
* {
    scrollbar-width: thin;
    scrollbar-color: #e5c158 rgba(17, 2, 25, 0.8);
}
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}
.app {
    scroll-behavior: smooth;
}

/* ========================================
   ЧАСТИНКИ
   ======================================== */
#global-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

/* ========================================
   ЕКРАНИ
   ======================================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    padding: 20px;
    will-change: transform, opacity;
    z-index: 2;
    background: transparent;
}
.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 5;
}
#choice { z-index: 4; }
#choice.active { z-index: 4; }
#catalog.active { z-index: 6; }
#custom.active { z-index: 6; }

/* ========================================
   СПЛЕШ
   ======================================== */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: radial-gradient(circle at 50% 50%, #1f0432 0%, #0a0110 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1.2s ease, transform 1.2s ease;
    padding: 20px;
}
#splash.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}
.splash-logo-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    opacity: 0;
    transform: scale(0.96);
    animation: premiumFadeIn 2s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.splash-logo-wrapper img {
    max-width: 550px;
    width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 35px rgba(229, 193, 88, 0.3));
}
.splash-footer-text {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(229, 193, 88, 0.55);
    letter-spacing: 5px;
    text-transform: uppercase;
    z-index: 6;
    opacity: 0;
    animation: fadeInText 1.5s ease forwards 0.6s;
    white-space: nowrap;
    width: auto;
    text-align: center;
}
@keyframes premiumFadeIn {
    0% { opacity: 0; transform: scale(0.94); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes fadeInText {
    0% { opacity: 0; letter-spacing: 3px; }
    100% { opacity: 1; letter-spacing: 5px; }
}

/* ========================================
   ПОСТІЙНИЙ ЛОГОТИП
   ======================================== */
#sticky-logo {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1);
    filter: drop-shadow(0 0 30px rgba(229, 193, 88, 0.2));
}
#sticky-logo.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}
#sticky-logo img {
    max-height: 170px;
    width: auto;
    display: block;
}

/* ========================================
   ІКОНКИ ВЕРХНЬОГО ПРАВОГО КУТА
   ======================================== */
#top-icons {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 60;
    display: flex;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    pointer-events: none;
}
#top-icons.visible {
    opacity: 1;
    pointer-events: auto;
}
#top-icons .icon-btn {
    background: rgba(20, 5, 35, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #e5c158;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
#top-icons .icon-btn:hover {
    background: rgba(229, 193, 88, 0.15);
    border-color: #e5c158;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(229, 193, 88, 0.15);
}

/* ========================================
   ЕКРАН ВИБОРУ
   ======================================== */
#choice {
    background: transparent;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    padding: 200px 20px 40px;
    min-height: 100vh;
    justify-content: center;
    align-items: flex-start;
}
.choice-card {
    flex: 1 1 280px;
    min-width: 260px;
    min-height: 300px;
    background: rgba(20, 5, 35, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-radius: 48px 16px 48px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(229, 193, 88, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.35s ease;
    cursor: pointer;
    color: #f0e9d8;
    transform: scale(0.96);
    opacity: 0;
    animation: cardFadeUp 1s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}
.choice-card:nth-child(1) { animation-delay: 0.2s; }
.choice-card:nth-child(2) { animation-delay: 0.4s; }
.choice-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #e5c158;
    box-shadow: 0 30px 50px rgba(0,0,0,0.7), 0 0 50px rgba(229, 193, 88, 0.2);
    background: rgba(30, 10, 50, 0.6);
}
.choice-card .choice-icon {
    width: 360px;
    max-width: 85%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(229, 193, 88, 0.2));
    transition: filter 0.3s ease;
    border-radius: 12px;
}
.choice-card:hover .choice-icon {
    filter: drop-shadow(0 0 35px rgba(229, 193, 88, 0.4));
}
.choice-card h2 {
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #e5c158;
    margin-bottom: 8px;
}
.choice-card p {
    font-weight: 300;
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 220px;
}
@keyframes cardFadeUp {
    0% { opacity: 0; transform: scale(0.94) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========================================
   КАТАЛОГ
   ======================================== */
#catalog {
    background: transparent;
    padding: 190px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
#catalog h2 { margin-top: 0; margin-bottom: 20px; }

.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
}
.category-btn {
    padding: 12px 32px;
    background: rgba(20, 5, 35, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 193, 88, 0.25);
    border-radius: 40px;
    color: #d4c69c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.category-btn:hover {
    background: rgba(229, 193, 88, 0.1);
    border-color: #e5c158;
    color: #e5c158;
}
.category-btn.active {
    background: rgba(229, 193, 88, 0.15);
    border-color: #e5c158;
    color: #e5c158;
    box-shadow: 0 0 30px rgba(229, 193, 88, 0.1);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin: 10px 0 20px;
}
.product-card {
    background: rgba(18, 5, 30, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 193, 88, 0.3);
    border-radius: 30px 8px 30px 8px;
    padding: 20px 10px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #e5c158;
    box-shadow: 0 0 30px rgba(229, 193, 88, 0.15);
}
.product-card img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(229, 193, 88, 0.15));
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(229, 193, 88, 0.2);
}
.product-card h4 {
    font-weight: 400;
    color: #e5c158;
    letter-spacing: 1px;
    font-size: 1.1rem;
}
.product-card .price {
    font-weight: 300;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.back-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid #e5c158;
    color: #e5c158;
    padding: 12px 36px;
    border-radius: 40px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(4px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}
.back-btn:hover {
    background: #e5c158;
    color: #0a0110;
    box-shadow: 0 0 30px #e5c15855;
}

/* ========================================
   КАСТОМІЗАЦІЯ
   ======================================== */
#custom {
    background: transparent;
    padding: 190px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.custom-container {
    max-width: 700px;
    width: 100%;
    background: rgba(12, 3, 22, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 193, 88, 0.2);
    border-radius: 60px 16px 60px 16px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom-container h3 {
    font-weight: 300;
    letter-spacing: 3px;
    color: #e5c158;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.custom-container label {
    width: 100%;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 16px 0 6px;
    color: #d4c69c;
}
.custom-container textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 30px 8px 30px 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #e5c15855;
    color: #f0e9d8;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: 0.25s;
    outline: none;
    backdrop-filter: blur(4px);
}
.custom-container textarea:focus {
    border-color: #e5c158;
    box-shadow: 0 0 20px #e5c15833;
}
.file-upload-wrapper {
    width: 100%;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.file-upload-wrapper input[type="file"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px dashed #e5c15877;
    border-radius: 40px;
    color: #d4c69c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    cursor: pointer;
}
.file-upload-wrapper input[type="file"]::file-selector-button {
    background: #e5c15822;
    border: 1px solid #e5c158;
    color: #e5c158;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: 0.2s;
    margin-right: 10px;
}
.file-upload-wrapper input[type="file"]::file-selector-button:hover {
    background: #e5c158;
    color: #0a0110;
}
.order-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid #e5c158;
    border-radius: 60px;
    color: #e5c158;
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 400;
    margin-top: 20px;
    transition: 0.3s;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(4px);
}
.order-btn:hover {
    background: #e5c158;
    color: #0a0110;
    box-shadow: 0 0 40px #e5c15866;
}
.custom-back {
    margin-top: 28px;
    background: transparent;
    border: 1px solid #e5c15866;
    color: #d4c69c;
    padding: 10px 30px;
    border-radius: 40px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.custom-back:hover {
    border-color: #e5c158;
    color: #e5c158;
}

/* ========================================
   АДАПТИВ
   ======================================== */
@media (max-width: 768px) {
    .splash-logo-wrapper img { max-width: 340px; width: 75%; }
    .splash-footer-text { 
        font-size: 0.65rem; 
        letter-spacing: 3px; 
        white-space: nowrap; 
        width: auto;
        padding: 0 20px;
    }
    .choice-card { min-height: 220px; padding: 20px; }
    .choice-card .choice-icon { width: 240px; max-width: 80%; }
    .choice-card h2 { font-size: 1.3rem; }
    .custom-container { padding: 24px 16px; }
    .custom-container h3 { font-size: 1.2rem; }
    #choice { padding-top: 170px; }
    #catalog, #custom { padding-top: 160px; }
    .category-btn { padding: 10px 24px; font-size: 0.8rem; }
    #top-icons { top: 16px; right: 16px; gap: 12px; }
    #top-icons .icon-btn { width: 38px; height: 38px; font-size: 1.1rem; }
    #sticky-logo img { max-height: 120px; }
    #sticky-logo { top: 10px; }
    ::-webkit-scrollbar { width: 5px; height: 5px; }
}

@media (max-width: 480px) {
    .splash-logo-wrapper img { max-width: 260px; width: 80%; }
    .splash-footer-text { 
        font-size: 0.55rem; 
        letter-spacing: 2px;
        white-space: nowrap;
    }
    .choice-card { min-width: 200px; min-height: 180px; padding: 16px; }
    .choice-card .choice-icon { width: 180px; max-width: 75%; margin-bottom: 10px; }
    .choice-card h2 { font-size: 1rem; }
    .choice-card p { font-size: 0.8rem; }
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    #choice { padding-top: 140px; }
    #catalog, #custom { padding-top: 130px; }
    .category-btn { padding: 8px 16px; font-size: 0.7rem; }
    #top-icons { top: 12px; right: 12px; gap: 10px; }
    #top-icons .icon-btn { width: 34px; height: 34px; font-size: 1rem; }
    #sticky-logo img { max-height: 80px; }
    #sticky-logo { top: 8px; }
    ::-webkit-scrollbar { width: 3px; height: 3px; }
}

@media (hover: none) and (pointer: coarse) {
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #e5c158, #b8942a);
        border-radius: 10px;
    }
}