:root {
  color: #15191d;
  background: #eef4f6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #15191d;
  --muted: #65737b;
  --line: rgba(24, 32, 36, 0.1);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --shadow: 0 28px 80px rgba(33, 49, 57, 0.16);
  --shadow-soft: 0 14px 36px rgba(33, 49, 57, 0.12);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --gold: #c5a764;
  --mint: #8fd8ce;
  --ice: #dce9ef;
  --blue: #aebdff;
  --rose: #ecc5b8;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

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

.kiosk-app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(235, 244, 246, 0.2) 42%, rgba(223, 234, 238, 0.8)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.14), transparent 38%, rgba(197, 167, 100, 0.12)),
    #eef4f6;
}

.kiosk-app::before,
.kiosk-app::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kiosk-app::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(120deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.kiosk-app::after {
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42) 44%, transparent 72%);
}

.screen-transition,
.screen-layer {
  position: absolute;
  inset: 0;
}

.screen-layer {
  z-index: 1;
}

.screen-layer--enter {
  z-index: 2;
}

.screen-layer--exit {
  pointer-events: none;
}

.screen-layer--enter.screen-layer--forward {
  animation: enter-forward 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--exit.screen-layer--forward {
  animation: exit-forward 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--enter.screen-layer--back {
  animation: enter-back 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.screen-layer--exit.screen-layer--back {
  animation: exit-back 220ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

@keyframes enter-forward {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes exit-forward {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-22px) scale(0.992);
  }
}

@keyframes enter-back {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes exit-back {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.992);
  }
}

.screen-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 30px 42px 38px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  margin-bottom: 28px;
}

.brand-chip,
.icon-action,
.ghost-button,
.start-button,
.thanks-actions button,
.confirm-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 760;
}

.brand-chip svg {
  color: var(--gold);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  height: 54px;
  border-radius: 999px;
  font-weight: 720;
}

.icon-action:hover,
.brand-chip:hover,
.menu-tile:hover,
.doctor-card:hover,
.primary-action:hover,
.service-row:hover,
.document-card:hover,
.confirm-button:hover,
.thanks-actions button:hover {
  transform: translateY(-2px);
}

.screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 26px;
  height: calc(100% - 90px);
  overflow: hidden;
}

.screen-grid:has(.screen-aside) {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.screen-heading {
  min-width: 0;
}

.screen-heading h1,
.splash-screen h1 {
  margin: 0;
  color: #101417;
  font-size: 4.45rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.96;
}

.eyebrow {
  margin: 0 0 13px;
  color: #728187;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-subtitle {
  width: min(780px, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.45;
}

.screen-aside {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 0;
}

.screen-content {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

.screen-grid:not(:has(.screen-aside)) .screen-content {
  grid-column: 1 / -1;
}

.splash-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 54px;
  width: 100%;
  height: 100%;
  padding: 64px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  pointer-events: none;
}

.ambient--one {
  inset: 0 52% 0 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(143, 216, 206, 0.14));
}

.ambient--two {
  inset: 0 0 0 58%;
  background: linear-gradient(235deg, rgba(197, 167, 100, 0.14), rgba(255, 255, 255, 0.2));
}

.splash-screen__content,
.splash-card {
  position: relative;
  z-index: 1;
}

.splash-mark,
.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  border-radius: 28px;
  background: #12171b;
  color: #f5deb3;
  box-shadow: 0 28px 70px rgba(18, 23, 27, 0.22);
}

.splash-lead {
  max-width: 710px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.start-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 68px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 1.04rem;
  font-weight: 800;
}

.start-button {
  min-width: 190px;
  background: #11171b;
  color: white;
  border-color: rgba(17, 23, 27, 0.2);
}

.ghost-button {
  min-width: 154px;
}

.feature-strip,
.feature-stack {
  display: flex;
  gap: 12px;
}

.feature-strip {
  flex-wrap: wrap;
  margin-top: 32px;
}

