﻿:root {
  --bg: #080b13;
  --panel: #0c1018;
  --panel-soft: #111827;
  --surface: #eceef1;
  --surface-soft: #f4f5f6;
  --layer-dark: #131416;
  --accent: #08c7be;
  --accent-strong: #04b2aa;
  --text: #f2f6fa;
  --muted: #a5afbe;
  --field-bg: #d7dbe1;
  --field-text: #2f3642;
  --danger: #ff8c8c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(560px 360px at -20% 25%, rgba(8, 199, 190, 0.08), transparent 70%),
    radial-gradient(540px 300px at 115% 85%, rgba(8, 199, 190, 0.08), transparent 70%),
    var(--bg);
  overflow-x: hidden;
  position: relative;
}

.home-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px 34px;
}

body.login-page {
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

body.login-page .home-root {
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  justify-content: center;
  align-items: center;
  padding: 10px 14px 12px;
  gap: 0;
}

body.login-page .logo-wrap {
  margin-bottom: calc(-1 * clamp(56px, 15vw, 84px));
}

body.login-page #auth-frame {
  max-height: calc(100svh - 22px);
  overflow: auto;
  overscroll-behavior: contain;
}

body.checking .frame,
body.checking .booking-screen {
  opacity: 0.52;
  pointer-events: none;
}

body.authenticated .logo-wrap,
body.authenticated #auth-frame {
  display: none;
}

body.authenticated .home-root {
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: -86px;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 0;
  width: min(270px, 62vw);
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45));
}

