@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── PAGE FADE-IN (клас додається JS після завантаження) ───────────────── */
.page-loading body { opacity: 0; }

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg:            #120d08;
  --bg-2:          #1c1410;
  --bg-card:       #231a12;
  --bg-card-hover: #2e2218;
  --border:        rgba(200,169,110,0.12);
  --border-hover:  rgba(200,169,110,0.35);
  --accent:        #c8a96e;
  --accent-2:      #e2c98a;
  --accent-dim:    rgba(200,169,110,0.12);
  --accent-glow:   rgba(200,169,110,0.25);
  --text:          #ede4d3;
  --text-muted:    #8b7355;
  --text-faint:    #3a2e20;
  --nav-bg:        rgba(22,16,10,0.82);
  --shadow:        0 8px 48px rgba(0,0,0,0.55);
  --shadow-card:   0 4px 32px rgba(0,0,0,0.45);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     22px;
  --transition:    0.4s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="light"] {
  --bg:            #f5efe5;
  --bg-2:          #ede5d8;
  --bg-card:       #faf5ec;
  --bg-card-hover: #fff9f2;
  --border:        rgba(139,105,52,0.15);
  --border-hover:  rgba(139,105,52,0.4);
  --accent:        #8b6914;
  --accent-2:      #6b500f;
  --accent-dim:    rgba(139,105,52,0.12);
  --accent-glow:   rgba(139,105,52,0.2);
  --text:          #1e160a;
  --text-muted:    #6b5440;
  --text-faint:    #c8b090;
  --nav-bg:        rgba(245,239,229,0.88);
  --shadow:        0 8px 48px rgba(90,60,20,0.15);
  --shadow-card:   0 4px 32px rgba(90,60,20,0.12);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: opacity 0.38s ease, background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── CANVAS BG ──────────────────────────────────────────────────────────── */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ─── CURSOR ─────────────────────────────────────────────────────────────── */
#cursor-ring { display: none; }
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .18s, height .18s, opacity .18s, background .3s;
  will-change: left, top;
}
body.cursor-hover #cursor-dot { width: 10px; height: 10px; background: var(--accent-2); }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section    { position: relative; z-index: 2; padding: 120px 0; }
.section--sm{ position: relative; z-index: 2; padding: 80px 0; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.02em;
}
.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.015em;
}
.heading-md {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400; line-height: 1.2;
}
.label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.accent     { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ─── NAV — FLOATING PILL ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 14px 10px 22px;
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.42), 0 1px 0 rgba(255,255,255,0.04) inset;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition),
              transform 0.42s cubic-bezier(0.4,0,0.2,1),
              opacity 0.42s ease;
}
.nav.scrolled {
  box-shadow: 0 14px 56px rgba(0,0,0,0.58), 0 1px 0 rgba(255,255,255,0.06) inset;
  border-color: var(--border-hover);
}
.nav--hidden {
  transform: translateX(-50%) translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

/* ─── NAV LOGO — два PNG, плавний cross-fade через CSS ──────────────────── */
.nav__logo-imgs {
  display: grid;
  grid-template-areas: 'logo';
  height: 26px;
  align-items: center;
}
.nav__logo-img {
  grid-area: logo;
  height: 26px; width: auto; display: block;
  flex-shrink: 0; object-fit: contain;
  transition: opacity 0.4s ease-in-out;
}

/* Темна тема → показуємо dark-варіант логотипа */
[data-theme="dark"]  .nav__logo-img--dark  { opacity: 1; pointer-events: auto;  }
[data-theme="dark"]  .nav__logo-img--light { opacity: 0; pointer-events: none;  }

/* Світла тема → показуємо light-варіант логотипа */
[data-theme="light"] .nav__logo-img--light { opacity: 1; pointer-events: auto;  }
[data-theme="light"] .nav__logo-img--dark  { opacity: 0; pointer-events: none;  }

/* За замовчуванням (поки JS не вставив imgs) — показуємо dark-варіант */
.nav__logo-img--dark  { opacity: 1; }
.nav__logo-img--light { opacity: 0; pointer-events: none; }

.nav__logo:hover .nav__logo-imgs { opacity: 0.78; transition: opacity 0.2s ease; }
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent);
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  margin-right: 10px; transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo-dot {
  width: 5px; height: 5px; background: var(--accent);
  border-radius: 50%; display: inline-block; margin-bottom: 2px;
}
.nav__sep {
  width: 1px; height: 18px; background: var(--border); margin: 0 10px; flex-shrink: 0;
}
.nav__links { display: flex; align-items: center; }
.nav__link {
  padding: 7px 11px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted);
  border-radius: 60px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--accent-dim); }
