* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #2c2c2c;
    line-height: 1.6;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

nav a:hover {
    color: tomato;
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    color: tomato;
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    flex: 1 0 auto;
}

/* Sections */
section {
    margin-bottom: 60px;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 30px;
    text-align: center;
}

.about-section {
    text-align: center;
}

.about-section img {
    width: 100%;
    max-width: 1100px;
    height: 450px;
    object-fit: cover;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-section p {
    font-size: 18px;
    font-weight: 400;
    color: #444;
    max-width: 850px;
    margin: 25px auto;
    line-height: 1.9;
}

.advantages-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 12px;
}

.advantages-section ul {
    list-style: none;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 0;
}

.advantages-section li {
    font-size: 18px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 18px;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.advantages-section li::before {
    content: "✓ ";
    color: #8B4513;
    font-weight: 700;
    margin-right: 10px;
}

/* Table */
.popular-dishes-section {
    overflow-x: auto;
}

table {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    border-collapse: collapse;
    border: 2px solid #8B4513;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
}

th {
    padding: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #6B3410;
    font-family: 'Open Sans', sans-serif;
}

td {
    padding: 15px 18px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 17px;
    font-weight: 400;
    color: #2c2c2c;
}

tbody tr:nth-child(even) {
    background-color: #fff9f0;
}

tbody tr:hover {
    background-color: #ffe8cc;
    transition: background-color 0.3s ease;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 35px 20px;
    text-align: center;
    margin-top: 60px;
    flex-shrink: 0;
}

footer p {
    font-size: 18px;
    font-weight: 400;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

footer a {
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFD700;
    transition: color 0.3s ease;
    margin: 0 10px;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Форма обратной связи */
.feedback-section {
    max-width: 700px;
    margin: 0 auto;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    font-family: 'Open Sans', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-group small {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: #f5f5f5;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B4513;
}

.radio-label span {
    font-weight: 400;
    font-size: 16px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8B4513;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Страница входа */
.login-page {
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.login-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #8B4513;
    text-align: center;
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.login-form .form-group input[type="text"],
.login-form .form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.login-form .form-group input[type="text"]:focus,
.login-form .form-group input[type="password"]:focus {
    outline: none;
    border-color: #8B4513;
}

.login-form .checkbox-group {
    margin-top: 15px;
    margin-bottom: 25px;
}

.login-form .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

/* Форма входа на главной странице */
.login-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
}

.login-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.login-form-inline {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-form-inline h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #8B4513;
    text-align: center;
    margin-bottom: 25px;
}

.login-form-inline .form-group {
    margin-bottom: 20px;
}

.login-form-inline .form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.login-form-inline .form-group input[type="text"],
.login-form-inline .form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.login-form-inline .form-group input[type="text"]:focus,
.login-form-inline .form-group input[type="password"]:focus {
    outline: none;
    border-color: #8B4513;
}

.login-form-inline .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
}

/* Адаптивность для главной страницы */

/* ≤800px */
@media (max-width: 800px) {
    nav {
        justify-content: space-between;
    }
    
    .about-section img {
        width: 500px;
        max-width: 100%;
    }
}

/* ≤600px */
@media (max-width: 600px) {
    header h1 {
        text-align: center;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        font-size: 21px;
    }
    
    section h2 {
        text-align: center;
    }
    
    .about-section img {
        width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    td, th {
        font-size: 14px;
        padding: 10px;
    }
}

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

