/* ============================================
   ТАТОВІ КУБИКИ — Main Stylesheet v3.1
   ============================================ */

@font-face {
  font-family: 'NAMU';
  src: url('../fonts/NAMU-1850.woff2') format('woff2'),
       url('../fonts/NAMU-1850.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #0b0907;
  --surface:   #131008;
  --surface2:  #1c1710;
  --gold:      #c8a84b;
  --gold-lt:   #e5cc85;
  --gold-dim:  rgba(200,168,75,0.12);
  --dark-red:  #6b1f1f;
  --cream:     #f0e6cc;
  --text:      #d8ccb4;
  --muted:     #7a6e58;
  --r:         14px;
  --font-display: 'NAMU', Georgia, serif;
  --font-body:    'NAMU', Georgia, serif;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.028;
  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");
  background-size: 180px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 20px;
}
.gold-line {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 15px;
  border-radius: 2px;
}

section { padding: 80px 24px; }
.inner    { max-width: 1100px; margin: 0 auto; }
.inner-sm { max-width: 720px;  margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 50px;
  border: none; cursor: pointer;
  transition: background var(--transition), transform 0.2s, box-shadow var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #0b0907;
  box-shadow: 0 4px 22px rgba(200,168,75,0.3);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(200,168,75,0.45);
}
.btn-lg { padding: 15px 36px; font-size: 0.88rem; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}
.btn-outline:hover { background: var(--gold); color: #0b0907; }

/* ─── HEADER ─── */
#header {
  position: static; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(11,9,7,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,168,75,0.1);
  transition: background 0.4s;
}
#header.scrolled { background: rgba(11,9,7,0.98); }

.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap img { height: 34px; width: auto; }
.logo-desktop { display: block; }
.logo-mobile  { display: none; }

#desktopNav {
  display: flex; align-items: center; gap: 28px;
}
#desktopNav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  white-space: nowrap;
}
#desktopNav a:hover { color: var(--gold); }

/* ─── BURGER ─── */
/* Burger wrapper — fixed above EVERYTHING including nav overlay */
.burger-wrap {
  display: none;
  position: fixed;
  top: 10px; right: 14px;
  z-index: 1020; /* higher than overlay 1005 */
}

.burger {
  display: flex;
  flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 10px;
  cursor: pointer; padding: 0;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}
.burger:hover {
  background: rgba(200,168,75,0.2);
  border-color: rgba(200,168,75,0.5);
}
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--gold); border-radius: 2px;
  position: absolute;
  left: 13px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              top       0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 29px; }

.burger.open { background: rgba(200,168,75,0.15); border-color: rgba(200,168,75,0.4); }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY — slide from right ─── */
.nav-overlay {
  display: flex;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #0f0d0a;
  border-left: 1px solid rgba(200,168,75,0.12);
  box-shadow: -12px 0 60px rgba(0,0,0,0.6);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0; z-index: 1010;
  padding: 80px 36px 48px;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.nav-overlay.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Backdrop */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 1004;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: all; }

/* Nav links */
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  color: var(--muted);
  text-align: left;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid rgba(200,168,75,0.07);
  transform: translateX(20px);
  opacity: 0;
  transition: color 0.25s, padding-left 0.25s, transform 0.4s, opacity 0.4s;
}
.nav-overlay.open a { transform: translateX(0); opacity: 1; }
.nav-overlay.open a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.13s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.18s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.23s; }

.nav-overlay a:hover { color: var(--gold); padding-left: 8px; }
.nav-overlay a:last-of-type { border-bottom: none; }

/* CTA in overlay */
.nav-overlay .nav-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 28px;
  background: var(--gold); color: #0b0907;
  font-family: var(--font-body);
  font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px; border-radius: 50px;
  width: 100%;
  box-shadow: 0 4px 22px rgba(200,168,75,0.3);
  transform: translateX(20px); opacity: 0;
  transition: background 0.25s, transform 0.4s 0.28s, opacity 0.4s 0.28s;
}
.nav-overlay.open .nav-cta { transform: translateX(0); opacity: 1; }
.nav-overlay .nav-cta:hover { background: var(--gold-lt); }

.nav-overlay::after {
  content: '🎲';
  position: absolute; bottom: 32px; right: 28px;
  font-size: 4.5rem; opacity: 0.07;
  pointer-events: none;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 0 20px 80px;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  top: -75%; left: 0; right: 0; bottom: 0;
  background: url('../img/intro-bg.webp') center 30% / cover no-repeat;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(11,9,7,0.3)  0%,
    rgba(11,9,7,0.15) 20%,
    rgba(11,9,7,0.6)  55%,
    rgba(11,9,7,0.96) 82%,
    rgba(11,9,7,1)    100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,168,75,0.4);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 1s 0.2s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.0;
  margin-bottom: 22px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 32px rgba(0,0,0,0.6);
  opacity: 0; animation: fadeUp 1s 0.35s ease forwards;
}