.nav__link.active { color: var(--accent); background: var(--accent-dim); }

.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.nav__phone-btn,
.nav__theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav__phone-btn:hover { border-color: var(--accent); background: var(--accent-dim); transform: scale(1.1); }
.nav__theme-btn { color: var(--text-muted); }
.nav__theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(22deg) scale(1.1); }
.nav__phone-btn svg, .nav__theme-btn svg { width: 16px; height: 16px; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 92px; overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; padding: 80px 0;
}
.hero__label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero__label::before { content: ''; width: 36px; height: 1px; background: var(--accent); }
.hero__title { margin-bottom: 28px; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 420px; line-height: 1.8; margin-bottom: 48px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; height: 580px; }
.hero__img-wrap {
  width: 100%; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.hero__img-badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  border-radius: var(--radius); padding: 18px 22px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow-card);
}
.hero__img-badge strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1;
}
.hero__img-badge span { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.05em; }
.hero__scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: scrollBounce 2.5s infinite;
}
.hero__scroll-hint::after { content: ''; width: 1px; height: 36px; background: linear-gradient(to bottom, var(--accent), transparent); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 60px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.06); opacity: 0; transition: opacity 0.2s; }
.btn:hover::before { opacity: 1; }
.btn--primary { background: var(--accent); color: #0d0a06; }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn--outline  { border: 1px solid var(--border-hover); color: var(--text); }
.btn--outline:hover  { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head__label { margin-bottom: 14px; }
.section-head__title { margin-bottom: 18px; }
.section-head__desc { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; line-height: 1.75; }

/* ─── STATS ──────────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats__item { background: var(--bg-card); padding: 40px 32px; text-align: center; transition: background var(--transition); }
.stats__item:hover { background: var(--bg-card-hover); }
.stats__value { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stats__label { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__img-stack { position: relative; height: 520px; }
.about__img-main { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__img-accent {
  position: absolute; bottom: -32px; right: -32px; width: 55%; height: 55%;
  border-radius: var(--radius); overflow: hidden; border: 4px solid var(--bg); box-shadow: var(--shadow-card);
}
.about__title { margin-bottom: 24px; }
.about__text  { color: var(--text-muted); line-height: 1.85; margin-bottom: 20px; }
.about__divider { width: 48px; height: 2px; background: var(--accent); margin: 32px 0; }
.about__list { display: flex; flex-direction: column; gap: 12px; }
.about__list-item { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: var(--text-muted); }
.about__list-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ─── WORKS GRID ─────────────────────────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 420px 380px;
  gap: 12px;
}
.work-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; cursor: none; }
.work-card__img { position: absolute; inset: 0; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.work-card:hover .work-card__img { transform: scale(1.07); }
.work-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.12) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 32px;
  transition: background var(--transition);
}
.work-card:hover .work-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 60%, rgba(200,169,110,0.05) 100%);
}
.work-card__cat { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.work-card__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-weight: 400; color: #fff; margin-bottom: 4px; transition: color var(--transition); }
.work-card:hover .work-card__title { color: var(--accent-2); }
.work-card__sub { font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; transition: color var(--transition); }
.work-card:hover .work-card__sub { color: rgba(200,169,110,0.85); }
.work-card__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transform: translateX(-6px); transition: opacity var(--transition), transform var(--transition);
}
.work-card:hover .work-card__link { opacity: 1; transform: translateX(0); }
.work-card__link svg { width: 14px; height: 14px; }

/* ─── HORIZONTAL SCROLL ──────────────────────────────────────────────────── */
.h-scroll-outer  { position: relative; height: 400vh; z-index: 2; }
.h-scroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.h-scroll-track  { display: flex; height: 100%; will-change: transform; }
.h-scroll-panel  { width: 100vw; height: 100vh; flex-shrink: 0; position: relative; border-right: 1px solid var(--border); overflow: hidden; }
.h-scroll-panel__inner {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1280px; margin: 0 auto; padding: 140px 60px 80px; gap: 60px; align-items: center;
}
.h-scroll-panel__step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.h-scroll-panel__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.h-scroll-panel__step-text { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.h-scroll-panel__num { font-family: 'Cormorant Garamond', serif; font-size: clamp(5rem, 10vw, 8rem); font-weight: 300; color: var(--text); line-height: 1; margin-bottom: 24px; }
.h-scroll-panel__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; color: var(--text); margin-bottom: 18px; }
.h-scroll-panel__text { font-size: 0.98rem; color: var(--text-muted); line-height: 1.85; max-width: 380px; }
.h-scroll-panel__visual { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.h-scroll-panel__bg-num {
  position: absolute; font-family: 'Cormorant Garamond', serif;
  font-size: min(40vw, 38vh); font-weight: 700; color: var(--accent); opacity: 0.045;
  line-height: 1; user-select: none; pointer-events: none; right: -5%; top: 50%; transform: translateY(-50%);
  transition: opacity var(--transition);
}
.h-scroll-panel:hover .h-scroll-panel__bg-num { opacity: 0.075; }
.h-scroll-panel__card {
  width: 78%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border); overflow: hidden;
  position: relative; z-index: 1; box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.h-scroll-panel:hover .h-scroll-panel__card { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow); }
.h-scroll-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.h-scroll-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--text-faint); transition: all 0.35s ease; }
.h-scroll-dot.active { background: var(--accent); width: 22px; }
.h-scroll-hint {
  position: absolute; bottom: 40px; right: 48px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
  animation: hintPulse 2.5s ease-in-out infinite;
}
.h-scroll-hint svg { width: 18px; height: 18px; }
@keyframes hintPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(5px); }
}
.h-scroll-counter { position: absolute; top: 36px; right: 48px; font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.1em; }
.h-scroll-counter span { color: var(--accent); }