.feature-strip span,
.feature-stack span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #506069;
  font-size: 0.92rem;
  font-weight: 720;
  backdrop-filter: blur(18px);
}

.splash-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: min(680px, 78vh);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.clinic-preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 236, 239, 0.86)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.16), rgba(197, 167, 100, 0.12));
}

.clinic-preview__light {
  position: absolute;
  inset: 18% 14% auto;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.9);
}

.clinic-preview__chair {
  position: absolute;
  right: 11%;
  bottom: 16%;
  width: 64%;
  height: 32%;
  border-radius: 90px 34px 34px 110px;
  background: linear-gradient(135deg, #ffffff, #cbdbe0);
  box-shadow: 0 32px 50px rgba(76, 95, 104, 0.18);
}

.clinic-preview__chair::before {
  content: "";
  position: absolute;
  left: 8%;
  top: -72%;
  width: 42%;
  height: 120%;
  border-radius: 42px;
  background: linear-gradient(145deg, #fdfefe, #cedce1);
  transform: rotate(-18deg);
}

.clinic-preview__console {
  position: absolute;
  left: 12%;
  bottom: 12%;
  width: 24%;
  height: 46%;
  border-radius: 28px;
  background: rgba(20, 28, 32, 0.92);
  box-shadow: 0 24px 44px rgba(24, 32, 36, 0.2);
}

.clinic-preview__badge {
  position: absolute;
  right: 11%;
  top: 14%;
  color: var(--gold);
  filter: drop-shadow(0 14px 20px rgba(197, 167, 100, 0.2));
}

.stat-row,
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-row {
  margin-top: 18px;
}

.stat-row div,
.mini-stats div {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.stat-row strong,
.mini-stats strong {
  display: block;
  font-size: 1.45rem;
}

.stat-row span,
.mini-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.menu-aside {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
}

.status-orb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.status-orb span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #a6f0da 0 42%, #2d8b72 43% 100%);
  box-shadow: 0 0 0 9px rgba(143, 216, 206, 0.18);
}

.status-orb strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.feature-stack {
  flex-direction: column;
  min-height: 0;
}

.feature-stack span {
  justify-content: flex-start;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
}

.menu-grid,
.doctors-grid,
.works-grid,
.promo-grid,
.services-grid,
.document-grid,
.documents-hub-grid {
  display: grid;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

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

.menu-tile,
.doctor-card,
.primary-action,
.document-card,
.documents-hub-card,
.work-card,
.review-card,
.review-score,
.promo-card,
.service-panel,
.appointment-panel,
.contact-card,
.route-card,
.map-panel,
.thanks-layout {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.menu-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, background 180ms ease;
}

.menu-tile__icon,
.primary-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(17, 23, 27, 0.92);
  color: white;
}

.menu-tile strong {
  margin-top: auto;
  font-size: 1.58rem;
  line-height: 1.08;
}

.menu-tile small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 680;
}

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

.doctor-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 17px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.doctor-card::before,
.profile-photo::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 42%;
  border-radius: 28px;
  background: color-mix(in srgb, var(--doctor-accent, #8fd8ce) 42%, white);
  opacity: 0.5;
}

.doctor-card__photo {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(203, 219, 224, 0.88)),
    color-mix(in srgb, var(--doctor-accent, #8fd8ce) 34%, white);
}

.doctor-card__photo img,
.profile-photo img,
.doctor-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 4px 6px 8px;
}

.doctor-card__body small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.doctor-card__body strong {
  margin-top: 9px;
  font-size: 1.38rem;
  line-height: 1.08;
}

.doctor-card__body em {
  margin-top: auto;
  color: #3d4d54;
  font-size: 0.96rem;
  font-style: normal;
  font-weight: 760;
}

.doctor-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: #12171b;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(310px, 38%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  height: 100%;
}

.profile-photo {
  position: relative;
  grid-row: 1 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.profile-photo img {
  position: relative;
  z-index: 1;
}

.profile-photo__glass {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: #243139;
  font-weight: 780;
  backdrop-filter: blur(22px);
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.profile-info p {
  max-width: 760px;
  margin: 0;
  color: #3a4850;
  font-size: 1.22rem;
  line-height: 1.55;
}

.competency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.competency-grid span {
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.07);
  color: #34434a;
  font-weight: 760;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.primary-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

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

.primary-action strong {
  font-size: 1.08rem;
}

.primary-action small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
}

.primary-action--dark {
  background: #11171b;
  color: white;
}

.primary-action--dark small {
  color: rgba(255, 255, 255, 0.68);
}

.primary-action--dark .primary-action__icon {
  background: rgba(255, 255, 255, 0.12);
}

.primary-action--gold .primary-action__icon {
  background: var(--gold);
  color: #101417;
}

.works-grid,
.promo-grid,
.services-grid,
.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.promo-card,
.service-panel,
.review-card,
.review-score,
.appointment-panel,
.contact-card,
.route-card,
.thanks-layout {
  border-radius: var(--radius-md);
}

.work-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.smile-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-height: 0;
}

.smile-shot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(95, 48, 56, 0.28) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(216, 230, 232, 0.95)),
    linear-gradient(115deg, rgba(240, 182, 167, 0.62), rgba(143, 216, 206, 0.42));
}

