@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #0d1b2a; 
    --accent-color: #c5a059;  
    --bg-color: #ffffff;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--primary-color);
    background: var(--bg-color);
    max-width: 21cm; /* A4 width */
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

/* --- PRINT SETTINGS --- */
@media print {
    body { margin: 0; padding: 20px; height: 100%; overflow: hidden; }
    .no-print { display: none !important; }
}

/* --- POSITIONS --- */
.lang-switcher {
    position: absolute; top: 20px; right: 40px;
    display: flex; gap: 10px; z-index: 10;
}

.top-qr-container {
    position: absolute; top: 20px; left: 40px;
    text-align: center; z-index: 10;
}

.qr-img {
    width: 70px; height: 70px; padding: 2px;
    border: 1px solid var(--accent-color);
    border-radius: 4px; display: block;
}

.qr-label {
    display: block; margin-top: 3px; font-size: 9px;
    font-weight: 700; color: var(--primary-color);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
}

.lang-btn {
    background: none; border: none; cursor: pointer;
    padding: 0; opacity: 0.5; transition: opacity 0.3s;
}
.lang-btn:hover, .lang-btn.active { opacity: 1; }
.lang-btn.active img { box-shadow: 0 0 0 2px var(--accent-color); border-radius: 2px; }

/* --- HEADER --- */
header {
    text-align: center; margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px; margin-top: 20px; 
}

.logo-container { margin-bottom: 15px; }
.logo-img { width: 140px; height: auto; display: block; margin: 0 auto; }

.logo-placeholder {
    width: 120px; height: 120px; margin: 0 auto 15px;
    background: radial-gradient(circle, #fceebb 0%, #c5a059 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-family: 'Cinzel', serif;
    font-weight: bold; font-size: 24px; border: 2px solid var(--primary-color);
}

h1 {
    font-family: 'Cinzel', serif; font-size: 32px; margin: 0;
    color: var(--primary-color); letter-spacing: 2px; text-transform: uppercase;
}

h2 {
    font-family: 'Cinzel', serif; font-size: 14px;
    color: var(--accent-color); text-transform: uppercase;
    letter-spacing: 4px; margin-top: 5px; font-weight: 700;
}

/* --- CONTENT --- */
.category-title {
    font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700;
    color: var(--accent-color); border-bottom: 1px solid #eee;
    margin-top: 25px; margin-bottom: 12px; padding-bottom: 5px;
    text-transform: uppercase;
}

.item-row {
    display: flex; justify-content: space-between; margin-bottom: 8px;
    font-size: 14px; align-items: baseline;
}

.item-name { font-weight: 700; }
.item-weight { font-weight: 400; color: #666; font-size: 0.9em; margin-left: 5px; font-style: italic; }
.item-price { font-weight: 700; color: var(--primary-color); }
.dots { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 10px; position: relative; top: -5px; }

.footer {
    margin-top: 40px; text-align: center; font-size: 14px;
    color: #666; border-top: 1px solid var(--accent-color);
    padding-top: 15px; font-family: 'Cinzel', serif; 
}

/* --- MOBILE --- */
@media screen and (max-width: 768px) {
    body { 
        padding: 15px; 
        max-width: 100%; 
        width: 100%; 
    }

    /* Языки оставляем, но центрируем */
    .lang-switcher { 
        position: static; 
        justify-content: center; 
        margin-bottom: 15px; 
        width: 100%; 
    }

    /* А QR-код скрываем полностью */
    .top-qr-container { 
        display: none; 
    }

    header { margin-top: 0; }
    h1 { font-size: 28px; }
    .logo-img { width: 120px; }
}