/* ─── GALLERY — CLEAN RECTANGULAR ───────────────────────────────────────── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: none;
  background: var(--bg-card);
}

/* Паралакс: img-wrapper трохи більший за картку, щоб зсув не давав просвітів */
.gallery-card__img {
  position: absolute;
  inset: -16px 0;
  width: 100%;
  height: calc(100% + 32px);
  will-change: transform;
}
/* img та ph — абсолютні, перекривають одне одного */
.gallery-card__img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-ph {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card__img img,
.gallery-card:hover .gallery-ph {
  transform: scale(1.06);
}

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}
.gallery-ph--shimmer {
  position: relative;
  overflow: hidden;
}
.gallery-ph--shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200,169,110,0.10) 50%,
    transparent 100%
  );
  animation: shimmer 1.8s ease-in-out infinite;
}
[data-theme="light"] .gallery-ph--shimmer::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139,105,52,0.12) 50%,
    transparent 100%
  );
}


/* Show more / Collapse */
.gallery-more {
  display: flex;
  justify-content: center;
  padding-top: 52px;
}

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────── */

/* Блокуємо скрол body коли лайтбокс відкритий */
body.lb-active { overflow: hidden; }

/* Overlay: темний фон + flex-центрування фото */
#lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.4,0,0.2,1);
}
#lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Темний фон — окремий шар для кліку-закриття */
#lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(8,5,3,0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: none;
}

