/* ========================================
   ZLATA LUXE - PREMIUM VERSION CSS
   ======================================== */

:root {
  --black: #000000;
  --gray: #bfc0bd;
  --gold-grad: linear-gradient(90deg, #8f5e25 0%, #fbf4a1 50%, #8f5e25 100%);
  --gray-grad: linear-gradient(
    90deg,
    #999 0%,
    #bbb 30%,
    #fff 50%,
    #bbb 70%,
    #999 100%
  );
  --gold-start: #8f5e25;
  --gold-mid: #fbf4a1;
  --gold-end: #8f5e25;
  --transition: 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --radius: 14px;
  --soft-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  --premium-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  --glow-gold: 0 0 20px rgba(251, 244, 161, 0.3);
  --thin-line: 1px rgba(255, 214, 120, 0.12);
}

/* ========================================
   FONTS — self-hosted woff2 (subset, swap)
   Playfair Display: заголовки lat/cyr
   Frank Ruhl Libre: заголовки иврит
   Rubik: body на всех языках
   ======================================== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/rubik-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/rubik-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/rubik-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/rubik-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/rubik-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/rubik-500-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/rubik-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/rubik-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Form-элементы не наследуют шрифт страницы по умолчанию (берут системный
   Arial) — заставляем их использовать тот же шрифт, что и body (Rubik).
   Иначе кнопки <button> и поля выглядят другим шрифтом, чем <a>-кнопки. */
button,
input,
textarea,
select {
  font-family: inherit;
}

html {
  height: 100%;
  /* scroll-behavior убран - конфликтовал с Lenis */
}

body {
  margin: 0;
  padding: 0;
  background-color: #050505;
  color: var(--gray);
  /* Body — Rubik (lat/cyr/hebrew), читаемый на всех языках; system-ui — фолбэк */
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px; /* и это, если хочешь */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding-top: 64px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(230, 210, 180, 0.15) 0%,
    rgba(150, 150, 150, 0.05) 45%,
    transparent 80%
  );
  filter: blur(100px);
  animation: ambient-glow 8s ease-in-out infinite alternate;
}

@keyframes ambient-glow {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.1);
  }
}

@media (min-width: 1025px) {
  body::before {
    top: -50vh;
    width: 180vw;
    height: 110vh;
  }
}

@media (max-width: 1024px) {
  body::before {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 420px;
    background: radial-gradient(
        80% 45% at 50% 0%,
        rgba(225, 215, 190, 0.045) 0%,
        transparent 55%
      ),
      radial-gradient(
        120% 70% at 50% 0%,
        rgba(210, 200, 175, 0.1) 0%,
        rgba(210, 200, 175, 0.04) 40%,
        transparent 70%
      ),
      linear-gradient(180deg, rgba(210, 200, 175, 0.02) 0%, transparent 90%);
  }
}

*:focus-visible {
  outline: 2px solid var(--gold-mid);
  outline-offset: 4px;
  border-radius: 4px;
}

p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
}

/* TOP NAVIGATION */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topbar .nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}

.left-logo-link {
  display: block;
  padding: 8px 4px;
  transition: all var(--transition);
}

.left-logo-img {
  height: 65px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: all var(--transition);
}

.left-logo-link:hover .left-logo-img {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 10px rgba(251, 244, 161, 0.3));
}

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

.nav a,
.lang-select > span {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
  background: var(--gray-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-grad);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 80%;
}

.nav a:hover,
.lang-select > span:hover {
  transform: translateY(-3px);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(251, 244, 161, 0.4));
}