.hero-desc {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  line-height: 1.75;
  color: rgba(240,230,204,0.92);
  max-width: 540px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95), 0 2px 20px rgba(0,0,0,0.8);
  opacity: 0; animation: fadeUp 1s 0.5s ease forwards;
}

.hero-cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s 0.7s ease forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* opacity: 0; */
  /* animation: fadeUp 1s 1.2s ease forwards; */
}
.scroll-hint span {
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── GALLERY — 10 photos asymmetric editorial grid ─── */
#gallery { padding: 0; overflow: hidden; }

/*
  Layout rows:
  Row A: [big portrait 2col×2row] [landscape] [square]
  Row B: [big portrait 2col×2row] [square]    [landscape]
  Row C: [tall 1col×2row] [wide 3col] [tall 1col×2row]
  Row D: [tall 1col×2row] [sq] [sq]  [tall 1col×2row]
*/
.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  grid-template-rows: 240px 240px 220px 220px;
  gap: 4px;
}

.g-item {
  overflow: hidden; position: relative;
  background: var(--surface2);
  min-height: 160px;
}

/* Row 1–2: big portrait on left spans 2 rows & 1 col */
.g-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
/* Row 1: landscape middle-wide */
.g-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
/* Row 1: square right */
.g-item:nth-child(3) { grid-column: 4; grid-row: 1; }
/* Row 2: square middle */
.g-item:nth-child(4) { grid-column: 2; grid-row: 2; }
/* Row 2: landscape right-wide */
.g-item:nth-child(5) { grid-column: 3 / 5; grid-row: 2; }

/* Row 3–4: side tall items + wide center */
.g-item:nth-child(6)  { grid-column: 1; grid-row: 3 / 5; }   /* tall left */
.g-item:nth-child(7)  { grid-column: 2 / 4; grid-row: 3; }   /* wide middle */
.g-item:nth-child(8)  { grid-column: 4; grid-row: 3 / 5; }   /* tall right */
.g-item:nth-child(9)  { grid-column: 2; grid-row: 4; }        /* square */
.g-item:nth-child(10) { grid-column: 3; grid-row: 4; }        /* square */

.g-item .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  background: var(--surface2);
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94), filter 0.4s;
  filter: brightness(0.82) saturate(0.88);
}
.g-item:hover img { transform: scale(1.07); filter: brightness(1.02) saturate(1.05); }
.g-item:hover .placeholder { transform: scale(1.06); }

/* Subtle gold border flash on hover */
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--gold);
  transition: box-shadow 0.35s ease;
  pointer-events: none; z-index: 1;
}
.g-item:hover::after { box-shadow: inset 0 0 0 2px rgba(200,168,75,0.45); }

/* ─── BOX ─── */
#box { background: var(--surface); }
.box-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.box-photo {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(200,168,75,0.1);
}
.box-photo img { width: 100%; display: block; filter: brightness(0.95); }
.box-list { list-style: none; }
.box-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(200,168,75,0.08);
  font-size: 0.97rem; transition: padding-left 0.3s;
}
.box-list li:last-child { border: none; }
.box-list li:hover { padding-left: 6px; }
.bicon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ─── WHY ─── */
#why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card {
  background: var(--surface);
  border: 1px solid rgba(200,168,75,0.08);
  border-radius: var(--r); padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform 0.35s, box-shadow 0.35s;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--dark-red), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.why-card:hover { border-color: rgba(200,168,75,0.26); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.why-card:hover::before { opacity: 1; }
.why-num {
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  color: rgba(200,168,75,0.1);
  position: absolute; top: 12px; right: 18px;
}
.why-icon { font-size: 1.7rem; margin-bottom: 12px; }
.why-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 8px; }
.why-text { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── REVIEWS ─── */
#reviews { background: var(--surface); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 44px; }
.rev-card {
  background: var(--bg);
  border: 1px solid rgba(200,168,75,0.08);
  border-radius: var(--r); padding: 24px 22px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.rev-card:hover { border-color: rgba(200,168,75,0.25); transform: translateY(-4px); }
.rev-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem; line-height: 0.8;
  color: rgba(200,168,75,0.07);
  position: absolute; top: 12px; right: 12px;
  pointer-events: none;
}
.stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 12px; }
.rev-text { font-size: 0.88rem; line-height: 1.7; color: var(--text); margin-bottom: 14px; position: relative; }
.rev-author { color: var(--gold); font-size: 0.84rem; }