/* Обгортка фото */
#lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1280px);
  max-height: 88vh;
  opacity: 0;
  transform: scale(0.93) translateY(12px);
  transition: opacity 0.38s cubic-bezier(0.4,0,0.2,1),
              transform 0.38s cubic-bezier(0.4,0,0.2,1);
}
#lb-overlay.lb-open #lb-img-wrap {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Фото */
#lb-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.75);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Кнопка закриття «×» */
#lb-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 9910;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.28);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: background 0.22s ease,
              border-color 0.22s ease,
              transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#lb-close svg { width: 20px; height: 20px; pointer-events: none; }
#lb-close:hover {
  background: rgba(200,169,110,0.26);
  border-color: rgba(200,169,110,0.55);
  transform: scale(1.1) rotate(90deg);
}

/* Стрілки навігації */
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9910;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(200,169,110,0.10);
  border: 1px solid rgba(200,169,110,0.22);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: background 0.22s ease,
              border-color 0.22s ease,
              transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.lb-arrow svg { width: 22px; height: 22px; pointer-events: none; }
#lb-prev { left: 22px; }
#lb-next { right: 22px; }
.lb-arrow:hover {
  background: rgba(200,169,110,0.24);
  border-color: rgba(200,169,110,0.5);
}
#lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
#lb-next:hover { transform: translateY(-50%) translateX(3px); }

/* Мобайл: стрілки — менші, притиснуті до краю */
@media (max-width: 600px) {
  .lb-arrow { width: 40px; height: 40px; }
  #lb-prev { left: 8px; }
  #lb-next { right: 8px; }
  #lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ─── PAGE HERO ──────────────────────────────────────────────────────────── */
.page-hero {
  position: relative; z-index: 2;
  padding: 140px 48px 72px;
  max-width: 1280px; margin: 0 auto;
  min-height: 38vh; display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero__label { margin-bottom: 14px; }
.page-hero__title { margin-bottom: 14px; }
.page-hero__sub { font-size: 1rem; color: var(--text-muted); max-width: 520px; line-height: 1.75; }

/* ─── PAGE INTRO ─────────────────────────────────────────────────────────── */
.page-intro {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
  text-align: center; padding: 0 48px 72px;
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.85;
}

/* ─── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative; z-index: 2;
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 100px 48px;
}
.cta-banner__title { margin-bottom: 16px; }
.cta-banner__sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 44px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-banner__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACTS PAGE ──────────────────────────────────────────────────────── */
.contacts-section {
  position: relative; z-index: 2;
  padding: 60px 0 120px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-card__type { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.contact-card__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 400; color: var(--text); line-height: 1.3;
  word-break: break-word;
}
.contact-card__hint {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition), gap var(--transition);
}
.contact-card:hover .contact-card__hint { color: var(--accent); gap: 12px; }
.contact-card__hint svg { width: 13px; height: 13px; }

/* Contacts — working hours */
.contacts-hours {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 60px;
}
.contacts-hours__item {
  padding: 0 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.contacts-hours__item:first-child { padding-left: 0; }
.contacts-hours__item:last-child  { border-right: none; }
.contacts-hours__day { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contacts-hours__time { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--text); line-height: 1.1; }
.contacts-hours__time.closed { color: var(--text-faint); font-size: 1.4rem; }

/* contacts-map block removed — address lives in the contact card grid */

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 56px; margin-bottom: 56px; }
.footer__brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.footer__brand-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 290px; }
.footer__socials { display: flex; gap: 8px; }
.footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all var(--transition);
}
.footer__social:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.footer__social svg { width: 15px; height: 15px; }
.footer__col-title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-link { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer__nav-link:hover { color: var(--text); }
.footer__contacts { display: flex; flex-direction: column; gap: 13px; }
.footer__contact { display: flex; align-items: flex-start; gap: 11px; font-size: 0.86rem; color: var(--text-muted); }
.footer__contact svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--text-faint); }
.footer__work-hours {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--accent-dim); border: 1px solid var(--border); border-radius: 40px; padding: 7px 14px;
}
.footer__work-hours::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #5cb85c; animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── PLACEHOLDER ────────────────────────────────────────────────────────── */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: var(--text-faint);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: inherit; flex-direction: column; gap: 6px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Burger: прихований на десктопі */
.nav__burger { display: none; }

