:root {
  --bg: #222222;
  --bg-2: #1a1a1a;
  --surface: #2b2b2b;
  --surface-2: #333333;
  --card: #f7f7f4;
  --card-text: #111111;
  --text: #F4F4F4;
  --text-sec: rgba(244, 244, 244, .68);
  --text-muted: rgba(244, 244, 244, .42);
  --border: rgba(255, 255, 255, .10);
  --dark-border: rgba(0, 0, 0, .10);
  --accent: #45A7F5;
  --success: #5ed38e;
  --danger: #ff6868;
  --warning: #ffd166;
  --r: 8px;
  --shell: 540px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

#ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .75;
}

#noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

#app {
  position: relative;
  z-index: 2;
  width: min(100%, var(--shell));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

#pages {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 calc(var(--dock) + var(--safe-bottom) + 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  -webkit-overflow-scrolling: touch;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

.page::-webkit-scrollbar,
#chat-messages::-webkit-scrollbar,
.booking-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-title {
  padding: 22px 18px 14px;
  font-family: 'Russo One', sans-serif;
  font-size: 21px;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.section-label {
  margin: 0 18px 10px;
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.loading {
  display: flex;
  justify-content: center;
  padding: 34px 0;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state,
.state-card {
  margin: 12px 18px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.045);
  text-align: center;
  color: var(--text-sec);
}

.empty-state.compact,
.state-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 132px;
}

.empty-state p,
.state-card p {
  font-size: 13px;
  line-height: 1.5;
}

.hero {
  position: relative;
  min-height: min(44vh, 390px);
  margin: 0 0 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(69,167,245,.18), transparent 30%),
    linear-gradient(180deg, #292929 0%, #202020 100%);
  border-bottom: 1px solid var(--border);
}

#hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .95;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: min(44vh, 390px);
  padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
}

.hero-logo {
  width: 132px;
  height: auto;
  image-rendering: auto;
}

.hero-copy {
  display: grid;
  gap: 5px;
}

.hero-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(69,167,245,.35);
  border-radius: 999px;
  background: var(--accent);
  color: #091018;
  font-weight: 800;
  cursor: pointer;
}

.hero-btn svg {
  width: 17px;
  height: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: var(--r);
  background: var(--card);
  color: var(--card-text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.service-card:active {
  transform: scale(.985);
}

.service-art {
  width: 100%;
  aspect-ratio: 1 / .72;
  background: #fff;
  overflow: hidden;
}

.service-art.empty {
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(0,0,0,.08) 45% 46%, transparent 46%),
    #fff;
}

.service-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  min-height: 132px;
  padding: 12px 12px 13px;
  display: flex;
  flex-direction: column;
}

.service-card-name {
  font-size: 17px;
  line-height: 1.14;
  font-weight: 700;
  color: #050505;
}

.service-card-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(0,0,0,.48);
}

.service-card-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.service-card-price {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  color: #050505;
}

.service-card-kind {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  color: rgba(0,0,0,.42);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #091018;
}

.btn-primary:disabled {
  opacity: .35;
  cursor: default;
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-danger {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  background: rgba(255,104,104,.10);
  color: var(--danger);
}

.btn-danger.filled {
  width: 100%;
  min-height: 46px;
  background: var(--danger);
  color: #210404;
}

.form-label {
  display: block;
  margin: 0 0 7px 2px;
  font-family: 'Russo One', sans-serif;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.field-block {
  display: block;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 16px;
  outline: none;
  resize: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: rgba(69,167,245,.65);
  box-shadow: 0 0 0 3px rgba(69,167,245,.14);
}

.assistant-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --assistant-composer-height: 76px;
}

.assistant-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.assistant-page .page-title {
  padding: 0;
  flex: 1;
}

.assistant-dismiss-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.assistant-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 18px 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.045);
}

#chat-messages {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 14px 14px calc(var(--assistant-composer-height) + 14px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  overscroll-behavior: contain;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-bubble.model {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.chat-bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--accent);
  color: #091018;
  font-weight: 700;
}

.chat-message-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.chat-typing {
  align-self: flex-start;
  color: var(--text-muted);
  font-size: 13px;
}

.chat-service-card {
  width: min(286px, calc(100vw - 72px));
  overflow: hidden;
  border-radius: var(--r);
  background: var(--card);
  color: var(--card-text);
}

.chat-service-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.chat-service-body {
  padding: 12px;
}

.chat-service-name {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.chat-service-price {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.56);
}

.chat-service-btn {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  background: #e9eef2;
  color: #111;
  border-color: transparent;
}

.assistant-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: rgba(34,34,34,.97);
}

.chat-input-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
}

.chat-send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #091018;
  cursor: pointer;
}

.history-controls {
  display: grid;
  gap: 8px;
  margin: 0 18px 14px;
}

.history-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.history-chip-row::-webkit-scrollbar { display: none; }

.history-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-sec);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.history-chip.active {
  border-color: rgba(69,167,245,.5);
  background: rgba(69,167,245,.16);
  color: var(--accent);
}

.booking-card,
.profile-card,
.contacts-card {
  margin: 0 18px 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.055);
}

