:root {
  color-scheme: dark;
  --stepper-sticky-top: calc(22px + env(safe-area-inset-top, 0px));
  --step-scroll-offset: calc(126px + env(safe-area-inset-top, 0px));
  --hero-image: url("./assets/barbershop-interior.jpg");
  --bg: #0e0d0c;
  --bg-soft: #171513;
  --surface: rgba(24, 22, 20, 0.92);
  --surface-strong: #211d1a;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #f3ecdf;
  --muted: #b1a393;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c88a4b;
  --accent-strong: #8c5428;
  --success: #2b8e5d;
  --danger: #d26c5f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --card-bg: rgba(15, 15, 14, 0.76);
  --card-bg-strong: rgba(15, 15, 14, 0.72);
  --item-bg: rgba(27, 25, 22, 0.86);
  --item-bg-soft: rgba(255, 255, 255, 0.05);
  --input-bg: rgba(255, 255, 255, 0.05);
  --button-ghost-bg: rgba(255, 255, 255, 0.05);
  --button-ghost-border: rgba(255, 255, 255, 0.08);
  --button-text: #fff6eb;
  --button-success-bg: linear-gradient(135deg, #1f7b49, #145d35);
  --selected-bg: linear-gradient(135deg, rgba(200, 138, 75, 0.18), rgba(255, 255, 255, 0.04));
  --selected-bg-strong: linear-gradient(135deg, rgba(200, 138, 75, 0.24), rgba(255, 255, 255, 0.04));
  --selected-border: rgba(200, 138, 75, 0.68);
  --result-bg: linear-gradient(135deg, rgba(43, 142, 93, 0.12), rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.04);
  --hero-copy: #f2e7d9;
  --eyebrow-color: #ddb287;
  --divider-line: rgba(255, 255, 255, 0.07);
  --placeholder: rgba(177, 163, 147, 0.74);
  --image-frame-border: rgba(255, 255, 255, 0.08);
  --image-frame-bg: #0d0c0b;
  --focus-ring: rgba(200, 138, 75, 0.42);
  --service-png-filter: invert(1) contrast(1.08);
  --service-png-blend: screen;
  --stepper-shell-border: rgba(255, 255, 255, 0.07);
  --stepper-shell-bg:
    linear-gradient(180deg, rgba(18, 17, 15, 0.94), rgba(13, 12, 11, 0.88)),
    var(--card-bg);
  --stepper-shell-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --step-done-bg: color-mix(in srgb, var(--accent) 16%, transparent);
  --hero-title-neon: #c9fbff;
  --hero-title-neon-shadow:
    0 0 8px rgba(120, 246, 255, 0.92),
    0 0 18px rgba(92, 233, 255, 0.86),
    0 0 34px rgba(69, 226, 255, 0.58),
    0 0 66px rgba(69, 226, 255, 0.34);
  --hero-title-classic: #f3e1c5;
  --hero-title-classic-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(200, 138, 75, 0.18);
  --hero-title-clean: #f3ecdf;
  --hero-title-clean-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
  --hero-title-heading-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  --hero-title-stroke-width: 0.7px;
  --hero-title-stroke-color: rgba(0, 0, 0, 0.42);
  --page-top: rgba(9, 9, 9, 0.82);
  --page-bottom: rgba(12, 12, 12, 0.95);
  --page-base: #0b0a09;
  --overlay-top: rgba(12, 11, 10, 0.28);
  --overlay-bottom: rgba(12, 11, 10, 0.38);
  --glow-cyan: rgba(64, 232, 255, 0.11);
  --glow-gold: rgba(255, 243, 154, 0.08);
  --hero-scrim-top: rgba(5, 10, 14, 0.34);
  --hero-scrim-bottom: rgba(9, 9, 9, 0.72);
  --hero-image-position: center 35%;
  --service-icon-filter: invert(1);
  --hero-copy-neon: var(--hero-copy);
  --hero-copy-neon-shadow: var(--hero-copy-shadow);
  --hero-copy-classic: var(--hero-copy);
  --hero-copy-classic-shadow: var(--hero-copy-shadow);
  --hero-copy-clean: var(--hero-copy);
  --hero-copy-clean-shadow: var(--hero-copy-shadow);
  --hero-copy-shadow: none;
  --hero-copy-stroke-width: 0.45px;
  --hero-copy-stroke-color: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--page-top), var(--page-bottom)),
    var(--hero-image) center center / cover fixed no-repeat,
    linear-gradient(180deg, var(--page-base) 0%, var(--bg-soft) 100%);
}

body[data-product-type="beauty"] {
  background:
    linear-gradient(180deg, var(--page-top), var(--page-bottom)),
    linear-gradient(180deg, var(--page-base) 0%, var(--bg-soft) 100%);
}

body,
body * {
  -webkit-tap-highlight-color: transparent;
}

body ::selection {
  background: transparent;
  color: inherit;
}

body input,
body textarea {
  user-select: text;
  -webkit-user-select: text;
}

body input::selection,
body textarea::selection {
  background: Highlight;
  color: HighlightText;
}

body.is-loading {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--overlay-top), var(--overlay-bottom)),
    radial-gradient(circle at 22% 18%, var(--glow-cyan), transparent 20%),
    radial-gradient(circle at 78% 16%, var(--glow-gold), transparent 18%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 48%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 28px);
  background-blend-mode: screen, normal, normal, normal;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.3));
}

.app-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .booking-card,
  .work-gallery,
  .site-footer,
  .booking-step--active .option-card,
  .booking-step--active .service-card,
  .work-gallery__item,
  .booking-step--active .time-slot {
    transition: none;
    animation: none;
  }

  body.is-loading .hero-panel,
  body.is-loading .booking-card,
  body.is-loading .work-gallery,
  body.is-loading .site-footer {
    opacity: 1;
    transform: none;
  }
}

.hero-panel,
.booking-card,
.info-card,
.work-gallery,
.option-card,
.service-card,
.summary-card,
.result-card,
.work-gallery__item,
.time-slot {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel,
.booking-card,
.info-card,
.work-gallery {
  position: relative;
  border-radius: 28px;
  background: var(--card-bg-strong);
  backdrop-filter: blur(12px);
}

.hero-panel,
.info-card,
.work-gallery {
  overflow: hidden;
}

.hero-panel {
  padding: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, var(--hero-scrim-top), var(--hero-scrim-bottom)),
    var(--hero-image) var(--hero-image-position) / cover no-repeat,
    var(--card-bg-strong);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background: var(--hero-image) var(--hero-image-position) / cover no-repeat;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.booking-card::after,
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--hero-scrim-top), var(--hero-scrim-bottom)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%);
}

.hero-panel__eyebrow,
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--eyebrow-color);
}
