/* ===== Variables ===== */
:root {
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --bg-card: #1a1816;
  --text: #e8e4e0;
  --text-muted: #9a948c;
  --gold: #c9a962;
  --gold-light: #e2c98a;
  --gold-dim: #8b7340;
  --gradient-ring: linear-gradient(135deg, #e8a4b8, #c9a962, #e8c97a, #e8a4b8);
  --gradient-orb-1: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.15), transparent 70%);
  --gradient-orb-2: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 164, 184, 0.08), transparent 60%);
  --gradient-orb-3: radial-gradient(ellipse 50% 30% at 20% 80%, rgba(232, 201, 122, 0.06), transparent 50%);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* висота фіксованого хедера */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: 80px;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(12, 11, 10, 0.98);
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
  transition: background var(--transition);
  opacity: 0.9;
}

.header.scrolled {
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.logo-milan {
  font-family: var(--font-display);
  font-size: 1.47rem;
  font-weight: 600;
  color: var(--gold);
  font-style: "Playfair Display", serif;
  letter-spacing: 0.02em;
}

.logo-studio {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2rem;
  justify-content: center !important;
}

@media (min-width: 769px) {
  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

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

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  font-weight: 500;
  color: var(--gold);
}

.header-instagram {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: var(--gold);
  background: rgba(20, 18, 16, 0.55);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header-instagram:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition-fast);
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .logo {
    justify-self: start;
  }

  .header-actions {
    justify-self: center;
    gap: 0;
  }

  .burger {
    justify-self: end;
    display: flex;
    z-index: 101;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    transition: right var(--transition);
    z-index: 99;
    left: auto;
    transform: none;
  }
  .nav.open {
    right: 0;
  }
  .header-phone {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}
body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.floating-booking {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.floating-booking:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-orb-1);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-orb-2);
  top: 20%;
  right: -5%;
  animation-delay: -4s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--gradient-orb-3);
  bottom: 10%;
  left: -5%;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -20px) scale(1.05); opacity: 1; }
}

.orb-2, .orb-3 {
  transform: none;
}

.orb-2 { animation-name: orb-float-2; }
.orb-3 { animation-name: orb-float-3; }

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(-15px, 15px); opacity: 1; }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(15px, -10px); opacity: 0.9; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-video {
  pointer-events: none;
}

video.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  /* poster видно поки відео не завантажилось (JS керує opacity) */
  will-change: opacity;
}

/* Poster задається атрибутом poster="" на video елементі — не тут */

@media (max-width: 768px) {
  video.hero-video {
    /* На мобільному об'єктна позиція — центр обличчя */
    object-position: center top;
  }
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
  padding-bottom: 15px;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero-light-layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.65;
}

/* Окремі світлові смуги */
.light-strip {
  position: absolute;
  width: 40%;
  height: 140%;
  top: -20%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.02)
  );
  filter: blur(40px);
  transform-origin: center;
  animation: light-sweep 24s ease-in-out infinite;
}

/* Різні положення / кольорові відтінки для глибини */
.strip-1 {
  left: -10%;
  animation-delay: 0s;
  background: linear-gradient(
    115deg,
    rgba(201, 169, 98, 0.02),
    rgba(255, 255, 255, 0.18),
    rgba(232, 164, 184, 0.05)
  );
}

.strip-2 {
  left: 35%;
  animation-delay: -8s;
  background: linear-gradient(
    135deg,
    rgba(232, 164, 184, 0.03),
    rgba(255, 255, 255, 0.2),
    rgba(201, 169, 98, 0.03)
  );
}

.strip-3 {
  right: -15%;
  animation-delay: -16s;
  background: linear-gradient(
    145deg,
    rgba(232, 201, 122, 0.03),
    rgba(255, 255, 255, 0.16),
    rgba(201, 169, 98, 0.02)
  );
}