.booking-card-clickable {
  cursor: pointer;
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.booking-id {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-status {
  min-height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-status.pending { background: rgba(255,209,102,.12); color: var(--warning); }
.booking-status.confirmed { background: rgba(94,211,142,.14); color: var(--success); }
.booking-status.in_progress { background: rgba(69,167,245,.18); color: var(--accent); }
.booking-status.completed { background: rgba(255,255,255,.08); color: var(--text-sec); }
.booking-status.cancelled { background: rgba(255,104,104,.12); color: var(--danger); }

.booking-service {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.booking-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--text-sec);
  font-size: 12px;
}

.booking-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-sec);
  font-size: 12px;
}

.booking-detail-row strong {
  color: var(--text);
  text-align: right;
}

.booking-comment {
  margin-top: 8px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.45;
}

.booking-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.profile-name {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.profile-username {
  margin-top: 4px;
  color: var(--text-sec);
  font-size: 13px;
}

.profile-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contacts-lead {
  display: grid;
  gap: 6px;
}

.contact-hours {
  color: var(--accent);
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-address {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.contacts-actions {
  display: grid;
  gap: 9px;
  padding: 0 18px;
}

.contact-action {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.055);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.contact-action strong,
.contact-action small {
  display: block;
}

.contact-action strong {
  font-size: 13px;
  line-height: 1.15;
}

.contact-action small {
  margin-top: 4px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

#dock {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--shell));
  height: calc(var(--dock) + var(--safe-bottom) + 10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.dock-inner {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(8px + var(--safe-bottom));
  height: 62px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(24,24,24,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  pointer-events: auto;
}

.dock-item {
  min-width: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
  cursor: pointer;
}

.dock-item svg {
  width: 19px;
  height: 19px;
}

.dock-item.active {
  color: var(--accent);
  background: rgba(69,167,245,.13);
}

body.assistant-input-mode #dock {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(100%);
}

body.assistant-input-mode .assistant-page {
  padding-bottom: 0;
}

#booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  --booking-viewport-height: 100dvh;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .24s ease;
}

#booking-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.booking-shell {
  width: min(100%, var(--shell));
  height: var(--booking-viewport-height);
  min-height: var(--booking-viewport-height);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(20px + var(--safe-bottom));
}

.booking-step-shell {
  min-height: var(--booking-viewport-height);
  display: flex;
  flex-direction: column;
}

.booking-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 8px;
  background: rgba(34,34,34,.96);
  backdrop-filter: blur(12px);
}

.booking-topbar-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-sec);
  font-weight: 800;
}

.booking-step {
  flex: 1;
  padding: 8px 18px calc(22px + var(--safe-bottom));
}

.booking-step-animated {
  animation: fadeIn .15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.step-title {
  margin-bottom: 6px;
  font-family: 'Russo One', sans-serif;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.step-subtitle {
  margin-bottom: 14px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.35;
}

.summary-card,
.calendar,
.time-info,
.terms-box {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.055);
}

.info-card {
  overflow: hidden;
}

.booking-hero-img {
  display: block;
  width: calc(100% + 28px);
  height: 190px;
  margin: -14px -14px 14px;
  object-fit: cover;
  background: #fff;
}

.booking-info-title {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.booking-info-text {
  margin-top: 8px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.48;
}

.booking-info-price {
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.calendar {
  padding: 12px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-month {
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-weekdays {
  margin-bottom: 4px;
  color: var(--text-muted);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cal-days {
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.cal-day.today {
  outline: 1px solid rgba(69,167,245,.7);
}

.cal-day.selected {
  background: var(--accent);
  color: #091018;
}

.cal-day.disabled {
  opacity: .28;
}

.cal-day.empty {
  pointer-events: none;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.slot.start,
.slot.end {
  background: var(--accent);
  border-color: var(--accent);
  color: #091018;
}

.slot.in-range {
  background: rgba(69,167,245,.16);
  border-color: rgba(69,167,245,.24);
}

.slot.taken,
.slot.past,
.slot:disabled {
  opacity: .34;
}

.time-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}

.time-info.muted {
  color: var(--text-sec);
}

.time-info small {
  color: var(--text-muted);
  font-size: 12px;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 13px;
}

.summary-row span {
  color: var(--text-sec);
}

.summary-row strong,
.summary-total strong {
  text-align: right;
}

.summary-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 17px;
  font-weight: 800;
}

.contact-card .form-input,
.booking-request-card .form-input {
  margin-bottom: 0;
}

.booking-request-card {
  display: grid;
  gap: 13px;
}

.booking-request-input {
  min-height: 136px;
}

.terms-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.45;
}

.terms-box input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.booking-success {
  min-height: calc(var(--booking-viewport-height) - 50px);
  padding: 24px 18px calc(34px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.confirm-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(69,167,245,.15);
  color: var(--accent);
}

.confirm-icon svg {
  width: 34px;
  height: 34px;
}

.booking-success h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 25px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.booking-success p {
  margin: 10px 0 18px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
}

#dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

#dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  width: min(360px, 100%);
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #262626;
  box-shadow: 0 18px 46px rgba(0,0,0,.36);
}

.confirm-card h2 {
  font-size: 19px;
  line-height: 1.2;
}

.confirm-card p {
  margin: 10px 0 16px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  gap: 8px;
}

.dialog-actions > * {
  flex: 1;
}

#toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: calc(var(--dock) + var(--safe-bottom) + 16px);
  max-width: min(420px, calc(100vw - 34px));
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #091018;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 360px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: 360px;
  }

  .hero-inner {
    min-height: 360px;
  }
}
