/* Visito — design system (see DESIGN.md). One family, two radii, one shadow, one accent. */
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #101B3A; --ink-2: #3A4566; --ink-3: #66708F; --line: rgba(16, 27, 58, .12); --line-2: rgba(16, 27, 58, .07);
  --tq: #0E8C8C; --tq-d: #0A6F6F; --tq-l: #DFF3F1; --tq-xl: #EEF9F8;
  --sf: #F2B233; --sf-d: #8A5A00; --sf-l: #FCEFCB;
  --bg: #F5F8F9; --card: #fff; --alert: #D6455D; --ok: #1F9D63;
  --r: 12px; --r-lg: 24px; --shadow: 0 10px 30px -12px rgba(16, 27, 58, .25);
  --w: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.9 "Estedad", Tahoma, sans-serif; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--tq-d); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--sf); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; inset-inline-start: 16px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r); z-index: 99; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid transparent; font: 700 1rem/1 "Estedad", sans-serif; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; text-decoration: none !important; }
.btn-primary { background: var(--tq); color: #fff; }
.btn-primary:hover { background: var(--tq-d); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--tq); color: var(--tq-d); }
.btn-saffron { background: var(--sf); color: var(--ink); }
.btn-saffron:hover { background: #E8A51F; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(245, 248, 249, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.375rem; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.brand-mark span { width: 14px; height: 14px; border-radius: 50%; background: var(--sf); box-shadow: -7px 7px 0 -3px var(--tq); }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--ink-2); padding: 8px 14px; border-radius: 10px; font-weight: 500; text-decoration: none !important; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tq-l); color: var(--tq-d); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.top-phone { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 62%; height: 120%; background: radial-gradient(closest-side, var(--tq-l), transparent 72%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); line-height: 1.18; max-width: 16ch; }
.hero h1 em { font-style: normal; display: block; color: var(--tq); }
.hero-lead { margin-top: 20px; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.search { margin-top: 32px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.search label { display: block; position: relative; }
.search input, .search select { width: 100%; height: 52px; border: 0; background: transparent; padding: 0 16px; font: 500 1rem "Estedad", sans-serif; color: var(--ink); border-radius: 12px; }
.search label + label { border-inline-start: 1px solid var(--line-2); }
.search input::placeholder { color: var(--ink-3); }
.hero-stats { margin-top: 28px; display: flex; gap: 28px; color: var(--ink-2); flex-wrap: wrap; }
.hero-stats b { color: var(--ink); font-weight: 800; font-size: 1.125rem; }

/* ---------- the appointment ticket (signature element) ---------- */
.ticket { --notch: 14px; position: relative; display: grid; grid-template-columns: 1fr 112px; filter: drop-shadow(0 22px 28px rgba(16, 27, 58, .22)); transform-origin: 50% 0; }
.ticket-main, .ticket-stub { background: #fff; padding: 26px 26px 22px; }
.ticket-main { border-radius: 0 var(--r-lg) var(--r-lg) 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-stub { background: var(--sf); border-radius: var(--r-lg) 0 0 var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; position: relative;
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-stub::before { content: ""; position: absolute; inset-block: 22px; inset-inline-end: -1px; border-inline-start: 2px dashed rgba(16, 27, 58, .28); }
.stub-time { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stub-day { font-weight: 600; font-size: .875rem; color: var(--ink); }
.stub-code { margin-top: 10px; font-size: .75rem; letter-spacing: .08em; color: rgba(16, 27, 58, .7); direction: ltr; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.ticket-head small { color: var(--ink-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .9375rem "Estedad", sans-serif; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--tq); color: var(--tq-d); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.t-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; min-height: 196px; align-content: start; }
.t-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--bg); color: var(--ink); text-decoration: none !important; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.t-row:hover { border-color: var(--tq); background: var(--tq-xl); }
.t-row b { display: block; font-weight: 700; line-height: 1.5; }
.t-row small { color: var(--ink-3); }
.t-when { font-weight: 800; color: var(--tq-d); white-space: nowrap; }
.t-empty { padding: 28px 8px; color: var(--ink-3); text-align: center; }
.t-foot { margin-top: 14px; font-size: .875rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
/* the one orchestrated moment: the ticket is pulled out, rows light up in turn */
@keyframes pull { from { transform: translateY(-22px) rotate(-1.4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tick { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ticket.enter { animation: pull .9s cubic-bezier(.2, .8, .2, 1) both; }
.t-list.swap .t-row { animation: tick .45s cubic-bezier(.2, .8, .2, 1) both; }
.t-list.swap .t-row:nth-child(2) { animation-delay: .08s; }
.t-list.swap .t-row:nth-child(3) { animation-delay: .16s; }

/* ---------- sections ---------- */
.sec { padding: 72px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
.sec-head p { color: var(--ink-2); margin-top: 8px; max-width: 52ch; }
.specs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.spec { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.spec:hover { border-color: var(--tq); transform: translateY(-3px); box-shadow: var(--shadow); }
.spec .ic { color: var(--tq); }
.spec b { font-weight: 700; }
.spec small { color: var(--ink-3); line-height: 1.6; }

.soon { display: grid; gap: 12px; }
.dcard { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.dcard:hover { border-color: rgba(14, 140, 140, .45); }
.av { border-radius: 50%; object-fit: cover; flex: none; }
.av-init { display: grid; place-items: center; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1.5rem; }
.dcard h3 { font-size: 1.125rem; }
.dcard h3 a { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--tq-l); color: var(--tq-d); font-size: .8125rem; font-weight: 600; }
.tag.on { background: var(--sf-l); color: var(--sf-d); }
.dnext { text-align: end; min-width: 190px; display: grid; gap: 10px; justify-items: end; }
.dnext .when { font-weight: 800; font-size: 1.0625rem; }
.dnext .when small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8125rem; }
.dnext .fee { color: var(--ink-2); font-size: .9375rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.step::before { counter-increment: s; content: counter(s, persian); position: absolute; top: -18px; inset-inline-start: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { font-size: 1.125rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kind { padding: 32px; border-radius: var(--r-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.kind.alt { background: var(--tq); }
.kind h3 { font-size: 1.5rem; margin: 14px 0 8px; }
.kind p { color: rgba(255, 255, 255, .82); max-width: 40ch; }
.kind .btn { margin-top: 22px; }
.kind .ic { opacity: .9; }
.kind .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.kind .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--tq); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

.foot { margin-top: 40px; background: var(--ink); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot a { color: rgba(255, 255, 255, .78); display: block; padding: 3px 0; }
.foot .brand { color: #fff; }
.foot small { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- list page ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 16px; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font: 400 1rem "Estedad", sans-serif; color: var(--ink); }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tq); outline: 0; box-shadow: 0 0 0 4px var(--tq-l); }
.field .err { color: var(--alert); font-size: .875rem; margin-top: 6px; }
.field.bad input { border-color: var(--alert); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--r); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--tq-d); box-shadow: 0 1px 4px rgba(16, 27, 58, .15); }
.seg input:focus-visible + span { outline: 3px solid var(--sf); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--ink-2); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 64px 20px; background: #fff; border-radius: var(--r-lg); border: 1px dashed var(--line); color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 6px; }

/* ---------- doctor page ---------- */
.dhead { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 36px 0 24px; }
.dhead h1 { font-size: clamp(1.75rem, 4vw, 2.375rem); }
.dgrid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; padding-bottom: 40px; }
.panel { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 12px; }
.panel p { color: var(--ink-2); max-width: 64ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.fact { padding: 14px; background: var(--bg); border-radius: var(--r); }
.fact small { display: block; color: var(--ink-3); }
.fact b { font-weight: 700; }
.booker { position: sticky; top: 88px; }
.booker .seg { grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.pplace { color: var(--ink-2); font-size: .9375rem; display: flex; gap: 6px; align-items: center; margin-bottom: 14px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { scroll-snap-align: start; flex: none; width: 76px; padding: 10px 6px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; text-align: center; cursor: pointer; font-family: inherit; color: var(--ink); line-height: 1.4; transition: border-color .15s; }
.day small { display: block; color: var(--ink-3); font-size: .75rem; }
.day b { display: block; font-size: 1.25rem; font-weight: 800; }
.day em { display: block; font-style: normal; font-size: .75rem; color: var(--tq-d); font-weight: 600; }
.day:hover { border-color: var(--tq); }
.day[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.day[aria-selected="true"] small, .day[aria-selected="true"] em { color: rgba(255, 255, 255, .8); }
.day.none { opacity: .45; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; min-height: 60px; }
.slot { min-height: 46px; border-radius: var(--r); border: 1.5px solid rgba(14, 140, 140, .5); background: #fff; color: var(--tq-d); font: 700 1rem "Estedad", sans-serif; cursor: pointer; transition: all .12s; }
.slot:hover { background: var(--tq-l); }
.slot[aria-pressed="true"] { background: var(--sf); border-color: var(--sf); color: var(--ink); transform: scale(1.04); }
.slots-msg { grid-column: 1 / -1; color: var(--ink-3); padding: 14px 4px; }
.pick { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.pick-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pick-sum b { font-size: 1.0625rem; }
.pick-sum span { color: var(--ink-2); }
.skel { background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); min-height: 46px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- booking + ticket pages ---------- */
.narrow { width: min(920px, 100% - 32px); margin-inline: auto; padding: 36px 0 24px; }
.book-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.progress { display: flex; gap: 8px; margin-bottom: 24px; }
.progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress .on { background: var(--tq); }
.sum { display: grid; gap: 10px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum div span { color: var(--ink-3); }
.sum .total { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 1.125rem; font-weight: 800; }
.msgs { list-style: none; margin: 0 0 16px; padding: 0; }
.msgs li { padding: 12px 16px; border-radius: var(--r); background: #FCE4E8; color: #8B1F34; font-weight: 500; }
.big-ticket { max-width: 640px; margin: 8px auto 0; }
.big-ticket .ticket { grid-template-columns: 1fr 150px; }
.tk-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.tk-row span { color: var(--ink-3); }
.tk-code { font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; direction: ltr; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .875rem; background: var(--sf-l); color: var(--sf-d); }
.status.confirmed { background: #DDF4E8; color: #14683F; }
.status.cancelled { background: #FCE4E8; color: #8B1F34; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--tq-xl); border: 1px solid var(--tq-l); color: var(--ink-2); font-size: .9375rem; }
.notice.warn { background: var(--sf-l); border-color: transparent; color: #6B4600; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .dgrid, .book-grid, .layout { grid-template-columns: 1fr; }
  .filters, .booker { position: static; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { max-width: none; }
  .kinds, .steps { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav, .top-phone { display: none; }
  .search { grid-template-columns: 1fr; }
  .search label + label { border-inline-start: 0; border-top: 1px solid var(--line-2); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .dcard { grid-template-columns: auto 1fr; }
  .dnext { grid-column: 1 / -1; justify-items: stretch; text-align: start; min-width: 0; grid-template-columns: 1fr auto; align-items: center; }
  .dnext .btn { grid-column: 1 / -1; }
  .dhead { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .ticket { grid-template-columns: 1fr 92px; }
  .ticket-main, .ticket-stub { padding: 20px 16px; }
  .stub-time { font-size: 1.5rem; }
  .sec { padding: 52px 0; }
  .foot .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .foot, .actions, .notice { display: none !important; }
  body { background: #fff; }
  .ticket { filter: none; }
}

/* grid children may shrink: stops the day strip from widening the page on phones */
.dgrid > *, .book-grid > *, .layout > *, .hero-grid > *, .dhead > * { min-width: 0; }
.days { max-width: 100%; }
@media (max-width: 1020px) { .booker { order: -1; } .dhead { justify-items: start; } }

.room { width: 100%; height: min(72vh, 680px); border: 0; border-radius: var(--r-lg); background: var(--ink); }

/* sign-up forms */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub-fields { margin-top: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--tq-l); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--tq); }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

.cardpay { margin-top: 20px; }
.cardface { display: grid; gap: 4px; margin: 12px 0; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ink); color: #fff; max-width: 380px; }
.cardface b { font-size: 1.375rem; letter-spacing: .12em; font-weight: 700; }
.cardface span { color: rgba(255, 255, 255, .75); }
