:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #27354f;
    --accent-red: #e11d48;
    --accent-red-hover: #be123c;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Snowflakes animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 14s; animation-delay: 2s; font-size: 0.8rem; }
.snowflake:nth-child(3) { left: 35%; animation-duration: 8s; animation-delay: 4s; font-size: 1.5rem; }
.snowflake:nth-child(4) { left: 50%; animation-duration: 12s; animation-delay: 1s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 65%; animation-duration: 9s; animation-delay: 3s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 80%; animation-duration: 15s; animation-delay: 5s; font-size: 0.9rem; }
.snowflake:nth-child(7) { left: 90%; animation-duration: 11s; animation-delay: 2.5s; font-size: 1.4rem; }
.snowflake:nth-child(8) { left: 5%; animation-duration: 13s; animation-delay: 3.5s; font-size: 1.1rem; }

@keyframes fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.3; }
}

/* Hero section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, var(--bg-dark) 70%);
    border-bottom: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    background-color: rgba(225, 29, 72, 0.15);
    color: #fb7185;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(225, 29, 72, 0.3);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Countdown timer */
.timer-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.timer-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-item span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
}

.time-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.time-separator {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--border-color);
    margin-top: -15px;
}

/* Products section */
.products {
    padding: 80px 0;
}

h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, 0.4);
    background-color: var(--bg-card-hover);
}

.product-card.featured {
    border-color: rgba(225, 29, 72, 0.5);
}

.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-red);
    color: white;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
}

.product-image-wrap {
    height: 200px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.product-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.product-card:hover .product-emoji {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.new-price {
    color: var(--accent-gold);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background-color: var(--accent-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.5);
}

/* Conditions section */
.conditions {
    padding: 40px 0 80px;
}

.conditions-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.conditions-box h2 {
    text-align: left;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.conditions-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.conditions-list li {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.conditions-list span {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

/* Contacts section */
.contacts {
    padding: 0 0 80px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-card p, .contact-card a {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background-color: #0b1120;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    animation: modalScale 0.3s ease;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

#modalProductTitle {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.submit-btn {
    margin-top: 10px;
}

.success-message {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding: 50px 0 40px;
    }

    .conditions-box {
        padding: 25px;
    }
}
