/* Shared parts: cards, list page, item page, the bag, booking pages, calendar, toast.
   Each template sets the look with these variables in its own css/style.css. */
:root {
  --b-bg: #fff; --b-paper: #fff; --b-ink: #111; --b-mute: #6b6b6b; --b-line: #e7e7e7; --b-soft: #f4f4f4;
  --b-accent: #111; --b-accent-ink: #fff; --b-radius: 16px; --b-card: 14px; --b-btn: 999px; --b-display: inherit; --b-body: inherit; --b-ratio: 4 / 3;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--b-btn); background: var(--b-accent); color: var(--b-accent-ink); font: 600 15px/1 var(--b-body); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px var(--b-accent); }
.btn:disabled, .btn.is-off { opacity: .45; pointer-events: none; }
.btn-line { background: transparent; color: var(--b-ink); box-shadow: inset 0 0 0 1.5px var(--b-ink); }
.btn-line:hover { background: var(--b-ink); color: var(--b-paper); box-shadow: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--b-line); border-radius: 999px; overflow: hidden; background: var(--b-paper); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--b-ink); cursor: pointer; font-size: 17px; }
.qty b { min-width: 24px; text-align: center; font-weight: 600; }
.pr { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.pr b { font-weight: 700; }
.pr s, .pr small { color: var(--b-mute); font-size: .82em; font-weight: 500; }
.badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 5px 11px; border-radius: 999px; background: var(--b-paper); color: var(--b-ink); font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 999px; background: var(--b-soft); color: var(--b-ink); font-size: 11.5px; font-weight: 600; }
.fav { position: absolute; z-index: 3; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; transition: transform .2s; }
.fav svg { width: 19px; height: 19px; fill: none; stroke: #222; stroke-width: 1.8; }
.fav.on svg { fill: #E5484D; stroke: #E5484D; }
.fav:active { transform: scale(.88); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--b-mute); font-size: 13.5px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 26px 22px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--b-card); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-line); overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--b-line), 0 24px 44px -28px rgba(0, 0, 0, .35); }
.card-media { position: relative; aspect-ratio: var(--b-ratio); overflow: hidden; background: var(--b-soft); }
.card-media > a { display: block; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.card-n { color: var(--b-ink); font: 600 18px/1.25 var(--b-display); text-decoration: none; }
.card-n:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-s { margin: 0; color: var(--b-mute); font-size: 14px; line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.card-go { min-height: 38px; padding: 0 16px; font-size: 14px; }
.person { display: grid; gap: 12px; text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--b-card); background: var(--b-soft); }
.person b { display: block; font: 600 17px/1.2 var(--b-display); }
.person span { color: var(--b-mute); font-size: 14px; }
.person p { margin: 6px 0 0; color: var(--b-mute); font-size: 14px; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--b-line); font-size: 14.5px; }
.hours li.today { font-weight: 700; }
.hours li b { font-weight: 600; text-align: end; }
[data-open] { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
[data-open]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
[data-open].is-open::before { background: #1DB954; box-shadow: 0 0 0 4px rgba(29, 185, 84, .18); }
[data-map] iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; border-radius: var(--b-card); filter: saturate(.85); }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.links a { color: inherit; font-weight: 600; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* pages */
.page { padding-top: 30px; padding-bottom: 90px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; color: var(--b-mute); font-size: 13.5px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--b-ink); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.list-head h1 { margin: 0; font: 600 clamp(34px, 5vw, 58px)/1.05 var(--b-display); letter-spacing: -.02em; }
.list-head p { margin: 0; color: var(--b-mute); }
.list-bar { display: grid; gap: 12px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--b-line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 38px; padding: 0 16px; border: 1px solid var(--b-line); border-radius: 999px; background: var(--b-paper); color: var(--b-ink); font: 500 14px/1 var(--b-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--b-ink); }
.chips button.on { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-accent-ink); }
.chips-sm button { min-height: 34px; padding: 0 13px; font-size: 13px; }
.fsels { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.fsel { display: grid; gap: 5px; min-width: 130px; flex: 1 1 140px; max-width: 220px; font-size: 12px; color: var(--b-mute); }
.fsel select, .fsel input { height: 40px; padding: 0 12px; border: 1px solid var(--b-line); border-radius: 10px; background: var(--b-paper); color: var(--b-ink); font: 15px var(--b-body); width: 100%; }
.fnum { max-width: 130px; }
.fq { max-width: 300px; flex-basis: 220px; }
.fsaved { height: 40px; padding: 0 16px; border: 1px solid var(--b-line); border-radius: 10px; background: var(--b-paper); color: var(--b-ink); font: 600 14px var(--b-body); cursor: pointer; }
.fsaved.on { background: #E5484D; border-color: #E5484D; color: #fff; }
.fsaved b { margin-inline-start: 4px; }
.none { grid-column: 1 / -1; padding: 50px 0; color: var(--b-mute); text-align: center; }

/* item page */
.it-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.it-gallery { position: sticky; top: 100px; display: grid; gap: 12px; }
.it-main { position: relative; aspect-ratio: var(--b-ratio); overflow: hidden; border-radius: var(--b-radius); background: var(--b-soft); }
.it-main img { width: 100%; height: 100%; object-fit: cover; }
.it-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.it-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.it-thumbs button.on { border-color: var(--b-accent); opacity: 1; }
.it-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.it-info { display: grid; gap: 16px; }
.it-k { margin: 0; color: var(--b-mute); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[dir="rtl"] .it-k { letter-spacing: 0; }
.it-info h1 { margin: 0; font: 600 clamp(32px, 4vw, 50px)/1.08 var(--b-display); letter-spacing: -.02em; }
.it-price { font-size: 24px; }
.it-short { margin: 0; color: var(--b-mute); font-size: 17px; line-height: 1.5; }
.it-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.it-facts div { padding: 12px 14px; border-radius: 12px; background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-line); }
.it-facts dt { color: var(--b-mute); font-size: 12px; }
.it-facts dd { margin: 3px 0 0; font-weight: 700; }
.it-act { display: flex; flex-wrap: wrap; gap: 10px; }
.it-act > .btn { flex: 1 1 200px; min-height: 52px; }
.it-opt p { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.it-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.it-vals button { display: grid; gap: 2px; min-height: 44px; padding: 7px 14px; border: 1.5px solid var(--b-line); border-radius: 12px; background: var(--b-paper); color: var(--b-ink); font: 500 14px var(--b-body); cursor: pointer; text-align: start; }
.it-vals button small { color: var(--b-mute); font-size: 12px; }
.it-vals button.on { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); }
.it-buy { display: flex; gap: 10px; align-items: center; width: 100%; }
.it-buy .qty button { width: 42px; height: 48px; }
.it-buy .btn { flex: 1; min-height: 52px; }
.it-note, .it-err { margin: 0; color: var(--b-mute); font-size: 14px; }
.it-err { color: #C62828; }
.it-err:empty { display: none; }
.it-desc p { margin: 0 0 12px; line-height: 1.7; }
.it-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; line-height: 1.5; }
.it-team > p { margin: 0 0 10px; font-weight: 600; font-size: 14px; }
.it-person { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.it-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.it-person b, .it-person small { display: block; }
.it-person small { color: var(--b-mute); }
.related { margin-top: 80px; }
.related h2 { margin: 0 0 22px; font: 600 clamp(26px, 3vw, 36px)/1.1 var(--b-display); }

/* the bag */
.bz-veil { position: fixed; inset: 0; z-index: 190; background: rgba(10, 10, 20, .38); opacity: 0; transition: opacity .35s; }
.bz-open .bz-veil { opacity: 1; }
.bz-cart { position: fixed; z-index: 200; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--b-paper); color: var(--b-ink); font-family: var(--b-body); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4); translate: 105% 0; transition: translate .4s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
html[dir="rtl"] .bz-cart { translate: -105% 0; }
.bz-open .bz-cart { translate: 0 0; visibility: visible; }
.bz-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--b-line); }
.bz-head h2 { margin: 0; font: 600 22px/1.2 var(--b-display); }
.bz-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--b-soft); color: var(--b-ink); font-size: 24px; cursor: pointer; }
.bz-lines { flex: 1; overflow-y: auto; padding: 8px 22px; }
.bz-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--b-line); }
.noimg { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--b-accent), color-mix(in srgb, var(--b-accent) 50%, #fff)); color: var(--b-accent-ink); font: 700 22px var(--b-display); }
.bz-line .noimg { width: 72px; height: 72px; }
.bz-line img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--b-soft); }
.bz-line b { display: block; font-weight: 600; }
.bz-line small { display: block; color: var(--b-mute); font-size: 13px; margin-top: 2px; }
.bz-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bz-empty { padding: 60px 0; text-align: center; color: var(--b-mute); }
.bz-foot { padding: 18px 22px 22px; border-top: 1px solid var(--b-line); display: grid; gap: 12px; }
.bz-foot:empty { display: none; }
.bz-sum { display: flex; justify-content: space-between; font-size: 17px; }
.bz-min { margin: 0; color: #B45309; font-size: 14px; }
.bz-go { width: 100%; min-height: 52px; }
.bz-toast { position: fixed; z-index: 210; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 999px; background: #16161a; color: #fff; font: 500 14px var(--b-body); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); translate: -50% 140%; opacity: 0; transition: translate .4s cubic-bezier(.2, .7, .2, 1), opacity .3s; white-space: nowrap; max-width: calc(100vw - 24px); }
.bz-toast.on { translate: -50% 0; opacity: 1; }
.bz-toast button, .bz-toast a { padding: 7px 13px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 700 13px var(--b-body); cursor: pointer; text-decoration: none; }

/* booking */
.bk-tabs { display: inline-flex; gap: 4px; margin-bottom: 26px; padding: 5px; border-radius: 999px; background: var(--b-soft); }
.bk-tabs button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--b-mute); font: 600 14.5px var(--b-body); cursor: pointer; }
.bk-tabs button.on { background: var(--b-paper); color: var(--b-ink); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .3); }
.bk-head { max-width: 720px; margin-bottom: 30px; }
.bk-k { margin: 0 0 8px; color: var(--b-mute); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .bk-k { letter-spacing: 0; }
.bk-head h1 { margin: 0; font: 600 clamp(34px, 5vw, 60px)/1.05 var(--b-display); letter-spacing: -.02em; }
.bk-head p:last-child:not(.bk-k) { margin: 12px 0 0; color: var(--b-mute); font-size: 17px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.bk-form { display: grid; gap: 18px; min-width: 0; }
.bk-box { margin: 0; padding: 22px; border: 0; border-radius: var(--b-radius); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-line); min-width: 0; }
.bk-box legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font: 600 19px/1.2 var(--b-display); }
html[dir="rtl"] .bk-box legend { float: right; }
.bk-box legend + * { clear: both; }
.f { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13.5px; color: var(--b-mute); }
.f:last-child { margin-bottom: 0; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--b-line); border-radius: 12px; background: var(--b-bg); color: var(--b-ink); font: 16px var(--b-body); transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 84px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--b-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b-accent) 18%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opts { display: grid; gap: 10px; }
.opts-2 { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.radio { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--b-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.radio input { width: 18px; height: 18px; accent-color: var(--b-accent); flex: none; }
.radio span { display: grid; gap: 2px; flex: 1; }
.radio small { color: var(--b-mute); }
.radio em { font-style: normal; font-weight: 700; }
.radio:has(input:checked) { border-color: var(--b-accent); background: color-mix(in srgb, var(--b-accent) 6%, var(--b-paper)); }
.radio:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 12px; border: 1.5px solid var(--b-line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pick span > img, .pick span > .any { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--b-soft); }
.pick .any { display: grid; place-items: center; font-style: normal; color: var(--b-accent); font-size: 20px; }
.picks-people .pick span > img { border-radius: 50%; }
.pick b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.pick small { color: var(--b-mute); font-size: 12.5px; }
.pick span:hover { border-color: var(--b-ink); }
.pick input:checked + span { border-color: var(--b-accent); background: color-mix(in srgb, var(--b-accent) 7%, var(--b-paper)); box-shadow: inset 0 0 0 1px var(--b-accent); }
.pick input:focus-visible + span { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.picks-rooms .pick span > img { width: 76px; height: 58px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.day { flex: none; display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0; border: 1.5px solid var(--b-line); border-radius: 14px; background: var(--b-paper); color: var(--b-ink); font-family: var(--b-body); cursor: pointer; scroll-snap-align: start; }
.day small { color: var(--b-mute); font-size: 11.5px; }
.day b { font-size: 21px; font-weight: 700; }
.day.on { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-accent-ink); }
.day.on small { color: inherit; opacity: .85; }
.day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.bk-sub { margin: 14px 0 10px; font-weight: 600; font-size: 14px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time { display: grid; gap: 1px; justify-items: center; min-height: 44px; padding: 8px 6px; border: 1.5px solid var(--b-line); border-radius: 12px; background: var(--b-paper); color: var(--b-ink); font: 600 14.5px var(--b-body); cursor: pointer; }
.time small { color: var(--b-mute); font-size: 11px; font-weight: 500; }
.time:hover:not(:disabled) { border-color: var(--b-ink); }
.time.on { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-accent-ink); }
.time.on small { color: inherit; }
.time:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.hint { grid-column: 1 / -1; margin: 8px 0 0; color: var(--b-mute); font-size: 14px; }
.party { display: flex; flex-wrap: wrap; gap: 8px; }
.party button { width: 46px; height: 46px; border: 1.5px solid var(--b-line); border-radius: 50%; background: var(--b-paper); color: var(--b-ink); font: 600 15px var(--b-body); cursor: pointer; }
.party button.on { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-accent-ink); }
.bk-lines .bk-line { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--b-line); }
.bk-line:last-child { border-bottom: 0; }
.bk-line img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.bk-line small { display: block; color: var(--b-mute); font-size: 13px; }
.bk-err { margin: 0; color: #C62828; font-weight: 600; }
.bk-err:empty { display: none; }
.bk-go { min-height: 56px; font-size: 16px; }
.bk-fine { margin: 0; color: var(--b-mute); font-size: 13.5px; text-align: center; }
.bk-sum { position: sticky; top: 100px; display: grid; gap: 4px; padding: 24px; border-radius: var(--b-radius); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-line), 0 30px 60px -40px rgba(0, 0, 0, .35); }
.bk-sum h2 { margin: 0 0 10px; font: 600 21px/1.2 var(--b-display); }
.bk-sum p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--b-line); font-size: 14.5px; }
.bk-sum p span { color: var(--b-mute); }
.bk-sum p b { text-align: end; }
.bk-sum p.grand { border: 0; padding-top: 14px; font-size: 19px; }
.bk-sum p.grand span { color: var(--b-ink); font-weight: 600; }
.bk-sum p.bk-note { display: block; border: 0; color: var(--b-mute); font-size: 13.5px; line-height: 1.5; }
.bk-side .links { margin: 8px 0 14px; flex-direction: column; }
.bk-about { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--b-soft); }
.bk-about img { width: 90px; height: 68px; border-radius: 10px; object-fit: cover; }
.bk-about b { display: block; margin-bottom: 4px; }
.bk-q .chips { flex-wrap: wrap; overflow: visible; }
.bk-done { max-width: 620px; margin: 10px auto 0; padding: 50px 30px; border-radius: var(--b-radius); background: var(--b-paper); box-shadow: 0 0 0 1px var(--b-line); text-align: center; }
.bk-done .tick { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--b-accent); color: var(--b-accent-ink); font-size: 34px; animation: bzPop .6s cubic-bezier(.2, 1.6, .4, 1); }
.bk-done h2 { margin: 0 0 10px; font: 600 32px/1.15 var(--b-display); }
.bk-done p { margin: 0 0 12px; color: var(--b-mute); font-size: 16.5px; line-height: 1.55; }
.done-no b { color: var(--b-ink); font-size: 18px; letter-spacing: .04em; }
.bk-done .btn { margin-top: 12px; }
@keyframes bzPop { from { transform: scale(.3); opacity: 0; } }

