* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 28px;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.brand-eco {
    font-size: 28px;
    font-weight: 700;
    color: #2d5016;
}

.brand-lunch {
    font-size: 28px;
    font-weight: 700;
    color: #ff6347;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2d5016;
}

.nav-link.active {
    color: tomato;
}

.btn-primary {
    background-color: #2d5016;
    border-color: #2d5016;
    font-weight: 600;
    padding: 12px 30px;
}

.btn-primary:hover {
    background-color: #3d6020;
    border-color: #3d6020;
}

.btn-outline-primary {
    color: #2d5016;
    border-color: #2d5016;
    font-weight: 600;
    padding: 12px 30px;
}

.btn-outline-primary:hover {
    background-color: #2d5016;
    border-color: #2d5016;
    color: white;
}

.hero-section {
    padding-top: 80px;
    background-color: #f9f9f9;
}

.hero-section h1 {
    color: #2d5016;
}

.hero-section .lead {
    color: #666;
    font-size: 18px;
}

.advantages-section {
    background-color: white;
}

.advantage-card {
    background-color: #f9f9f9;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 60px;
    line-height: 1;
}

.cta-section {
    background-color: #2d5016;
    color: white;
}

.cta-section h2 {
    color: white;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.contacts-section {
    background-color: #f9f9f9;
}

.contact-info {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info strong {
    color: #2d5016;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-info a,
.contact-info span {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.contact-info a:hover {
    color: #2d5016;
    text-decoration: underline;
}

.contact-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.form-label {
    font-weight: 600;
    color: #333;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: #2d5016;
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

.footer {
    background-color: black;
    color: white;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

.footer .text-muted {
    color: #999;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #a8d08d;
    text-align: left;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-row span {
    color: #ccc;
}

.footer-row a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-row a:hover {
    color: #a8d08d;
    text-decoration: underline;
}

.footer-copyright {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .footer-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
    }
}

header {
    background-color: #2d5016;
    color: white;
    padding: 20px 40px;
    margin: 0;
}

h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    color: white;
}

h2 {
    font-size: 28px;
    color: #2d5016;
    margin: 0 0 20px 0;
}

nav {
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

nav a:hover {
    color: #a8d08d;
}

nav a#active {
    color: tomato;
}

main {
    margin: 0 auto;
    padding: 40px 60px;
    max-width: 1200px;
    flex: 1;
}

section {
    margin: 0 0 50px 0;
    padding: 30px;
    background-color: #f9f9f9;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 0 0 20px 0;
}

ul {
    margin: 20px 0;
    padding: 0 0 0 25px;
}

ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background-color: #2d5016;
    color: white;
    padding: 15px;
    text-align: left;
    border: 1px solid #2d5016;
    font-size: 16px;
}

table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

footer a {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

footer a:hover {
    color: #a8d08d;
}

.combo-section {
    margin-bottom: 50px;
}

.combo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.combo-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
}

.combo-dessert {
    flex-direction: column;
    gap: 10px;
}

.combo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.combo-icon {
    font-size: 50px;
    display: block;
    margin: 0 0 8px 0;
    transition: transform 0.3s;
}

.combo-item:hover .combo-icon {
    transform: translateY(-5px) scale(1.1);
}

.combo-item p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.combo-note-inline {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin: 0;
    font-style: italic;
}

.combo-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 10px 0 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 2px solid #2d5016;
    color: #2d5016;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #f1eee9;
}

.filter-btn.active {
    background-color: #2d5016;
    color: white;
}

.dishes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.dish-card {
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    border-radius: 35px;
    cursor: pointer;
    filter: drop-shadow(17px 19px 24px rgba(0, 0, 0, 0.13));
    background-color: white;
}

.dish-card.selected {
    border: 3px solid #2d5016;
    background-color: #f0f7ec;
}

.dish-card.selected button {
    background-color: #2d5016;
    color: white;
}

.dish-card:hover {
    border: 2px solid tomato;
}

.dish-card:hover button {
    background-color: tomato;
    color: white;
}

.dish-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 9;
    object-fit: cover;
    border-radius: 35px;
    margin: 0 0 15px 0;
}

.dish-price {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.dish-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.dish-weight {
    color: #888;
    margin: 0 0 10px 0;
    margin-top: auto;
}

.dish-card button {
    background-color: #f1eee9;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-top: 10px;
}

.remove-dish-btn {
    background-color: tomato;
    color: white;
}

.remove-dish-btn:hover {
    background-color: #ff4500;
}

.order-panel {
    position: sticky;
    bottom: 20px;
    background-color: white;
    padding: 20px 40px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.order-panel.hidden {
    display: none;
}

.order-panel-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.order-panel-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-panel-label {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.order-panel-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d5016;
    margin: 0;
}

.order-panel-button {
    background-color: #2d5016;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.order-panel-button:hover {
    background-color: #3d6020;
}

.order-panel-button.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-order-message {
    text-align: center;
    padding: 40px 20px;
}

.empty-order-message.hidden {
    display: none;
}

.empty-order-message p {
    font-size: 18px;
    color: #666;
}

.empty-order-message a {
    color: #2d5016;
    text-decoration: underline;
}

.order-form {
    margin: 0 auto;
    padding: 40px 60px;
    max-width: 1200px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.order-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.order-category {
    margin-bottom: 25px;
}

.order-category h3 {
    font-size: 20px;
    color: #2d5016;
    margin: 0 0 10px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.order-item span:first-child {
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 70%;
}

.order-item span:last-child {
    color: #2d5016;
    font-weight: 600;
    white-space: nowrap;
}

.not-selected {
    color: #888;
    font-style: italic;
    margin: 5px 0;
}

.order-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #2d5016;
}

.order-total h3 {
    font-size: 22px;
    color: #2d5016;
    margin: 0 0 10px 0;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d5016;
    margin: 0;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-section {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
}

.order-section h3 {
    font-size: 22px;
    color: #2d5016;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.customer-section {
    display: flex;
    flex-direction: column;
}

.customer-section h3 {
    font-size: 22px;
    color: #2d5016;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.order-form label {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.order-form select,
.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="tel"],
.order-form input[type="time"],
.order-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 0 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

.order-form select {
    cursor: pointer;
    background-color: white;
}

.order-form textarea {
    height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.radio-group {
    margin: 0 0 20px 0;
}

.radio-group > label {
    display: block;
    margin-bottom: 10px;
}

.radio-group > div {
    display: flex;
    align-items: center;
    margin: 0 0 8px 0;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.radio-group input[type="radio"] + label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.form-buttons button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-buttons button[type="button"] {
    background-color: #f1eee9;
    color: #333;
}

.form-buttons button[type="button"]:hover {
    background-color: #e0ddd8;
}

.form-buttons button[type="submit"] {
    background-color: #2d5016;
    color: white;
}

.form-buttons button[type="submit"]:hover {
    background-color: #3d6020;
}

.form-hint {
    display: block;
    font-size: 13px;
    color: #666;
    margin: -15px 0 20px 0;
    line-height: 1.4;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-orders-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-orders-message.hidden {
    display: none;
}

.empty-orders-message p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.empty-orders-message a {
    color: #2d5016;
    text-decoration: underline;
    font-weight: 600;
}

.order-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.order-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.order-number {
    font-size: 20px;
    font-weight: 700;
    color: #2d5016;
}

.order-date {
    font-size: 16px;
    color: #666;
}

.order-card-body {
    margin-bottom: 20px;
}

.order-info p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.order-info strong {
    color: #2d5016;
}

.order-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.order-btn-view {
    background-color: #2d5016;
    color: white;
}

.order-btn-view:hover {
    background-color: #3d6020;
}

.order-btn-edit {
    background-color: #f1eee9;
    color: #333;
}

.order-btn-edit:hover {
    background-color: #e0ddd8;
}

.order-btn-delete {
    background-color: tomato;
    color: white;
}

.order-btn-delete:hover {
    background-color: #ff4500;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.modal-content-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.modal-close {
    font-size: 28px;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px 30px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.modal-label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.modal-value {
    font-size: 16px;
    color: #000;
    display: block;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.modal-order-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #000;
}

.modal-order-item span:first-child {
    color: #666;
}

.modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.modal-delete-text {
    font-size: 16px;
    color: #000;
    text-align: center;
    margin: 0;
}

.modal-body form label {
    display: block;
    font-size: 14px;
    color: #000;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.modal-body form input[type="text"],
.modal-body form input[type="email"],
.modal-body form input[type="tel"],
.modal-body form input[type="time"],
.modal-body form textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 0 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

.modal-body form textarea {
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.modal-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.modal-btn-ok {
    background-color: #e8e8e8;
    color: #000;
}

.modal-btn-ok:hover {
    background-color: #d0d0d0;
}

.modal-btn-cancel {
    background-color: #e8e8e8;
    color: #000;
}

.modal-btn-cancel:hover {
    background-color: #d0d0d0;
}

.modal-btn-save {
    background-color: #4caf50;
    color: white;
}

.modal-btn-save:hover {
    background-color: #45a049;
}

.modal-btn-delete {
    background-color: #c62828;
    color: white;
}

.modal-btn-delete:hover {
    background-color: #b71c1c;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.hidden {
    display: none;
}

.notification-success {
    background-color: #4caf50;
    color: white;
}

.notification-error {
    background-color: #c62828;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .hero-section .row {
        min-height: auto;
    }

    .combo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .modal-content {
        width: 95%;
    }

    .order-card-footer {
        flex-direction: column;
    }

    .order-btn {
        width: 100%;
    }

    .combo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dishes-grid {
        grid-template-columns: 1fr 1fr;
    }

    nav {
        justify-content: space-between;
    }

    .about-company img {
        width: 500px;
    }

    .order-panel-content {
        flex-direction: column;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    h1 {
        text-align: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        font-size: 20px;
    }

    section h2 {
        text-align: center;
    }

    .about-company img {
        width: 100%;
    }

    table th,
    table td {
        font-size: 14px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 15px 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }

    .notification {
        right: 10px;
        left: 10px;
        text-align: center;
    }

    .combo-grid {
        grid-template-columns: 1fr;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .order-panel {
        padding: 15px 20px;
    }

    .order-panel-content {
        flex-direction: column;
        align-items: stretch;
    }

    .order-panel-button {
        text-align: center;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    table th,
    table td {
        font-size: 12px;
    }
}