/* Анімація повільного руху / нахилу */
@keyframes light-sweep {
  0% {
    transform: translate3d(0, 0, 0) rotate(18deg);
    opacity: 0.4;
  }
  25% {
    transform: translate3d(-6%, -4%, 0) rotate(20deg) scale(1.02);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(4%, 4%, 0) rotate(16deg) scale(1.04);
    opacity: 0.9;
  }
  75% {
    transform: translate3d(-4%, 6%, 0) rotate(19deg) scale(1.02);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(18deg);
    opacity: 0.4;
  }
}

/* Для користувачів з reduced-motion — спокійніший фон */
@media (prefers-reduced-motion: reduce) {
  .hero-light-layers {
    opacity: 0.4;
  }
  .light-strip {
    animation: none;
  }
}

/* Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Scroll hint ===== */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  border-radius: 2px;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Animations (entrance) ===== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }
.animate-in:nth-child(7) { animation-delay: 0.7s; }
.animate-in:nth-child(8) { animation-delay: 0.8s; }
.animate-in:nth-child(9) { animation-delay: 0.9s; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section titles ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 520px;
}

.section-sub .link-inline {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section-sub .link-inline:hover {
  color: var(--gold);
}

/* ===== About ===== */
.about {
  padding: 6rem 0;
}

/* Преміальні розділювачі між усіма секціями */
main > section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(12, 11, 10, 0),
    rgba(201, 169, 98, 0.35),
    rgba(12, 11, 10, 0)
  );
  opacity: 0.9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 480px;
}

.logo-circle {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-ring);
  background-size: 300% 300%;
  animation: gradient-rotate 8s ease infinite;
  padding: 3px;
}

.logo-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-card);
}

.logo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.15);
  overflow: hidden;
}

.logo-inner .logo-milan {
  font-size: 2rem;
}

.logo-inner .logo-studio {
  font-size: 0.5rem;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-desc {
    max-width: none;
  }
  .about-visual {
    order: -1;
    margin: 0 auto;
  }
}

/* About: founder photo in logo circle */
.logo-circle--with-founder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

.founder-caption {
  margin-top: 1rem;
  text-align: center;
}

.founder-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
}

.founder-role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Services ===== */
.services {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 3rem; /* Компактніші відступи */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::after {
  content: "Переглянути прайс →";
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition-fast);
}

.service-card:hover {
  border-color: rgba(201, 169, 98, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  background: rgba(201, 169, 98, 0.03);
}

.service-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover .card-icon {
  color: var(--gold-light);
}

.card-icon {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.65rem;
  opacity: 0.9;
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 24px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(201, 169, 98, 0.2));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover .card-icon svg {
  filter: drop-shadow(0 0 8px rgba(201, 169, 98, 0.6));
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Services: преміальна кнопка прайсу під сіткою */
.services-prices {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .services-prices {
    align-items: flex-start;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.5);
  padding-inline: 1.5rem;
}

.btn-ghost:hover {
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold-light);
  box-shadow: 0 1px 10px #e2c98a;
}

.prices-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ===== Gallery ===== */
.gallery {
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.08);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  position: relative;
}

.gallery-item:hover {
  border-color: rgba(201, 169, 98, 0.25);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  font-family: var(--font-display);
  opacity: 0.6;
}

.gallery-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.gallery-hint code {
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.lightbox.is-open[hidden] {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--bg-card);
  color: var(--gold);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 169, 98, 0.4);
  background: rgba(12, 11, 10, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  display: block;
}

.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.lightbox-nav:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 48px;
    height: 48px;
    border-color: rgba(201, 169, 98, 0.4);
    background: rgba(12, 11, 10, 0.85);
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    backdrop-filter: blur(12px);
  }

  .lightbox-nav:hover {
    background: rgba(12, 11, 10, 0.85);
    color: var(--gold-light);
    transform: translateY(-50%);
  }

  .lightbox-nav:active {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-50%) scale(0.9);
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-content {
    gap: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }

  .lightbox-content img {
    max-width: 95vw;
    max-height: 80vh;
  }
}

/* ===== Contact ===== */
.contact {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label,
.form-group-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  width: 100%;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  user-select: none;
}

