:root {
  color-scheme: light;
  --espresso: #362b28;
  --ink: #2b221f;
  --cream: #f8e8ca;
  --paper: #f8efe0;
  --light-paper: #fcf5e8;
  --copper: #af8757;
  --rule: #c8b49b;
  --muted: #705d52;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a5602c; outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
.shell { width: min(100% - 100px, 1280px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px; background: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.masthead { background: var(--espresso); color: var(--cream); border-bottom: 1px solid #8b705d; }
.header-inner { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; min-height: 74px; gap: 30px; }
.brand { justify-self: start; padding-block: 12px; }
.brand img { width: clamp(160px,20vw,248px); height: auto; }
.header-inner nav { display: flex; align-items: center; gap: clamp(20px,4vw,56px); }
.header-inner nav a { font-size: 13px; font-weight: 500; padding-block: 12px; }
.header-inner nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 49px; padding: 11px 22px; border: 1px solid transparent; font-weight: 600; font-size: 13px; transition: background .18s ease, color .18s ease; }
.button-outline { justify-self: end; min-height: 40px; color: var(--cream); border-color: #b49a7e; background: transparent; }
.button-outline:hover { background: var(--cream); color: var(--espresso); }
.button-light { background: var(--cream); color: var(--ink); }
.button-light:hover:not(:disabled) { background: #fff4de; }
.button-light:disabled { background: #68574d; color: #e4d4c2; }
.button-dark { background: var(--espresso); color: var(--cream); }
.button-dark:hover { background: #503b30; }

.hero { background: #251912; color: #fff1d7; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #20150feb 0, #24170da3 28%, #23170d2e 59%, transparent 85%), url("./assets/dining.webp") center 56% / cover no-repeat; }
.hero-inner { min-height: clamp(465px, 43vw, 640px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 42px 64px; }
.hero h1 { font-size: clamp(65px,7.1vw,116px); line-height: .88; letter-spacing: -.045em; }
.hero p { font-size: clamp(15px,1.6vw,21px); margin-top: 23px; }
.hero-line { width: 53px; height: 1px; background: var(--cream); margin: 27px 0 23px; }
.hero .button { min-height: 55px; min-width: 207px; justify-content: space-between; }

.framed { border-top: 6px double var(--espresso); position: relative; }
.framed::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -4px; width: 14px; height: 14px; background: var(--paper); border: 3px double #8e613f; transform: translate(-50%, -50%) rotate(45deg); }
.booking, .menu { padding: 43px 0 58px; }
.section-title { display: flex; align-items: center; justify-content: center; gap: clamp(16px,3.4vw,48px); text-align: center; line-height: .95; letter-spacing: -.034em; font-size: clamp(46px,6.2vw,92px); margin-bottom: 30px; }
.section-title::before, .section-title::after { content: ""; height: 1px; flex: 1; max-width: 230px; background: linear-gradient(90deg, transparent, var(--copper)); }
.section-title::after { transform: rotate(180deg); }
.booking-toolbar, .calendar-head, .floor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.booking-toolbar { border-bottom: 1px solid var(--rule); margin-bottom: 23px; }
.hall-tabs, .menu-tabs { display: flex; align-items: center; gap: 6px; }
.hall-tabs button, .menu-tabs button { background: transparent; border: 0; font-size: 13px; font-weight: 600; min-height: 45px; padding: 8px 17px; white-space: nowrap; }
.hall-tabs button[aria-pressed="true"], .menu-tabs button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }
.hall-tabs button:hover:not([aria-pressed="true"]), .menu-tabs button:hover:not([aria-pressed="true"]) { background: #ebdbc4; }
.demo-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.calendar-head { margin-bottom: 13px; }
.calendar-head > div:first-child { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.calendar-head h3, .floor-head h3 { font-size: 34px; line-height: 1; }
.calendar-head h3::first-letter { text-transform: uppercase; }
.calendar-head p, .floor-head p { color: var(--muted); font-size: 11px; font-weight: 600; }
.week-controls { display: flex; gap: 6px; }
.week-controls button, .close-dialog { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--rule); background: transparent; }
.week-controls button:hover:not(:disabled), .close-dialog:hover { background: #efdec4; }
.week-controls button:disabled { color: #8d7c6e; border-color: #dacebc; }
.dates { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.dates button { border: 1px solid var(--rule); background: transparent; text-align: left; padding: 11px 13px; min-height: 104px; display: grid; align-content: center; gap: 4px; }
.dates button:hover:not(:disabled):not([aria-pressed="true"]) { background: #eddec8; }
.dates button[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: var(--cream); }
.dates button:disabled { opacity: .68; }
.weekday { text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.day-number { font: 600 clamp(20px,2.25vw,34px)/.92 var(--display); }
.date-counts { font-size: clamp(9px,1vw,12px); font-weight: 500; white-space: nowrap; margin-top: 3px; }
.meter { display: block; height: 4px; margin-top: 5px; background: #dfceb8; }
.meter::after { content: ""; display: block; width: var(--occupancy); height: 100%; background: #9a6748; }
.dates button[aria-pressed="true"] .meter { background: #6f5c4e; }
.dates button[aria-pressed="true"] .meter::after { background: var(--cream); }
.dates button:disabled .meter::after { display: none; }

.booking-grid { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(272px, 1fr); gap: 26px; margin-top: 26px; align-items: stretch; }
.floor-head { margin-bottom: 11px; }
.floor { position: relative; aspect-ratio: 2.05; border: 7px solid #574233; outline: 1px solid #7d5e45; outline-offset: -9px; isolation: isolate; overflow: clip; background-color: #e4ceb2; background-image: linear-gradient(#a47d591e 1px, transparent 1px), linear-gradient(90deg,#a47d591e 1px, transparent 1px), radial-gradient(ellipse at 52% 58%, #f3e3ce, #dcbe9b); background-size: 5% 10%, 5% 10%, 100%; }
.floor[data-hall="garden"] { background-color: #d9d9c0; background-image: linear-gradient(90deg,transparent 43%,#e8d9be 44% 56%,transparent 57%), radial-gradient(ellipse,#e9e6ce,#bfc3a6); }
.floor[data-hall="garden"] { background-size: 100%; }
.floor-art, .floor-tables { position: absolute; inset: 0; }
.floor-art::before { content: var(--landmark); position: absolute; display: grid; place-items: center; top: 0; left: 43%; width: 14%; min-width: 48px; height: 11%; min-height: 18px; background: #705743; color: #fff1df; font-size: clamp(8px,1vw,11px); font-weight: 600; letter-spacing: .055em; border-radius: 0 0 3px 3px; box-shadow: 0 2px 5px #3c2b2033; }
.floor-art::after { content: "Вход"; text-transform: uppercase; position: absolute; bottom: 0; left: 45%; width: 10%; min-width: 40px; height: 6%; display: grid; place-items: center; border: 1px solid #876e57; border-bottom: 0; color: #584134; font-size: clamp(7px,0.85vw,10px); font-weight: 700; letter-spacing: .03em; }
.floor::before, .floor::after { content: ""; position: absolute; left: 8%; width: 30%; border: solid #8f7359; border-width: 0 1px; height: 4px; background: repeating-linear-gradient(90deg,#a98a68 0px 1px,#f9e7c9 1px 41px); top: 0; box-shadow: 0 1px 1px #70584933; }
.floor::after { left: auto; right: 8%; }
.table { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 12%; aspect-ratio: 1; max-width: 91px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.table.rect { width: 14%; max-width: 106px; aspect-ratio: 1.4; }
.table.cabin { width: 18%; max-width: 124px; aspect-ratio: 1.5; }
.table-top { position: relative; z-index: 1; display: grid; align-content: center; width: 73%; height: 73%; line-height: 1; aspect-ratio: 1; border-radius: 50%; border: 1px solid #8a7258; background: #f9e8ca; box-shadow: 0 2px 6px #33281940, inset 0 0 12px #b5936430; }
.table-top b { font: 600 clamp(19px,2vw,31px)/.9 var(--display); }
.table-top small { font-size: clamp(6px,.7vw,9px); font-weight: 700; margin-top: 3px; }
.table.rect .table-top, .table.cabin .table-top { border-radius: 3px; width: 90%; height: 70%; }
.table.cabin .table-top { outline: 3px double #927b5e; outline-offset: 2px; }
.chairs { position: absolute; width: 77%; height: 79%; pointer-events: none; }
.table.rect .chairs { width: 100%; height: 76%; }
.chairs i { position: absolute; width: 29%; height: 29%; border-radius: 23%; transform: translate(-50%, -50%) rotate(var(--rotation)); border: 1px solid #41513d; background: #526249; box-shadow: inset 0 0 0 2px #86906f55, 0 2px 3px #2b221f50; }
.table.rect .chairs i { width: 17%; height: 30%; }
.table.busy .table-top { background: #b89584; color: #291d18; border-color: #937261; }
.table.busy .chairs i { background: #997768; border-color: #7c5b4c; }
.table.small .table-top { background: #e0d4c4; color: #594b41; border-color: #ac9a86; box-shadow: none; }
.table.small .chairs i { background: #ac9b87; border-color: #9e8d7c; box-shadow: none; }
.table.chosen .table-top { background: #8a5033; color: #fff2de; border-color: #fff3db; outline: 1px solid #8a5033; outline-offset: 2px; }
.table.free:hover .table-top { background: #fff3da; border-color: #54472e; outline: 1px solid #54472e; outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 17px; margin: 13px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border: 1px solid #917758; background: #f9e8ca; border-radius: 50%; }
.legend i.busy { background: #b89584; }
.legend i.chosen { background: #8a5033; }
.legend i.small { background: #e0d4c4; }

.summary { margin-top: 0; padding: 24px clamp(16px,2.5vw,34px); background: var(--espresso); color: #f6e5cd; display: flex; flex-direction: column; justify-content: center; }
.summary h3 { font-size: clamp(32px,3.1vw,46px); line-height: 1; margin-bottom: 13px; }
.summary-rows { margin: 0 0 19px; border-top: 1px solid #826d5b; }
.summary-rows > div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #826d5b; }
.summary-rows dt { color: #dec7af; font-size: 12px; font-weight: 500; }
.summary-rows dd { margin: 0; font-size: 12px; text-align: right; font-weight: 600; }
.summary-rows select { color-scheme: dark; background: var(--espresso); border: 0; color: #f6e5cd; min-height: 39px; padding: 3px; text-align: right; font-size: 12px; font-weight: 600; }
.summary .button { width: 100%; justify-content: space-between; gap: 8px; }
.summary-note { font-size: 11px; line-height: 1.5; color: #dec7af; margin-top: 11px; }
.text-button { border: 0; padding: 8px 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 12px; }
.summary .text-button { align-self: flex-start; margin-top: 6px; }

.menu { background: var(--light-paper); }
.menu-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.menu-top .section-title { margin-bottom: 0; text-align: left; }
.menu-top .section-title::before, .menu-top .section-title::after { display: none; }
.menu-tools { width: min(100%, 324px); }
.menu-tools label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.menu-filter { display: none; }
.menu-search-input { position: relative; }
.menu-search-input svg { position: absolute; top: 11px; left: 12px; color: var(--muted); pointer-events: none; }
.menu-search input, .menu-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--light-paper);
  color: var(--ink);
  font: 500 14px var(--body);
}
.menu-search input { padding: 7px 12px 7px 39px; }
.menu-search input::placeholder { color: var(--muted); opacity: 1; }
.menu-filter select { padding: 7px 10px; }
.menu-tabs { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 24px; gap: 3px; border-bottom: 1px solid var(--rule); }
.menu-tabs button { padding-inline: clamp(9px,1.2vw,17px); }
.menu-grid { --menu-photo-share: .68fr; }
.menu-grid { display: grid; grid-template-columns: minmax(0,var(--menu-photo-share)) minmax(0,1fr); gap: clamp(24px,4vw,60px); align-items: start; }
.menu-photo { position: relative; overflow: hidden; min-width: 0; background: #9a7458; }
.menu-photo img { width: 100%; height: auto; aspect-ratio: 1.08; max-height: 520px; object-fit: cover; object-position: 50% 58%; }
.menu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 9px; }
.menu-heading h3 { font-size: clamp(35px,4.1vw,58px); line-height: .95; }
.menu-heading span, .menu-note, .menu-results, .menu-item-section { color: var(--muted); font-size: 11px; font-weight: 500; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { display: grid; grid-template-columns: 1fr auto minmax(55px,auto); align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding: 14px 0; }
.menu-list h4 { color: var(--ink); font-weight: 600; font-size: 15px; }
.menu-list p { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 4px; }
.menu-list .grams { color: var(--muted); font-size: 11px; white-space: nowrap; }
.menu-list strong { text-align: right; white-space: nowrap; font-size: 14px; }
.menu-results { margin-top: 12px; min-height: 16px; }
.menu-item-section { display: block; margin-bottom: 4px; }
.menu-empty { padding: 22px 0 8px; }
.menu-empty p { color: var(--muted); line-height: 1.55; }
.menu-more { margin-top: 17px; min-height: 44px; background: transparent; border-color: var(--rule); }
.menu-more:hover { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.menu [hidden] { display: none; }
.menu-note { margin-top: 12px; line-height: 1.55; }

.footer { background: var(--espresso); color: var(--cream); border-top: 6px double var(--cream); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; gap: 25px; }
.footer-inner img { width: min(250px,48vw); height: auto; }
.footer address { display: grid; gap: 8px; font: inherit; font-size: 12px; text-align: right; }
.footer-pattern { height: 29px; background: url("./assets/pattern.png") repeat-x center / 85.5px 85.5px; opacity: .42; }

dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100% - 32px); padding: 34px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
dialog::backdrop { background: #241911aa; }
.close-dialog { position: absolute; top: 13px; right: 13px; }
dialog h2 { font-size: clamp(36px,5vw,48px); line-height: .98; margin: 5px 30px 16px 0; }
dialog h2:focus { outline: 0; }
dialog p { font-size: 14px; line-height: 1.5; }
.dialog-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
dialog .button { margin-top: 20px; }
.reservation-list { list-style: none; padding: 0; margin: 0; }
.reservation-list li { border-top: 1px solid var(--rule); padding: 12px 0 4px; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 56px); }
  .header-inner { gap: 22px; }
  .header-inner nav { gap: 20px; }
  .dates button { padding: 9px 7px; min-height: 91px; }
  .booking-grid { grid-template-columns: minmax(0,1.75fr) minmax(235px,1fr); gap: 16px; }
  .floor { aspect-ratio: 1.5; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 7px; }
  .brand img { width: min(188px,44vw); }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: 29px; }
  .header-inner nav a { padding-block: 10px; font-size: 12px; }
  .button-outline { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .hero::before { background-position: center, 56% 54%; }
  .hero-inner { min-height: 430px; padding-block: 44px 48px; }
  .hero h1 { font-size: clamp(52px,12.5vw,77px); }
  .hero-line { margin: 21px 0 19px; }
  .hero p { margin-top: 17px; }
  .hero .button { min-width: 183px; min-height: 49px; }
  .booking, .menu { padding-block: 35px 44px; }
  .section-title { font-size: clamp(44px,9vw,66px); gap: 9px; margin-bottom: 21px; }
  .section-title::before, .section-title::after { min-width: 5px; }
  .booking-toolbar { flex-wrap: wrap; gap: 8px; padding-bottom: 9px; margin-bottom: 16px; }
  .hall-tabs { gap: 2px; width: 100%; }
  .hall-tabs button { flex: 1; padding-inline: 5px; min-height: 41px; font-size: 11px; }
  .calendar-head > div:first-child { gap: 6px 10px; }
  .calendar-head h3, .floor-head h3 { font-size: 31px; }
  .dates { gap: 5px; }
  .dates button { min-height: 79px; padding: 6px 3px; text-align: center; }
  .weekday { font-size: 8px; letter-spacing: 0; }
  .day-number { font-size: clamp(14px,4vw,18px); white-space: nowrap; }
  .date-counts { font-size: 8px; line-height: 1.2; white-space: normal; }
  .meter { margin-top: 2px; height: 3px; }
  .booking-grid { grid-template-columns: 1fr; gap: 19px; margin-top: 21px; }
  .floor { border-width: 5px; outline-offset: -7px; aspect-ratio: 1.48; }
  .floor-head p { text-align: right; font-size: 10px; }
  .floor .table { min-width: 39px; }
  .table-top b { font-size: 19px; }
  .table-top small { font-size: 7px; }
  .summary { padding: 22px; }
  .summary-rows dt, .summary-rows dd, .summary-rows select { font-size: 13px; }
  .legend { gap: 7px 11px; font-size: 10px; }
  .menu-top { display: block; margin-bottom: 22px; }
  .menu-tools { display: grid; gap: 12px; width: 100%; margin-top: 17px; }
  .menu-search input, .menu-filter select { font-size: 16px; }
  .menu-filter { display: block; }
  .menu-tabs, .menu-photo { display: none; }
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .menu-heading span { max-width: 12ch; text-align: right; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 25px; }
  .footer address { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.hero-caption { position: absolute; right: max(18px, calc((100% - 1280px) / 2)); bottom: 13px; background: #362b28df; color: #fff1d7; font-size: 10px; padding: 5px 8px; }
.dates button[aria-current="date"] .weekday::after { content: " · сегодня"; }
.day-number b { font-weight: inherit; }
.dates .past-slot .meter::after { display: none; }
.table.busy .table-top { background-image: repeating-linear-gradient(-45deg, transparent 0 6px, #47322617 6px 7px); }
.table.small .table-top { border-style: dashed; }
.table-top small { white-space: nowrap; }

@media (max-width: 700px) {
  .dates button[aria-current="date"] .weekday::after { content: none; }
  .day-number { font-size: 21px; }
  .day-number span { display: none; }
  .date-counts > span { display: block; white-space: nowrap; }
  .date-counts > .count-divider { display: none; }
  .hero-caption { font-size: 9px; }
}
