/* Боулинг-клуб «Авиатор»: общий стиль сайта (вариант E, шрифты Dela Gothic One + Onest). */

@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/dela-gothic-one-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/dela-gothic-one-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1D1B2F;
  --muted: #5B5A6E;
  --faint: #B5B4C2;
  --red: #E63B2E;
  --red-text: #D12F23;
  /* under white text: 5:1 contrast, --red alone gives 4.2:1 */
  --red-fill: #D12F23;
  --red-shadow: rgba(230, 59, 46, .25);
  --vip: #FFC93C;
  --vip-soft: #FFF1C9;
  --bg: #FFFFFF;
  --bg2: #F1F3F8;
  --ph: #E4E6EE;
  --line: #ECEDF2;
  --border: #DDE0EA;
  --display: 'Dela Gothic One', 'Arial Black', sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 5.6vw, 80px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.cap { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.dg { font-family: var(--display); font-weight: 400; }
.muted { color: var(--muted); }
.price { font-family: var(--display); color: var(--red-text); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* the parts the browser draws carry the palette too */
::selection { background: var(--vip); color: var(--ink); }
input, textarea { caret-color: var(--red); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* prices, times and dates line up in columns */
.price, .day, .slot, .lane, .bsum, .ptable, .tier b, .contacts__phone, .footer__phone, .header__phone { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--red-fill); color: #fff; box-shadow: 0 8px 20px var(--red-shadow); }
.btn--primary:hover { background: #B8281E; }
.btn--secondary { border-color: var(--border); background: #fff; color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.btn--sm { min-height: 36px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--border); font-weight: 600; font-size: 15px; background: #fff; white-space: nowrap; }
.pill[aria-current="true"], .pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.logo { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
.logo span { color: var(--red); }
.nav { flex: 1; display: flex; justify-content: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { color: var(--red-text); font-weight: 700; border-bottom-color: var(--red); }
.header__phone { font-weight: 600; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  align-items: center; justify-content: center; margin-left: auto; }
.drawer { display: none; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--bg2); color: var(--muted); font-size: 15px; }
.footer__in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; }
.footer .logo { font-size: 20px; color: var(--ink); }
.footer__phone { color: var(--ink); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; width: 100%; }
/* footer links and the phone are tap targets, not just text */
.footer__links a, .footer__phone { display: inline-flex; align-items: center; min-height: 32px; }
.footer__links a:hover { color: var(--ink); }

/* mobile «Забронировать» bar */
.bookbar { display: none; }

/* ------------------------------------------------------------------ sections */
.section { padding-top: 64px; }
.section:last-of-type { padding-bottom: 64px; }
.section__title { font-size: 44px; margin-bottom: 24px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head .section__title { margin: 0; }
.loading { color: var(--muted); padding: 24px 0; }
.error-box { background: #FDECEA; color: var(--red-text); border-radius: 16px; padding: 16px 20px; font-weight: 600; }

/* ------------------------------------------------------------------ hero (home) */
.hero { padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__hours { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__title { font-size: clamp(44px, 6.4vw, 92px); line-height: .95; letter-spacing: -.02em; }
.hero__sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 600px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero__art { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.ball { width: 320px; height: 320px; border-radius: 50%; background: var(--red); border: 4px solid var(--ink);
  box-shadow: 0 0 0 36px var(--vip-soft); position: relative; flex-shrink: 0; }
.ball i { position: absolute; border-radius: 50%; background: var(--ink); }
.ball i:nth-child(1) { left: 37.5%; top: 23.75%; width: 8.75%; height: 8.75%; }
.ball i:nth-child(2) { left: 51.9%; top: 20.6%; width: 8.75%; height: 8.75%; }
.ball i:nth-child(3) { left: 48.75%; top: 36.25%; width: 7.5%; height: 7.5%; }
.hero__badge { position: absolute; right: 10px; top: 16px; background: var(--vip); font-family: var(--display);
  padding: 10px 16px; border-radius: 999px; font-size: 15px; transform: rotate(6deg); white-space: nowrap; }

/* ------------------------------------------------------------------ booking (home) */
.booking { background: var(--bg2); border-radius: 24px; padding: 36px; }
/* the room the schedule takes, kept while it loads so the sections below do not jump */
.booking:has(> .loading) { min-height: 340px; }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.bstep { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bstep > .cap { color: var(--muted); }
.bstep__note { font-size: 13px; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 13px; }
.day { padding: 8px 0; border-radius: 12px; background: #fff; border: 0; line-height: 1.3; }
.day b { display: block; font-size: 16px; }
.day:disabled { color: var(--faint); cursor: default; }
.day.is-on { background: var(--red-fill); color: #fff; }
.otherday { display: flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 13px; color: var(--muted); }
.otherday__value { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: #fff; color: var(--ink); }
.bcalendar { width: 100%; max-width: 340px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.bcalendar__head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.bcalendar__head button { width: 36px; height: 36px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: var(--bg2); font-size: 24px; }
.bcalendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.bcalendar__days > span { padding: 4px 0; font-size: 12px; color: var(--muted); }
.bcalendar__days button { min-width: 0; min-height: 36px; padding: 4px 0; border: 0; border-radius: 9px; background: transparent; font-size: 14px; }
.bcalendar button:disabled { color: var(--faint); cursor: default; }
.bcalendar__days button:not(:disabled):hover { background: var(--bg2); }
.bcalendar__days button[aria-pressed="true"]:not(:disabled) { background: var(--red-fill); color: #fff; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto;
  padding-right: 2px; font-weight: 600; font-size: 14px; text-align: center; }
.slot { padding: 10px 0; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.slot:disabled { color: var(--faint); background: transparent; cursor: default; }
.slot.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dur select { min-height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 8px; background: #fff; color: var(--ink); font-weight: 700; }
.lanes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; height: 140px; }
.lane { border-radius: 8px; border: 1px solid var(--border); background: #fff; display: flex; align-items: flex-end;
  justify-content: center; padding: 0 0 8px; font-weight: 700; position: relative; }
.lane--vip { background: var(--vip); border-color: var(--vip); }
.lane:disabled { background: var(--ph); border-color: var(--ph); color: var(--faint); font-weight: 400; cursor: default; }
.lane.is-on { background: var(--red-fill); border-color: var(--red-fill); color: #fff; font-weight: 800; }
.lane__bumpers { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); pointer-events: none; }
.lane-bumpers-note { display: flex; align-items: flex-start; gap: 7px; }
.lane-bumpers-note svg { flex-shrink: 0; margin-top: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bsum { border-left: 1px solid var(--border); padding-left: 28px; }
.bsum__when { font-size: 15px; color: var(--muted); }
.bsum__total { font-family: var(--display); font-size: 40px; line-height: 1.1; }
.bsum__total--none { color: var(--faint); }
.bform { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field textarea { min-height: 48px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
  background: #fff; font-size: 16px; font-weight: 400; color: var(--ink); }
.field--wide { grid-column: span 2; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent a { color: var(--red); text-decoration: underline; }
.legal p { margin: 0 0 14px; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex-shrink: 0; }
.bform__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bform__note { grid-column: 1 / -1; margin: 0; }
.bdone { margin-top: 28px; padding: 24px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.bdone h3 { font-size: 28px; }
.bnotify { margin-top: 8px; padding: 16px; border-radius: 14px; background: var(--bg2); display: flex; flex-direction: column; gap: 10px; }
.bnotify__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bnotify__btns .btn { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.bnotify__btns [data-messenger="telegram"] { background: #087CAF; color: #fff; }
.bnotify__btns [data-messenger="max"] { background: linear-gradient(135deg, #2468D8, #7544D5); color: #fff; }
.bnotify__btns .btn:hover { filter: brightness(.94); }
.bsum__prepay { font-size: 15px; }
.bsum .btn { width: 100%; }
.bchange { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* the guest's booking: status, prepayment details */
.booking > div > .bstatus { margin-top: 0; }
.bstatus__tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg2); }
.bstatus--hold .bstatus__tag { background: var(--vip); }
.bstatus--confirmed .bstatus__tag, .bstatus--completed .bstatus__tag { background: #DDF3E4; color: #1F7A3E; }
.bstatus--cancelled .bstatus__tag, .bstatus--expired .bstatus__tag, .bstatus--no_show .bstatus__tag { background: #FDECEA; color: var(--red-text); }
.bstatus.bstatus--topup .bstatus__tag { background: var(--vip); color: var(--ink, #1D1B2F); }
.bnote { padding: 12px 14px; border-left: 4px solid var(--vip); background: var(--bg2); border-radius: 8px; line-height: 1.45; }
.bpay { margin: 8px 0; padding: 20px; border-radius: 16px; background: var(--vip-soft); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bpay__sum { display: flex; flex-direction: column; }
.bpay__sum b { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; }
.bpay__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bpay__row span { color: var(--muted); font-size: 14px; }
.bmine { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bmine:empty { display: none; }
.bmine__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 20px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--border); }
.bmine__row:hover { border-color: var(--ink); }
.bmine__row--hold { border-color: var(--vip); background: var(--vip-soft); }
.bmine__status { font-weight: 700; }

/* ------------------------------------------------------------------ promotions */
.promos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.promo { grid-column: span 2; border-radius: 24px; background: var(--vip-soft); overflow: hidden; display: flex; flex-direction: column; }
.promo__photo { width: 100%; height: 220px; object-fit: cover; }
.promo__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.promo h3 { font-size: 32px; line-height: 1.1; }
.promo__text { line-height: 1.5; color: #3E3C52; }
.promo__text ul { margin: 6px 0 0; padding-left: 20px; }
.promo__cond { font-size: 14px; color: var(--muted); }
.promo .btn { align-self: flex-start; margin-top: auto; }
.promo--tiers { grid-column: span 3; background: var(--red-fill); color: #fff; }
.promo--tiers .promo__body { padding: 36px; gap: 18px; }
.promo--tiers h3 { font-size: 44px; }
.promo--tiers .promo__text { color: #fff; font-size: 17px; max-width: 560px; }
.promo--tiers .promo__cond { color: rgba(255, 255, 255, .85); }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tier { background: #fff; color: var(--ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tier b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--red); line-height: 1.1; }
.tier span { font-size: 14px; line-height: 1.35; }
.tier--top { background: var(--vip); }
.tier--top b { color: var(--ink); }

/* ------------------------------------------------------------------ services (home) */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service { border-radius: 20px; background: var(--bg2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.service h3 { font-size: 24px; }
.service__photo { width: calc(100% + 48px); max-width: none; align-self: auto; height: 200px; margin: -24px -24px 4px; object-fit: cover; border-radius: 20px 20px 0 0; background: var(--ph); }
.service__summary { color: var(--muted); line-height: 1.45; }
.service__prices { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; }
.service__prices li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }
.service__prices b { white-space: nowrap; }

/* ------------------------------------------------------------------ menu cards and lists */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { border-radius: 18px; background: var(--bg2); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.card__photo { width: 100%; height: 170px; object-fit: contain; background: #fff; }
.card__nophoto { height: 170px; background: var(--ph); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-weight: 700; line-height: 1.3; }
.card__desc { font-size: 14px; line-height: 1.4; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 4px; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--vip); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.soldout { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line); padding: 3px 8px; border-radius: 999px; }
.is-soldout .card__photo, .is-soldout .row__photo { filter: grayscale(1); opacity: .6; }
.is-soldout .price { color: var(--faint); }

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rows--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.row--top { align-items: flex-start; padding: 16px 0; gap: 20px; }
.row__photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--ph); }
.row__photo--contain { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row__name { font-weight: 600; }
.row--top .row__name { font-weight: 700; font-size: 17px; }
.row__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.row__price { font-weight: 700; white-space: nowrap; text-align: right; }
.row__price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.row--top .row__price { font-family: var(--display); font-weight: 400; color: var(--red-text); }

.ptable { width: 100%; border-collapse: collapse; font-size: 16px; }
.ptable th { text-align: right; padding: 8px 0 8px 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ptable th:first-child { text-align: left; padding-left: 0; }
.ptable td { padding: 12px 0 12px 12px; border-top: 1px solid var(--line); text-align: right; font-weight: 700; white-space: nowrap; vertical-align: top; }
.ptable td:first-child { text-align: left; padding-left: 0; font-weight: 600; white-space: normal; }
.ptable td:first-child small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.ptable .none { color: var(--faint); font-weight: 400; }
.ptable__note { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------------ menu page */
.ptitle { padding-top: 48px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.ptitle__text { display: flex; flex-direction: column; gap: 14px; }
.ptitle h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.crumbs { color: var(--muted); font-size: 14px; font-weight: 500; }
/* the way back is a real target: 24 px tall at least, the underline marks it as a link */
.crumbs a { display: inline-block; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--border);
  text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-layout { display: flex; gap: 48px; align-items: flex-start; }
.aside { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; background: var(--bg2); border-radius: 20px;
  padding: 16px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.aside > .cap { color: var(--muted); padding: 8px 12px; }
.aside a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; }
.aside a span { color: var(--muted); }
.aside a:hover { background: #fff; }
.aside a.is-on { background: var(--red-fill); color: #fff; font-weight: 700; }
.aside a.is-on span { color: #fff; }
.chips { display: none; }
.menu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.msec__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.msec__head h2 { font-size: 36px; }
.msec__head h2 + span { color: var(--muted); }
.msec--rows .msec__head, .msec--table .msec__head { margin-bottom: 8px; }
.pair { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 56px 40px; }
.cta-box { border-radius: 20px; border: 1.5px dashed var(--border); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.cta-box b { font-size: 18px; }

/* ------------------------------------------------------------------ contacts (home) */
.contacts { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.contacts__card { background: var(--bg2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.contacts__group { display: flex; flex-direction: column; gap: 6px; }
.contacts__group > .cap { color: var(--muted); }
.contacts__addr { font-size: 18px; font-weight: 600; line-height: 1.4; }
.contacts__phone { font-family: var(--display); font-size: 26px; }
.hours { display: grid; grid-template-columns: 80px minmax(0, 1fr); row-gap: 6px; }
.hours span { color: var(--muted); }
.hours .off { color: var(--red-text); }
.contacts__note { font-size: 14px; line-height: 1.45; color: var(--muted); }
.socials { display: flex; gap: 10px; margin-top: auto; }
.socials .btn { flex: 1; }
.map { position: relative; border-radius: 24px; overflow: hidden; background: #EEF0F4; min-height: 520px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__label { position: absolute; left: 24px; top: 24px; background: #fff; border-radius: 16px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 20px rgba(29, 27, 47, .10); max-width: calc(100% - 48px); }
.map__label span { font-size: 14px; color: var(--muted); }
.map__buttons { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.map__buttons .btn--secondary { border-color: #fff; box-shadow: 0 6px 20px rgba(29, 27, 47, .10); }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1180px) {
  .booking:has(> .loading) { min-height: 960px; }
  .nav { gap: 18px; }
  .header__in { gap: 24px; }
  .header__phone { display: none; }
  .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsum { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rows--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promos { grid-template-columns: 1fr; }
  .promo, .promo--tiers { grid-column: auto; }
  .contacts { grid-template-columns: 1fr; }
  .map { min-height: 420px; }
}

/* ------------------------------------------------------------------ header menu behind the burger */
/* Four sections, phone and the button do not fit in one row below 1024 px. */
@media (max-width: 1023px) {
  .nav { display: none; }
  .logo { margin-right: auto; }
  .burger { display: inline-flex; }
  /* A backdrop-filter makes the header the containing block for fixed children.
     Anchor the panel below the header instead of stretching it inside that block. */
  .drawer { display: none; position: absolute; inset: 100% 0 auto; z-index: 19; background: #fff; padding: 16px;
    max-height: calc(100vh - var(--header-h) - 96px); max-height: calc(100dvh - var(--header-h) - 96px);
    overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(29, 27, 47, .08); }
  .drawer.is-open { display: flex; flex-direction: column; gap: 4px; }
  .drawer a { padding: 14px 4px; font-size: 20px; font-family: var(--display); border-bottom: 1px solid var(--line); }
  .drawer a[aria-current="page"] { color: var(--red-text); }
  .drawer__phone { margin-top: 16px; font-family: var(--body) !important; font-weight: 700; font-size: 18px !important; border: 0 !important; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; padding-bottom: 76px; }
  .logo { font-size: 18px; }
  .header__book { display: none; }

  .bookbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px 14px;
    background: #fff; border-top: 1px solid var(--border); align-items: center; gap: 12px; }
  .bookbar span { flex: 1; font-size: 14px; color: var(--muted); line-height: 1.35; }
  .bookbar b { color: var(--ink); }
  /* the fixed bar must not cover the end of the page */
  body.has-bookbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .section { padding-top: 32px; }
  .section:last-of-type { padding-bottom: 32px; }
  .section__title { font-size: 28px; margin-bottom: 14px; }
  .section__head { margin-bottom: 14px; }
  .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .btn--lg { min-height: 52px; }

  .hero { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding-top: 22px; align-items: start; }
  .hero__text { display: contents; }
  .hero__title { grid-column: 1; font-size: 34px; align-self: center; }
  .hero__art { grid-column: 2; grid-row: 1; height: 96px; }
  .hero__hours { grid-column: 1 / -1; font-size: 14px; }
  .ball { width: 76px; height: 76px; border-width: 3px; box-shadow: 0 0 0 10px var(--vip-soft); }
  .hero__badge { display: none; }
  .hero__sub { grid-column: 1 / -1; font-size: 15px; }
  .hero__buttons { grid-column: 1 / -1; }
  .hero__buttons .btn { flex: 1; }

  .booking { padding: 18px; border-radius: 20px; }
  .booking__grid { grid-template-columns: 1fr; gap: 22px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lanes { gap: 5px; height: 100px; font-size: 13px; }
  .bsum__total { font-size: 32px; }
  .bform { grid-template-columns: 1fr; gap: 14px; }
  .field--wide { grid-column: auto; }
  .bform__actions .btn { flex: 1; }
  .bchange .btn, .bpay .btn--lg { width: 100%; white-space: normal; text-align: center; }
  .bpay__sum b { font-size: 30px; }

  .promo__body { padding: 20px 16px; }
  .promo h3 { font-size: 24px; }
  .promo--tiers .promo__body { padding: 20px 16px; gap: 12px; }
  .promo--tiers h3 { font-size: 28px; }
  .promo--tiers .promo__text { font-size: 14px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tier { padding: 10px 12px; border-radius: 12px; }
  .tier b { font-size: 18px; }
  .tier span { font-size: 13px; }
  .promo .btn { align-self: stretch; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card__photo, .card__nophoto { height: 110px; }
  .card__body { padding: 10px 12px 12px; gap: 4px; }
  .card__name { font-size: 15px; }
  .card__desc { display: none; }
  .rows, .rows--3 { grid-template-columns: 1fr; }
  .row { padding: 10px 0; gap: 12px; }
  .row--top { padding: 12px 0; gap: 12px; }
  .row__photo { width: 56px; height: 56px; }
  .row--top .row__name { font-size: 15px; }
  .row__desc { font-size: 13px; }
  .row--top .row__price { font-family: var(--body); font-weight: 700; color: var(--ink); }
  .ptable { font-size: 15px; }
  .ptable th { font-size: 12px; padding-left: 8px; }
  .ptable td { padding-left: 8px; }

  .ptitle { padding-top: 22px; padding-bottom: 20px; }
  .ptitle h1 { font-size: 40px; }
  .ptitle .crumbs { font-size: 13px; }
  .tabs { gap: 8px; width: 100%; }
  .tabs .pill { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .menu-layout { display: block; }
  .aside { display: none; }
  .chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad); margin: 0 calc(var(--pad) * -1) 8px;
    position: sticky; top: var(--header-h); z-index: 5; background: #fff; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex-shrink: 0; padding: 10px 14px; border-radius: 999px; background: var(--bg2); font-weight: 600; font-size: 14px; white-space: nowrap; }
  .chips a.is-on { background: var(--red-fill); color: #fff; }
  .menu-main { gap: 32px; }
  .msec__head { margin-bottom: 12px; gap: 8px; }
  .msec__head h2 { font-size: 22px; }
  .msec__head h2 + span { font-size: 14px; }
  .pair { grid-template-columns: 1fr; gap: 32px; }
  .cta-box { padding: 18px 16px; }
  .cta-box .btn { flex: 1; }

  .contacts__card { padding: 20px 16px; border-radius: 20px; gap: 20px; }
  .contacts__phone { font-size: 22px; }
  .map { min-height: 0; height: auto; display: flex; flex-direction: column; border-radius: 20px; }
  .map iframe { position: relative; height: 320px; }
  .map__label { position: static; box-shadow: none; border-radius: 0; max-width: none; padding: 14px 16px 0; background: var(--bg2); }
  .map__buttons { position: static; flex-direction: column; padding: 14px 16px 16px; background: var(--bg2); }
  .map__buttons .btn { width: 100%; }
  .map__buttons .btn--secondary { border-color: var(--border); box-shadow: none; }

  .footer__in { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }
  .footer__links { column-gap: 20px; }
  .footer__links a, .footer__phone { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
