/* ===== App shell ===== */
.app { min-height: 100dvh; }
.main {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: var(--s2) var(--s2) calc(var(--tabbar-h) + 48px + env(safe-area-inset-bottom));
  transition: padding-right .4s var(--ease-out);
}
.view { animation: view-in .42s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 12px 16px; background: var(--accent); color: #fff; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Top bar (mobile/tablet) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: calc(var(--s2) + env(safe-area-inset-top)) var(--s2) var(--s1); max-width: 1280px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0.08)); border: 1px solid rgba(var(--accent-rgb), 0.4); overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 22px; height: 22px; color: #fff; }

/* Bottom tab bar (mobile only) */
.tabbar {
  position: fixed; left: 16px; right: calc(16px + var(--tabbar-h) + 10px); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; gap: 4px; padding: 6px; height: var(--tabbar-h); max-width: 420px;
  background: rgba(14, 24, 44, 0.72); border: 1px solid var(--line-2); border-radius: var(--pill);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow);
}
.tab {
  position: relative; flex: 1; display: grid; place-items: center; align-content: center; gap: 2px;
  border-radius: var(--pill); text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700;
  transition: color .25s;
}
.tab svg { width: 22px; height: 22px; }
.tab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), 0.35); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s var(--ease-out); }
.tab > * { position: relative; }
.tab[aria-current="page"] { color: #fff; }
.tab[aria-current="page"]::before { opacity: 1; transform: none; }

/* AI floating button */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 51;
  width: var(--tabbar-h); height: var(--tabbar-h); border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.5);
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--accent-hi), var(--accent) 45%, var(--accent-lo));
  box-shadow: 0 12px 34px rgba(var(--accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .25s var(--ease), opacity .25s;
}
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab:active { transform: scale(.95); }
.fab svg { width: 28px; height: 28px; }
.fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.4); animation: fab-pulse 3s var(--ease) infinite; }
@keyframes fab-pulse { 0% { opacity: .9; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.2); } }
body.assistant-open .fab { opacity: 0; pointer-events: none; transform: scale(.8); }

/* Desktop rail */
.rail { display: none; }

/* ===== Home ===== */
.home { display: grid; gap: var(--s3); }
.home-col { display: grid; gap: var(--s3); align-content: start; }

.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 4 / 3.4; min-height: 300px;
  background: radial-gradient(80% 70% at 50% 35%, rgba(var(--accent-rgb), 0.28), transparent 70%), linear-gradient(180deg, #0C1D3B, #060E1E);
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 160, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 255, 0.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, transparent, #000 50%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%, transparent); z-index: -1; }
.hero-ring { position: absolute; left: 50%; top: 8%; width: 78%; aspect-ratio: 1; transform: translateX(-50%); z-index: 0; animation: ring-in 1.1s var(--ease-out) both; }
.hero-ring svg { width: 100%; height: 100%; overflow: visible; }
@keyframes ring-in { from { opacity: 0; transform: translateX(-50%) scale(.9); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.hero-car { position: absolute; left: 50%; bottom: 20%; width: 92%; transform: translateX(-50%); z-index: 1; animation: car-in 1s .15s var(--ease-out) both; }
@keyframes car-in { from { opacity: 0; transform: translate(-46%, 0); } to { opacity: 1; transform: translate(-50%, 0); } }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-photo + .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 22, 0.1) 30%, rgba(5, 11, 22, 0.75)); z-index: 1; }
.hero-cta { position: absolute; left: var(--s2); bottom: var(--s2); z-index: 2; }
.hero-cta .btn { min-height: 52px; padding: 0 12px 0 22px; }
.hero-cta .arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); transition: transform .25s var(--ease); }
.hero-cta .btn:hover .arrow { transform: translateX(3px); }
.hero-cta .arrow svg { width: 16px; height: 16px; }

.studio-title { font-size: clamp(32px, 7vw, 52px); line-height: 1.05; }
.studio-tagline { color: var(--muted); font-size: 17px; margin-top: var(--s1); max-width: 46ch; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 20px; border-radius: var(--r-lg); }
.stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat > span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.stat.wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat.wide b { font-size: 28px; }
.stat.wide b small { font-size: 16px; color: var(--muted); font-weight: 700; }
.stat.wide > span { margin: 0; }
.stat .accent { color: var(--accent-hi); }