.select-trigger:hover {
  border-color: rgba(201, 169, 98, 0.4);
}

.custom-select.active .select-trigger {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.08);
  transform: translateY(-1px);
}

.select-value {
  color: var(--text);
}

.select-value.is-placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.9rem;
}

.select-arrow {
  color: var(--gold);
  transition: transform var(--transition-fast);
}

.custom-select.active .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: var(--radius);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  max-height: 250px;
}

.select-options::-webkit-scrollbar {
  width: 4px;
}

.select-options::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.select-options::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 2px;
}

.select-options::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.custom-select.active .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.select-option:hover {
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold-light);
}

.select-option.selected {
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold);
  font-weight: 500;
}

/* Hide native select but keep it for form submission */
.form-group select[hidden] {
  display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.08);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-method-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: rgba(20, 18, 16, 0.9);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-method-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.55);
  background: rgba(12, 11, 10, 0.8);
  display: inline-grid;
  place-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.contact-method-option input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--transition-fast);
  background: var(--gold);
}

.contact-method-option input:checked::before {
  transform: scale(1);
}

.contact-method-option input:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.85);
  outline-offset: 2px;
}

.contact-method-option:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.3);
}

.contact-method-option input:checked + span {
  color: var(--gold-light);
}

.contact-form .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .contact-form .btn {
    align-self: center; 
    width: 100%; 
    justify-content: center; 
  }
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.contact-phone:hover {
  color: var(--gold-light);
}

.contact-messengers {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.messenger-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 999px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messenger-link--gold {
  color: var(--gold);
  border-color: rgba(201, 169, 98, 0.4);
  width: 44px;
  height: 44px;
  padding: 0;
}

.messenger-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-side-card {
  background: rgba(26, 24, 22, 0.65);
  border: 1px solid rgba(201, 169, 98, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.contact-side-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.messenger-link--instagram {
  border-color: rgba(201, 169, 98, 0.35);
  color: var(--gold-light);
}

.contact-side-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-side-list li {
  position: relative;
  padding-left: 1.2rem;
}

.contact-side-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(201, 169, 98, 0.85);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: rgba(201, 169, 98, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.3);
}

.form-message.error {
  background: rgba(180, 80, 80, 0.15);
  color: #e8a0a0;
  border: 1px solid rgba(180, 80, 80, 0.3);
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-info {
    margin-top: 0;
  }
}

/* ── Contact Form Card ───────────────────────────────────────── */
.contact-form-card {
  background: rgba(22, 20, 17, 0.72);
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem 2rem;
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.05),
    0 24px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(201, 169, 98, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,169,98,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.contact-form-card .form-message {
  margin-top: 1rem;
}

/* ── Side card — same style as form card ────────────────────── */
.contact-side-card {
  background: rgba(22, 20, 17, 0.72) !important;
  border: 1px solid rgba(201, 169, 98, 0.18) !important;
  border-radius: calc(var(--radius) + 4px) !important;
  padding: 2.25rem 2rem !important;
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.05),
    0 24px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(201, 169, 98, 0.09) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.contact-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,169,98,0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Date / Time row ─────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group--half { min-width: 0; }

.form-group input[type="date"],
.form-group input[type="time"] {
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius);
  color: var(--text);
  width: 100%;
  cursor: pointer;
  color-scheme: dark;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.08);
  transform: translateY(-1px);
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(5deg);
  cursor: pointer;
  opacity: 0.7;
}
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Form hint */
.form-hint {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.75;
  margin: -0.5rem 0 -0.5rem;
  font-style: italic;
}

/* Mobile ≤ 600px: дата і час — одна колонка */
@media (max-width: 600px) {
  .contact-form-card { padding: 1.4rem 1rem; }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ===== Reviews ===== */
.reviews {
  padding: 6rem 0;
  position: relative;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviews-stars span {
  color: var(--gold);
  font-size: 1.1rem;
  margin-right: 0.08rem;
}

.reviews-rating-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reviews-score {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.reviews-google-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 224, 0.25);
  padding: 0.6rem 1.3rem;
  white-space: nowrap;
  background: rgba(20, 18, 16, 0.35);
  transition: var(--transition-fast);
}

.reviews-google-link:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.08);
}