.smile-shot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.smile-shot::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12%;
  right: 12%;
  top: 34%;
  height: 36%;
  border-radius: 50% / 44%;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 196, 188, 0.72) 0 17%, transparent 18%),
    linear-gradient(180deg, rgba(154, 77, 84, 0.48), rgba(94, 48, 58, 0.32));
  box-shadow: inset 0 -18px 26px rgba(84, 42, 48, 0.16);
}

.smile-shot::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  top: 45%;
  height: 19%;
  border-radius: 28px;
  background:
    linear-gradient(90deg, #fff 0 15%, #eef7f7 15% 17%, #fff 17% 32%, #eef7f7 32% 34%, #fff 34% 49%, #eef7f7 49% 51%, #fff 51% 66%, #eef7f7 66% 68%, #fff 68% 83%, #eef7f7 83% 85%, #fff 85%),
    #fff;
  box-shadow: 0 10px 18px rgba(62, 78, 82, 0.12);
}

.smile-shot--after::before {
  left: 10%;
  right: 10%;
}

.smile-shot--after::after {
  left: 14%;
  right: 14%;
  top: 44%;
  height: 21%;
  background:
    linear-gradient(90deg, #fff 0 16%, #f7ffff 16% 18%, #fff 18% 34%, #f7ffff 34% 36%, #fff 36% 52%, #f7ffff 52% 54%, #fff 54% 70%, #f7ffff 70% 72%, #fff 72% 88%, #f7ffff 88% 90%, #fff 90%),
    #fff;
}

.smile-shot span {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.78);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
}

.smile-shot i {
  position: absolute;
  z-index: 2;
  left: 18%;
  right: 18%;
  bottom: 18%;
  height: 9px;
  border-radius: 999px;
  background: rgba(98, 58, 64, 0.16);
}

.work-card--2 .smile-shot {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(62, 74, 82, 0.18) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(246, 250, 251, 0.98), rgba(219, 232, 236, 0.95)),
    linear-gradient(115deg, rgba(174, 189, 255, 0.46), rgba(198, 179, 127, 0.35));
}

.work-card--3 .smile-shot {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(70, 56, 88, 0.18) 0 20%, transparent 21%),
    linear-gradient(180deg, rgba(255, 251, 248, 0.98), rgba(223, 234, 238, 0.95)),
    linear-gradient(115deg, rgba(236, 197, 184, 0.56), rgba(184, 199, 255, 0.34));
}

