:root {
  --bg: #0d0b08;
  --bg-2: #14110d;
  --panel: #191510;
  --panel-2: #211b14;
  --text: #f8f1e5;
  --muted: #cfc2ad;
  --muted-2: #9e927f;
  --gold: #c49a4f;
  --gold-2: #e0bd73;
  --white: #ffffff;
  --dark-text: #171411;
  --line: rgba(196, 154, 79, .28);
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 8, .88);
  border-bottom: 1px solid rgba(196, 154, 79, .18);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 245px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  font-size: 13px;
  line-height: 1.18;
  letter-spacing: .02em;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.main-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .2s ease;
}

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

.section { padding: 96px 0; }
.section-dark { background: var(--bg); }
.section-warm { background: #100d09; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading-left {
  width: 100%;
  max-width: none;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-heading span {
  display: block;
  margin: 0 0 12px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 500;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 95px;
  background:
    radial-gradient(circle at 70% 20%, rgba(196, 154, 79, .22), transparent 34%),
    linear-gradient(135deg, rgba(13, 11, 8, .96), rgba(20, 17, 13, .96));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .34);
}

.hero::after,
.about-section::before,
.photos-section::before,
.videos-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1040px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(196, 154, 79, .35), transparent);
}

.hero::after {
  top: auto;
  bottom: 0;
}

.hero-new-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 70px;
  align-items: center;
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
}

.hero-lead {
  margin: 22px 0 0;
  color: var(--gold-2);
  font-size: clamp(20px, 2.3vw, 28px);
  font-family: Georgia, "Times New Roman", serif;
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
}

.hero-person {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  border: 1px solid rgba(196, 154, 79, .34);
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--shadow);
}

.hero-person img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.about-section,
.photos-section,
.videos-section {
  position: relative;
}

.about-card,
.empty-card,
.photo-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.about-card {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 4vw, 46px);
}

.about-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-card p:last-child { margin-bottom: 0; }

.about-card a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(224, 189, 115, .45);
}

.about-card a:hover { border-bottom-color: var(--gold-2); }

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

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 0;
  cursor: pointer;
}

.photo-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-card:hover img { transform: scale(1.04); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  justify-content: center;
  gap: 18px;
}

.video-card {
  overflow: hidden;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050403;
}

.video-card h3 {
  margin: 0;
  padding: 18px 20px 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.empty-card {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid rgba(196, 154, 79, .18);
  background: #090806;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 14px;
}

.footer-inner p { margin: 0; }

.back-to-top {
  padding: 0;
  border: 0;
  color: var(--gold-2);
  background: transparent;
  cursor: pointer;
}

.back-to-top:hover { color: var(--text); }

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

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

.lightbox img {
  width: auto;
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border: 1px solid rgba(196, 154, 79, .35);
  border-radius: 18px;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(224, 189, 115, .55);
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 11, 8, .78);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 1080px) {
  .hero-new-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-person {
    width: min(430px, 100%);
  }

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

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }

  .site-header { position: static; }

  .header-inner {
    height: auto;
    min-height: 82px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav a { font-size: 12px; }

  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 34px; }

  .hero { padding: 72px 0 66px; }
  .hero-new-grid { gap: 34px; }
  .hero-person img { height: auto; }

  .hero-contacts {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .about-card { padding: 24px 20px; }
  .about-card p { font-size: 16px; line-height: 1.68; }

  .photo-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .photo-card img { height: 360px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(224, 189, 115, .55);
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 11, 8, .78);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(196, 154, 79, .18);
}

@media (max-width: 760px) {
  .lightbox { padding: 16px; }
  .lightbox img { max-width: calc(100% - 84px); }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}


/* v6 - centered desktop gallery lightbox */
.lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 72px 96px !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, .88) !important;
}

.lightbox.is-open {
  display: flex !important;
}

.lightbox img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 220px) !important;
  max-height: calc(100vh - 150px) !important;
  margin: auto !important;
  object-fit: contain !important;
  border-radius: 18px !important;
}

.lightbox-close {
  position: fixed !important;
  top: 28px !important;
  right: 34px !important;
  z-index: 10001 !important;
}

.lightbox-nav {
  position: fixed !important;
  top: 50% !important;
  z-index: 10001 !important;
  transform: translateY(-50%) !important;
}

.lightbox-prev {
  left: 34px !important;
}

.lightbox-next {
  right: 34px !important;
}

/* On mobile photos stay as normal gallery cards - no popup */
@media (max-width: 760px) {
  .photo-card {
    cursor: default !important;
  }

  .lightbox,
  .lightbox.is-open {
    display: none !important;
  }
}


/* v7 - centered icons inside circular gallery buttons */
.lightbox-close,
.lightbox-nav {
  position: fixed !important;
  display: block !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-prev::before,
.lightbox-next::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--text);
  border-right: 3px solid var(--text);
  box-sizing: border-box;
}

.lightbox-prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.lightbox-next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

@media (max-width: 760px) {
  .lightbox-close::before,
  .lightbox-close::after {
    width: 18px;
    height: 2.5px;
  }

  .lightbox-prev::before,
  .lightbox-next::before {
    width: 12px;
    height: 12px;
    border-top-width: 2.5px;
    border-right-width: 2.5px;
  }
}