/* ─── SPECIAL ─── */
#special { background: var(--bg); }
.special-card {
  background: var(--surface2);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 24px; padding: 64px;
  text-align: center; position: relative; overflow: hidden;
}
.special-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,168,75,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.special-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  color: var(--gold-lt); margin-bottom: 28px; position: relative;
}
.special-text { font-size: 1rem; line-height: 1.9; color: var(--muted); position: relative; }

/* ─── VIDEO ─── */
#video { background: var(--surface); }
.video-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: var(--cream); text-align: center;
  max-width: 660px; margin: 0 auto 40px; line-height: 1.4;
}
.video-wrap {
  max-width: 800px; margin: 0 auto;
  border-radius: 20px; overflow: hidden; background: var(--bg);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,168,75,0.12);
  cursor: pointer; position: relative;
  transition: border-color var(--transition);
}
.video-wrap:hover { border-color: rgba(200,168,75,0.35); }
.play-btn {
  width: 80px; height: 80px;
  background: rgba(200,168,75,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0b0907; font-size: 1.6rem;
  box-shadow: 0 8px 40px rgba(200,168,75,0.4);
  transition: transform 0.3s, background 0.3s;
}
.video-wrap:hover .play-btn { transform: scale(1.1); background: var(--gold-lt); }

/* ─── PRICE ─── */
#price { background: var(--bg); }
.price-card {
  max-width: 600px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 28px; padding: 60px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(200,168,75,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.price-eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; position: relative; }
.price-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--cream); margin-bottom: 28px; line-height: 1.35; position: relative;
}
.price-incl { list-style: none; text-align: left; display: inline-block; margin-bottom: 28px; position: relative; }
.price-incl li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.88rem; color: var(--muted); }
.price-incl li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.price-amount {
  font-family: var(--font-display);
  font-size: 4.5rem; color: var(--gold); line-height: 1;
  margin: 8px 0; position: relative;
}
.price-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 28px; position: relative; }