.frame {
  position: relative;
  z-index: 2;
  width: min(440px, 95vw);
  background: linear-gradient(180deg, rgba(16, 208, 198, 0.96), rgba(11, 166, 159, 0.96));
  border-radius: 34px;
  padding: 18px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.card {
  background: linear-gradient(180deg, #0d111c, #090d16);
  border-radius: 26px;
  border: 1px solid rgba(8, 199, 190, 0.32);
  padding: 16px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(10, 17, 28, 0.72);
}

.tab {
  border: 0;
  padding: 12px 10px;
  background: rgba(8, 199, 190, 0.86);
  color: #071018;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tab:not(.is-active) {
  opacity: 0.72;
  transform: translateY(1px);
}

.tab.is-active {
  opacity: 1;
  box-shadow: inset 0 -3px 0 rgba(4, 83, 77, 0.46);
}

.panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.22s ease, transform 0.22s ease;
}

.panel.is-active {
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.field {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.field input {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--field-text);
  font-size: 1rem;
  font-weight: 700;
  padding: 0 50px 0 54px;
  outline: none;
}

.field input::placeholder {
  color: #6e7784;
  opacity: 1;
}

.icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #6d7682;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.toggle-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #67707b;
  cursor: pointer;
}

.toggle-eye svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.primary-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  margin-top: 6px;
  background: var(--accent);
  color: #041019;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.14s ease, transform 0.14s ease;
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.primary-btn:active {
  transform: translateY(1px);
}

.auth-submit-btn {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  letter-spacing: 0.02em;
}

.forgot-link {
  display: block;
  margin-top: 10px;
  text-align: right;
  text-decoration: none;
  color: #d7dde6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status {
  min-height: 1.2em;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.status.is-error {
  color: var(--danger);
}

.status.is-ok {
  color: #86ebaf;
}

.divider {
  margin: 12px 0 10px;
  text-align: center;
  color: #edf1f8;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.telegram-btn {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0b1018;
  color: #f4f8fb;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.tg-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf2f8;
  color: #0d1118;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.booking-screen {
  width: min(474px, 96vw);
  min-height: calc(100dvh - 32px);
}

.booking-stack {
  position: relative;
  min-height: calc(100dvh - 32px);
  border-radius: 38px;
  overflow: hidden;
  container-type: inline-size;
  --layer-spine-width: 56px;
  --layer-nav-zone: 78px;
  --layer-gap: 16px;
  --layer-shell-pad-x: 8px;
  --dark-cutout-height: calc(100cqi * 102.5 / 474);
  --dark-cutout-right-limit: calc(100cqi * 397.5 / 474);
  --nav-field-top-gap: 8px;
  --nav-field-right-gap: var(--nav-field-top-gap);
  --nav-zone-top: max(0px, calc(100% - var(--dark-cutout-height) + var(--nav-field-top-gap)));
  --bottom-nav-pad-top: 12px;
  --bottom-nav-pad-bottom: 10px;
  --bottom-nav-pad-x: 10px;
  --dark-center-gap: 25px;
}

.booking-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.booking-layer-stripes {
  background:
    repeating-linear-gradient(
      -45deg,
      #0fd3c8 0,
      #0fd3c8 4px,
      #0a1119 4px,
      #0a1119 8px
    );
}

.booking-layer-dark {
  inset: 0;
  --dark-shape-base-height: calc(100cqi * 1028 / 474);
  --dark-shape-overlap: 36px;
  --dark-center-height-factor: 0.92;
  --dark-center-bottom-fill: 0px;
  --dark-center-shape-width: calc(100cqi - (2 * var(--dark-center-gap)));
  --dark-center-shape-base-height: calc(var(--dark-center-shape-width) * 612 / 422 * var(--dark-center-height-factor));
  --dark-center-shape-height: calc(var(--dark-center-shape-base-height) + var(--dark-center-bottom-fill));
  --dark-notch-line-center-x: calc(var(--dark-center-gap) + (var(--dark-center-shape-width) * 211 / 422) - clamp(4px, 1cqi, 8px) + 1px);
  --dark-notch-title-center-y: calc(var(--dark-center-gap) + (var(--dark-center-shape-width) * 46 / 422));
  --dark-pager-top: calc(var(--dark-center-gap) + var(--dark-center-shape-height) - clamp(14px, 3cqi, 22px));
  --dark-book-btn-top: calc(var(--dark-pager-top) + 84px);
}

.booking-layer-dark::before,
.booking-layer-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: var(--layer-dark);
}

/* Keep the original bottom contour fixed to the stack bottom. */
.booking-layer-dark::before {
  bottom: 0;
  width: 100%;
  height: var(--dark-shape-base-height);
  z-index: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 474 1028'%3E%3Cpath fill='white' d='M474 30C474 13.4315 460.569 0 444 0H30C13.4315 0 0 13.4315 0 30V895.5C0 912.069 13.4315 925.5 30 925.5H367.5C384.069 925.5 397.5 938.931 397.5 955.5V998C397.5 1014.57 410.931 1028 427.5 1028H444C460.569 1028 474 1014.57 474 998V859V771V30Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 474 1028'%3E%3Cpath fill='white' d='M474 30C474 13.4315 460.569 0 444 0H30C13.4315 0 0 13.4315 0 30V895.5C0 912.069 13.4315 925.5 30 925.5H367.5C384.069 925.5 397.5 938.931 397.5 955.5V998C397.5 1014.57 410.931 1028 427.5 1028H444C460.569 1028 474 1014.57 474 998V859V771V30Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Extend only the top when the stack is taller than the base shape. */
.booking-layer-dark::after {
  top: 0;
  width: 100%;
  height: clamp(0px, calc(100% - var(--dark-shape-base-height) + var(--dark-shape-overlap)), 100%);
  border-radius: 30px 30px 0 0;
  z-index: 1;
}

.booking-dark-center-shape {
  position: absolute;
  left: var(--dark-center-gap);
  right: var(--dark-center-gap);
  top: var(--dark-center-gap);
  --center-notch-bottom-y: calc(92 / 612 * 100%);
  --center-points-offset: clamp(12px, 3cqi, 20px);
  --center-points-top: calc(var(--center-notch-bottom-y) + clamp(14px, 3.2cqi, 22px));
  --center-points-size: clamp(58px, 24%, 116px);
  width: auto;
  height: var(--dark-center-shape-height);
  background-color: #eff0ef;
  background-image: url("/Image/site/5_points.svg");
  background-repeat: no-repeat;
  background-position: right var(--center-points-offset) top var(--center-points-top);
  background-size: var(--center-points-size) auto;
  z-index: 2;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 422 612'%3E%3Cpath fill='white' d='M0 32C0 14.327 14.327 0 32 0H179C196.673 0 211 14.327 211 32V60C211 77.673 225.327 92 243 92H390C407.673 92 422 106.327 422 124V580C422 597.673 407.673 612 390 612H32C14.327 612 0 597.673 0 580V32Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 422 612'%3E%3Cpath fill='white' d='M0 32C0 14.327 14.327 0 32 0H179C196.673 0 211 14.327 211 32V60C211 77.673 225.327 92 243 92H390C407.673 92 422 106.327 422 124V580C422 597.673 407.673 612 390 612H32C14.327 612 0 597.673 0 580V32Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.booking-dark-lower-figure {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11%;
  height: 52%;
  background: #13c2bc;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.booking-dark-lower-info {
  position: absolute;
  left: clamp(24px, 5cqi, 40px);
  top: clamp(12px, 3cqi, 20px);
  bottom: clamp(10px, 2.8cqi, 16px);
  width: 40%;
  max-width: 44%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #081118;
  z-index: 1;
  pointer-events: none;
}

.booking-dark-lower-name,
.booking-dark-lower-phrase,
.booking-dark-lower-services {
  margin: 0;
}

.booking-dark-lower-name {
  font-size: clamp(1.05rem, 2.9cqi, 1.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.booking-dark-lower-phrase,
.booking-dark-lower-services {
  font-size: clamp(0.64rem, 1.95cqi, 0.88rem);
  line-height: 1.24;
  font-weight: 700;
}

.booking-dark-lower-services {
  margin-top: auto;
}

.booking-dark-lower-figure-dark {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  --barber-image-width: 130%;
  --barber-image-height: 130%;
  --barber-image-right: -15%;
  --barber-image-bottom: 1%;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.booking-dark-lower-figure-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--layer-dark);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M100 0H68Q62 0 57 8L9 88Q4 96 12 100H100V0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M100 0H68Q62 0 57 8L9 88Q4 96 12 100H100V0Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.booking-dark-layer-image {
  position: absolute;
  right: var(--barber-image-right);
  bottom: var(--barber-image-bottom);
  z-index: 1;
  width: var(--barber-image-width);
  height: var(--barber-image-height);
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.booking-dark-pager {
  position: absolute;
  left: 50%;
  top: var(--dark-pager-top);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 46px auto 46px;
  align-items: center;
  z-index: 4;
  margin: 0;
  min-width: 458px;
  padding: 13px 32px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  column-gap: 40px;
  justify-content: center;
  pointer-events: auto;
}

.booking-dark-pager .nav-arrow {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-self: center;
}

.booking-dark-pager .nav-arrow img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.booking-dark-pager .barber-dots {
  gap: 24px;
}

.booking-dark-pager .barber-dot {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.barber-counter {
  display: none !important;
}

.booking-dark-book-btn {
  position: absolute;
  left: 50%;
  top: var(--dark-book-btn-top);
  transform: translateX(-50%);
  width: min(92%, 430px);
  height: 62px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #06131d;
  font-size: clamp(1.55rem, 4.4cqi, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 4;
}

.booking-dark-book-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-flow-confirm-btn {
  position: absolute;
  left: 50%;
  top: var(--dark-book-btn-top);
  transform: translateX(-50%);
  width: min(92%, 430px);
  height: 62px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #06131d;
  font-size: clamp(1.05rem, 3.4cqi, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 4;
  pointer-events: auto;
}

.booking-flow-confirm-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.booking-flow-confirm-btn[hidden] {
  display: none !important;
}

.booking-services-actions-external {
  position: absolute;
  left: 50%;
  top: calc(var(--dark-center-gap) + var(--dark-center-shape-height) + 10px);
  transform: translateX(-50%);
  width: min(92%, 430px);
  z-index: 6;
  pointer-events: auto;
}

.booking-services-actions-external[hidden] {
  display: none !important;
}

.booking-flow-back-corner {
  position: absolute;
  left: calc(var(--dark-cutout-right-limit) + ((100% - var(--dark-cutout-right-limit)) / 2));
  right: auto;
  top: calc(
    var(--nav-zone-top) +
    ((100% - var(--nav-zone-top)) / 2) +
    ((var(--bottom-nav-pad-top) - var(--bottom-nav-pad-bottom)) / 2)
  );
  bottom: auto;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: var(--layer-dark);
  color: #eff5ff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
}

.booking-flow-back-corner span {
  transform: translateY(-1px);
}

.booking-flow-back-corner:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-layer-dark.is-booking-flow .booking-dark-lower-figure,
.booking-layer-dark.is-booking-flow .booking-dark-pager,
.booking-layer-dark.is-booking-flow .booking-dark-book-btn {
  opacity: 0;
  pointer-events: none;
}

.booking-layer-dark.is-booking-flow .booking-dark-center-shape {
  background-image: none;
}

.booking-layer-dark.is-booking-flow .booking-dark-center-shape::before,
.booking-layer-dark.is-booking-flow .booking-dark-center-shape::after {
  opacity: 0.06;
}

.booking-layer-dark.is-booking-flow .booking-flow-back-corner {
  opacity: 1;
  pointer-events: auto;
}

.booking-layer-dark.is-booking-flow .booking-dark-notch-title {
  opacity: 1;
  z-index: 8;
}

.booking-layer-dark.is-booking-flow .booking-flow-back-corner:disabled {
  opacity: 0.5;
}

.booking-flow {
  position: absolute;
  left: clamp(20px, 5.5cqi, 54px);
  right: clamp(20px, 5.5cqi, 54px);
  top: clamp(74px, 19%, 126px);
  bottom: clamp(10px, 2.8cqi, 18px);
  z-index: 6;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booking-flow[hidden] {
  display: none !important;
}

.booking-flow-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.booking-flow-back {
  border: 0;
  border-radius: 12px;
  background: #0f141c;
  color: #ecf1f8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.booking-flow-back span {
  font-size: 1.35rem;
  line-height: 1;
}

.booking-flow-step {
  margin: 0;
  color: #596575;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  max-width: 90%;
}

.booking-flow-title {
  margin: 0;
  color: #0e141d;
  font-size: clamp(0.86rem, 2.8vw, 1rem);
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  max-width: 92%;
  margin-inline: auto;
}

.booking-flow-meta {
  margin: 0;
  color: #4d5968;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
  max-width: 92%;
  margin-inline: auto;
}

.booking-flow-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.booking-flow-status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4f5c6d;
  text-align: center;
}

.booking-flow-status.is-error {
  color: #b53131;
}

.booking-flow-status.is-ok {
  color: #117150;
}

.booking-flow-placeholder {
  margin: 0;
  min-height: 120px;
  border-radius: 14px;
  background: rgba(15, 22, 31, 0.1);
  border: 1px dashed rgba(12, 20, 30, 0.24);
  color: #314052;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.booking-flow-content.is-services {
  display: block;
  overflow: auto;
  padding: 1px 1px 3px;
}

.booking-service-list {
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
}

.booking-service-tile {
  border: 0;
  border-radius: 15px;
  background: var(--layer-dark);
  color: #edf4fc;
  padding: 10px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.booking-service-tile.is-selected {
  box-shadow: 0 0 0 2px rgba(8, 199, 190, 0.55);
}

.booking-service-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(237, 244, 252, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0d1e1f;
  background: transparent;
}

.booking-service-tile.is-selected .booking-service-check {
  border-color: var(--accent);
  background: var(--accent);
}

.booking-service-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-service-title {
  font-size: 0.88rem;
  line-height: 1.08;
  margin: 0;
}

.booking-service-meta {
  color: #a6b1bf;
  font-size: 0.66rem;
  font-weight: 700;
  margin: 0;
}

.booking-service-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.booking-service-side small {
  color: #dce6f3;
  font-size: 0.7rem;
  font-weight: 700;
}

.booking-service-actions {
  border-radius: 12px;
  background: var(--layer-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.booking-services-counter {
  margin: 0;
  color: #d8e2ef;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.22;
  white-space: pre-line;
}

.booking-services-continue {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #06131d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 14px;
  flex-shrink: 0;
}

.booking-services-continue:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.booking-calendar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-calendar-head strong {
  color: #111a25;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: capitalize;
}

.booking-calendar-nav {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--layer-dark);
  color: #edf4fc;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.booking-calendar-nav:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.booking-calendar-weekdays span {
  text-align: center;
  color: #657282;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-calendar-empty {
  min-height: 34px;
}

.booking-calendar-day {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #d4d9df;
  color: #8f99a5;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: default;
}

.booking-calendar-day.is-available {
  background: var(--layer-dark);
  color: #eaf2ff;
  cursor: pointer;
}

.booking-calendar-day.is-selected {
  background: var(--accent);
  color: #06131d;
}

.booking-time-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.booking-time-btn {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: var(--layer-dark);
  color: #edf3fc;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.booking-time-btn small {
  margin-left: 6px;
  color: #8f9fb3;
  font-size: 0.72rem;
  font-weight: 700;
}

.booking-confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-confirm-details {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: var(--layer-dark);
  color: #e8f0fb;
  font-size: 0.78rem;
  line-height: 1.5;
}

.booking-confirm-details strong {
  color: #fff;
}

.booking-confirm-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #06131d;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.booking-confirm-submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.booking-dark-center-shape::before,
.booking-dark-center-shape::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.booking-dark-center-shape::before {
  top: calc(var(--center-notch-bottom-y) + clamp(8px, 2.1cqi, 14px));
  left: clamp(8px, 2.2cqi, 16px);
  width: clamp(168px, 72%, 340px);
  aspect-ratio: 307 / 291;
  background-image: url("/Image/site/fig_b.svg");
}

.booking-dark-center-shape::after {
  right: clamp(8px, 2.2cqi, 16px);
  bottom: clamp(8px, 2.1cqi, 14px);
  width: clamp(176px, 76%, 360px);
  aspect-ratio: 324 / 293;
  background-image: url("/Image/site/fig_s.svg");
}

.booking-dark-notch-title {
  position: absolute;
  left: var(--dark-notch-line-center-x);
  top: var(--dark-notch-title-center-y);
  margin: 0;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  font-size: clamp(3.2rem, 15.5cqi, 6.2rem);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.booking-dark-notch-title-left {
  color: #131416;
  position: relative;
  left: 1px;
}

.booking-dark-notch-title-right {
  color: #eff0ef;
}

.booking-layer-nav-field {
  left: 0;
  right: auto;
  top: var(--nav-zone-top);
  bottom: 0;
  width: max(0px, calc(var(--dark-cutout-right-limit) - var(--nav-field-right-gap)));
  background: var(--layer-dark);
  border-radius: 24px;
  z-index: 1;
}

.booking-shell {
  position: relative;
  z-index: 2;
  min-height: calc(100dvh - 32px);
  padding: 14px var(--layer-shell-pad-x) calc(var(--dark-cutout-height) + 18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-card {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--layer-spine-width) + 2px);
  max-width: 100%;
  align-self: flex-start;
  background: var(--surface);
  border-radius: 42px;
  border: 1px solid #d5d9df;
  overflow: hidden;
  padding: 8px 14px 14px;
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.booking-title {
  margin: 0;
  color: #0a0f17;
  font-size: clamp(3.2rem, 14.2vw, 9.2rem);
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.booking-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 18px;
}

.booking-head-dots {
  color: #0c1119;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: clamp(1rem, 2.8vw, 1.8rem);
  line-height: 1;
}

.logout-btn {
  display: none;
}

.booking-stage {
  position: relative;
  margin-top: 2px;
  min-height: clamp(372px, 94vw, 780px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #eceef1 0%, #e5e8ec 100%);
}

.booking-stage-top-shape {
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  z-index: 1;
  background: #f1f3f5;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 68% 58%, 62% 66%, 0 66%);
}

.booking-stage-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.5) 0,
      rgba(255, 255, 255, 0.5) 3px,
      rgba(220, 224, 230, 0.8) 3px,
      rgba(220, 224, 230, 0.8) 6px
    );
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.booking-stage-accent {
  position: absolute;
  left: 0;
  top: 36%;
  width: 66%;
  height: 54%;
  z-index: 3;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.booking-stage-dark {
  position: absolute;
  right: -10%;
  top: 36%;
  width: 66%;
  height: 54%;
  z-index: 4;
  background: #0e121a;
  border-radius: 48px 0 0 24px;
  transform: skewX(-24deg);
}

.booking-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12%;
  z-index: 4;
  background: rgba(241, 243, 245, 0.95);
}

.booking-name {
  position: absolute;
  left: 6%;
  top: 44%;
  z-index: 5;
  color: #070d14;
  font-size: clamp(1.8rem, 6.2vw, 5.4rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.booking-main-image {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 6;
  width: min(86%, 650px);
  max-height: 78%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
}

.booking-subtitle {
  display: none;
}

.booking-subtitle:empty {
  display: none;
}

.carousel-nav {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #f2f4f7;
  color: #101723;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.barber-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.barber-dot {
  width: 17px;
  height: 12px;
  border: 0;
  border-radius: 4px;
  background: #d2d8df;
  transform: skew(-12deg);
  opacity: 0.9;
  cursor: pointer;
}

.barber-dot.is-active {
  background: var(--accent);
  opacity: 1;
}

.barber-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.barber-thumb {
  border: 2px solid #121824;
  border-radius: 20px 6px 16px 6px;
  background: #ffffff;
  padding: 2px;
  cursor: pointer;
  overflow: hidden;
}

.barber-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(8, 199, 190, 0.32);
}

.barber-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 15px 4px 12px 4px;
}

.book-btn {
  width: 100%;
  height: clamp(62px, 8.8vw, 92px);
  border: 0;
  border-radius: 24px;
  margin-top: 12px;
  background: var(--accent);
  color: #071019;
  font-size: clamp(1.3rem, 4.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.book-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.booking-status {
  min-height: 1.2em;
  margin: 8px 6px 0;
  color: #8e9bad;
  font-size: 0.8rem;
  font-weight: 600;
}

.booking-status.is-error {
  color: #cb4040;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: auto;
  top: var(--nav-zone-top);
  bottom: 0;
  width: max(0px, calc(var(--dark-cutout-right-limit) - var(--nav-field-right-gap)));
  z-index: 3;
  padding: var(--bottom-nav-pad-top) var(--bottom-nav-pad-x) var(--bottom-nav-pad-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.bottom-nav-btn {
  position: relative;
  border: 0;
  background: transparent;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav-btn img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.booking-page .booking-card,
.booking-page .booking-shell > .carousel-nav,
.booking-page .barber-thumbs,
.booking-page .book-btn,
.booking-page .booking-status,
.booking-page .booking-subtitle,
.booking-page .booking-placeholder {
  display: none !important;
}

.booking-page .booking-shell {
  pointer-events: none;
}

.booking-page .bottom-nav,
.booking-page .booking-dark-book-btn,
.booking-page .booking-flow-confirm-btn,
.booking-page .booking-dark-pager,
.booking-page .booking-flow,
.booking-page .booking-services-actions-external,
.booking-page .booking-flow-back-corner {
  pointer-events: auto;
}

.booking-placeholder {
  width: calc(100% - var(--layer-spine-width) + 2px);
  max-width: 100%;
  min-height: clamp(220px, 42vh, 340px);
  border-radius: 30px;
  background: rgba(10, 14, 22, 0.9);
  border: 1px solid rgba(8, 199, 190, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.booking-placeholder-title {
  margin: 0;
  font-size: clamp(1.1rem, 3.8vw, 1.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dbe2ec;
}

.booking-placeholder-soon {
  margin: 0;
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
  color: var(--accent);
}

@media (max-width: 540px) {
  body.booking-page {
    background: #080b13;
  }

  body.booking-page .home-root {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }

  body.booking-page .booking-screen {
    width: 100vw;
    min-height: 100dvh;
  }

  body.booking-page .booking-stack {
    min-height: 100dvh;
    border-radius: 0;
  }

  body.booking-page .booking-shell {
    min-height: 100dvh;
  }

  .logo-wrap {
    margin-bottom: -72px;
  }

  .logo {
    width: min(240px, 66vw);
  }

  .frame {
    border-radius: 30px;
    padding: 14px;
  }

  .card {
    border-radius: 22px;
    padding: 14px;
  }

  .booking-screen {
    min-height: calc(100dvh - 20px);
  }

  .booking-stack {
    min-height: calc(100dvh - 20px);
    border-radius: 28px;
    --layer-spine-width: 52px;
    --layer-nav-zone: 72px;
    --layer-gap: 14px;
    --layer-shell-pad-x: 9px;
    --nav-field-top-gap: 7px;
    --nav-field-right-gap: var(--nav-field-top-gap);
    --bottom-nav-pad-top: 10px;
    --bottom-nav-pad-bottom: 8px;
    --bottom-nav-pad-x: 8px;
    --dark-center-gap: 7px;
  }

  .booking-shell {
    min-height: calc(100dvh - 20px);
    padding: 10px 9px calc(var(--dark-cutout-height) + 12px);
    gap: 10px;
  }

  .booking-layer-nav-field {
    border-radius: 22px;
  }

  .booking-card {
    width: calc(100% - var(--layer-spine-width) + 2px);
    border-radius: 24px;
    padding: 10px;
  }

  .booking-dark-notch-title {
    font-size: clamp(3.4rem, 13.2vw, 5rem);
    font-size: clamp(3.4rem, max(16.8cqi, 13.2vw), 5rem);
    line-height: 0.8;
  }

  .booking-dark-pager {
    grid-template-columns: 42px auto 42px;
    min-width: 388px;
    padding: 11px 24px;
    column-gap: 30px;
  }

  .booking-dark-pager .nav-arrow {
    width: 42px;
    height: 42px;
  }

  .booking-dark-pager .nav-arrow img {
    width: 22px;
    height: 22px;
  }

  .booking-dark-pager .barber-dot {
    width: 14px;
    height: 14px;
  }

  .booking-dark-book-btn {
    top: calc(var(--dark-pager-top) + 74px);
    width: min(92%, 372px);
    height: 56px;
    border-radius: 16px;
    font-size: clamp(1.3rem, 5.3vw, 1.9rem);
  }

  .booking-flow-confirm-btn {
    top: calc(var(--dark-pager-top) + 74px);
    width: min(92%, 372px);
    height: 56px;
    border-radius: 16px;
    font-size: clamp(0.9rem, 3.8vw, 1.2rem);
  }

  .booking-services-actions-external {
    top: calc(var(--dark-center-gap) + var(--dark-center-shape-height) + 8px);
    width: min(92%, 372px);
  }

  .booking-flow-back-corner {
    left: calc(var(--dark-cutout-right-limit) + ((100% - var(--dark-cutout-right-limit)) / 2));
    right: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.55rem;
  }

  .booking-flow {
    top: clamp(62px, 16%, 104px);
    left: 14px;
    right: 14px;
    bottom: 10px;
    gap: 4px;
  }

  .booking-flow-top {
    gap: 6px;
  }

  .booking-flow-title {
    font-size: 0.92rem;
  }

  .booking-flow-meta {
    font-size: 0.66rem;
  }

  .booking-service-tile {
    border-radius: 14px;
    padding: 9px 8px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .booking-service-title {
    font-size: 0.78rem;
  }

  .booking-service-meta {
    font-size: 0.62rem;
  }

  .booking-service-side small {
    font-size: 0.68rem;
  }

  .booking-services-counter {
    font-size: 0.68rem;
  }

  .booking-services-continue {
    min-height: 36px;
    font-size: 0.72rem;
    padding: 0 12px;
  }

  .booking-calendar-weekdays span {
    font-size: 0.62rem;
  }

  .booking-calendar-empty,
  .booking-calendar-day {
    min-height: 30px;
  }

  .booking-time-btn {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .barber-counter {
    display: none !important;
  }

  .booking-head {
    margin-bottom: 2px;
  }

  .booking-title {
    font-size: clamp(2.8rem, 13.4vw, 4.8rem);
    line-height: 0.88;
    letter-spacing: -0.02em;
  }

  .booking-head-meta {
    padding-top: 8px;
  }

  .booking-stage {
    min-height: 364px;
    border-radius: 20px;
    margin-top: 8px;
  }

  .booking-name {
    top: 43%;
  }

  .book-btn {
    height: 58px;
    border-radius: 18px;
  }

  .bottom-nav {
    width: max(0px, calc(var(--dark-cutout-right-limit) - var(--nav-field-right-gap)));
    gap: 4px;
  }

  .bottom-nav-btn {
    height: 42px;
  }

  .bottom-nav-btn img {
    width: 60px;
    height: 60px;
  }

  .booking-placeholder {
    border-radius: 22px;
    min-height: 200px;
  }
}