.section-title { font-size: 22px; margin-bottom: var(--s2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.section-head .section-title { margin: 0; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--accent-hi); font-weight: 700; font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.book-card {
  position: relative; overflow: hidden; display: grid; gap: var(--s2); padding: var(--s3);
  text-align: left; width: 100%; border-radius: var(--r-xl); color: inherit;
  background: radial-gradient(120% 120% at 100% 0%, rgba(var(--accent-rgb), 0.3), transparent 55%), var(--glass);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  transition: transform .25s var(--ease), border-color .25s;
}
.book-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.55); }
.book-card h3 { font-size: 22px; }
.book-card p { color: var(--muted); }
.book-card .row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.book-card .go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); flex: none; box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.4); }
.book-card .go svg { width: 20px; height: 20px; }

.ai-line { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: 16px 20px; border-radius: var(--r-lg); text-align: left; color: inherit; transition: background-color .2s, transform .2s var(--ease); min-height: 64px; }
.ai-line:hover { background: var(--glass-2); }
.ai-line .ai-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); flex: none; }
.ai-line .ai-ico svg { width: 22px; height: 22px; }
.ai-line b { display: block; font-size: 16px; }
.ai-line small { display: block; color: var(--muted); font-size: 13px; }
.ai-line .chev { margin-left: auto; color: var(--muted); }
.ai-line .chev svg { width: 18px; height: 18px; }

.features { display: grid; gap: 12px; }
.feature { padding: 20px; border-radius: var(--r-lg); display: flex; gap: 14px; }
.feature .num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 800; font-size: 14px; flex: none; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; }

.quick-services { display: grid; gap: 8px; }
.qs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: inherit; text-align: left; min-height: 56px; transition: background-color .2s, border-color .2s; width: 100%; }
.qs:hover { background: var(--glass-2); border-color: var(--line-2); }
.qs b { font-size: 15px; font-weight: 700; }
.qs small { display: block; color: var(--muted); font-size: 13px; }
.qs .price { font-weight: 800; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--glass); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(5, 11, 22, 0.85)); }

.contact-card { display: grid; gap: 12px; }
.contact-line { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-height: 44px; }
.contact-line svg { width: 20px; height: 20px; color: var(--accent-hi); flex: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.site-footer { margin-top: var(--s6); padding: var(--s3) 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ===== Services ===== */
.page-head { margin: var(--s1) 0 var(--s3); }
.page-head h1 { font-size: clamp(28px, 6vw, 40px); }
.page-head p { color: var(--muted); margin-top: 6px; }
.service-grid { display: grid; gap: var(--s2); }
.service {
  display: flex; flex-direction: column; gap: 12px; padding: var(--s3); border-radius: var(--r-xl);
  transition: transform .25s var(--ease), border-color .25s;
}
.service:hover { border-color: var(--line-2); }
.service-img { margin: calc(var(--s3) * -1) calc(var(--s3) * -1) 4px; aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--glass); }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service h2, .service h3 { font-size: 20px; }
.service p { color: var(--muted); font-size: 15px; flex: 1; }
.service-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.service-meta svg { width: 16px; height: 16px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: 4px; }
.service-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.service-price small { font-size: 14px; color: var(--muted); font-weight: 700; margin-right: 4px; }

/* ===== Booking flow ===== */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.progress i { height: 4px; border-radius: 2px; background: var(--glass-3); overflow: hidden; position: relative; }
.progress i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.progress i.on::after { transform: scaleX(1); }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.step { animation: step-in .35s var(--ease-out) both; }
.step.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.pick-list { display: grid; gap: 10px; }
.pick {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: inherit; text-align: left;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.pick:hover { background: var(--glass-2); }
.pick:active { transform: scale(.99); }
.pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pick .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: border-color .2s; }
.pick .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.pick[aria-checked="true"] .radio { border-color: var(--accent); }
.pick[aria-checked="true"] .radio::after { transform: scale(1); }
.pick .info { flex: 1; min-width: 0; }
.pick b { display: block; font-size: 16px; }
.pick small { color: var(--muted); font-size: 13px; }
.pick .price { font-weight: 800; white-space: nowrap; }

.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb), 0.3); margin-bottom: var(--s3); }
.summary-top b { font-size: 16px; }
.summary-top .price { font-weight: 800; white-space: nowrap; }