.lang-select {
  position: relative;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-select:hover {
  border-color: rgba(143, 94, 37, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.lang-panel {
  position: absolute;
  right: 0;
  top: 46px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(143, 94, 37, 0.8);
  box-shadow: var(--premium-shadow);
  padding: 6px;
  border-radius: 8px;
  display: none;
  min-width: 160px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition);
}

.lang-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.lang-panel a {
  display: block;
  padding: 8px 10px;
  color: var(--gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
}

.lang-panel a:hover {
  background: rgba(255, 255, 255, 0.05);
  background-image: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(-4px);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
  z-index: 1002;
  width: 40px;
  height: 40px;
  position: relative;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold-mid);
  border-radius: 2px;
  transition: all var(--transition);
  position: absolute;
  left: 6px;
}

.burger span:nth-child(1) {
  top: 10px;
}
.burger span:nth-child(2) {
  top: 18px;
}
.burger span:nth-child(3) {
  top: 26px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}

/* HERO */
.hero {
  min-height: calc(90vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

/* ИСПРАВЛЕНИЕ #3: Частицы более видимые на ПК */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5; /* Было 0.15, теперь 0.4 - более видимые */
}

.hero .title {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: clamp(
    50px,
    9vw,
    120px
  ); /* мин. 50px, идеал ~9% от ширины, макс. 120px */
  color: transparent;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.5;
  text-wrap: balance;
}

.hero .slogan {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: 40px;
  color: transparent;
  background: var(--gray-grad);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  animation: hero-fade-in 1.2s ease-out forwards;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-img {
  max-width: 90%;
  width: clamp(280px, 70vw, 1000px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7))
    drop-shadow(0 0 40px rgba(251, 244, 161, 0.1));
  transition: transform var(--transition-slow), filter var(--transition);
  display: block;
  margin: 0 auto;
  aspect-ratio: 851 / 478;
}

.hero-logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 60px rgba(251, 244, 161, 0.2));
}

/* SECTIONS */
.section {
  min-height: 60vh;
  padding: 40px 20px;
  scroll-margin-top: 30px;
}

.section h2 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: 28px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.section h3 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: 22px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.section p.lead,
.section p.section-subtitle {
  color: var(--gray);
  font-size: 16px;
  max-width: 900px;
}

/* H1 заголовок отдельной страницы (about и т.п.) — крупнее h2 секции, тот же золотой Playfair */
.section h1.page-title {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  text-wrap: balance;
}

/* Текстовый блок страницы услуги — ограниченная ширина для читаемости */
.narrow-text {
  max-width: 820px;
  margin-inline: auto;
}
.narrow-text h2 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: clamp(22px, 3vw, 28px);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 36px;
  margin-bottom: 14px;
}
.narrow-text h2:first-child {
  margin-top: 0;
}

/* Lead-абзац под H1 страницы — центрирован, читаемый размер */
.page-intro {
  text-align: center;
  min-height: 0;
  padding-bottom: 0;
}
.page-intro p.lead {
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.72;
}

/* На about-странице блок портрет+текст идёт сразу под intro — убираем большой верхний отступ */
.page-intro + section .service-detail {
  margin-top: 0;
}
/* Секция портрета на about не нуждается в min-height 60vh (контент короткий) */
.about-bio {
  min-height: 0;
  padding-top: 0;
}

/* Мягкое появление при загрузке (как hero на главной), а не по скроллу —
   блоки about в первом экране, поэтому reveal-on-scroll им не подходит */
.page-intro,
.about-bio {
  animation: hero-fade-in 1.2s ease-out forwards;
}
/* Лёгкая задержка для блока био — подъезжает следом за заголовком */
.about-bio {
  opacity: 0;
  animation-delay: 0.25s;
}

#about .lead,
#about p {
  font-size: 20px !important;
  line-height: 1.72 !important;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* SERVICES */
.services-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 22px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 230px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.card-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 244, 161, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.service-card:hover .card-shimmer {
  opacity: 1;
}

a.service-card {
  text-decoration: none;
}

.service-card .icon {
  font-size: 28px;
  color: var(--gold-mid);
  transition: transform var(--transition-bounce);
  display: inline-block;
}

.service-card:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(20px, 4.4vw, 27px);
  transition: all var(--transition);
}

.service-card:hover h3 {
  letter-spacing: 0.5px;
}

.service-card p {
  color: var(--gray);
  font-size: clamp(16px, 3.2vw, 18px);
  line-height: 1.55;
  margin-top: 6px;
  flex: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow), var(--glow-gold);
  border: 1px solid rgba(143, 94, 37, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

/* SERVICE DETAILS */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 120px;
}

.service-detail .text h2,
.service-detail .text h3 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.service-detail img {
  width: 100%;
  border-radius: 12px;
  height: auto;
  object-fit: cover;
  box-shadow: var(--premium-shadow);
  /* transform НЕ в transition: им управляет JS-parallax (инлайн-стиль).
     Плавность для transform ломала бы синхронность parallax со скроллом. */
  transition: box-shadow var(--transition);
}

/* Hover меняет только тень (свечение) — НЕ transform, чтобы не конфликтовать
   с parallax, который пишет transform инлайн-стилем. */
.service-detail img:hover {
  box-shadow: var(--premium-shadow), 0 0 30px rgba(251, 244, 161, 0.2);
}

.service-detail.reverse {
  grid-template-columns: 1fr 1fr;
}

.service-detail.reverse .text {
  order: 2;
}
.service-detail.reverse img {
  order: 1;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
  margin-top: 18px;
}

#galleryGrid.gallery-grid {
  max-width: var(--max-width);
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--premium-shadow);
  z-index: 1;
}

.gallery-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.gallery-nav a {
  color: var(--gray);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color var(--transition), transform var(--transition);
  font-weight: 500;
  font-size: 16px;
}