.reviews-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reviews-instagram-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 224, 0.25);
  padding: 0.6rem 1.3rem;
  white-space: nowrap;
  background: rgba(20, 18, 16, 0.35);
}

.reviews-instagram-link:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 98, 0.55);
  background: rgba(201, 169, 98, 0.08);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 0;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(201, 169, 98, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.review-rating span {
  font-size: 1rem;
}

.review-rating small {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reviews-actions,
  .reviews-google-link,
  .reviews-instagram-link {
    width: 100%;
    text-align: center;
  }
}

/* ===== Location ===== */
.location {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.location-content {
  display: grid;
  grid-template-columns: 326px 1fr;
  gap: 3rem;
  align-items: center;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.location-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.location-address,
.location-schedule {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.location-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.map-iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-hint {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-hint a {
  color: var(--gold);
}

.map-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .location .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .location-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .location-info {
    text-align: center;
    gap: 1.5rem;
  }
  .location-address,
  .location-schedule {
    border-left: none;
    padding-left: 0;
  }
  .map-iframe {
    height: 260px;
  }
}

/* ===== Price Modal ===== */
.price-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.price-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.price-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, 0.9);
  backdrop-filter: blur(8px);
}

.price-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.price-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  z-index: 10;
}

.price-modal-close:hover {
  color: var(--gold);
}

.price-modal-content {
  padding: 2.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.price-modal-content::-webkit-scrollbar {
  width: 4px;
}

.price-modal-content::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}

.price-modal-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
  padding-bottom: 1rem;
}

.price-modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

.price-header-row th {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.price-header-name {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  vertical-align: center;
}

.price-header-val {
  width: 120px;
  vertical-align: bottom;
}

.master-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.master-photo-circle {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gold);
}

.master-photo-circle::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid var(--bg-card);
  z-index: 1;
}

.master-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.price-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-section-title {
  padding: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-section-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201, 169, 98, 0.3), transparent);
}

.price-section-row:first-child .price-section-title {
  padding-top: 0.5rem;
}

.price-row {
  border-bottom: 1px solid rgba(201, 169, 98, 0.05);
  transition: background var(--transition-fast);
}

.price-row:hover {
  background: rgba(201, 169, 98, 0.03);
}

.price-name {
  padding: 1rem 1rem 1rem 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  text-align: left;
  position: relative;
}

.price-name::before {
  color: var(--gold);
  margin-right: 0.75rem;
  font-size: 1.2rem;
  vertical-align: middle;
  opacity: 0.6;
}

.price-val {
  padding: 1.25rem 1rem;
  font-size: 1.1rem;
  color: var(--gold-light);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 120px;
}

.price-modal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.price-modal-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.price-modal-btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}

/* Single column adjustments */
.price-modal.single-column .price-val {
  text-align: center;
  width: 120px;
  padding: 1.25rem 0.5rem;
}

.price-modal.single-column .price-header-val {
  width: 120px;
  padding: 0 0.5rem 1.5rem;
  text-align: center;
}

