:root {
  --bg: #c2cbe3;
  --bg-soft: rgba(255, 255, 255, 0.46);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-dark: #5b6488;
  --text: #3b355d;
  --text-soft: #645f84;
  --text-muted: #827ca3;
  --border: rgba(75, 67, 115, 0.16);
  --border-strong: rgba(75, 67, 115, 0.24);
  --accent: #6da8ff;
  --accent-deep: #4d79c8;
  --accent-soft: rgba(109, 168, 255, 0.18);
  --success: #2f8f61;
  --warning: #ca7a2a;
  --danger: #b45860;
  --shadow: 0 22px 48px rgba(59, 53, 93, 0.14);
  --shadow-soft: 0 10px 24px rgba(59, 53, 93, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-height: 74px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  inset: auto;
  z-index: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(48px);
}

body::before {
  width: 240px;
  height: 240px;
  top: 44px;
  left: -24px;
}

body::after {
  width: 280px;
  height: 280px;
  right: -64px;
  bottom: 110px;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

#app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

#pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}

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

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

.page-scroll {
  padding: calc(var(--safe-top) + 18px) 16px 0;
}

.page::-webkit-scrollbar,
.assistant-messages::-webkit-scrollbar,
.overlay-sheet::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-header {
  padding: calc(var(--safe-top) + 18px) 16px 10px;
}

.page-kicker,
.section-kicker,
.overlay-kicker {
  font-family: 'Russo One', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-title,
.section-title,
.overlay-title,
.hero-title,
.profile-title,
.contact-card-title,
.history-group-title {
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-title {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.02;
  color: var(--text);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.32);
}

.hero {
  position: relative;
  padding: calc(var(--safe-top) + 12px) 16px 0;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(246, 248, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-banner-frame {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(75, 67, 115, 0.12);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 16px;
}

.hero-title {
  font-size: clamp(28px, 6.6vw, 42px);
  line-height: 0.96;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 5px 0 rgba(77, 121, 200, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-meta span,
.status-chip,
.contact-link,
.certificate-status,
.booking-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-cta,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger,
.assistant-send,
.overlay-close,
.calendar-nav {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  padding: 0 18px;
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 16px;
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.hero-cta:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.btn-danger:active,
.service-card:active,
.dock-item:active,
.contact-link:active,
.assistant-send:active,
.overlay-close:active,
.calendar-nav:active,
.slot-button:active,
.fixed-slot-button:active {
  transform: scale(0.98);
}

.hero-cta,
.btn-primary {
  background: var(--accent);
  color: #f6fbff;
  box-shadow: inset 0 -4px 0 rgba(77, 121, 200, 0.38);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: rgba(180, 88, 96, 0.12);
  color: var(--danger);
  border: 1px solid rgba(180, 88, 96, 0.16);
}

.hero-cta,
.home-section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 22px;
  color: var(--text);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.3);
}

.section-note {
  max-width: 110px;
  color: var(--text-muted);
  text-align: right;
  font-size: 12px;
  line-height: 1.35;
}

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

.service-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.18s ease;
}

.service-card.service-card-disabled {
  opacity: 0.58;
}

.service-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.42);
}

.service-card-body {
  padding: 12px 12px 13px;
}

.service-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--text);
}

.service-card-price-prefix,
.service-card-price-unit,
.service-card-price-plain {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.service-card-price-value {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  line-height: 0.94;
  letter-spacing: 0.03em;
}

.service-card-price-plain {
  display: block;
  font-size: 13px;
}

.service-card-name {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  min-height: 34px;
}

.assistant-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.assistant-shell {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px calc(var(--dock-height) + var(--safe-bottom) + 18px);
}

.assistant-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 12px;
}

.chat-message {
  display: flex;
  margin-bottom: 10px;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble,
.chat-service-card,
.chat-typing {
  max-width: min(82%, 340px);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.chat-bubble,
.chat-typing {
  padding: 14px 16px;
  line-height: 1.5;
  font-size: 14px;
}

.chat-message.model .chat-bubble,
.chat-typing {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.chat-message.user .chat-bubble {
  background: var(--accent);
  color: #f8fbff;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-service-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
}

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

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

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

.chat-service-price {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.chat-service-btn {
  margin-top: 12px;
  width: 100%;
}

.assistant-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.assistant-input,
.form-input,
.overlay-request-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.assistant-input:focus,
.form-input:focus,
.overlay-request-input:focus {
  border-color: rgba(109, 168, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(109, 168, 255, 0.16);
}

.assistant-send {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent);
  color: #f6fbff;
  box-shadow: inset 0 -4px 0 rgba(77, 121, 200, 0.38);
}

.assistant-send svg {
  width: 18px;
  height: 18px;
}

.loading,
.empty-state,
.state-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading {
  padding: 36px 0;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(59, 53, 93, 0.1);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

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

.state-card,
.empty-state,
.profile-card,
.contact-card,
.booking-card,
.summary-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.state-card,
.empty-state {
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  margin: 0 16px;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.5;
}

.history-stack,
.profile-stack,
.contacts-stack {
  display: grid;
  gap: 12px;
  padding: 0 16px;
}

.history-group {
  display: grid;
  gap: 10px;
}

.history-group-title {
  font-size: 18px;
  color: var(--text);
  padding: 6px 2px 0;
}

.booking-card {
  padding: 16px;
}

.booking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-service {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.booking-meta,
.booking-summary,
.certificate-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

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

.booking-comment,
.booking-warning,
.overlay-note,
.summary-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(109, 168, 255, 0.08);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.booking-warning,
.summary-note.warning {
  background: rgba(202, 122, 42, 0.1);
  color: var(--warning);
}

.booking-actions,
.profile-actions,
.overlay-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.booking-actions > *,
.profile-actions > *,
.overlay-actions > *,
.button-row > * {
  flex: 1 1 0;
}

.status-chip.pending {
  color: var(--warning);
  background: rgba(202, 122, 42, 0.1);
  border-color: rgba(202, 122, 42, 0.18);
}

.status-chip.confirmed,
.status-chip.in_progress,
.status-chip.active {
  color: var(--success);
  background: rgba(47, 143, 97, 0.1);
  border-color: rgba(47, 143, 97, 0.16);
}

.status-chip.completed,
.status-chip.used {
  color: var(--text-soft);
}

.status-chip.cancelled,
.status-chip.pending_payment {
  color: var(--danger);
  background: rgba(180, 88, 96, 0.1);
  border-color: rgba(180, 88, 96, 0.16);
}

.profile-card,
.contact-card {
  padding: 18px;
}

.profile-title,
.contact-card-title {
  font-size: 16px;
  line-height: 1.08;
  color: var(--text);
}

.profile-handle {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

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

.field-stack {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.certificates-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.certificate-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.certificate-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.certificate-code {
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
  line-height: 1.1;
}

.certificate-status {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11px;
}

.certificate-empty {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-row {
  display: grid;
  gap: 4px;
}

.contact-row-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-row-value {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.contact-link {
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

#dock {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: 20;
}

.dock-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(244, 247, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.dock-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 8px 2px;
  border-radius: 18px;
  color: var(--text-muted);
  transition: background 0.14s ease, color 0.14s ease;
}

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

.dock-item span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dock-item.active {
  background: rgba(109, 168, 255, 0.14);
  color: var(--accent-deep);
}

.overlay,
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

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

.overlay-backdrop,
.dialog-overlay {
  background: rgba(38, 35, 59, 0.32);
  backdrop-filter: blur(10px);
}

.overlay-sheet {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #eef3ff;
  box-shadow: none;
}

.overlay-backdrop {
  display: none;
}

.overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: calc(var(--safe-top) + 18px) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(238, 243, 255, 0.98);
}

.overlay-close,
.calendar-nav {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.overlay-subtitle {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.overlay-body {
  padding: 8px 16px calc(var(--safe-bottom) + 24px);
}

.overlay-hero {
  display: grid;
  gap: 14px;
}

.overlay-service-media {
  display: block;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-soft);
}

.overlay-service-meta {
  display: grid;
  gap: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar {
  display: grid;
  gap: 12px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-title {
  font-family: 'Russo One', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-day,
.slot-button,
.fixed-slot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 800;
}

.calendar-day.is-disabled,
.slot-button.is-unavailable,
.fixed-slot-button.is-unavailable {
  opacity: 0.4;
}

.calendar-day.is-today {
  border-color: rgba(109, 168, 255, 0.34);
  color: var(--accent-deep);
}

.calendar-day.is-selected,
.slot-button.is-selected,
.fixed-slot-button.is-selected {
  background: var(--accent);
  border-color: rgba(77, 121, 200, 0.28);
  color: #f7fbff;
}

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

.fixed-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slot-button.is-in-range {
  background: rgba(109, 168, 255, 0.14);
  border-color: rgba(109, 168, 255, 0.2);
  color: var(--accent-deep);
}

.slot-button.is-edge {
  background: rgba(109, 168, 255, 0.22);
  border-color: rgba(109, 168, 255, 0.24);
  color: var(--accent-deep);
}

.slot-summary,
.summary-list {
  display: grid;
  gap: 10px;
}

.summary-card {
  padding: 16px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

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

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  line-height: 1.08;
}

.terms-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 13px;
}

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

.terms-copy button {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: underline;
}

.certificate-check {
  margin-top: 14px;
}

.certificate-check-row {
  display: flex;
  gap: 10px;
}

.certificate-check-row .form-input {
  flex: 1;
}

.certificate-check-row .btn-secondary {
  width: auto;
  min-width: 124px;
}

.certificate-check-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.certificate-check-status.is-valid {
  color: var(--success);
}

.certificate-check-status.is-invalid {
  color: var(--danger);
}

.overlay-request-input {
  min-height: 154px;
  resize: vertical;
}

.success-card {
  display: grid;
  gap: 12px;
  text-align: center;
}

.success-title {
  font-family: 'Russo One', sans-serif;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
}

.success-text {
  color: var(--text-soft);
  line-height: 1.55;
}

.dialog-card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(241, 245, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
}

.dialog-card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.dialog-card p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

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

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-height) + var(--safe-bottom) + 28px);
  z-index: 60;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  min-width: min(280px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(59, 53, 93, 0.92);
  color: #f5f7ff;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

@media (min-width: 720px) {
  .page-scroll,
  .page-header,
  .hero {
    width: min(960px, calc(100vw - 24px));
    margin: 0 auto;
  }

  .history-stack,
  .profile-stack,
  .contacts-stack,
  .assistant-shell {
    width: min(960px, calc(100vw - 24px));
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .fixed-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overlay-sheet {
    left: 50%;
    right: auto;
    width: min(740px, 100vw);
    transform: translateX(-50%);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
  }
}

@media (max-width: 420px) {
  .hero-card {
    padding: 14px 14px 18px;
  }

  .dialog-actions,
  .booking-actions,
  .profile-actions,
  .overlay-actions,
  .button-row {
    flex-direction: column;
  }

  .dialog-actions > *,
  .booking-actions > *,
  .profile-actions > *,
  .overlay-actions > *,
  .button-row > * {
    flex: 0 0 auto;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

  .slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fixed-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-check-row {
    flex-direction: column;
  }

  .certificate-check-row .btn-secondary {
    width: 100%;
  }
}