.date-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.date-row::-webkit-scrollbar { display: none; }
.date-chip {
  flex: none; width: 60px; height: 72px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--glass);
  display: grid; place-items: center; align-content: center; gap: 2px; scroll-snap-align: start;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease), color .2s;
}
.date-chip small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: capitalize; transition: color .2s; }
.date-chip b { font-size: 20px; font-weight: 800; }
.date-chip:hover { background: var(--glass-3); }
.date-chip:active { transform: scale(.95); }
.date-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35); }
.date-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
.date-chip:disabled { opacity: .35; cursor: not-allowed; }
.other-date { display: flex; align-items: center; gap: 12px; margin: 8px 0 var(--s3); }
.other-date .input { max-width: 220px; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  min-height: 48px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--glass);
  font-weight: 700; font-size: 15px; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.slot:hover:not(:disabled) { background: var(--glass-3); }
.slot:active:not(:disabled) { transform: scale(.95); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.35); }
.slot:disabled { background: rgba(255, 255, 255, 0.02); color: rgba(147, 163, 191, 0.45); border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.hint { color: var(--muted); font-size: 13px; margin-top: var(--s2); }

.confirm-list { display: grid; gap: 0; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.confirm-list div { display: flex; justify-content: space-between; gap: var(--s2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.confirm-list div:last-child { border-bottom: 0; }
.confirm-list dt { color: var(--muted); font-size: 14px; }
.confirm-list dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.success { text-align: center; padding: var(--s3) 0 var(--s1); }
.success-ico { width: 80px; height: 80px; margin: 0 auto var(--s2); border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0.15), 0 16px 40px rgba(var(--accent-rgb), 0.45); animation: pop .5s var(--ease-out) both; }
.success-ico svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.success h3 { font-size: 24px; }
.success p { color: var(--muted); margin-top: 8px; }

/* ===== My booking ===== */
.my-list { display: grid; gap: var(--s2); }
.booking-card { padding: var(--s3); display: grid; gap: var(--s2); border-radius: var(--r-xl); }
.booking-card .when { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.booking-card .svc { font-size: 17px; font-weight: 700; }
.booking-card .where { color: var(--muted); font-size: 14px; }
.contact-block { padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-block small { display: block; color: var(--muted); font-size: 13px; }
.contact-block a { font-weight: 800; text-decoration: none; font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; place-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; min-height: 84px; transition: background-color .2s, transform .2s var(--ease); }
.tile:hover { background: var(--glass-3); }
.tile:active { transform: scale(.96); }
.tile svg { width: 22px; height: 22px; color: var(--accent-hi); }
.cancel-link { justify-self: center; color: var(--danger); background: none; border: 0; font-weight: 700; font-size: 14px; min-height: 44px; padding: 0 12px; }
.cancel-link:hover { text-decoration: underline; }

/* ===== Assistant ===== */
.assistant {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: min(88dvh, 760px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 32, 60, 0.95), rgba(7, 14, 28, 0.98));
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform: translateY(105%); visibility: hidden;
  transition: transform .45s var(--ease-out), visibility 0s .45s;
  padding-bottom: env(safe-area-inset-bottom);
}
.assistant.open { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
.assistant-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(2, 6, 14, 0.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.assistant-scrim.open { opacity: 1; pointer-events: auto; }
.as-head { display: flex; align-items: center; gap: 12px; padding: var(--s2) var(--s2) 12px var(--s3); border-bottom: 1px solid var(--line); }
.as-head .ai-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--accent-hi), var(--accent) 50%, var(--accent-lo)); flex: none; }
.as-head .ai-ava svg { width: 22px; height: 22px; }
.as-head h2 { font-size: 18px; }
.as-head p { color: var(--muted); font-size: 13px; }
.as-head .icon-btn { margin-left: auto; }
.as-log { flex: 1; overflow-y: auto; padding: var(--s2); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: msg-in .3s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.error { border-color: rgba(255, 107, 120, 0.35); color: #FFC2C8; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; animation: msg-in .3s .05s var(--ease-out) both; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 16px 18px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--glass-2); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.as-quick { padding: 0 var(--s2) 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.as-quick::-webkit-scrollbar { display: none; }
.as-quick .chip { flex: none; }
.as-form { display: flex; gap: 8px; padding: 12px var(--s2) var(--s2); border-top: 1px solid var(--line); }
.as-form .input { border-radius: var(--pill); padding: 0 20px; }
.as-form .send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s var(--ease), opacity .2s; }
.as-form .send:disabled { opacity: .4; }
.as-form .send svg { width: 20px; height: 20px; }

/* ===== Privacy ===== */
.prose { max-width: 760px; color: var(--muted); }
.prose h2 { color: var(--text); font-size: 20px; margin: var(--s3) 0 var(--s1); }
.prose p { margin-bottom: 12px; white-space: pre-wrap; }

/* ===== Tablet ===== */
@media (min-width: 768px) {
  .main { padding: var(--s3) var(--s4) calc(var(--tabbar-h) + 56px); }
  .topbar { padding: var(--s3) var(--s4) 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .assistant { left: auto; right: 24px; bottom: 24px; width: 420px; height: min(78dvh, 720px); border-radius: var(--r-xl); border-bottom: 1px solid var(--line-2); }
  .hero { aspect-ratio: 16 / 10; }
}

/* ===== Desktop ===== */
@media (min-width: 1101px) {
  .topbar, .tabbar { display: none; }
  .rail {
    display: flex; flex-direction: column; gap: var(--s1);
    position: fixed; left: 16px; top: 16px; bottom: 16px; width: var(--rail-w); z-index: 40;
    padding: var(--s3) var(--s2);
    background: rgba(12, 22, 42, 0.6); border: 1px solid var(--line); border-radius: var(--r-xl);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  }
  .rail .brand { padding: 0 8px; margin-bottom: var(--s3); }
  .rail nav { display: grid; gap: 4px; }
  .rail-link {
    display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: var(--r-md);
    color: var(--muted); text-decoration: none; font-weight: 700; border: 1px solid transparent; background: none; width: 100%; text-align: left; font-size: 15px;
    transition: background-color .2s, color .2s, border-color .2s;
  }
  .rail-link svg { width: 20px; height: 20px; }
  .rail-link:hover { background: var(--glass); color: var(--text); }
  .rail-link[aria-current="page"], .rail-link.is-active { background: var(--accent-soft); color: #fff; border-color: rgba(var(--accent-rgb), 0.3); }
  .rail-foot { margin-top: auto; display: grid; gap: 12px; }
  .rail-foot .card { padding: var(--s2); border-radius: var(--r-lg); font-size: 13px; }
  .rail-foot .card b { display: block; font-size: 15px; color: var(--text); }

  .main { padding: var(--s4) var(--s5) var(--s5) calc(var(--rail-w) + 16px + var(--s5)); max-width: calc(1280px + var(--rail-w) + 16px); }
  body.assistant-open .main { padding-right: calc(var(--panel-w) + 16px + var(--s4)); }
  .fab { right: 32px; bottom: 32px; }

  .home { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: var(--s4); align-items: start; }
  .home-side { position: sticky; top: var(--s4); }
  .hero { aspect-ratio: 16 / 10.5; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  body.assistant-open .service-grid { grid-template-columns: repeat(2, 1fr); }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .date-row { flex-wrap: nowrap; }
  .date-chip { width: auto; flex: 1; min-width: 64px; }

  .assistant-scrim { display: none; }
  .assistant { top: 16px; right: 16px; bottom: 16px; width: var(--panel-w); height: auto; transform: translateX(calc(100% + 24px)); }
  .assistant.open { transform: none; }
  .my-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
