/* Shared layout and two different surface treatments for the mobile demos. */
.finish {
  --text: #f7f5ef;
  --muted: #c5c6c8;
  --page: #141618;
  --line: #444951;
  --accent: #ffb431;
  --on-accent: #261806;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}
.finish header { background: #181b20ef; }
.finish .header { min-height: 60px; }
.finish .wrap { width: calc(100% - 36px); }
.finish .brand { font-size: 1.06rem; }
.finish .phone { font-variant-numeric: tabular-nums; }
.finish h1 { max-width: 100%; font-size: clamp(1.7rem, 7.3vw, 2rem); line-height: 1.12; letter-spacing: -.038em; text-wrap: balance; }
.finish h2 { letter-spacing: -.03em; }
.finish .hero { border-bottom: 0; }
.finish .hero p { color: #dddfe0; font-size: .92rem; }
.finish .actions { display: grid; gap: 8px; }
.finish .actions button { min-height: 48px; }
.finish .pricing-note { margin: 3px 0 12px; color: var(--muted); }
.finish .catalog li { min-height: 56px; }
.finish .catalog h3 { font-size: .95rem; }
.finish .catalog p { font-size: .81rem; }
.finish .catalog strong { font-variant-numeric: tabular-nums; }
.finish .catalog li:has(.service-choice:is(:active, [data-pressed])) {
  transform: translateY(1px) scale(.992);
  box-shadow: inset 0 0 0 1px #ffffff30;
  transition-duration: 70ms;
}
.finish .catalog li { transition: transform 170ms ease-out, box-shadow 170ms ease-out; }
.finish button { touch-action: manipulation; }

.finish .mobile-dialog {
  margin: auto auto 0;
  width: min(100%, 460px);
  max-height: calc(100dvh - 14px);
  border: 0;
  border-radius: 19px 19px 0 0;
  padding: 0 18px 17px;
  box-shadow: 0 -14px 48px #0008;
}
.finish .booking-intro {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 49px 8px 0;
  border-radius: 0;
  color: var(--text);
}
.finish .booking-intro h2 { font-size: 1.58rem; letter-spacing: -.035em; }
.finish .booking-intro p { margin-top: 3px; color: var(--muted); }
.finish .booking-intro .mobile-dialog-bar { position: absolute; top: 11px; right: 0; padding: 0; background: transparent; }
.finish .mobile-dialog-bar button { border: 0; background: #ffffff12; border-radius: 50%; }
.finish .mobile-dialog form:not([hidden]) { gap: 9px; padding-top: 7px; }
.finish .booking-note { font-size: .82rem; line-height: 1.38; }
.finish .mobile-dialog :is(input:not([type="checkbox"]), textarea) {
  min-height: 46px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #111317;
  border-color: #50545b;
}
.finish .mobile-dialog textarea[name="problem"] { min-height: 82px; }
.finish .mobile-dialog input:focus, .finish .mobile-dialog textarea:focus { border-color: var(--accent); }
.finish .booking-submit {
  min-height: 50px;
  transition: transform 170ms ease-out, filter 170ms ease-out, box-shadow 170ms ease-out;
}
.finish .booking-consent input[type="checkbox"] { border-radius: 4px; }

.gloss::before {
  background-image: linear-gradient(180deg, #10121693 0%, #101216c4 22%, #10121622 48%, #101216cf 70%, #101216ee 100%), url('assets/hero.png');
  background-position: center, 75% center;
}
.gloss .hero { padding: 24px 0 14px; }
.gloss .actions { grid-template-columns: 1.17fr 1fr; }
.gloss .actions button, .gloss .booking-submit { border-radius: 11px; }
.gloss :is(.actions button:not(.secondary), .booking-submit:not(.telegram-edit)) {
  background: linear-gradient(179deg, #ffdc87 0%, #ffc14b 38%, #fa9d15 100%);
  border: 1px solid #ffcb6f;
  box-shadow: inset 0 1px 0 #fff1af, inset 0 -2px 0 #a955174d, 0 5px 14px #0008, 0 2px 9px #ff9e222b;
  color: #281804;
}
.gloss .actions .secondary {
  background: linear-gradient(#343a42ed, #171b22f0);
  border-color: #68707b;
  box-shadow: inset 0 1px 0 #ffffff21, 0 4px 9px #0006;
}
.gloss :is(.actions button, .booking-submit):is(:active, [data-pressed]) {
  filter: brightness(1.15);
  transform: translateY(2px) scale(.98);
  box-shadow: inset 0 2px 8px #0006;
}
.gloss .services { padding-top: 12px; }
.gloss .catalog { gap: 7px; }
.gloss .catalog li { padding: 10px 11px; background: linear-gradient(160deg, #2b3039eb, #171b21ee); border: 1px solid #515762; border-radius: 9px; }
.gloss .catalog strong { color: #ffcb68; }
.gloss .mobile-dialog, .gloss .booking-intro { background: #20242a; }

.glass::before {
  background-image: linear-gradient(180deg, #11151a93 0%, #11151aa6 25%, #11151a15 49%, #11151a9e 75%, #11151aed 100%), url('assets/hero.png');
  background-position: center, 77% center;
}
.glass header { background: #1d2229c7; backdrop-filter: blur(12px); }
.glass .mark { background: #ffb43124; color: #ffd478; border: 1px solid #ffcc6660; }
.glass .hero { padding: 23px 0 14px; }
.glass .hero-copy { padding: 13px; border: 1px solid #ffffff39; border-radius: 17px; background: linear-gradient(140deg, #414751b3, #131a22d9); box-shadow: 0 7px 22px #0006, inset 0 1px 0 #ffffff23; backdrop-filter: blur(10px); }
.glass .actions { grid-template-columns: 1.15fr 1fr; }
.glass .actions button, .glass .booking-submit { border-radius: 999px; }
.glass .actions button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.glass .actions .action-icon { display: block; flex: 0 0 19px; width: 19px; height: 19px; }
.glass :is(.actions button:not(.secondary), .booking-submit:not(.telegram-edit)) {
  background: #ffb935;
  border: 1px solid #ffe1a0;
  box-shadow: inset 0 1px 0 #fff0bd90, 0 4px 14px #0006;
}
.glass .actions .secondary { background: linear-gradient(#ffffff21, #ffffff09); border-color: #ffffff54; box-shadow: inset 0 1px 0 #ffffff18; }
.glass :is(.actions button, .booking-submit):is(:active, [data-pressed]) { filter: brightness(1.17); transform: scale(.975); }
.glass .services { padding-top: 7px; }
.glass .services :is(h2, .pricing-note) { text-shadow: 0 1px 9px #000, 0 1px 3px #000; }
.glass .catalog {
  gap: 9px;
}
.glass .catalog li {
  padding: 10px 12px;
  border: 1px solid #ffffff48;
  border-radius: 13px;
  background: linear-gradient(155deg, #343e49bd, #141920e8);
  backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 #ffffff22, 0 8px 20px #0005;
}
.glass .catalog li:has(.service-choice:is(:active, [data-pressed])) {
  background: linear-gradient(155deg, #485460d9, #252d36ee);
  box-shadow: inset 0 0 0 1px #ffffff48;
}
.glass .catalog strong { color: #f5e2bd; }
html:has(.glass .mobile-dialog[open]) { overflow: hidden; }
.glass .mobile-dialog {
  max-height: calc(var(--glass-visible-height, 100dvh) - 14px);
  margin-bottom: var(--glass-bottom-inset, 0px);
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #303843ee, #191e25f7);
}
.glass .mobile-dialog[open] { display: flex; flex-direction: column; }
.glass .mobile-dialog::backdrop { background: #080a0c91; backdrop-filter: blur(6px); }
.glass .dialog-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 4px;
}
.glass .dialog-heading h2 { font-size: 1.58rem; line-height: 1.2; }
.glass .dialog-heading button {
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff12;
  color: var(--text);
  font: 1.45rem/1 "Segoe UI", sans-serif;
}
.glass .dialog-content {
  min-height: 0;
  padding: 0 18px 17px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 8px 16px;
}
.glass .dialog-description { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.glass .mobile-contact .dialog-content p { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .finish .catalog li, .finish :is(.actions button, .booking-submit) { transition: none !important; }
  .finish .catalog li:has(.service-choice:is(:active, [data-pressed])),
  .finish :is(.actions button, .booking-submit):is(:active, [data-pressed]) { transform: none; }
}