.work-card__body {
  padding: 22px;
}

.work-card__body small,
.promo-card span,
.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
  text-transform: uppercase;
}

.work-card__body h2,
.promo-card h2,
.service-panel h2,
.appointment-panel h2 {
  margin: 8px 0 12px;
  font-size: 1.34rem;
  line-height: 1.12;
}

.work-card__body p {
  margin: 7px 0 0;
  color: #56666d;
  line-height: 1.35;
}

.review-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
}

.review-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  text-align: center;
}

.review-score svg {
  color: var(--gold);
}

.review-score strong {
  margin-top: 18px;
  font-size: 4rem;
  line-height: 1;
}

.review-score span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 760;
}

.client-strip {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
}

.client-strip em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: #65737b;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 730;
}

.client-strip b {
  color: #15191d;
}

.review-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.review-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card div > strong {
  font-size: 1.16rem;
}

.review-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-weight: 820;
}

.review-card p {
  margin: 18px 0 0;
  color: #45555d;
  font-size: 1.04rem;
  line-height: 1.45;
}

.document-grid {
  align-items: stretch;
}

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

.documents-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.documents-hub-card:hover {
  transform: translateY(-2px);
}

.documents-hub-card::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 44%;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(30, 42, 48, 0.08) 19px 20px);
}

.documents-hub-card span {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 23px;
  background: rgba(17, 23, 27, 0.92);
  color: white;
}

.documents-hub-card strong,
.documents-hub-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.documents-hub-card strong {
  font-size: 1.68rem;
  line-height: 1.05;
}

.documents-hub-card small {
  margin-top: 10px;
  color: #5a686f;
  font-size: 0.96rem;
  font-weight: 760;
}

.documents-hub-card--mint {
  background: color-mix(in srgb, var(--mint) 24%, white);
}

.documents-hub-card--ice {
  background: color-mix(in srgb, var(--ice) 62%, white);
}

.documents-hub-card--gold {
  background: color-mix(in srgb, var(--gold) 24%, white);
}

.documents-hub-card--rose {
  background: color-mix(in srgb, var(--rose) 34%, white);
}

.document-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.document-card::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 44%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(30, 42, 48, 0.08) 18px 19px);
}

.document-card--mint,
.document-sheet--mint {
  background: color-mix(in srgb, var(--mint) 23%, white);
}

.document-card--ice,
.document-sheet--ice {
  background: color-mix(in srgb, var(--ice) 60%, white);
}

.document-card--gold,
.document-sheet--gold {
  background: color-mix(in srgb, var(--gold) 24%, white);
}

.document-card--rose,
.document-sheet--rose {
  background: color-mix(in srgb, var(--rose) 34%, white);
}

.document-card__icon {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(17, 23, 27, 0.9);
  color: white;
}

.document-card p,
.document-card h3,
.document-card strong {
  position: relative;
  z-index: 1;
}

.document-card p {
  margin: 0 0 10px;
  color: #5a686f;
  font-weight: 760;
}

.document-card h3 {
  margin: 0;
  font-size: 1.46rem;
  line-height: 1.12;
}

.document-card strong {
  margin-top: 18px;
  font-size: 1.1rem;
}

.document-viewer {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(17, 23, 27, 0.08);
}

.document-viewer__back {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
}

.document-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(680px, 72%);
  height: 88%;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}

.document-sheet__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #11171b;
  color: var(--gold);
}

.document-sheet p {
  margin: 24px 0 12px;
  color: #6b7a82;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-sheet h2 {
  max-width: 520px;
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.05;
}

.document-sheet span {
  margin-top: 18px;
  color: #596870;
  font-size: 1.1rem;
}

.document-sheet strong {
  margin-top: 20px;
  font-size: 1.55rem;
}

.document-lines {
  display: grid;
  gap: 12px;
  width: 74%;
  margin-top: 38px;
}

.document-lines i {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.12);
}

.promo-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}

