:root {
    --text-dark: #002b5e; 
    --primary-blue: #0077cc;     
    --light-blue: #e0f2fe;     
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none !important; transition: color 0.3s ease; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 10%; 
    position: sticky; 
    top: 0; 
    background-color: rgba(255, 255, 255, 0.95); 
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.1);
    backdrop-filter: blur(5px);
}

.logo-container { display: flex; flex-direction: column; }
.logo-title { font-size: 28px; font-weight: 800; color: var(--primary-blue); line-height: 1.1; }
.logo-city { font-size: 14px; font-weight: 600; color: #446688; margin-top: 4px; }

nav { display: flex; gap: 25px; flex-wrap: wrap; align-items: center; }
nav a { font-weight: 600; color: var(--text-dark); }
nav a:hover { color: var(--primary-blue); }

.dropdown { position: relative; display: inline-block; }
.dropbtn { padding: 10px 0; }
.dropdown-content {
    display: none; position: absolute; background-color: #ffffff; min-width: 200px;
    box-shadow: 0px 8px 20px rgba(0, 119, 204, 0.15); border-radius: 15px;
    top: 100%; left: -20px; z-index: 1000; overflow: hidden; margin-top: 5px;
}
.dropdown-content a { color: var(--text-dark); padding: 12px 20px; text-decoration: none; display: block; margin: 0; font-weight: 500; border-bottom: 1px solid #f0f8ff; transition: background 0.2s; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--light-blue); color: var(--primary-blue); }
.dropdown:hover .dropdown-content { display: block; }

.about-section { padding: 80px 10%; text-align: left; max-width: 1000px; margin: 0; }
.about-section h2 { color: var(--primary-blue); font-size: 40px; margin-bottom: 20px; margin-top: 0; }
.about-section p { font-size: 18px; line-height: 1.8; color: var(--text-dark); margin: 0; }

.catalog-section { padding: 50px 5%; }
.category-title { 
    text-align: center; color: var(--primary-blue); font-size: 32px; margin-bottom: 30px; margin-top: 50px;
    border-bottom: 2px solid var(--light-blue); padding-bottom: 10px; display: inline-block; left: 50%; 
    position: relative; transform: translateX(-50%); scroll-margin-top: 100px; 
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; margin-bottom: 40px; }
.cake-card { background: white; width: 100%; border-radius: 20px; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.cake-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 119, 204, 0.15); }
.cake-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.cake-info { display: flex; flex-direction: column; flex-grow: 1; }
.cake-info h3 { margin: 15px 0 10px 0; color: var(--text-dark); font-size: 18px; }
.cake-desc { font-size: 13px; line-height: 1.5; color: #446688; margin-bottom: 15px; flex-grow: 1; }
.price-tag { font-weight: 800; font-size: 18px; color: var(--primary-blue); margin-bottom: 15px; }
.price-tag small { font-weight: 400; font-size: 12px; color: #e74c3c; display: block; margin-top: 4px; } 

.btn-buy { width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--primary-blue); color: white; cursor: pointer; font-weight: 700; transition: background 0.3s, transform 0.2s; margin-top: auto; }
.btn-buy:hover { background: var(--text-dark); transform: scale(1.03); }

.business-card-section { padding: 80px 10%; border-top: none; }
.section-title { text-align: center; color: var(--primary-blue); margin-bottom: 40px; }
.card-wrapper { display: flex; align-items: center; justify-content: center; gap: 50px; flex-wrap: wrap; }
.main-vizitka { width: 300px; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-actions { width: 300px; } 
.action-btn { display: block; padding: 15px 30px; margin: 10px 0; border-radius: 30px; color: white; text-align: center; font-weight: bold; transition: transform 0.3s ease; }
.action-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.tg-btn { background-color: #229ED9; } 
.max-btn { background-color: #0056b3; } 

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 30, 60, 0.6); justify-content: center; align-items: center; z-index: 1000; padding: 15px; }
.modal { background: white; padding: 25px; border-radius: 20px; width: 100%; max-width: 420px; text-align: center; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background-color: #bae6fd; border-radius: 10px; }

.close-btn { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #446688; z-index: 2; width: 32px; height: 32px; background: #f0f8ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.close-btn:hover { color: white; background: var(--primary-blue); }

#orderForm { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 15px; }
#orderForm input[type="text"], #orderForm input[type="tel"], #orderForm textarea { width: 100%; padding: 14px 15px; border: 1px solid #bae6fd; border-radius: 12px; font-family: inherit; font-size: 15px; outline: none; background: #fcfdfe; transition: all 0.3s; }
#orderForm input:focus, #orderForm textarea:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1); }

.weight-calculator, .filling-selector, .delivery-selector { background: #f8fbff; padding: 15px; border-radius: 15px; border: 1px solid #d0e7f9; }
.weight-calculator label, .filling-selector label, .delivery-selector > label { font-size: 14px; color: var(--text-dark); font-weight: 700; margin-bottom: 12px; display: block; }
.weight-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.weight-input-row input { width: 90px !important; padding: 10px !important; border: 1px solid #bae6fd !important; border-radius: 10px !important; font-size: 16px; text-align: center; }
.total-price { font-size: 18px; font-weight: 800; color: #e74c3c; background: white; padding: 12px; border-radius: 10px; text-align: center; border: 1px solid #fdeaea; }

.filling-selector select { width: 100%; padding: 12px 15px; border: 1px solid #bae6fd; border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--text-dark); background-color: white; outline: none; cursor: pointer; transition: all 0.3s; }
.filling-selector select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1); }

.delivery-options { display: flex; gap: 10px; }
.delivery-option { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border: 1px solid #bae6fd; border-radius: 10px; background: white; cursor: pointer; font-size: 13px; color: var(--text-dark); font-weight: 600; transition: all 0.2s; text-align: center; }
.delivery-option:hover { border-color: var(--primary-blue); }
.delivery-option input[type="radio"] { accent-color: var(--primary-blue); cursor: pointer; width: 16px; height: 16px; margin: 0; }
.btn-buy[type="submit"] { margin-top: 5px !important; padding: 14px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(0, 119, 204, 0.3); }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; padding: 20px 5%; gap: 15px; text-align: center; }
    nav { justify-content: center; }
    nav a { margin-left: 0; }
    .about-section { padding: 40px 5%; text-align: center; }
    .dropdown-content { left: 50%; transform: translateX(-50%); }
}

.picker-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: flex-end; z-index: 1000; }
.picker-modal.hidden { display: none; }
.picker-content { background: #fff; width: 100%; border-radius: 20px 20px 0 0; padding: 20px; box-sizing: border-box; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.picker-header { display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 15px; font-size: 18px; }
.picker-header button { background: none; border: none; font-size: 28px; cursor: pointer; color: #888; }
.picker-wheels { display: flex; position: relative; height: 150px; overflow: hidden; background: #f9f9f9; border-radius: 15px; mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent); }
.picker-highlight { position: absolute; top: 55px; left: 0; right: 0; height: 40px; background: rgba(0,0,0,0.05); border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; pointer-events: none; }
.wheel { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; text-align: center; padding: 55px 0; }
.wheel::-webkit-scrollbar { display: none; }
.wheel-item { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 18px; color: #333; transition: 0.2s; }
#picker-confirm { width: 100%; padding: 15px; background: #007bff; color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; margin-top: 20px; cursor: pointer; }

.hamburger-btn { display: flex !important; flex-direction: column; gap: 6px; position: fixed; top: 15px; right: 20px; cursor: pointer; z-index: 9999 !important; background: rgba(255, 255, 255, 0.8); padding: 8px; border-radius: 8px; }
.hamburger-btn span { width: 32px; height: 4px; background-color: #333 !important; border-radius: 4px; transition: 0.3s; }
.side-menu { position: fixed; top: 0; right: -250px; width: 250px; height: 100%; background-color: #ffffff; box-shadow: -2px 0 10px rgba(0,0,0,0.1); padding-top: 60px; transition: right 0.3s ease; z-index: 1001; display: flex; flex-direction: column; }
.side-menu.open { right: 0; }
.close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }
.side-menu a { padding: 15px 20px; text-decoration: none; color: #333; font-size: 16px; border-bottom: 1px solid #eee; font-weight: bold; }
.side-menu a:hover { color: #ff6b81; }

.info-sections { max-width: 800px; margin: 0 auto; padding: 0 20px 40px; }
.info-block { background-color: #f9f9f9; padding: 15px 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 16px; line-height: 1.6; }

/* --- КОРЗИНА И КНОПКИ --- */
.floating-cart { position: fixed; bottom: 30px; right: 30px; background: var(--primary-blue); color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; box-shadow: 0 5px 20px rgba(0, 119, 204, 0.4); z-index: 1000; transition: transform 0.3s ease; }
.floating-cart:hover { transform: scale(1.1); }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: white; font-size: 14px; font-weight: bold; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.btn-buy.in-cart { background: #e74c3c; }
.btn-buy.in-cart:hover { background: #c0392b; }