:root {
  --bg: #0c0b09;
  --bg-2: #141210;
  --ink: #f4efe6;
  --muted: #b7aea0;
  --gold: #c9a56a;
  --gold-2: #e7c98a;
  --line: rgba(244, 239, 230, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 7vw;
  background: rgba(12, 11, 9, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover {
  color: var(--gold);
}

.header-cta {
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #1a160f;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: grid;
  align-content: end;
  padding: 12vh 7vw 8vh;
  background: #0c0b09;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  inset: -10%;
  z-index: 0;
  background: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
}

.hero::after {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 11, 9, 0.25) 0%,
    rgba(12, 11, 9, 0.92) 78%
  );
}

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

.hero-copy .eyebrow {
  animation: fadeUp 0.9s ease both;
}

.hero-copy h1 {
  animation: fadeUp 1s 0.12s ease both;
}

.hero-copy .lede {
  animation: fadeUp 1s 0.24s ease both;
}

.hero-copy .hero-actions {
  animation: fadeUp 1s 0.36s ease both;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  font-size: clamp(48px, 8vw, 104px);
  max-width: 12ch;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 18px;
}

.lede {
  max-width: 42ch;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 28px;
  margin-top: 10vh;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold);
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 100px 7vw;
  align-items: center;
}

.about-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
}

.about-text p {
  color: var(--muted);
  margin-bottom: 22px;
}

.checklist {
  list-style: none;
  color: var(--ink);
}

.checklist li {
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
}

.section {
  padding: 40px 7vw 100px;
}

.section-head {
  margin-bottom: 36px;
}

.section-hint {
  color: var(--muted);
  margin-top: -8px;
}

.price-grid,
.barber-grid,
.gallery {
  display: grid;
  gap: 18px;
}

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

.price-card,
.barber-card {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.price-card {
  border-radius: 30px;
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 210px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.price-card::after {
  content: "";
  position: absolute;
  inset: auto -40% 0 auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(201, 165, 106, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.price-card:hover,
.barber-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 165, 106, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.price-card:hover::after {
  opacity: 1;
}

.price-card.featured {
  background: #1b1712;
  border-color: var(--gold);
}

.price-card.is-selected,
.barber-card.is-selected {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 18px 40px rgba(201, 165, 106, 0.12);
}

.price-card.is-selected .card-pick,
.barber-card.is-selected .card-pick {
  color: #1a160f;
  background: var(--gold);
}

.card-pick {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price {
  font-family: var(--serif);
  font-size: 32px;
  margin: 8px 0 14px;
}

.price-card p:last-child {
  color: var(--muted);
}

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

.barber-card {
  background: transparent;
  border: 1px solid transparent;
  padding: 0 0 12px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.barber-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  margin-bottom: 16px;
  filter: grayscale(0.35);
  transition:
    filter 0.5s ease,
    transform 0.6s ease;
}

.barber-card:hover img,
.barber-card.is-selected img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.03);
}

.barber-card p {
  color: var(--muted);
}

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

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08);
  transition:
    filter 0.5s ease,
    transform 0.7s ease;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08);
  transition:
    filter 0.5s ease,
    transform 0.7s ease;
}

.gallery img:hover {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.04);
}

.gallery img:nth-child(1) {
  grid-row: span 2;
  height: 100%;
  min-height: 498px;
}

.booking {
  background: var(--bg-2);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 14px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 500 15px/1.2 var(--sans);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.booking-form input.flash,
.booking-form select.flash {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 106, 0.22);
  animation: pulseGold 0.7s ease;
}

.booking-form .full,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--gold);
}

.contacts {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding: 100px 7vw;
}

.contacts p {
  color: var(--muted);
  margin-bottom: 18px;
}

.socials {
  display: flex;
  gap: 18px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(1) contrast(1.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 7vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  animation: floatPulse 2.4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  animation: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 18px;
  background: #1b1712;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 165, 106, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(201, 165, 106, 0);
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 7vw 24px;
    background: var(--bg);
    flex-direction: column;
    margin: 0;
  }

  .nav.open {
    display: flex;
  }

  .about,
  .price-grid,
  .barber-grid,
  .contacts,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .about-photo img,
  .barber-card img {
    height: 360px;
  }

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

  .gallery img:nth-child(1) {
    grid-row: auto;
    min-height: 220px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
