/* Main Styles for "ЛИЦА ВОЙНЫ, ЛИЦА ПОБЕДЫ" Exhibition */

:root {
  --primary-color: #8b0000;
  --secondary-color: #d4af37;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'PT Serif', serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

/* Header */
header {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--light-color);
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--light-color);
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../img/background_index.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.hero-content {
  position: relative;
  color: var(--light-color);
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

/* Intro Section */
.intro {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Exhibition Sections */
.sections {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.section-cards {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.section-card {
  flex: 1;
  background-color: var(--light-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.section-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.section-card-content {
  padding: 1.5rem;
}

.section-card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Exhibition Content */
.exhibition-content {
  display: none;
  padding: 5rem 0;
}

.exhibition-header {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  margin-bottom: 3rem;
}

.exhibition-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.exhibition-title {
  position: relative;
  font-size: 2.5rem;
  text-align: center;
  color: var(--secondary-color);
}

.exhibition-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Districts/Years Grid */
.subsections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.subsection-card {
  background-color: var(--light-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.subsection-card:hover {
  transform: translateY(-5px);
}

.subsection-card-content {
  padding: 1.5rem;
}

.subsection-card-title {
  color: var(--primary-color);
  text-align: center;
}

/* Person Cards */
.persons-container {
  display: none;
  margin-top: 2rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: var(--light-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.person-header {
  padding: 1.5rem;
  background-color: var(--dark-color);
  color: var(--light-color);
}

.person-content {
  display: flex;
  padding: 1.5rem;
}

.person-image {
  flex: 0 0 450px;
  margin-right: 1.5rem;
}

.person-image img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: opacity 0.3s;
}

.person-image img:hover {
  opacity: 0.9;
}

.person-details {
  flex: 1;
}

.person-caption {
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.person-sources {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

.person-sources h4 {
  margin-bottom: 0.5rem;
}

/* Back Button */
.back-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: #6b0000;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content h5 {
  color: var(--secondary-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
  z-index: 1000;
  overflow: auto;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--light-color);
}

.modal-caption {
  color: var(--light-color);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 5px;
  max-width: 100%;
  text-align: center;
  font-style: italic;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--light-color);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .section-cards {
    flex-direction: column;
  }
  
  .person-content {
    flex-direction: column;
  }
  
  .person-image {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  nav ul li {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-image {
    max-height: 70vh;
  }

  .modal-close {
    top: -30px;
    right: 5px;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

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

.zoom-in {
  animation: zoomIn 0.3s ease-out;
} 