.gallery-nav a:hover {
  color: var(--gold-mid);
  transform: translateY(-2px);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--black);
  background: var(--gold-mid);
  background-image: var(--gold-grad);
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(143, 94, 37, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(143, 94, 37, 0.5);
}

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

/* REVIEWS */
.reviews-summary {
  text-align: center;
  margin-bottom: 28px;
}

.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.reviews-stars {
  color: #fbf4a1;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.reviews-count {
  color: rgba(191, 192, 189, 0.6);
  font-size: 0.85rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.review-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(251, 244, 161, 0.06),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.review-card:hover::before {
  opacity: 1;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 94, 37, 0.3);
  box-shadow: var(--soft-shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(143, 94, 37, 0.4);
  object-fit: cover;
}

.review-author {
  font-weight: 600;
  color: var(--gray);
  font-size: 0.95rem;
}

.review-stars {
  color: #fbf4a1;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-time {
  color: rgba(191, 192, 189, 0.4);
  font-size: 0.75rem;
  margin-top: 2px;
}

.review-text {
  color: rgba(191, 192, 189, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

.reviews-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.review-google-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-inline-end: 6px;
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(143, 94, 37, 0.3);
}

.faq-item[open] {
  border-color: rgba(143, 94, 37, 0.4);
  box-shadow: var(--soft-shadow);
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "\2039";
  font-size: 1.4rem;
  color: var(--gold-mid);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(-90deg);
}

.faq-rtl .faq-item[open] summary::after {
  transform: rotate(90deg);
}


.faq-item[open] summary {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-item p {
  padding: 0 24px 18px;
  color: rgba(191, 192, 189, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .faq-item summary {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .faq-item p {
    padding: 0 18px 14px;
    font-size: 0.88rem;
  }
}

/* CONTACTS */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: center;
  margin-top: 18px;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(251, 244, 161, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 94, 37, 0.5);
  box-shadow: var(--premium-shadow);
}

.contact-card h3 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.contact-card .contact-info {
  color: var(--gray);
  margin: 8px 0;
  opacity: 0.95;
  word-break: break-all;
}

.contact-card .contact-info.hidden {
  display: none;
}

.contact-card button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: linear-gradient(90deg, #8f5e25, #fbf4a1, #8f5e25);
  color: #000;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  outline: none !important;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.contact-card button:hover::after {
  width: 200px;
  height: 200px;
}

.contact-card button:hover {
  transform: translateY(-4px);
}

.small-note {
  text-align: center;
  color: rgba(190, 190, 185, 0.6);
  margin-top: 36px;
}

.contact-icon {
  width: 32px;
  height: 28px;
  color: var(--gold-mid);
  display: block;
  margin: 0 auto 5px;
  transition: all var(--transition-bounce);
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(251, 244, 161, 0.6));
}

/* FOOTER */
.footer-small {
  text-align: center;
  padding: 60px 20px 40px;
  background: transparent;
}

.footer-logo-link {
  display: inline-block;
  transition: transform var(--transition);
}

.footer-logo-link:hover {
  transform: translateY(-4px);
}

.footer-logo-img {
  height: clamp(90px, 12vw, 150px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: all var(--transition);
}

.footer-logo-link:hover .footer-logo-img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 15px rgba(251, 244, 161, 0.3));
  transform: scale(1.05);
}

.footer-text {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(191, 192, 189, 0.7);
  text-align: center;
  line-height: 1.5;
}

.footer-text a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-text a:hover {
  color: var(--gold-mid);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--transition);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 92%;
  max-height: 86%;
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
  animation: lightbox-zoom 0.4s ease-out;
}

@keyframes lightbox-zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox img {
  width: auto;
  height: 86vh;
  max-width: 92vw;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--gold-mid);
  font-size: 24px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .section p,
  .lead,
  .service-card p,
  .service-detail p,
  .service-detail li {
    font-size: 17px;
    line-height: 1.68;
  }
  .service-detail ul {
    font-size: 17px;
  }
  .service-card h3,
  .service-detail h3 {
    font-size: 24px;
  }
  .section h2,
  .simple-contact-wrapper h3 {
    font-size: 36px;
  }
  .section-subtitle {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .section p,
  .lead,
  .service-card p,
  .service-detail p,
  .service-detail li {
    font-size: 18px;
    line-height: 1.72;
  }
  .section h2,
  .simple-contact-wrapper h3 {
    font-size: 42px;
  }
  .service-card h3,
  .service-detail h3 {
    font-size: 27px;
  }
}

@media (max-width: 980px) {
  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #galleryGrid.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .burger {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    z-index: 1001;
    gap: 0;
    padding-bottom: 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav a,
  .lang-select > span {
    font-size: 22px;
    padding: 16px 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .topbar .nav-inner {
    justify-content: space-between;
    gap: 10px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  #galleryGrid.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .service-card {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .hero-logo-img {
    width: clamp(220px, 85vw, 400px);
  }
  .hero-slogan {
    font-size: 18px;
  }
  .footer-small {
    padding: 50px 20px 30px;
  }
  .footer-text {
    margin-top: 20px;
    font-size: 13px;
  }
}

/* SIMPLE CONTACT FORM */

.simple-contact-wrapper h3 {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: 28px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.simple-contact-wrapper {
  max-width: 500px;
  margin: 32px auto 0;
  text-align: center;
}

.simple-form.narrow-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Стили полей формы */
.simple-form input[type="text"],
.simple-form textarea {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: all var(--transition);
  line-height: 1.4;
}

.simple-form input[type="text"] {
  height: 48px;
  border-radius: 24px;
}

.simple-form textarea {
  border-radius: 16px;
  padding: 14px 20px;
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
}

.simple-form input[type="text"]:focus,
.simple-form textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 10px rgba(251, 244, 161, 0.4);
}

/* Honeypot поле — скрываем */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Кнопка */
.simple-form button {
  padding: 10px 24px;
  border-radius: 24px;
}

.form-status {
  font-size: 14px;
  margin-top: 8px;
}

.form-status.success {
  color: #4caf50;
}

.form-status.error {
  color: #f44336;
}

/* ========================================
   FAQ PAIR — форма + смежная услуга рядом
   (одна reveal-группа, выплывает целиком)
   ======================================== */
.faq-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  max-width: 980px;
  margin: 8px auto 0;
}

/* Единый заголовок для обеих колонок — одинаковый размер */
.faq-pair__title {
  font-family: "Playfair Display", "Frank Ruhl Libre", serif;
  font-size: 28px;
  line-height: 1.2;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
  text-align: center;
}

/* Внутри пары форма прижата к верху — без собственного отступа */
.faq-pair .simple-contact-wrapper {
  margin: 0;
  max-width: none;
}

/* Колонка смежной услуги */
.faq-pair__aside {
  display: flex;
  flex-direction: column;
}

/* Одна карточка в паре — растягиваем на ширину колонки, ровняем по форме */
.faq-pair__aside .services-grid {
  margin-top: 0;
  flex: 1;
}

.faq-pair__aside .service-card {
  max-width: none;
  width: 100%;
  justify-content: center;
}

/* Заголовки формы и карточки на одной высоте на десктопе */
@media (min-width: 769px) {
  .faq-pair__title {
    min-height: calc(28px * 1.2);
  }
}

/* Мобайл — колонки в стэк, карточка под формой */
@media (max-width: 768px) {
  .faq-pair {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 500px;
  }
  .faq-pair__aside .service-card {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* Заголовок пары растёт вместе с заголовком формы на больших экранах */
@media (min-width: 768px) {
  .faq-pair__title {
    font-size: 36px;
  }
}
@media (min-width: 1100px) {
  .faq-pair__title {
    font-size: 42px;
  }
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Back-to-albums arrow mirror in RTL */
[dir="rtl"] .back-to-albums svg {
  transform: scaleX(-1);
}

/* ========================================
   GLOW SECTIONS — мягкие золотистые блики
   за блоками карточек (CSS-свет, без фото)
   ======================================== */
.glow-section {
  position: relative;
  isolation: isolate;
}

/* Большое размытое золотистое свечение — деликатный «свет из глубины».
   Низкая насыщенность, тает к краям, не мешает тексту. Чередуем сторону
   через модификаторы glow-left / glow-right для спокойного ритма. */
/* Блик центрируется по горизонтали и сдвигается к стороне через
   translateX. Ширина привязана к vw, поэтому край НИКОГДА не выходит за
   экран — нет горизонтального скролла, при этом overflow секции остаётся
   visible (свет плавно перетекает между блоками, без «коробок»). */
.glow-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(1100px, 84vw);
  aspect-ratio: 1.4 / 1;
  top: 50%;
  left: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(168, 128, 82, 0.12) 0%,
    rgba(150, 116, 74, 0.07) 36%,
    rgba(130, 100, 64, 0.03) 58%,
    transparent 76%
  );
  filter: blur(64px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Сдвиг к стороне — небольшой, чтобы край размытого пятна остался в
   пределах экрана. На узких экранах смещение меньше. */
.glow-section.glow-left::before {
  transform: translate(calc(-50% - 6vw), -50%);
}

.glow-section.glow-right::before {
  transform: translate(calc(-50% + 6vw), -50%);
}

@media (max-width: 640px) {
  .glow-section::before {
    width: 100vw;
    opacity: 0.8;
  }
  .glow-section.glow-left::before,
  .glow-section.glow-right::before {
    transform: translate(-50%, -50%);
  }
}
