*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f5f1eb;
    --surface: #ffffff;
    --surface-alt: #1f1f1f;
    --text: #1f1f1f;
    --text-soft: #5c5c5c;
    --text-inverse: #ffffff;
    --border: #e7ddd0;
    --primary: #8c1c13;
    --primary-hover: #a32217;
    --accent: #d4a373;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --container: 1120px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

/* Header */

.site-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}

.site-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.main-nav a,
.language-switcher a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.08);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
}

.language-switcher a {
    color: var(--text-inverse);
    background: transparent;
    padding: 0.2rem 0.35rem;
    min-height: auto;
}

.language-switcher a:hover {
    color: var(--accent);
}

.language-switcher span {
    opacity: 0.65;
}

/* Main */

main.container {
    padding: 2rem 0 3rem;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.15;
}

.hero p {
    margin: 0 0 1rem;
    color: var(--text-soft);
}

.hero p:last-child {
    margin-bottom: 0;
}

/* Forms */

form {
    margin-top: 1.5rem;
}

label {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

input,
select,
textarea,
button {
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 420px;
    padding: 0.8rem 0.95rem;
    border: 1px solid #d7c9b7;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.18);
}

button,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Menu */

.menu-section {
    margin-top: 1.5rem;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.menu-section h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--primary);
}

.menu-items {
    display: grid;
    gap: 0.75rem;
}

.menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee4d8;
}

.menu-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.menu-item:first-child {
    padding-top: 0;
}

.menu-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.menu-item-header h4 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.3;
}

.menu-price {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.menu-description {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    font-size: 0.96rem;
}

/* Dashboard / utility */

.notice,
.alert,
.message {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid #ead8c4;
    background: #fff8ef;
    color: #7a3e12;
}

.hero a {
    color: var(--primary);
}

.hero a:hover {
    color: var(--primary-hover);
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    background: var(--surface-alt);
    color: var(--text-inverse);
}

.site-footer .container {
    padding: 1.25rem 0 2rem;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

/* Responsive */

@media (max-width: 768px) {
    .site-header .container {
        padding: 1.2rem 0;
    }

    .main-nav {
        gap: 0.55rem;
    }

    .main-nav a {
        padding: 0.55rem 0.8rem;
    }

    .menu-item-header {
        flex-direction: column;
        gap: 0.3rem;
    }

    .menu-price {
        white-space: normal;
    }
}