/* calendar */
.cal-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: var(--b-soft); }
.cal-sel p { display: grid; margin: 0; }
.cal-sel small { color: var(--b-mute); font-size: 12px; }
.cal-sel em { margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--b-accent); }
.cal { position: relative; }
.cal-nav { position: absolute; top: -4px; inset-inline-end: 0; display: flex; gap: 6px; }
.cal-nav button { width: 36px; height: 36px; border: 1px solid var(--b-line); border-radius: 50%; background: var(--b-paper); color: var(--b-ink); font-size: 18px; cursor: pointer; }
html[dir="rtl"] .cal-nav button { transform: scaleX(-1); }
.cal-nav button:disabled { opacity: .3; }
.cal-ms { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-m > p { margin: 4px 0 12px; font-weight: 700; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-g b { padding: 4px 0; color: var(--b-mute); font-size: 12px; font-weight: 600; text-align: center; }
.cal-g button { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; color: var(--b-ink); font: 500 14px var(--b-body); cursor: pointer; }
.cal-g button:hover:not(:disabled) { background: var(--b-soft); }
.cal-g button.in { border-radius: 0; background: color-mix(in srgb, var(--b-accent) 14%, transparent); }
.cal-g button.edge { background: var(--b-accent); color: var(--b-accent-ink); font-weight: 700; }
.cal-g button:disabled { color: var(--b-mute); opacity: .35; cursor: not-allowed; }

@media (max-width: 980px) {
  .it-grid, .bk-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .it-gallery, .bk-sum { position: static; }
}
@media (max-width: 640px) {
  .page { padding-top: 20px; }
  .two, .opts-2 { grid-template-columns: 1fr; }
  .cal-ms { grid-template-columns: 1fr; }
  .cal-m + .cal-m { display: none; }
  .bk-box { padding: 18px 16px; }
  .bk-tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .bk-tabs button { flex: 1 0 auto; }
  .fsel { max-width: none; flex: 1 1 calc(50% - 10px); min-width: 0; }
  .fnum { max-width: none; }
  .bk-lines .bk-line { grid-template-columns: 46px 1fr auto; }
  .bk-line > b:last-child { grid-column: 2 / -1; text-align: end; }
  .grid { gap: 18px; }
}
