:root {
  --bg-base: #070707;
  --bg-elevated: #10100f;
  --bg-card: #171514;
  --bg-soft: #211d19;
  --text-primary: #f5f1e8;
  --text-secondary: #b9afa3;
  --muted: #72695f;
  --gold: #c9a45c;
  --copper: #b46a3c;
  --red-wine: #5a1717;
  --cream: #f5e7c8;
  --success: #2fa66a;
  --danger: #d94a3a;
  --warning: #e0a93a;
  --line: rgba(245, 231, 200, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(201, 164, 92, 0.08), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(180, 106, 60, 0.2), transparent 32%),
    var(--bg-base);
  color: var(--text-primary);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.2), rgba(180, 106, 60, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand small,
.eyebrow,
.meta {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.admin-nav a {
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav a:hover,
.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--text-primary);
  background: rgba(245, 231, 200, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 0 16px;
  color: var(--text-primary);
  background: rgba(245, 231, 200, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.choice-card:hover,
.slot-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 164, 92, 0.55);
}

.btn-primary {
  color: #16110b;
  background: linear-gradient(135deg, var(--cream), var(--gold) 56%, var(--copper));
  border-color: rgba(245, 231, 200, 0.46);
  font-weight: 800;
}

.btn-danger {
  color: #fff;
  background: rgba(217, 74, 58, 0.16);
  border-color: rgba(217, 74, 58, 0.36);
}

.btn-block {
  width: 100%;
}

.icon {
  width: 22px;
  height: 22px;
}

.icon-large {
  width: 56px;
  height: 56px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.hero h1,
.section-title h2,
.page-title h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.12rem;
}

.hero-actions,
.inline-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.proof-pill,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(245, 231, 200, 0.06);
  font-size: 0.84rem;
}

.status-badge.success {
  color: #bff3d3;
  border-color: rgba(47, 166, 106, 0.38);
  background: rgba(47, 166, 106, 0.12);
}

.status-badge.warning {
  color: #ffe2a3;
  border-color: rgba(224, 169, 58, 0.38);
  background: rgba(224, 169, 58, 0.12);
}

.status-badge.danger {
  color: #ffb3ab;
  border-color: rgba(217, 74, 58, 0.38);
  background: rgba(217, 74, 58, 0.12);
}

.visual-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 231, 200, 0.08), transparent 28%),
    repeating-linear-gradient(135deg, rgba(201, 164, 92, 0.12) 0 2px, transparent 2px 28px),
    linear-gradient(180deg, #211a16, #090909);
  box-shadow: var(--shadow);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.04);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(245, 231, 200, 0.24), transparent 22%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  z-index: 1;
}

.phone-mock,
.floating-card,
.barber-figure {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 10, 9, 0.86);
  backdrop-filter: blur(10px);
}

.phone-mock {
  right: 34px;
  bottom: 34px;
  width: min(280px, 64%);
  padding: 14px;
}

.phone-screen {
  display: grid;
  gap: 10px;
  min-height: 330px;
  padding: 14px;
  background: linear-gradient(180deg, #171514, #0b0b0a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.screen-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(245, 231, 200, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.floating-card {
  left: 24px;
  top: 34px;
  width: 260px;
  padding: 16px;
}

.barber-figure {
  left: 42px;
  bottom: 42px;
  display: grid;
  width: 150px;
  height: 190px;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.16), rgba(90, 23, 23, 0.16));
}

.section {
  padding: 72px 0;
}

.section-title,
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title h2,
.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section-title p,
.page-title p {
  max-width: 560px;
  color: var(--text-secondary);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card,
.choice-card,
.admin-card,
.list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 231, 200, 0.06), rgba(245, 231, 200, 0.025));
}

.card,
.admin-card {
  padding: 18px;
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.card-body {
  padding: 16px;
}

.card-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: rgba(245, 231, 200, 0.05);
}

.card-media img,
.barber-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 7, 7, 0.82));
}

.floating-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.service-icon,
.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid rgba(201, 164, 92, 0.24);
  border-radius: var(--radius);
}

.avatar {
  color: var(--cream);
  font-weight: 800;
}

.barber-photo {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.barber-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 7, 7, 0.82));
}

.barber-photo .badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.promo-image {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.promo-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.card h3,
.admin-card h3,
.list-item h3 {
  margin: 0 0 8px;
}

.card p,
.admin-card p,
.list-item p {
  color: var(--text-secondary);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.price {
  color: var(--cream);
  font: 800 1.25rem/1 JetBrains Mono, Consolas, monospace;
}

.promo-band {
  background:
    linear-gradient(135deg, rgba(201, 164, 92, 0.22), rgba(90, 23, 23, 0.28)),
    var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 180px;
  gap: 12px;
}

.gallery-tile {
  display: grid;
  align-items: end;
  min-height: 180px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(45deg, rgba(201, 164, 92, 0.16) 0 2px, rgba(20, 18, 16, 0.5) 2px 16px);
  background-position: center;
  background-size: cover;
}

.gallery-tile:nth-child(1),
.gallery-tile:nth-child(4) {
  grid-row: span 2;
}

.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.booking-panel,
.summary-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 11, 0.84);
}

.booking-panel {
  padding: 18px;
}

.summary-panel {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.booking-step {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.booking-step:last-child {
  border-bottom: 0;
}

.choice-grid,
.date-grid,
.time-grid {
  display: grid;
  gap: 10px;
}

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

.date-grid,
.time-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.choice-card,
.slot-chip {
  width: 100%;
  min-height: 58px;
  color: var(--text-primary);
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.choice-card.is-selected,
.slot-chip.is-selected {
  border-color: rgba(201, 164, 92, 0.7);
  background: rgba(201, 164, 92, 0.15);
}

.slot-chip {
  display: grid;
  gap: 2px;
}

.slot-chip strong {
  font-family: JetBrains Mono, Consolas, monospace;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  color: var(--text-primary);
  background: rgba(245, 231, 200, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.flash {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 231, 200, 0.08);
}

.flash.error {
  border-color: rgba(217, 74, 58, 0.35);
  background: rgba(217, 74, 58, 0.12);
}

.flash.success {
  border-color: rgba(47, 166, 106, 0.35);
  background: rgba(47, 166, 106, 0.12);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #0b0b0a;
}

.admin-nav {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.admin-main {
  padding: 0 22px 40px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric-value {
  display: block;
  font: 800 1.8rem/1 JetBrains Mono, Consolas, monospace;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.list-item__main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

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

.full {
  grid-column: 1 / -1;
}

.muted {
  color: var(--text-secondary);
}

.text-right {
  text-align: right;
}

.mobile-sticky {
  display: none;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .booking-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 440px;
  }

  .grid-3,
  .grid-4,
  .promo-card,
  .metric-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 170px;
  }

  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(4) {
    grid-row: span 1;
  }

  .summary-panel {
    position: static;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-main {
    padding: 0 16px 96px;
  }

  .list-item {
    flex-direction: column;
  }

  .mobile-sticky {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: flex;
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
