:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --muted: #8b8b8b;
  --soft: #c9c9c9;
  --line: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body.loading {
  overflow: hidden;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #111 0%, #050505 54%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-loader {
  position: relative;
  width: min(76vw, 460px);
  height: 210px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.opening-loader::before,
.opening-loader::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 72px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: translateX(-50%);
  opacity: 0;
  animation: opening-spark 1.7s ease forwards;
}

.opening-loader::before {
  top: 4px;
}

.opening-loader::after {
  bottom: 4px;
}

.opening-loader img {
  width: 82px;
  opacity: 0.92;
  z-index: 2;
  animation: opening-logo 1.7s ease forwards;
}

.opening-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 12px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.opening-ribbon span {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #f6f6f6 0%, #cfcfcf 48%, #f4f4f4 100%);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.14);
}

.ribbon-left {
  left: 0;
  transform-origin: right center;
  animation: ribbon-left-cut 1.7s ease forwards;
}

.ribbon-right {
  right: 0;
  transform-origin: left center;
  animation: ribbon-right-cut 1.7s ease forwards;
}

.opening-scissors {
  position: absolute;
  left: -38px;
  top: calc(50% - 27px);
  color: #f2f2f2;
  font-size: 44px;
  line-height: 1;
  z-index: 4;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
  transform-origin: 44% 50%;
  animation: scissors-cut 1.7s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 82px;
  height: auto;
}

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

.nav-links a,
.menu-button {
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.contact-pill {
  background: var(--white);
  color: #000 !important;
  padding: 12px 18px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 24px 24px;
  background: #000;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero {
  min-height: 92vh;
  padding: 150px 24px 54px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.38) 42%, rgba(5, 5, 5, 0.12) 100%),
    url("assets/optimized/Fotos_loja/loja1.jpg") center / cover no-repeat;
  filter: grayscale(1);
}

.hero-inner,
.section-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9c9c9c;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: #888;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(58px, 12vw, 142px);
  line-height: 0.86;
}

h1 span {
  color: #6d6d6d;
}

h2 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.95;
}

h3 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  color: #c9c9c9;
  line-height: 1.8;
  max-width: 620px;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.button.primary {
  background: white;
  color: black;
}

.button:hover {
  border-color: white;
  background: white;
  color: black;
}

