/* ============================================
   ОТЫРАР МУЗЕЙ - Main Stylesheet
   ============================================ */

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --dark: #0D0D0D;
  --dark-2: #1A1612;
  --dark-3: #241F18;
  --sand: #F5EDD8;
  --sand-2: #EDE0C4;
  --terracotta: #8B4513;
  --blue-deep: #1C3557;
  --text-light: #F5EDD8;
  --text-muted: #A89878;
  --border-gold: rgba(201,168,76,0.3);
  --shadow-gold: 0 4px 30px rgba(201,168,76,0.15);
  --radius: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KZ', 'EB Garamond', Georgia, serif;
  background: var(--dark-2);
  color: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-3); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed; inset: 0; background: var(--dark);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: 'Cinzel', serif;
  font-size: 2rem; color: var(--gold);
  letter-spacing: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}
.preloader-line {
  width: 0; height: 2px; background: var(--gold);
  margin: 12px auto 0;
  animation: lineGrow 1.2s ease-out forwards;
}
@keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
@keyframes lineGrow { to { width: 200px; } }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,11,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(13,11,9,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header-top {
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid var(--border-gold);
  padding: 6px 0;
}
.header-top-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted); letter-spacing: 1px;
}
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--border-gold);
  color: var(--text-muted); padding: 2px 8px; cursor: pointer;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition); border-radius: 2px;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}

.header-main {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
}
.logo-img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 50%; border: 2px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold); letter-spacing: 4px;
  line-height: 1;
}
.logo-subtitle {
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
}

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 14px;
  color: var(--sand-2); text-decoration: none;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 500; transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-link .caret { margin-left: 4px; font-size: 10px; }

/* DROPDOWN */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--dark-3);
  border: 1px solid var(--border-gold);
  min-width: 240px; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: 10px 20px;
  color: var(--sand-2); text-decoration: none;
  font-size: 12px; letter-spacing: 1px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dropdown-link:hover {
  color: var(--gold); background: rgba(201,168,76,0.08);
  border-left-color: var(--gold);
}

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: 0;
  background: var(--dark); z-index: 999;
  padding: 120px 30px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: block; padding: 14px 0;
  border-bottom: 1px solid var(--border-gold);
  color: var(--sand); text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  letter-spacing: 2px; transition: var(--transition);
}
.mobile-nav-link:hover { color: var(--gold); padding-left: 10px; }
.mobile-sub { padding-left: 20px; }
.mobile-sub .mobile-nav-link { font-family: inherit; font-size: 0.9rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,11,9,0.85) 0%,
    rgba(13,11,9,0.4) 50%,
    rgba(13,11,9,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold); padding: 6px 20px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease forwards;
  opacity: 0;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900; color: #fff;
  line-height: 1.05;
  letter-spacing: 4px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease 0.2s forwards; opacity: 0;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--sand-2); margin-top: 16px;
  font-style: italic; letter-spacing: 2px;
  animation: fadeUp 0.8s ease 0.4s forwards; opacity: 0;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp 0.8s ease 0.6s forwards; opacity: 0;
}
.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 14px 36px; text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; transition: var(--transition);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: transparent; color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5); color: #fff;
  padding: 14px 36px; text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500; transition: var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* Slide indicators */
.hero-indicators {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition); border: none;
}
.hero-dot.active { background: var(--gold); transform: scale(1.4); }

/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 30px; right: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
}
.hero-scroll-line {
  width: 1px; height: 50px; background: var(--gold);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ============================================
   SECTION STYLES
   ============================================ */
.section { padding: 80px 0; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; color: var(--gold);
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: var(--sand);
  line-height: 1.1;
}
.section-divider {
  display: flex; align-items: center; gap: 12px;
  justify-content: center; margin-top: 16px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; max-width: 80px;
  height: 1px; background: var(--border-gold);
}
.section-divider span {
  color: var(--gold); font-size: 20px;
}
.section-desc {
  max-width: 600px; margin: 16px auto 0;
  color: var(--text-muted); font-family: 'EB Garamond', serif;
  font-size: 1.1rem; font-style: italic;
}

/* Dark section variant */
.section-light {
  background: var(--dark-3);
}
.section-sand {
  background: linear-gradient(135deg, #1C1510 0%, #241C12 100%);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--gold);
  padding: 30px 0;
}
.stats-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 10px 20px;
  border-right: 1px solid rgba(0,0,0,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem; font-weight: 900;
  color: var(--dark); line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dark-3); margin-top: 4px;
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--dark-3);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.news-card-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-img-wrap { overflow: hidden; }
.news-card-body { padding: 20px; }
.news-card-date {
  font-size: 11px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--sand); margin-bottom: 10px;
  line-height: 1.4;
}
.news-card-text {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-link {
  display: inline-block; margin-top: 14px;
  color: var(--gold); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.news-card-link:hover { border-bottom-color: var(--gold); }

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(13,11,9,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.95);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border: 1px solid var(--border-gold);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 1px solid var(--gold);
  color: var(--gold); font-size: 24px; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--gold); color: var(--dark); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--gold);
  color: var(--gold); font-size: 24px; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: var(--gold); color: var(--dark); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   PAGES / CONTENT
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border-gold);
}
.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 700;
  color: var(--sand);
}
.page-hero-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  justify-content: center; margin-top: 16px;
  font-size: 12px; color: var(--text-muted); letter-spacing: 1px;
}
.page-hero-breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero-breadcrumb a:hover { text-decoration: underline; }