.promo-card h2 {
  margin-top: 18px;
  font-size: 1.8rem;
}

.promo-card p {
  margin: 0;
  color: #526169;
  font-size: 1.04rem;
  line-height: 1.45;
}

.promo-card strong {
  margin-top: auto;
  color: #11171b;
  font-size: 2rem;
}

.service-panel {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 24px;
}

.service-panel h2 {
  margin: 0 0 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease;
}

.service-row span {
  min-width: 0;
}

.service-row strong,
.service-row small {
  display: block;
}

.service-row strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.service-row small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.service-row em {
  flex: 0 0 auto;
  color: #11171b;
  font-style: normal;
  font-weight: 830;
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  height: 100%;
}

.appointment-panel {
  min-height: 0;
  padding: 24px;
}

.appointment-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.doctor-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  height: calc(100% - 52px);
}

.doctor-picker button {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  text-align: left;
}

.doctor-picker button.is-selected,
.time-grid button.is-selected {
  border-color: rgba(17, 23, 27, 0.5);
  background: rgba(17, 23, 27, 0.92);
  color: white;
}

.doctor-picker img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}

.doctor-picker span {
  display: block;
  min-height: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.doctor-picker button.is-selected span {
  background: rgba(17, 23, 27, 0.92);
}

.doctor-picker strong,
.doctor-picker small {
  display: block;
}

.doctor-picker strong {
  font-size: 1.02rem;
  line-height: 1.08;
}

.doctor-picker small {
  margin-top: 6px;
  color: currentColor;
  opacity: 0.64;
  line-height: 1.24;
}

.appointment-panel--time {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.time-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(17, 23, 27, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 820;
}

.visit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.visit-summary span {
  color: #526169;
  font-weight: 760;
}

.visit-summary strong {
  font-size: 1.5rem;
}

.confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  border-radius: 22px;
  background: #11171b;
  color: white;
  font-weight: 840;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  height: 100%;
}

.map-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(217, 236, 237, 0.52)),
    linear-gradient(90deg, rgba(143, 216, 206, 0.18), rgba(197, 167, 100, 0.1));
}

.map-gridline {
  position: absolute;
  border-radius: 999px;
  background: rgba(17, 23, 27, 0.08);
}

.map-gridline--one {
  left: -10%;
  right: 8%;
  top: 33%;
  height: 18px;
  transform: rotate(-14deg);
}

.map-gridline--two {
  left: 34%;
  top: -12%;
  bottom: -10%;
  width: 18px;
  transform: rotate(22deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 38%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  background: #11171b;
  color: var(--gold);
  box-shadow: 0 18px 40px rgba(17, 23, 27, 0.22);
}

.map-panel strong {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
}

.map-panel em {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.contact-card-grid {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.contact-card,
.route-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.contact-card strong,
.route-card strong {
  margin-top: 10px;
  font-size: 1.28rem;
  line-height: 1.14;
}

.route-card {
  background: #11171b;
  color: white;
}

.route-card svg {
  color: var(--gold);
}

.route-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
}

.thanks-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 48px;
  text-align: center;
}

.thanks-layout h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
}

.thanks-layout p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.45;
}

.thanks-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.thanks-actions button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 820;
}

@media (max-width: 1180px) {
  .screen-shell {
    padding: 24px;
  }

  .screen-grid:has(.screen-aside) {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: 3.3rem;
  }

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

  .doctors-grid,
  .works-grid,
  .promo-grid,
  .services-grid,
  .document-grid,
  .documents-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctors-grid .doctor-card:nth-child(4),
  .promo-grid .promo-card:nth-child(3),
  .services-grid .service-panel:nth-child(3),
  .document-grid .document-card:nth-child(3) {
    display: none;
  }

  .splash-screen {
    grid-template-columns: 1fr;
  }

  .splash-card {
    display: none;
  }
}

