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

body {
  font-family: "e-Ukraine Head", serif;
  background: #faf9f7;
  color: #333;
  line-height: 1.6;
}

.ornament-top-pc {
  width: 100%;
  height: 100px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-image: url("../img/ornament-top.png");
}

.ornament-down {
  width: 100%;
  height: 100px;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-image: url("../img/ornament-down.png");
}

.ornament-top-mob {
  display: none;
}

nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1041;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  min-height: 60px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #670212;
  display: none;
  position: absolute;
  left: 20px;
}

.burger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

.burger-menu span {
  width: 28px;
  height: 3px;
  background: #670212;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  display: block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  display: block;
  padding: 18px 28px;
  text-decoration: none;
  color: #670212;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu li a:hover {
  background: #f5f5f0;
  color: #3B6702;
}

.nav-menu li a.active {
  background: #670212;
  color: #fff;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.hero {
  background: linear-gradient(
    90deg,
    #e3f2fd 0%,
    #ffffff 30%,
    #ffffff 70%,
    #fff8e1 100%
  );
  padding: 0;
  position: relative;
  padding-top: 40px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1600px;
  margin: 0 auto;
  gap: 0;
  min-height: 300px;
}

.hero-left,
.hero-right {
  flex: 1;
  max-width: 450px;
}

.university-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hero-left .university-photo {
  border-radius: 0 150px 150px 0;
}

.hero-right .university-photo {
  border-radius: 150px 0 0 150px;
}

.hero-center {
  flex: 0 0 auto;
  padding: 0 100px;
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.university-logo img {
  width: 240px;
  height: auto;
  display: block;
}

.hero-text h1 {
  font-size: 2.4em;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

.golden {
  color: #675602;
}

.burgundy {
  color: #670212;
}

.blue {
  color: #273C66;
}

.anniversary-badge {
  display: inline-block;
  font-size: 5em;
  font-weight: bold;
  background: linear-gradient(135deg, #7a5f2b, #3B6702);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
}

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

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.card {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #670212;
}

.card h2 {
  color: #670212;
  font-size: 2em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card h2::before {
  content: "";
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #670212, #3B6702);
  border-radius: 8px;
  flex-shrink: 0;
}

.card h3 {
  color: #3B6702;
  margin: 30px 0 15px;
  font-size: 1.5em;
}

.timeline-content h3 {
  margin-top: 0px;
}

.card p {
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.timeline-content p {
  margin-bottom: 0px;
}

.image-placeholder {
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
  border-radius: 10px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.2em;
  border: 2px dashed #ccc;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "📷";
  font-size: 4em;
  position: absolute;
  opacity: 0.3;
}

.image-placeholder span {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 30px;
  border-radius: 8px;
}

.timeline {
  position: relative;
  padding: 40px 0;
  padding-bottom: 0px;
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.timeline-year {
  min-width: 100px;
  font-size: 2em;
  font-weight: bold;
  color: #670212;
  padding: 15px;
  background: #f5f5f0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #3B6702;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.stat-card {
  background: linear-gradient(135deg, #fff 0%, #f5f5f0 100%);
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 3em;
  font-weight: bold;
  background: linear-gradient(135deg, #670212, #3B6702);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
  font-size: 1.1em;
}
.author-info {
  background: linear-gradient(135deg, #670212 0%, #3B6702 100%);
  color: #fff;
  padding: 40px;
  border-radius: 15px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.author-text {
  flex: 1;
}

.author-image {
  flex-shrink: 0;
  width: 350px;
  height: 350px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.author-info h3 {
  color: #fff;
  margin-bottom: 15px;
}

.author-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    width: 100%;
    height: 100%;
  }
}

footer {
  background: #1D1D1B;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
  .hero {
    padding: 0;
  }
  .hero-content {
    flex-direction: column;
    gap: 30px;
    padding: 0 0;
  }

  .hero-left,
  .hero-right {
    width: 90%;
    max-width: 600px;
  }

  .university-photo {
    height: 200px;
  }

  .hero-left .university-photo {
    border-radius: 0 0 150px 150px;
  }

  .hero-right .university-photo {
    border-radius: 150px 150px 0 0;
  }

  .hero-center {
    padding: 20px 30px;
    order: 1;
  }

  .hero-left {
    order: 0;
  }

  .hero-right {
    order: 2;
  }

  .hero-text h1 {
    font-size: 2em;
  }
}

@media (max-width: 1120px) {
  .logo {
    display: block;
  }

  .burger-menu {
    display: flex;
  }

  .nav-container {
    justify-content: flex-start;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
  }

  .nav-menu li a.active {
    border-left: 4px solid #670212;
  }

  .hero-text h1 {
    font-size: 1.6em;
  }

  .university-logo img {
    width: 160px;
  }

  .university-photo {
    height: 150px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .card {
    padding: 25px;
  }

  .ornament-top-mob {
    width: 100%;
    height: 60px;
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-image: url("../img/ornament-top.png");
    display: block;
  }

  .ornament-top-pc {
    display: none;
  }

  .anniversary-badge {
    font-size: 3em;
  }
}
.timeline-source {
  text-align: right;
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}

.timeline-source a {
  color: #670212;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.timeline-source a:hover {
  color: #3B6702;
  text-decoration: underline;
}

.faculty-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.faculty-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faculty-item:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faculty-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.faculty-info {
  flex: 1;
}

.faculty-info a {
  text-decoration: none;
  color: inherit;
}

.faculty-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faculty-info a:hover h3 {
  color: #0066cc;
}

@media (max-width: 768px) {
  .faculty-item {
    flex-direction: column;
    text-align: center;
  }

  .faculty-info h3 {
    font-size: 1rem;
  }
  .stats-grid {
  grid-template-columns: auto;
}
.card h2 {
  line-height: 1.2;
}
}

.language-switcher {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f0;
  border-radius: 20px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-switcher button {
  background: none;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  font-weight: 600;
  color: #670212;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.language-switcher button:hover {
  background: rgba(123, 45, 38, 0.1);
}

.language-switcher button.active {
  background: #670212;
  color: #fff;
}

@media (max-width: 1120px) {
  .language-switcher {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    padding: 15px;
    margin-top: 20px;
    background: #f5f5f0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .language-switcher button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}