.price-modal.single-column .master-badge-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .price-modal-content {
    padding: 2rem 1rem;
  }
  
  .price-modal-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .price-table {
    table-layout: auto; /* Використовуємо авто, щоб колонки підлаштовувалися під контент */
    width: 100%;
    border-collapse: collapse;
  }
  
  .price-header-val {
    width: 1%; /* Колонки з цінами займають мінімум необхідного місця */
    white-space: nowrap;
    padding: 0 0.5rem 1rem;
  }

  .price-header-name {
    font-size: 0.8rem;
    padding-bottom: 1rem;
    width: auto; /* Назва послуги займає весь вільний простір */
  }

  .master-photo-circle {
    width: 36px;
    height: 36px;
    padding: 1.5px;
  }

  .price-badge {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    max-width: none; /* Дозволяємо іменам бути в один рядок */
  }
  
  .price-name {
    font-size: 0.85rem;
    padding: 0.85rem 0.5rem 0.85rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 100px; /* Мінімальна ширина для назви послуги */
  }

  .price-name::before {
    margin-right: 0.35rem;
    font-size: 0.9rem;
  }
  
  .price-val {
    font-size: 0.85rem;
    padding: 0.85rem 0.5rem;
    width: 1%; /* Ціна займає мінімум місця */
    text-align: center;
    white-space: nowrap; /* ЗАБОРОНЯЄМО перенос ціни */
    line-height: 1.2;
  }

  .price-section-title {
    padding: 1.5rem 0 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    display: table-cell; /* Повертаємо табличну поведінку для colspan */
    width: 100%;
  }

  .price-section-title::after {
    display: block;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .price-modal-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Single column adjustments for mobile */
  .price-modal.single-column .price-val,
  .price-modal.single-column .price-header-val {
    width: 1%;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .service-card::after {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.65rem;
  }
  
  .service-card {
    padding-bottom: 3.25rem;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 1rem 0 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.08);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  margin: 0 auto 0.5rem;
  display: inline-flex;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-instagram {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--gold);
  background: rgba(20, 18, 16, 0.35);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-social-link:hover {
  background: rgba(201, 169, 98, 0.1);
  border-color: rgba(201, 169, 98, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ===== Scroll-triggered animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* will-change тільки поки не видимий — прибирається після появи */
.animate-on-scroll:not(.visible) {
  will-change: transform, opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.service-card[data-delay="1"].visible, 
.gallery-item[data-delay="1"].visible { transition-delay: 0.1s; }
.service-card[data-delay="2"].visible, 
.gallery-item[data-delay="2"].visible { transition-delay: 0.2s; }
.service-card[data-delay="3"].visible, 
.gallery-item[data-delay="3"].visible { transition-delay: 0.3s; }
.service-card[data-delay="4"].visible, 
.gallery-item[data-delay="4"].visible { transition-delay: 0.4s; }
.service-card[data-delay="5"].visible, 
.gallery-item[data-delay="5"].visible { transition-delay: 0.5s; }
.service-card[data-delay="6"].visible { transition-delay: 0.6s; }
.service-card[data-delay="7"].visible { transition-delay: 0.7s; }

/* Special animation for section titles */
h2.section-title.animate-on-scroll {
  transform: translateY(20px);
}

h2.section-title.animate-on-scroll.visible {
  transform: translateY(0);
}

/* Smooth reveal for text paragraphs */
.about-desc.animate-on-scroll,
.section-sub.animate-on-scroll {
  transition-duration: 0.9s;
  transition-delay: 0.1s;
}


/* ═══ MOBILE ANIMATION & SCROLL FIXES ═══════════════════════ */

/* На мобільних анімації можуть не спрацьовувати через rootMargin.
   Зменшуємо поріг і прибираємо затримку для малих екранів */
@media (max-width: 768px) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Скорочуємо stagger-затримки на мобільному */
  .service-card[data-delay="1"].visible,
  .gallery-item[data-delay="1"].visible { transition-delay: 0.05s; }
  .service-card[data-delay="2"].visible,
  .gallery-item[data-delay="2"].visible { transition-delay: 0.1s; }
  .service-card[data-delay="3"].visible,
  .gallery-item[data-delay="3"].visible { transition-delay: 0.15s; }
  .service-card[data-delay="4"].visible,
  .gallery-item[data-delay="4"].visible { transition-delay: 0.2s; }
  .service-card[data-delay="5"].visible,
  .gallery-item[data-delay="5"].visible { transition-delay: 0.25s; }
  .service-card[data-delay="6"].visible { transition-delay: 0.3s; }
  .service-card[data-delay="7"].visible { transition-delay: 0.35s; }

  /* Плавний скрол для всього документу */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Примусово показуємо елементи якщо JS не запустився */
@media (max-width: 768px) {
  .animate-on-scroll.force-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