@media (max-height: 790px) {
  .screen-shell {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .topbar {
    height: 54px;
    margin-bottom: 18px;
  }

  .brand-chip,
  .icon-action {
    height: 48px;
  }

  .screen-grid {
    height: calc(100% - 72px);
    gap: 18px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: 3.15rem;
  }

  .screen-subtitle {
    margin-top: 10px;
    font-size: 1rem;
  }

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

  .primary-action {
    min-height: 76px;
  }
}

@media (max-width: 820px) {
  .topbar__actions span {
    display: none;
  }

  .icon-action {
    min-width: 54px;
    padding: 0;
  }

  .screen-grid:has(.screen-aside) {
    grid-template-columns: minmax(0, 1fr);
  }

  .screen-aside {
    display: none;
  }

  .profile-layout,
  .appointment-layout,
  .contacts-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo,
  .review-score,
  .contact-card-grid {
    display: none;
  }
}

/* Dr. Osmanov kiosk refresh */
.kiosk-app {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(231, 243, 247, 0.56) 48%, rgba(222, 234, 239, 0.9)),
    linear-gradient(90deg, rgba(116, 202, 211, 0.13), transparent 42%, rgba(199, 169, 106, 0.15)),
    #edf6f8;
}

.tooth-backdrop {
  position: absolute;
  z-index: 0;
  right: -5vw;
  top: 50%;
  width: min(70vw, 760px);
  height: auto;
  opacity: 0.18;
  filter: drop-shadow(0 30px 80px rgba(199, 169, 106, 0.32));
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.splash-mark {
  background: rgba(255, 255, 255, 0.62);
}

.splash-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.splash-card--photo {
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 18px;
}

.hero-photo {
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-photo img,
.clinic-side-photo img,
.work-photo img,
.client-story img,
.map-panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo--reception img {
  object-position: center 40%;
}

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

.menu-aside--clinic {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.clinic-side-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.clinic-side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 16, 19, 0.74));
}

.clinic-side-photo span {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 20px;
  color: white;
  font-size: 1.28rem;
  font-weight: 840;
}

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

.doctor-card__photo img,
.profile-photo img,
.doctor-picker img {
  object-position: center top;
}

.works-grid--photo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card--photo {
  min-width: 0;
}

.work-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d9e6e9;
}

.work-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(14, 20, 24, 0.62));
  pointer-events: none;
}

.work-photo img {
  filter: saturate(0.96) contrast(1.03);
}

.work-photo span {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(16, 22, 25, 0.74);
  color: white;
  font-size: 0.72rem;
  font-weight: 840;
  text-transform: uppercase;
}

.work-card--photo .work-card__body {
  padding: 16px 17px 17px;
}

.work-card--photo .work-card__body h2 {
  margin: 6px 0 8px;
  font-size: 1.04rem;
  line-height: 1.12;
}

.work-card--photo .work-card__body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #536269;
  font-size: 0.88rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-grid--six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-width: 0;
}

.review-card small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 740;
}

.review-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.review-score .primary-action {
  width: 100%;
  margin-top: 18px;
}

.review-score .primary-action strong {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.review-score .primary-action span {
  margin-top: 0;
  color: inherit;
  font-weight: inherit;
}

.review-score .primary-action small {
  color: rgba(255, 255, 255, 0.68);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.client-story {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.client-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(13, 19, 23, 0.72));
}

.client-story div {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: white;
}

.client-story strong,
.client-story span {
  display: block;
}

.client-story strong {
  font-size: 1.24rem;
  line-height: 1.08;
}

.client-story span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 720;
}

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

.services-grid--four .service-panel {
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  padding: 20px;
}

.services-grid--four .service-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.services-grid--four .service-row em {
  font-size: 1.03rem;
}

.map-panel--photo {
  background: #dce9ef;
}

.map-panel--photo img {
  position: absolute;
  inset: 0;
  filter: saturate(0.95) contrast(1.02);
}