.content-area { max-width: 1000px; margin: 0 auto; padding: 60px 24px; }
.content-area h2 {
  font-family: 'Cinzel', serif; font-size: 1.8rem;
  color: var(--gold); margin: 40px 0 16px;
}
.content-area p {
  color: var(--sand-2); line-height: 1.8; margin-bottom: 16px;
  font-family: 'EB Garamond', serif; font-size: 1.05rem;
}
.content-area img {
  max-width: 100%; border: 1px solid var(--border-gold); margin: 20px 0;
}

/* ============================================
   PDF DOCUMENTS LIST
   ============================================ */
.docs-list { display: grid; gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--dark-3); padding: 16px 20px;
  border: 1px solid var(--border-gold);
  text-decoration: none; transition: var(--transition);
}
.doc-item:hover {
  border-color: var(--gold); background: rgba(201,168,76,0.08);
  transform: translateX(4px);
}
.doc-icon {
  width: 44px; height: 44px; background: rgba(201,168,76,0.15);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.doc-name { color: var(--sand); font-size: 0.9rem; }
.doc-size { color: var(--text-muted); font-size: 12px; }
.doc-download { margin-left: auto; color: var(--gold); font-size: 18px; }

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact-section {
  background: var(--dark);
  padding: 80px 0 0;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info h3 {
  font-family: 'Cinzel', serif; font-size: 1.6rem;
  color: var(--gold); margin-bottom: 24px;
}
.contact-item {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px; border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px; flex-shrink: 0;
  margin-top: 2px;
}
.contact-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.contact-value { color: var(--sand); }
.map-wrap {
  border: 1px solid var(--border-gold);
  overflow: hidden; height: 350px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

footer {
  background: var(--dark);
  border-top: 1px solid var(--border-gold);
  padding: 40px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  color: var(--gold); font-size: 1.2rem; letter-spacing: 4px;
}
.footer-copy {
  color: var(--text-muted); font-size: 12px; letter-spacing: 1px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  font-size: 16px; transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   ABOUT / HISTORY SECTION
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-img {
  position: relative;
}
.about-img img {
  width: 100%; height: 500px; object-fit: cover;
  border: 1px solid var(--border-gold);
}
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--dark);
  padding: 20px; text-align: center;
}
.about-img-badge-num {
  font-family: 'Cinzel', serif; font-size: 2.5rem; font-weight: 900;
  line-height: 1;
}
.about-img-badge-text {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.about-content p {
  font-family: 'EB Garamond', serif; font-size: 1.1rem;
  color: var(--sand-2); line-height: 1.8; margin-bottom: 20px;
}
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.about-feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--border-gold);
  background: rgba(201,168,76,0.04);
}
.about-feature-icon { color: var(--gold); font-size: 22px; flex-shrink: 0; }
.about-feature-title { font-size: 0.85rem; font-weight: 600; color: var(--sand); }
.about-feature-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   EXHIBITIONS TABS
   ============================================ */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-gold); margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 24px; background: none; border: none;
  color: var(--text-muted); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--gold); border-bottom-color: var(--gold);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 8000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark-3); border: 1px solid var(--border-gold);
  width: 100%; max-width: 700px; max-height: 85vh;
  overflow-y: auto; position: relative;
  transform: scale(0.95); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px; border-bottom: 1px solid var(--border-gold);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.1rem; }
.modal-close {
  background: none; border: 1px solid var(--border-gold);
  color: var(--text-muted); font-size: 20px; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-body { padding: 24px; }
.modal-img { width: 100%; max-height: 300px; object-fit: cover; margin-bottom: 16px; }
.modal-text { font-family: 'EB Garamond', serif; color: var(--sand-2); line-height: 1.8; }
.modal-date { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 12px; }

/* ============================================
   SEARCH
   ============================================ */
.search-wrap {
  position: relative; max-width: 500px; margin: 0 auto 40px;
}
.search-input {
  width: 100%; padding: 14px 50px 14px 20px;
  background: var(--dark-3); border: 1px solid var(--border-gold);
  color: var(--sand); font-size: 14px; outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  position: absolute; right: 0; top: 0; bottom: 0;
  background: var(--gold); border: none; color: var(--dark);
  padding: 0 18px; cursor: pointer; font-size: 18px;
  transition: var(--transition);
}
.search-btn:hover { background: var(--gold-dark); }

/* ============================================
   PAGE ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-left] {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal-left].revealed { opacity: 1; transform: translateX(0); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 500;
  width: 44px; height: 44px; background: var(--gold);
  color: var(--dark); border: none; cursor: pointer;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  transform: translateY(20px);
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--gold-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .header-top-inner { flex-direction: column; gap: 6px; }
  .about-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-img .about-img-badge { right: 0; bottom: 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}
/* ===== PARTNERS ===== */

.partners-section{
    background:#f3f3f3;
    padding:25px 0;
    border-top:1px solid #ddd;
}

.partners-slider{
    max-width:1400px;
    margin:0 auto;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:70px;
    flex-wrap:wrap;
}

.partner-item{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}

.partner-item img{
    height:120px;
    width:auto;
    max-width:240px;
    object-fit:contain;
    transition:all .3s ease;
    filter:grayscale(10%);
}

.partner-item:hover img{
    transform:translateY(-5px) scale(1.05);
    filter:none;
}

@media(max-width:768px){

    .partners-slider{
        gap:25px;
    }

    .partner-item img{
        height:70px;
        max-width:140px;
    }

}