/* ─── CONTACTS ─── */
#contacts { background: var(--surface); }
.contacts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 640px; margin: 0 auto; text-align: center;
}
.contact-card {
  background: var(--bg);
  border: 1px solid rgba(200,168,75,0.1);
  border-radius: var(--r); padding: 26px 14px; display: block;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover { border-color: rgba(200,168,75,0.3); transform: translateY(-4px); }
.contact-icon { font-size: 1.8rem; margin-bottom: 10px; }
.contact-lbl { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-val { color: var(--gold); font-size: 0.88rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(200,168,75,0.1);
  padding: 40px 24px 28px; text-align: center;
}
.footer-logo { margin: 0 auto 16px; }
.footer-logo img { height: 38px; margin: 0 auto; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.footer-nav a {
  font-size: 0.73rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.76rem; color: var(--muted); }

/* FancyBox custom theme */
.fancybox-bg { background: #0b0907; }
.fancybox-toolbar { background: rgba(11,9,7,0.8); }
.fancybox-button { color: #c8a84b; }
.fancybox-button:hover { background: rgba(200,168,75,0.15); }
.fancybox-caption { background: linear-gradient(to top, rgba(11,9,7,0.95), transparent); color: #d8ccb4; font-family: 'NAMU', serif; }
.fancybox-navigation .fancybox-button { color: #c8a84b; }
.fancybox-thumbs__list a::before { border-color: #c8a84b; }

/* Gallery link wrapper */
.g-link {
  display: block;
  width: 100%; height: 100%;
  position: relative;
}
.g-link::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(200,168,75,0);
  transition: background 0.35s;
  z-index: 2;
}
.g-item:hover .g-link::after {
  background: rgba(200,168,75,0.08);
}

/* ─── SCROLL TOP ─── */
#scrollTop {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--gold); color: #0b0907;
  border: none; border-radius: 50%;
  font-size: 1rem; cursor: pointer; z-index: 999;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(200,168,75,0.35);
  transition: transform 0.2s;
}
#scrollTop:hover { transform: scale(1.1); }
#scrollTop.show { display: flex; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.35; } 50% { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ══════════════════
   TABLET ≤ 1024px
══════════════════ */
@media (max-width: 1024px) {
  #header { padding: 0 24px; }
  #desktopNav { gap: 18px; }
  #desktopNav a { font-size: 0.72rem; }

  /* Gallery tablet: 2-col simplified */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px 200px 200px;
    gap: 3px;
  }
  .g-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .g-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .g-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .g-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .g-item:nth-child(5) { grid-column: 1; grid-row: 4; }
  .g-item:nth-child(6) { grid-column: 2; grid-row: 4; }
  .g-item:nth-child(7) { grid-column: 1 / 3; grid-row: 5; }
  .g-item:nth-child(8) { grid-column: 1; grid-row: 6;  }
  .g-item:nth-child(9)  { grid-column: 2; grid-row: 6;  }
  .g-item:nth-child(10) {  }

  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .box-layout { gap: 40px; }
}

/* ══════════════════
   MOBILE ≤ 768px
══════════════════ */
@media (max-width: 768px) {

  .hero-parallax {
    top: -40%; left: 0; right: 0; bottom: 0;
  }

  /* Header */
  #header { padding: 0 16px; height: 60px; }
  .logo-desktop { display: none; }
  .logo-mobile  { display: block; }
  .logo-wrap img { height: 28px; }
  #desktopNav   { display: none; }
  .burger-wrap  { display: block; }
  .burger       { display: flex; }

  /* Hero */
  #hero {
    height: 100svh;
    min-height: 580px;
    padding: 0 16px 85px;
  }
  .hero-parallax { background-position: center 25%; }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(11,9,7,0.4)  0%,
      rgba(11,9,7,0.2)  18%,
      rgba(11,9,7,0.65) 50%,
      rgba(11,9,7,0.97) 80%,
      rgba(11,9,7,1)    100%
    );
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { font-size: 0.62rem; padding: 5px 14px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 4rem); margin-bottom: 16px; }
  .hero-desc { font-size: 0.88rem; line-height: 1.65; margin-bottom: 24px; max-width: 100%; }
  .hero-cta-row { flex-direction: column; align-items: center; gap: 10px; }
  .hero-cta-row .btn { width: 100%; max-width: 300px; }
    .scroll-hint {
      position: absolute;
      bottom: 30px;
      left: 50%;
      /* right: 0; */
      transform: translateX(-50%);
      z-index: 2;
      /* display: flex; */
      flex-direction: column;
      /* align-items: center; */
      gap: 8px;
      width: 100;
      /* opacity: 0; */
      /* animation: fadeUp 1s 1.2s ease forwards; */
      width: 85%;
      line-height: 1.6;

    }

    .scroll-hint span {
      font-size: 0.55rem;
    }

  /* Sections */
  section { padding: 52px 16px; }

  /* Gallery mobile: 2-col staggered — all 10 photos, masonry feel */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows:
      170px  /* row 1 */
      120px  /* row 2 */
      150px  /* row 3 */
      170px  /* row 4 */
      120px  /* row 5 */
      150px; /* row 6 */
    gap: 3px;
  }
  /* Reset desktop placements first */
  .g-item { grid-column: auto; grid-row: auto; display: block; aspect-ratio: unset; }

  /* Row 1: item1 wide full, item2 right */
  .g-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }   /* full width tall */
  .g-item:nth-child(2) { grid-column: 1;     grid-row: 2; }   /* left small */
  .g-item:nth-child(3) { grid-column: 2;     grid-row: 2; }   /* right small */
  .g-item:nth-child(4) { grid-column: 1;     grid-row: 3; }
  .g-item:nth-child(5) { grid-column: 2;     grid-row: 3; }
  .g-item:nth-child(6) { grid-column: 1 / 3; grid-row: 4; }   /* full width */
  .g-item:nth-child(7) { grid-column: 1;     grid-row: 5; }
  .g-item:nth-child(8) { grid-column: 2;     grid-row: 5; }
  .g-item:nth-child(9) { grid-column: 1;     grid-row: 6; }
  .g-item:nth-child(10){ grid-column: 2;     grid-row: 6; }

  /* Box */
  .box-layout { grid-template-columns: 1fr; gap: 28px; }
  /* .box-photo { order: -1; } */

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-card { padding: 22px 18px; }
  .why-num { font-size: 3rem; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }

  /* Special */
  .special-card { padding: 32px 18px; }

  /* Price */
  .price-card { padding: 36px 18px; }
  .price-amount { font-size: 3.2rem; }

  /* Contacts */
  .contacts-grid { grid-template-columns: 1fr; max-width: 280px; gap: 10px; }

  /* Footer */
  .footer-nav { gap: 12px; }
  footer { padding: 28px 16px 20px; }

  #scrollTop { bottom: 14px; right: 14px; width: 38px; height: 38px; font-size: 0.85rem; }
}

/* ══════════════════
   SMALL ≤ 400px
══════════════════ */
@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .hero-desc  { font-size: 0.82rem; }
  .btn-lg     { padding: 12px 22px; font-size: 0.82rem; }
  .sec-title  { font-size: 1.55rem; }
  .price-amount { font-size: 2.8rem; }
  .special-card { padding: 28px 14px; }
}