/* ── ≤1100px ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 300px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .contacts-hours { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .contacts-hours__item { padding: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .contacts-hours__item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ── ≤1024px ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 60px 0 80px; }
  .hero__visual { height: 380px; }
  .hero__img-badge { bottom: -16px; left: -8px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img-stack { height: 320px; overflow: hidden; }
  .about__img-accent { bottom: -16px; right: -8px; width: 50%; height: 50%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .h-scroll-panel__inner { padding: 120px 40px 60px; }
  .cta-banner { padding: 80px 28px; }
  .page-hero { padding: 120px 28px 60px; }
  .page-intro { padding: 0 28px 60px; }
}

/* ── ≤900px: Бургер-меню (планшети та телефони) ───────────────────────────── */
@media (max-width: 900px) {
  /* Пілюля розгортається вертикально при відкритому меню */
  .nav {
    flex-wrap: wrap;
    padding: 9px 12px;
    transition: background var(--transition), border-color var(--transition),
                box-shadow var(--transition), border-radius 0.32s ease,
                transform 0.42s cubic-bezier(0.4,0,0.2,1), opacity 0.42s ease;
  }
  .nav--open { border-radius: 20px; }
  .nav__sep   { display: none; }
  .nav__logo  { font-size: 1.42rem; margin-right: 0; }
  .nav__actions { margin-left: auto; }

  /* ── Бургер-кнопка ───────────────────────── */
  .nav__burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
  }
  .nav__burger span {
    display: block;
    width: 15px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                opacity 0.22s ease,
                width 0.3s ease;
  }
  .nav__burger:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

  /* Бургер → X */
  .nav--open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav--open .nav__burger span:nth-child(2) { opacity: 0; width: 0; }
  .nav--open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ── Меню-посилання: другий ряд пілюлі ─── */
  .nav__links {
    display: flex;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1),
                opacity 0.28s ease,
                padding 0.32s ease,
                border-color 0.28s ease;
  }
  .nav__link {
    display: block;
    padding: 10px 12px;
    font-size: 0.84rem;
    border-radius: 12px;
  }
  /* Відкрите меню */
  .nav--open .nav__links {
    max-height: 300px;
    opacity: 1;
    padding: 10px 0 6px;
    border-top-color: var(--border);
  }
}

/* ── ≤768px: Повна мобільна версія ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { top: 10px; left: 16px; right: 16px; transform: translateY(0); max-width: none; }
  .nav--hidden { transform: translateY(-160%); }
  .nav__logo   { font-size: 1.35rem; }

  .container { padding: 0 20px; }
  .section   { padding: 72px 0; }

  .works-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 260px); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer__grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }

  .h-scroll-outer  { height: auto; }
  .h-scroll-sticky { position: relative; height: auto; overflow: visible; }
  .h-scroll-track  { flex-direction: column; transform: none !important; }
  .h-scroll-panel  { width: 100%; height: auto; min-height: 60vh; border-right: none; border-bottom: 1px solid var(--border); }
  .h-scroll-panel__inner { grid-template-columns: 1fr; padding: 80px 24px 60px; }
  .h-scroll-panel__visual { display: none; }
  .h-scroll-dots, .h-scroll-hint, .h-scroll-counter { display: none; }

  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-hours { padding: 24px 20px; }

  .hero__ctas  { flex-direction: column; }
  .hero__img-badge { display: none; }
  .cta-banner  { padding: 72px 20px; }
  .cta-banner__btns { flex-direction: column; align-items: center; }
  .cta-banner__sub  { max-width: 100%; }

  .page-hero   { padding: 100px 20px 48px; }
  .page-intro  { padding: 0 20px 56px; }

  .stats       { grid-template-columns: 1fr; }
  .stats__item { padding: 28px 20px; }
}

/* ── ≤420px ───────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .nav__logo  { font-size: 1.2rem; }
  .heading-xl { font-size: clamp(2.2rem, 9vw, 3rem); }
  .works-grid { grid-template-rows: repeat(4, 220px); }
}