.map-panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 18, 0.06), rgba(8, 14, 18, 0.74));
}

.map-panel--photo strong,
.map-panel--photo em,
.map-panel--photo .map-pin {
  z-index: 1;
}

.map-panel--photo strong,
.map-panel--photo em {
  color: white;
}

.map-panel--photo em {
  color: rgba(255, 255, 255, 0.76);
}

.documents-hub-card::before,
.document-card::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

@media (max-width: 1180px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .doctors-grid--three,
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .works-grid--photo {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

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

  .services-grid.services-grid--four .service-panel:nth-child(3),
  .services-grid.services-grid--four .service-panel:nth-child(4),
  .document-grid .document-card:nth-child(3) {
    display: grid;
  }

  .promo-grid .promo-card:nth-child(3) {
    display: flex;
  }
}

@media (max-height: 790px) {
  .works-grid--photo {
    gap: 10px;
  }

  .work-card--photo .work-card__body {
    padding: 12px;
  }

  .work-card--photo .work-card__body h2 {
    font-size: 0.94rem;
  }

  .work-card--photo .work-card__body p {
    -webkit-line-clamp: 1;
  }

  .review-card {
    padding: 18px;
  }

  .review-card p {
    margin-top: 8px;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 820px) {
  .menu-grid,
  .works-grid--photo,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .review-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .tooth-backdrop {
    width: 86vw;
    right: -22vw;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 16px;
  }

  html,
  body,
  #root {
    min-width: 320px;
  }

  .screen-shell {
    padding: max(16px, env(safe-area-inset-top)) 28px max(18px, env(safe-area-inset-bottom));
  }

  .topbar {
    height: 56px;
    margin-bottom: 20px;
  }

  .brand-chip {
    max-width: 188px;
    height: 52px;
    padding: 0 16px;
    gap: 10px;
    font-size: 0.98rem;
  }

  .brand-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar__actions {
    gap: 10px;
  }

  .icon-action {
    min-width: 52px;
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .screen-grid,
  .screen-grid:has(.screen-aside) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100% - 76px);
    gap: 18px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    max-width: 10ch;
    font-size: clamp(3.05rem, 13vw, 4rem);
    line-height: 1.08;
  }

  .screen-heading h1 {
    text-wrap: balance;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .screen-subtitle {
    max-width: 34ch;
    margin-top: 12px;
    font-size: 1.06rem;
    line-height: 1.38;
  }

  .screen-content {
    min-height: 0;
    overflow: hidden;
  }

  .screen-aside {
    display: none;
  }

  .splash-screen {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px 28px;
  }

  .splash-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 24px;
  }

  .splash-mark img {
    width: 54px;
    height: 54px;
  }

  .splash-lead {
    max-width: 32ch;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .splash-actions {
    gap: 12px;
    margin-top: 28px;
  }

  .start-button,
  .ghost-button {
    height: 58px;
    min-width: 0;
    padding: 0 20px;
  }

  .feature-strip {
    gap: 8px;
    margin-top: 24px;
  }

  .feature-strip span {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-tile {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 10px 8px;
    border-radius: 22px;
    text-align: center;
  }

  .menu-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .menu-tile__icon svg {
    width: 24px;
    height: 24px;
  }

  .menu-tile strong {
    margin-top: 2px;
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .menu-tile small {
    display: none;
  }

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

  .doctors-grid--three .doctor-card:nth-child(3) {
    width: calc(50% - 5px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .doctor-card {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    border-radius: 26px;
  }

  .doctor-card::before {
    inset: auto 10px 10px;
    height: 38%;
    border-radius: 20px;
  }

  .doctor-card__photo {
    border-radius: 22px;
  }

  .doctor-card__photo img {
    object-position: center top;
  }

  .doctor-card__body {
    min-height: 0;
    padding: 0 2px 3px;
  }

  .doctor-card__body small {
    display: none;
  }

  .doctor-card__body strong {
    margin-top: 0;
    font-size: clamp(0.94rem, 3.9vw, 1.18rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .doctor-card__body em {
    margin-top: 5px;
    font-size: clamp(0.68rem, 2.55vw, 0.82rem);
    line-height: 1.12;
  }

  .doctor-card__arrow {
    display: none;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .profile-photo {
    display: none;
  }

  .profile-info {
    padding: 22px;
  }

  .profile-info p {
    font-size: 1rem;
    line-height: 1.42;
  }

  .competency-grid span {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

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

  .primary-action {
    min-height: 70px;
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }

  .primary-action__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .primary-action strong {
    font-size: 0.96rem;
    line-height: 1.1;
  }

  .primary-action small {
    display: none;
  }

  .works-grid--photo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .work-card--photo {
    grid-template-rows: minmax(0, 1fr);
    border-radius: 22px;
  }

  .work-card--photo .work-card__body {
    display: none;
  }

  .work-photo span {
    left: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 8px;
    font-size: 0.6rem;
  }

  .review-layout,
  .contacts-layout,
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .review-score,
  .contact-card-grid {
    display: none;
  }

  .review-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .review-card {
    padding: 18px;
    border-radius: 22px;
  }

  .review-card div {
    align-items: flex-start;
    gap: 8px;
  }

  .review-card div > strong {
    font-size: clamp(1rem, 4vw, 1.24rem);
    line-height: 1.05;
  }

  .review-card span {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .review-card p {
    display: none;
  }

  .review-card small {
    margin-top: 12px;
    font-size: 0.82rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .client-story {
    border-radius: 28px;
  }

  .client-story div {
    left: 14px;
    right: 14px;
    bottom: 13px;
  }

  .client-story strong {
    font-size: clamp(0.94rem, 4.4vw, 1.18rem);
  }

  .client-story span {
    display: none;
  }

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

  .services-grid--four .service-panel {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    padding: 14px;
    border-radius: 22px;
  }

  .service-panel h2 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.1;
  }

  .services-grid--four .service-row {
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }

  .service-row strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .service-row small {
    display: none;
  }

  .services-grid--four .service-row em {
    margin-top: 7px;
    max-width: 100%;
    font-size: 0.76rem;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .appointment-layout {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .appointment-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .appointment-panel h2 {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .doctor-picker {
    gap: 9px;
    height: calc(100% - 36px);
  }

  .doctor-picker button {
    border-radius: 18px;
  }

  .doctor-picker span {
    min-height: 64px;
    padding: 9px;
  }

  .doctor-picker strong {
    font-size: 0.76rem;
    line-height: 1.05;
  }

  .doctor-picker small {
    margin-top: 4px;
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .appointment-panel--time {
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .time-grid {
    gap: 8px;
  }

  .time-grid button {
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .visit-summary {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .visit-summary span {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .visit-summary strong {
    font-size: 1.1rem;
  }

  .confirm-button {
    height: 54px;
    border-radius: 17px;
  }

  .map-panel {
    min-height: 0;
    padding: 26px;
    border-radius: 0;
  }

  .map-pin {
    width: 76px;
    height: 76px;
    border-radius: 26px;
  }

  .map-panel strong {
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.08;
  }

  .map-panel em {
    font-size: 1rem;
  }

  .document-grid,
  .documents-hub-grid,
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .screen-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .screen-heading h1,
  .splash-screen h1 {
    font-size: clamp(2.55rem, 12.4vw, 3.4rem);
  }

  .screen-subtitle {
    font-size: 0.96rem;
  }

  .menu-tile__icon,
  .primary-action__icon {
    width: 38px;
    height: 38px;
  }

  .menu-tile strong,
  .doctor-card__body strong {
    font-size: 0.78rem;
  }

  .review-card,
  .appointment-panel {
    padding: 14px;
  }
}
