body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    min-height: 100vh;
    color: #333333;
}

/* Декоративные элементы */
.summer-decor {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}
.summer-decor.sun {
    top: 32px;
    right: 32px;
    width: 100px;
    opacity: 0.18;
}
.summer-decor.leaf {
    bottom: 24px;
    left: 24px;
    width: 80px;
    opacity: 0.12;
}
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 0 10px 0;
    position: relative;
}







.logo {
    height: 60px;
    margin-bottom: 0;
    margin-right: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 18px #23252644;
    vertical-align: middle;
    transition: all 0.3s ease;
    background: none; /* Remove background */
    padding: 0; /* Remove padding */
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: white !important; /* Ensure white background on hover */
}
.logo-large {
    height: 90px;
    max-width: 160px;
}
.header-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}
.main-title {
    color: #333333; /* Dark text for better contrast on white */
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
}
.sub-title {
    color: #666666; /* Darker gray for better contrast */
    font-size: 1.1em;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .sub-title {
        font-size: 0.97em;
        font-weight: 300;
        text-align: center;
        margin-top: 8px;
        letter-spacing: 0.3px;
    }
}
.footer {
    margin-top: 40px;
    padding: 24px 0 16px 0;
    background: #232526;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 2px solid #414345;
}
.footer .socials {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
}
.footer .socials a {
    color: #ff6500;
    font-size: 2em;
    transition: color 0.2s;
}
.footer .socials a:hover {
    color: #fff;
}

h1 {
    margin: 8px 0 0 0;
    font-size: 2.4em;
    color: #f9d423;
    letter-spacing: 2px;
    font-weight: 900;
    text-shadow: 0 2px 8px #23252688, 0 0px 2px #f9d42399;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(50,50,50,0.17);
    display: inline-block;
    text-align: center;
}
/* Убраны стили для кнопки выхода и submit */

