* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2d5016;
    color: white;
    padding: 20px 40px;
    margin: 0;
}

h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    color: white;
}

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;
}

h2 {
    font-size: 28px;
    color: #2d5016;
    margin: 0 0 20px 0;
}

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;
}

.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:hover {
    border: 2px solid tomato;
}

.dish-card:hover button {
    background-color: tomato;
    color: white;
}

.dish-card img {
    width: 100%;
    height: auto;
    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;
}

.order-form {
    margin: 0 auto;
    padding: 40px 60px;
    max-width: 1200px;
    background-color: white;
}

.order-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-section,
.customer-section {
    display: flex;
    flex-direction: column;
}

.order-section h3,
.customer-section h3 {
    font-size: 22px;
    color: #2d5016;
    margin: 0 0 20px 0;
}

.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="reset"] {
    background-color: #f1eee9;
    color: #333;
}

.form-buttons button[type="reset"]: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;
}

footer {
    background-color: black;
    color: white;
    padding: 30px 60px;
    margin: 0;
}

footer p {
    color: white;
    margin: 0 0 10px 0;
}

footer a {
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

footer a:hover {
    color: #a8d08d;
}

@media (max-width: 800px) {
    .dishes-grid {
        grid-template-columns: 1fr 1fr;
    }

    nav {
        justify-content: space-between;
    }

    .about-company img {
        width: 500px;
    }

    .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;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
    }

    .about-company img {
        width: 100%;
    }

    table th,
    table td {
        font-size: 14px;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    table th,
    table td {
        font-size: 12px;
    }
}