/* New design over the real app's screens (booking, sign-in, account, menus, cabinet).
   Only colours, fonts, name, buttons, menu and footer: the app's own markup is not edited. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Golos+Text:wght@400;500&display=swap');

html:root { --kv-name: 'KAVELIER'; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Golos Text', system-ui, sans-serif; }
html:root[data-theme=dark]:not(:has(.cabinet-page)) { --page: #0B0B0C; --line: #26262A; --card: #151517; }
html:root[data-theme=light]:not(:has(.cabinet-page)) { --page: #F4F2ED; --card: #FFFFFF; --card-raised: #EAE7DF; --line: #D5D1C7; }

/* name */
.brand-mark { font-size: 0 !important; letter-spacing: 0 !important; padding: 0 !important; }
.brand-mark::after { content: var(--kv-name); font-size: var(--mark-size, 22px); letter-spacing: .42em; margin-right: -.42em; }
@media (max-width: 480px) { .brand-mark::after { font-size: 17px; letter-spacing: .28em; margin-right: -.28em; } }

/* buttons: rounded, spaced capitals, as on the new pages */
.primary-button, .secondary-button, [class$="_primary"], [class*="_primary "], [class*="_bookButton"], [class*="_stickyBook"], [class*="_google"] {
  border-radius: 999px !important; letter-spacing: .14em !important; text-transform: uppercase; font-weight: 500 !important;
}

/* burger inside the app's header */
.kv-burger { position: absolute; top: 50%; margin-top: -22px; z-index: 2; width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.kv-burger i { display: block; width: 26px; height: 1.5px; background: currentColor; }
.kv-burger i:last-child { width: 18px; }
.kv-row { position: relative; }
.kv-start { padding-left: 54px !important; }

/* drawer */
.kv-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.kv-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 910; width: min(380px, 88vw); background: var(--page); color: var(--ink); border-right: 1px solid var(--line); transform: translateX(-102%); visibility: hidden; transition: transform .35s cubic-bezier(.32,.72,0,1), visibility .35s; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 16px 28px 24px; overflow-y: auto; font-family: var(--sans); }
body.kv-open .kv-drawer { transform: none; visibility: visible; }
body.kv-open .kv-scrim { opacity: 1; visibility: visible; }
.kv-top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; margin-bottom: 24px; }
.kv-mark { font-family: var(--serif); font-size: 20px; letter-spacing: .42em; text-transform: uppercase; }
.kv-x { width: 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.kv-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.kv-nav a { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.kv-sub { display: flex; flex-direction: column; margin-top: 22px; }
.kv-sub a { padding: 10px 0; font-size: 16px; color: var(--ink-muted); text-decoration: none; }
.kv-lang { display: flex; gap: 8px; margin-top: 16px; }
.kv-lang button { min-width: 56px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 13px; letter-spacing: .14em; cursor: pointer; }
.kv-lang button[aria-pressed=true] { background: var(--ink); color: var(--page); }
.kv-soc { display: flex; gap: 10px; flex-wrap: wrap; }
.kv-drawer .kv-socbox { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.kv-socbox p { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.kv-soc a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.kv-soc svg { width: 20px; height: 20px; fill: currentColor; }

/* footer: the app's own is replaced by the new one on public pages */
body.kv-footer footer:not(.kv-ft):has(a[href="/privacy"]) { display: none !important; }
.kv-ft { border-top: 1px solid var(--line); background: var(--page); color: var(--ink); font-family: var(--sans); padding: 64px max(20px, 5vw) 40px; }
body:has(.booking-modal) .kv-ft { display: none; }
.kv-ft .kv-mark { font-size: 24px; margin: 0 0 40px; }
.kv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.kv-cols h3 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; }
.kv-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.kv-cols a { color: var(--ink); text-decoration: none; }
.kv-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.kv-end a { color: inherit; }

/* the old bottom bar: its links live in the new menu */
body.kv-footer nav:has(a[href="/account?tab=profile"]):has(a[href="/business"]) { display: none !important; }

/* 44px to press in our footer */
.kv-cols ul { gap: 0; }
.kv-cols li a, .kv-end a { display: inline-flex; align-items: center; min-height: 44px; }
.kv-end { align-items: center; }

/* touch, text, selection, motion */
html { -webkit-tap-highlight-color: transparent; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--ink); color: var(--page); }
html:root[data-theme=dark] input::placeholder, html:root[data-theme=dark] textarea::placeholder { color: #A3A19B !important; opacity: 1; }
:is(.primary-button, .secondary-button, .kv-burger, .kv-x, .kv-lang button):not(:disabled):active { scale: .97; }
:is(.primary-button, .secondary-button) { transition-property: background-color, color, border-color, opacity, scale; transition-duration: .16s; transition-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { .kv-drawer, .kv-scrim { transition: none; } }

/* booking, step 1 before a table is chosen: a lower panel without the "Table: choose a table" line */
@media (max-width: 760px) {
  .booking-modal:has(.booking-tables):has(.booking-bottom .primary-button:disabled) .summary-details { display: none; }
}
/* very low window (200% zoom): until a table is chosen the panel scrolls with the page instead of covering it */
@media (max-height: 520px) {
  .booking-modal:has(.booking-tables):has(.booking-bottom .primary-button:disabled) .booking-summary { position: static; }
}

/* cabinet "today" on a phone: the five numbers in two columns, so new requests are higher */
@media (max-width: 600px) {
  :is([class$="_numbers"], [class*="_numbers "]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  :is([class$="_numbers"], [class*="_numbers "]) > div { padding: 14px 12px 14px 0 !important; }
  :is([class$="_numbers"], [class*="_numbers "]) dt { letter-spacing: .06em; }
  :is([class$="_numbers"], [class*="_numbers "]) dd { font-size: 36px; }
}

/* table list on a phone: a long name ("Столик VIP 101") must not run under the number of seats */
@media (max-width: 600px) {
  .booking-tables section li > button > strong { white-space: normal !important; min-width: 0; }
}

/* table list for a chosen visit: taken, closed and too small tables are left out (the plan still shows them) */
.booking-tables [data-testid="table-list"][data-kv-visit] li:has(> button:is([data-state="taken"], [data-state="small"], [data-state="blocked"], [data-state="unlisted"]):not([aria-pressed="true"])),
.booking-tables [data-testid="table-list"][data-kv-visit] section:not(:has(li > button:is([data-state="free"], [data-state="pending"], [data-state="unknown"], [aria-pressed="true"]))) { display: none; }
.booking-tables [data-testid="table-list"][data-kv-note]::before { content: attr(data-kv-note); display: block; font-size: 14px; line-height: 1.5; opacity: .75; padding: 4px 0 8px; }

/* phone */
@media (max-width: 600px) { .kv-burger { width: 32px; } .kv-start { padding-left: 40px !important; } }


/* one typeface everywhere, no italics; only the KAVELIER wordmark keeps its own */
body *:not(.mark,.mark *,.kv-mark,.brand-mark,svg,svg *) { font-family: 'Golos Text', system-ui, sans-serif !important; font-style: normal !important; }
svg text { font-family: 'Golos Text', system-ui, sans-serif !important; font-style: normal !important; }
h1, h2, h3 { overflow-wrap: break-word; }
/* explanations taken out by kv-i18n.js */
[data-kv-gone] { display: none !important; }