.filter-btn {
    background: #3c3f45;
    color: #ffffff;
    border: 2px solid #3c3f45;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    margin: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}
.filter-btn:hover {
    background: #ff6500;
    color: #ffffff;
    border-color: #ff6500;
}
.filter-btn.active {
    background: #ff6500;
    color: #232526;
    border: none;
}

.filter-btn[data-cat="all"] {
    background: #232526;
    color: #ff6500;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid #ff6500;
}
.filter-btn[data-cat="all"]:hover {
    background: #313235;
    color: #ff6500;
    border: 2px solid #ff6500;
}
.filter-btn[data-cat="all"].active {
    background: #ff6500;
    color: #232526;
    border: none;
}

.filter-btn:active, .submit-btn:active, .logout-btn:active, .lang-btn:active, button:active {
    transform: scale(0.96);
    filter: brightness(0.97);
}
.filter-btn.active {
    background: #ff6500;
    color: #232526;
    border: none;
}
.filter-btn:hover,
.submit-btn:hover, .logout-btn:hover, .lang-btn:hover, button:hover {
    background: #232526;
    color: #ff6500;
    border: 2px solid #ff6500;
}


.filter-btn:active, .submit-btn:active, .logout-btn:active {
    transform: scale(0.96);
    filter: brightness(0.97);
}

.filter-btn.active {
    background: #ff6500 !important;
    color: #232526 !important;
    border: none;
    background-image: none !important;
    box-shadow: 0 2px 8px #ff650022;
}
.filter-btn:hover {
    background: #313235;
    color: #ff6500;
    border: 2px solid #ff6500;
    background-image: none !important;
}
.submit-btn:hover, .logout-btn:hover {
    background: #232526;
    color: #ff6500;
    border: 2px solid #ff6500;
}

#category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 16px 0;
    opacity: 0;
    animation: fadeInFilters 1s cubic-bezier(.45,1.5,.55,1) 0.2s forwards;
}
@keyframes fadeInFilters {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-btn {
    background: #ff6500;
    border: none;
    color: #232526;
    border-radius: 10px;
    padding: 16px 36px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    font-size: 1.18em;
    margin: 0 20px 20px 0;
    box-shadow: 0 2px 8px #ff650022;
    will-change: transform;
    letter-spacing: 0.5px;
    text-align: center;
}
.category-btn:active {
    transform: scale(0.96);
    filter: brightness(0.97);
}
.category-btn.active, .category-btn:hover {
    background: #232526;
    color: #ff6500;
    border: 2px solid #ff6500;
}
.category-btn:active {
    transform: scale(0.96);
    filter: brightness(0.97);
}
.category-btn.active, .category-btn:hover {
    background: #ff4e50;
    color: #fff;
}
#menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
}
.menu-card {
    background: #3c3f45;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.22);
    width: 92%;
    max-width: 420px;
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #3c3f45;
    opacity: 0;
    animation: fadeInCard 0.8s cubic-bezier(.45,1.5,.55,1) forwards;
    text-align: center;
    color: #ffffff;
    margin: 0 auto 28px;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-card:hover {
    transform: translateY(-6px) scale(1.035);
    transform: translateY(-5px) scale(1.03);
}
.menu-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 20px;
    border: 2px solid rgba(255,255,255,0.1);
    display: block;
}
.menu-card .flavor.desc {
    font-size: 1.1em;
    color: #dddddd;
    margin: 0 0 20px 0;
    line-height: 1.5;
    min-height: 2.4em;
}
.menu-card .name {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6500;
    text-align: center;
}
.menu-card .desc {
    font-size: 1.1em;
    margin: 10px 0 10px 0;
    color: #ff6500;
    text-align: center;
}
.menu-card .desc-ro {
    font-size: 0.95em;
    color: #888;
    margin-bottom: 8px;
}
.menu-card .prices {
    margin-top: 12px;
    font-size: 1.2em;
    text-align: center;
}
.menu-card .price-new {
    color: #3ec300;
    font-weight: bold;
    margin-right: 8px;
}
.menu-card .price-old {
    color: #3ec300;
    text-decoration: line-through;
    font-size: 0.98em;
}
.menu-card .promo {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f9d423;
    color: #fff;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(249,212,35,0.15);
    font-size: 1em;
}
/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.35);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 32px 32px 24px 32px;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    min-width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
}
@media (max-width: 600px) {
    header {
        padding: 8px 0 8px 0;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }
    .header-content {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0 4px 0;
        position: relative;
    }
    .logo {
        height: 40px;
        margin-right: 8px;
    }
    .lang-btn {
        position: fixed !important;
        right: 14px;
        bottom: 14px;
        top: auto;
        left: auto;
        margin: 0;
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 1em;
        box-shadow: 0 3px 10px #23252655, 0 1px 4px #ff650066;
        background: #ff6500;
        color: #232526;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.2s;
        animation: langBtnAppear 0.35s cubic-bezier(.45,1.5,.55,1);
    }
    .lang-btn:active, .lang-btn:hover {
        background: #232526;
        color: #ff6500;
        border: 2px solid #ff6500;
        transform: scale(1.08);
        box-shadow: 0 6px 20px #ff6500aa;
    }
    @keyframes langBtnAppear {
        from { opacity: 0; transform: scale(0.7) translateY(40px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .menu-grid {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .menu-card {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        margin: 0 auto 24px auto;
        padding: 0;
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.19), 0 2px 8px rgba(255,101,0,0.07);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }
    .menu-card img.menu-img {
        width: 100vw;
        height: 100vw;
        object-fit: contain;
        border-radius: 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
        background: #232526;
        padding: 0;
    }
    .menu-card img.menu-img + img {
        width: 100vw;
        height: auto;
        max-width: none;
        object-fit: cover;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    .menu-info {
        padding: 18px 5vw 16px 5vw;
        text-align: center;
        background: #232526;
    }
}

@media (max-width: 600px) {
    /* Language button styles */
    .lang-btn {
        position: fixed !important;
        right: 14px;
        bottom: 14px;
        top: auto;
        left: auto;
        margin: 0;
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        font-size: 1.1em;
        font-weight: bold;
        box-shadow: 0 3px 10px #23252655, 0 1px 4px #ff650066;
        background: #ff6500;
        color: #232526;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: all 0.2s ease;
        animation: langBtnAppear 0.35s cubic-bezier(.45,1.5,.55,1);
    }
    
    .lang-btn:active, .lang-btn:hover {
        background: #232526;
        color: #ff6500;
        border: 2px solid #ff6500;
        transform: scale(1.1);
        box-shadow: 0 6px 20px #ff6500aa;
    }
    
    @keyframes langBtnAppear {
        from { opacity: 0; transform: scale(0.7) translateY(40px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    
    /* Header styles */
    header {
        padding: 14px 0;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .logo {
        height: 54px;
    }
    
    .main-title {
        font-size: 1.4em;
        margin-bottom: 2px;
    }
    
    .sub-title {
        font-size: 1.1em;
        letter-spacing: 0.5px;
    }
    
    /* Menu card styles */
    .menu-card {
        position: relative;
        width: 94%;
        max-width: 100%;
        margin: 0 auto 30px;
        padding: 24px 16px 26px;
        min-width: unset;
        background: #3c3f45;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        transition: all 0.3s ease;
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    .menu-card:active {
        transform: scale(0.99);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .card-category {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #ff6500;
        color: #fff;
        padding: 5px 14px;
        border-radius: 16px;
        font-size: 0.95em;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        z-index: 2;
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-card img {
        width: 100%;
        height: auto;
        max-width: 280px;
        max-height: 280px;
        margin: 0 auto 22px;
        display: block;
        border-radius: 16px;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.15);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    .menu-card:active img {
        transform: scale(0.98);
        box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    }
    
    .card-content {
        text-align: center;
        padding: 0 10px;
    }
    
    .card-content h3 {
        font-size: 1.6em;
        margin: 0 0 12px 0;
        color: #fff;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    .card-content .description {
        font-size: 1.1em;
        color: #e0e0e0;
        margin: 0 0 18px;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .card-content .price {
        font-size: 1.7em;
        color: #3ec300 !important; /* Force green color */
        font-weight: 700;
        margin: 18px 0 8px;
        display: inline-block;
        background: rgba(0,0,0,0.25);
        padding: 8px 20px;
        border-radius: 30px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    /* Ensure all price elements are green */
    .price, .price-new, .card-content .price, .menu-card .price {
        color: #3ec300 !important;
    }
    
    /* Make sure price text is green */
    .price span, .price-new span {
        color: #3ec300 !important;
    }
    
    .menu-title {
        font-size: 1.7em;
        margin: 12px 0 14px;
        color: #ffffff;
        line-height: 1.25;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-align: center;
        padding: 0 8px;
    }
    
    .desc {
        font-size: 1.15em;
        color: #e0e0e0;
        margin: 0 0 22px;
        line-height: 1.6;
        text-align: center;
        padding: 0 8px;
        font-weight: 300;
    }
    
    .price-new {
        font-size: 1.8em;
        color: #3ec300 !important;
        font-weight: 700;
        margin: 12px 0 6px;
        display: inline-block;
        background: rgba(0,0,0,0.2);
        padding: 8px 26px;
        border-radius: 25px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    /* Modal and filter styles */
    .modal-content {
        min-width: unset;
        width: 95vw;
        padding: 16px 4vw;
        border-radius: 16px;
    }
    
    #category-filters {
        gap: 10px;
        margin: 20px 0 16px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 1em;
        margin: 0 6px 8px 0;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .filter-btn.active {
        background: #ff6500;
        color: #232526;
        transform: none;
    }
    
    .filter-btn[data-cat="all"] {
        padding: 10px 20px;
    }
    
    /* Icons */
    .icon-sun, .icon-leaf, .icon-drink {
        width: 24px;
        height: 24px;
        margin-left: 6px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .menu-card {
        width: 90%;
        padding: 16px 12px 20px;
        margin-bottom: 20px;
        border-radius: 18px;
    }
    
    .menu-card img {
        max-height: 240px;
        margin-bottom: 16px;
        border-radius: 14px;
    }
    
    .card-category {
        font-size: 0.85em;
        padding: 3px 12px;
        max-width: 75%;
        top: 10px;
        right: 10px;
    }
    
    .card-content h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
        padding: 0 3px;
    }
    
    .card-content .description {
        font-size: 1em;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    
    .card-content .price {
        font-size: 1.5em;
        padding: 6px 16px;
        margin: 14px 0 4px;
        color: #ffffff !important;
    }
    
    .menu-title {
        font-size: 1.5em;
        margin: 10px 0 12px;
    }
    
    .desc {
        font-size: 1.05em;
        margin-bottom: 16px;
    }
}
