body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f0e6;
    color: #333;
}

.mizhit_container {
    position: relative;
    width: 100%;
}

.mizhit_class {
    width: 100%;
    display: block;
}

.mizhit_text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2vw;
    text-shadow: 0 0 5px black;
    white-space: nowrap;
}

header {
    padding: 20px;
    text-align: center;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #8b5e3c;
    padding: 10px;
}

nav button {
    background: none;
    border: 1px solid white;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    padding: 2px 6px;
    transition: background-color 0.3s, color 0.3s;
}

nav button:hover {
    background-color: #a47148;
    border-radius: 5px;
}

nav button.active {
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}

.section {
    display: none;
    padding: 20px;
}

.section.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.dish {
    display: inline-block;
    width: 300px;
    margin: 10px;
    vertical-align: top;
}

.dish img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dish img:hover {
    transform: scale(1.05);
}

.dish-info {
    padding: 5px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    color: #eee;
    text-align: center;
}

.modal:before {
    content: '✕';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.modal-info {
    margin-top: 20px;
    font-size: 18px;
}

.modal .arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.modal .arrow.left { left: 20px; }
.modal .arrow.right { right: 20px; }

.modal-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #fff;
}

.modal img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0;
    margin-top: 40px;
}

/* FAB кнопка */
.fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 5;
}

.fab:active { transform: translateY(1px); }

.rating-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.rating-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 34px;
    cursor: pointer;
    margin: 12px 0;
}

.star { transition: transform .12s ease, color .12s ease; }
.star:hover { transform: scale(1.15); }
.star.filled { color: #000; }

.rating-actions { margin-top: 20px; display: block; justify-content: center; gap: 20px; }

.rating-modal a {
    display: block;
    margin: 10px;
    border-color: #000;
    border-width: 1px;
}

.actions { margin-top: 18px; }

.rating-message {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
}