.section {
  padding: 86px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-heading {
  padding-top: 158px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item {
  padding: 34px;
  min-height: 240px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-item:nth-child(2n) {
  border-right: 0;
}

.service-desc {
  color: #9e9e9e;
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
}

.price {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
  font: 40px Georgia, serif;
}

.strip {
  overflow: hidden;
  margin-top: 20px;
  padding: 18px 0 28px;
}

.track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: slide 62s linear infinite;
}

.strip:hover .track {
  animation-play-state: paused;
}

.track.reverse {
  animation-name: slide-reverse;
}

.work-card {
  width: 240px;
  height: 318px;
  object-fit: cover;
  filter: grayscale(1);
  flex: 0 0 auto;
  position: relative;
  transform: scale(1);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, filter;
}

.work-card:hover {
  z-index: 2;
  filter: grayscale(0);
  transform: scale(1.08);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.studio-gallery {
  margin-top: 34px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.studio-gallery button:first-child {
  grid-row: span 2;
}

.gallery-grid button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0);
  transition: 0.25s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.02);
}

.studio-gallery img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.studio-gallery button:first-child img {
  aspect-ratio: 4 / 5;
}

.barber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.barber-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.barber-main {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.barber-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(0);
  transition: 0.25s ease;
}

.barber-main:hover img {
  transform: scale(1.02);
}

.barber-card-body {
  padding: 24px;
}

.barber-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.barber-heading h3 {
  font-size: clamp(30px, 3.4vw, 46px);
}

.role {
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.barber-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #d6d6d6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

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

.barber-work img {
  aspect-ratio: 1 / 1;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-list a,
.contact-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6d6d6;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.contact-panel {
  display: grid;
  gap: 28px;
}

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

.contact-card {
  min-height: 138px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.contact-card span,
.studio-info-item span {
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.contact-card strong,
.studio-info-item strong {
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.studio-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-info-item {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.035);
}

.directions-link {
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.directions-link:hover,
.directions-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  outline: 0;
}

.footer {
  padding: 50px 24px;
  text-align: center;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.privacy {
  max-width: 780px;
  margin: 0 auto;
  padding: 150px 24px 80px;
  color: #bdbdbd;
  line-height: 1.8;
}

.privacy h2 {
  margin: 40px 0 14px;
  font-size: 28px;
  color: white;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 28px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: black;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lightbox [data-lightbox-close] {
  z-index: 4;
  min-width: 96px;
  min-height: 42px;
}

.lightbox .lightbox-nav {
  top: 92px;
  bottom: 0;
  width: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 2;
}

.lightbox-prev {
  left: 0;
  right: auto;
  cursor: w-resize;
}

.lightbox-next {
  right: 0;
  left: auto;
  cursor: e-resize;
}

.lightbox .lightbox-nav::after {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.46);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.lightbox-prev::after {
  content: "<";
  left: 24px;
}

.lightbox-next::after {
  content: ">";
  right: 24px;
}

.lightbox .lightbox-nav:hover::after {
  opacity: 1;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes slide-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes opening-logo {
  0% { transform: scale(0.92); opacity: 0; filter: blur(3px); }
  20%, 62% { transform: scale(1); opacity: 0.96; filter: blur(0); }
  100% { transform: scale(1.08); opacity: 0; filter: blur(2px); }
}

@keyframes scissors-cut {
  0% { left: -38px; transform: rotate(-18deg) scale(0.92); opacity: 0; }
  18% { opacity: 1; }
  46% { left: calc(50% - 22px); transform: rotate(10deg) scale(1); }
  56% { left: calc(50% - 12px); transform: rotate(-8deg) scale(1.04); }
  100% { left: calc(100% - 18px); transform: rotate(12deg) scale(0.92); opacity: 0; }
}

@keyframes ribbon-left-cut {
  0%, 42% { transform: translateX(0) rotate(0); opacity: 1; }
  66% { transform: translateX(-18px) rotate(-4deg); opacity: 1; }
  100% { transform: translateX(-130px) rotate(-11deg); opacity: 0; }
}

@keyframes ribbon-right-cut {
  0%, 42% { transform: translateX(0) rotate(0); opacity: 1; }
  66% { transform: translateX(18px) rotate(4deg); opacity: 1; }
  100% { transform: translateX(130px) rotate(11deg); opacity: 0; }
}

@keyframes opening-spark {
  0%, 38% { opacity: 0; transform: translateX(-50%) scaleY(0.4); }
  52% { opacity: 0.82; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(0.8); }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 6px 16px;
  }

  .brand img {
    width: 68px;
  }

  .opening-loader {
    width: min(82vw, 340px);
    height: 180px;
  }

  .opening-loader img {
    width: 68px;
  }

  .opening-ribbon {
    height: 10px;
  }

  .opening-scissors {
    font-size: 36px;
    top: calc(50% - 23px);
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu a {
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .section {
    padding: 64px 18px;
  }

  .page-heading {
    padding-top: 126px;
  }

  .eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.26em;
    margin-bottom: 22px;
  }

  .eyebrow::before {
    width: 36px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    letter-spacing: 0.2em;
  }

  .hero {
    min-height: 86vh;
    padding-top: 132px;
    padding-inline: 18px;
  }

  .hero::before {
    inset: 0;
    width: 100%;
    opacity: 0.44;
  }

  .split,
  .barber-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .team-contacts,
  .studio-info {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .gallery-grid img,
  .barber-main img {
    filter: grayscale(0);
  }

  .work-card {
    filter: grayscale(1);
  }

  .gallery-grid button:hover img,
  .barber-main:hover img,
  .work-card:hover {
    transform: none;
  }

  .studio-gallery {
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .studio-gallery button:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .studio-gallery button:first-child img {
    aspect-ratio: 16 / 10;
  }

  .studio-gallery img {
    aspect-ratio: 1 / 1;
  }

  .barber-grid {
    gap: 22px;
    margin-top: 30px;
  }

  .barber-card-body {
    padding: 20px;
  }

  .barber-heading {
    gap: 14px;
    margin-bottom: 20px;
  }

  .barber-phone,
  .contact-list a,
  .contact-row {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .service-item {
    min-height: 190px;
    padding: 28px 22px;
  }

  .service-item,
  .service-item:nth-child(2n) {
    border-right: 0;
  }

  .work-card {
    width: 190px;
    height: 250px;
  }

  .contact-card {
    min-height: 116px;
    padding: 20px;
  }

  .studio-info-item {
    padding: 20px;
  }

  .footer {
    padding: 40px 18px;
    font-size: 9px;
    letter-spacing: 0.18em;
    line-height: 1.8;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox button {
    top: 14px;
    right: 14px;
    padding: 10px 12px;
    font-size: 10px;
  }

  .lightbox .lightbox-nav {
    top: 72px;
    bottom: 0;
    width: 50%;
    padding: 0;
  }

  .lightbox .lightbox-nav::after {
    width: 34px;
    height: 34px;
    opacity: 0.78;
    font-size: 20px;
  }

  .lightbox-prev::after {
    left: 12px;
  }

  .lightbox-next::after {
    right: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .track,
  .opening-loader::before,
  .opening-loader::after,
  .opening-loader img,
  .ribbon-left,
  .ribbon-right,
  .opening-scissors {
    animation: none;
  }

  .page-loader {
    display: none;
  }

  body.loading {
    overflow: auto;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .barber-grid {
    grid-template-columns: 1fr;
  }

  .barber-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  }

  .barber-main img {
    height: 100%;
  }
}
