@font-face {
  font-family: Alegreya;
  src: url("../fonts/alegreyasans/AlegreyaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Alegreya;
  src: url("../fonts/alegreyasans/AlegreyaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #faf6ed;
  --surface: #fffdf8;
  --ink: #2e211a;
  --soft: #5c473b;
  --wine: #702e24;
  --wine-dark: #542318;
  --line: #e4d8c8;
  --heading: Georgia, "Times New Roman", serif;
  --width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(155deg, #f4e9d9 0, var(--paper) 34rem);
  font: 500 19px/1.55 Alegreya, system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--wine); text-underline-offset: .18em; }
a:hover { color: var(--wine-dark); }
:focus-visible { outline: 3px solid #be6f44; outline-offset: 4px; }
h1, h2, h3, h4 { line-height: 1.16; }
h1, h2 { font-family: var(--heading); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--wine-dark); margin: 1.65em 0 .55em; }
h3 { margin-top: 1.6em; }
p { margin: 0 0 1em; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1280px;
  padding: 8px clamp(16px, 4vw, 42px);
  margin: auto;
}
.navigation ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 8px; list-style: none; padding: 0; margin: 0; }
.navigation a { display: block; font-size: 1.13rem; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 6px; padding: .42em .58em; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current="page"] { background: #f1e5d7; color: var(--wine-dark); }
.hero { width: 100%; }
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: var(--banner-ratio) / 1;
  object-fit: cover;
  object-position: center var(--banner-focus);
}
.main { width: min(calc(100% - 36px), var(--width)); margin: clamp(24px, 3vw, 40px) auto clamp(44px, 6vw, 78px); overflow-wrap: anywhere; }
.main > :first-child { margin-top: 0; }
.page-title { margin-bottom: .65em; color: var(--wine-dark); }
.page-0 .page-title { text-align: center; }
.main > .page-title + h2 { margin-top: 0; }
.main > p, .reading { max-width: 76ch; }
.page-4, .page-5, .page-6, .page-9 { max-width: 820px; }
.intro { text-align: center; max-width: 750px; margin: 0 auto 34px; }
.intro > p:first-child { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.greeting { color: var(--soft); }
.button, .cookie button {
  display: inline-block;
  background: var(--wine);
  border: 1px solid transparent;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 7px;
  padding: .56em 1.1em;
}
.button:hover, .cookie button:hover { color: white; background: var(--wine-dark); }
.feature { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; margin-block: 30px; }
.photos, .team { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-block: 28px; }
.photos.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.photos.gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
.photo { display: block; overflow: hidden; border-radius: 10px; background: #eadccc; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 200ms ease; }
.photo:hover img { transform: scale(1.025); }
.photos.two img, .feature img { aspect-ratio: 16/10; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.team-card .photo { border-radius: 0; }
.team-card h4, .team-card p { margin: 12px 16px; }
.team-card img { aspect-ratio: 4/5; object-position: top; }
.card-menu, .contact-panel, .contact-form { padding: clamp(18px,4vw,38px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 24px 0 28px; }
.card-menu > :first-child, .contact-panel > :first-child { margin-top: 0; }
.card-menu h2 { margin-top: 0; }
.card-menu details { margin: 12px 0; border: 1px solid var(--line); border-radius: 7px; padding: 0 16px; }
.card-menu summary { padding: 10px 0; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--wine); }
.card-menu details[open] summary { border-bottom: 1px solid var(--line); }
.card-menu h3 { color: var(--wine-dark); }
.dish { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.dish:last-child { border: 0; }
.dish h4, .dish p { margin: 0; }
.dish p { grid-column: 1 / -1; font-size: .96em; color: var(--soft); }
.price { font-weight: 700; white-space: nowrap; }
.contact-form .fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form label { display: block; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: .4em .6em; border-radius: 5px; border: 1px solid #a89684; color: var(--ink); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: 5px; margin: 18px 0; }
.contact-form input[type="checkbox"] { accent-color: var(--wine); width: 1em; height: 1em; }
.counts { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; }
.form-trap { display: none; }
.map { width: 100%; height: 350px; border: 1px solid var(--line); border-radius: 12px; }
.footer { background: #eee1cf; color: var(--ink); border-top: 1px solid var(--line); padding: 38px 18px; }
.footer-inner { max-width: var(--width); margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer a { color: var(--wine-dark); }
.footer-brand { display: grid; justify-items: start; gap: 12px; }
.footer-logo img { width: clamp(192px, 24vw, 248px); height: auto; border-radius: 5px; }
.footer address { font-style: normal; }
.legal, .social { display: flex; gap: 14px; align-items: center; }
.footer .legal { flex-wrap: wrap; }
.social img { width: 52px; height: 52px; object-fit: contain; }
.cookie { position: fixed; z-index: 5; inset: auto 16px 16px auto; width: min(100% - 32px, 530px); max-height: calc(100% - 32px); overflow: auto; padding: 18px 22px; border: 1px solid var(--line); border-top: 4px solid var(--wine); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 40px #2e211a30; font-size: 1rem; }
.cookie p { margin: .4em 0 .75em; }
.lightbox { padding: 12px; border: 0; border-radius: 9px; max-width: 92vw; max-height: 92vh; background: var(--surface); }
.lightbox::backdrop { background: #211913e8; }
.lightbox img { max-height: 81vh; width: auto; object-fit: contain; }
.lightbox button { display: block; margin: 0 0 6px auto; min-width: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1.4; }

@media (max-width: 870px) {
  .photos, .team { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .hero-image { aspect-ratio: auto; }
  .header-inner { padding: 9px 10px; }
  .navigation .navigation-main { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
  .navigation-main li { grid-column: span 2; }
  .navigation-main li:nth-child(n + 4) { grid-column: span 3; }
  .navigation a {
    display: grid; place-items: center; height: 100%; min-height: 44px;
    padding: 5px 4px; white-space: normal; text-align: center; line-height: 1.15;
    font-size: clamp(.99rem, 4vw, 1.13rem); border: 1px solid var(--line);
  }
  .main { width: min(calc(100% - 30px),var(--width)); }
  .feature { grid-template-columns: 1fr; }
  .photos, .team { gap: 9px; }
  .photos.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-form .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .photo img { transition: none; }
}

.admin-page { max-width: 1100px; }
.admin-top, .admin-actions, .admin-row-actions {
  display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center;
}
.admin-top { justify-content: space-between; margin-bottom: 24px; }
.admin-form.compact { max-width: 35rem; }
.admin-form label { display: grid; gap: 3px; font-weight: 700; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea {
  width: 100%; min-width: 0; padding: .35em .55em; border: 1px solid #a89684;
  border-radius: 5px; color: var(--ink); background: white; font: inherit; font-weight: 500;
}
.admin-form textarea { resize: vertical; }
.admin-form > button { margin-top: 12px; }
.admin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, .7fr) minmax(0, .8fr);
  align-items: start; gap: 8px 12px; margin-bottom: 10px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
}
.admin-row .admin-description { grid-column: 1 / 3; }
.admin-row-actions { grid-column: 3 / -1; align-self: end; }
.admin-row-actions label { display: flex; align-items: center; }
.admin-small-button {
  border: 1px solid #a89684; border-radius: 5px; background: var(--surface);
  color: var(--ink); padding: .36em .62em; min-height: 40px;
}
.admin-small-button:disabled { opacity: .45; cursor: default; }
.admin-alert { border-left: 4px solid var(--wine); background: #f4e8d6; padding: 12px 16px; }
.admin-actions { margin-block: 18px; }
@media (max-width: 660px) {
  .admin-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-row .admin-description, .admin-row-actions { grid-column: 1 / -1; }
}
