/* -------------------------------------------------------------------------- */
/*                                   Global                                   */
/* -------------------------------------------------------------------------- */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-weight: 400;
}

body {
  overflow-x: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  transform: scale(1.01);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

a {
  color: #b98b23;
}

a:visited {
  color: #d4c08a;
}

/* -------------------------------------------------------------------------- */
/*                                    Hero                                    */
/* -------------------------------------------------------------------------- */

.hero {
  width: 100%;
  height: 100vh;
  background-image: url("/images/bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
}

.hero .container {
  width: 1400px;
  max-width: 1400px;

  display: flex;
  justify-content: space-between;

  height: 100vh;
}

.hero .container .left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container .left img {
  height: 80%;
}

.hero .container .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 70px 0 70px 0;
}

/* ------------------------------- Navigation ------------------------------- */

.hero .container .right .nav-opener {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.5s;
  gap: 12px;
}

.hero .container .right .nav-opener.active {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero .container .right .nav-opener img {
  width: 100%;
  transition: all 0.5s;
}

.hero .container .right .nav-opener.active img {
  position: absolute;
}

.hero .container .right .nav-opener.active img:nth-child(1) {
  transform: rotate(45deg);
}

.hero .container .right .nav-opener.active img:nth-child(2) {
  opacity: 0;
}

.hero .container .right .nav-opener.active img:nth-child(3) {
  transform: rotate(-45deg);
}

.hero .container .right nav {
  height: 550px;
  width: 450px;
  background: #1a1a1a;
  margin: -140px -20px 0 0;
  z-index: 1;

  display: none;
  flex-direction: column;
  padding: 150px 0 0 40px;
  border-radius: 5px;
  z-index: 1;
  transition: all 0.2s;
}

.hero .container .right nav.show {
  display: flex;
}

.hero .container .right nav a {
  text-decoration: none;
  color: white;
  font-family: "Monomakh", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  margin-bottom: 30px;
  transition: color 0.2s;
}

.hero .container .right nav a.active {
  font-weight: 600;
}

.hero .container .right nav img {
  margin-bottom: 30px;
  width: 70%;
}

/* -------------------------------------------------------------------------- */
/*                                  Timeline                                   */
/* -------------------------------------------------------------------------- */

.timeline {
  width: 100%;
  min-height: 100vh;
  background: white;
  padding: 100px 0;
}

.timeline .container {
  width: 1000px;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline h1 {
  font-family: "Monomakh", system-ui;
  font-size: 4em;
  font-weight: 400;
  margin-bottom: 30px;
  text-align: center;
}

.timeline .description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-family: "Molengo", system-ui;
  font-size: 1.2em;
  line-height: 1.6;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  margin: 0;
}

.timeline-items::before {
  display: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  padding: 60px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -60px;
  width: 12px;
  height: 120px;
  background-image: url("../images/line.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

.timeline-item:nth-child(odd) .content {
  grid-column: 1;
}

.timeline-item:nth-child(odd) .number {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .image {
  grid-column: 3;
}

.timeline-item:nth-child(even) .image {
  grid-column: 1;
}

.timeline-item:nth-child(even) .number {
  grid-column: 2;
}

.timeline-item:nth-child(even) .content {
  grid-column: 3;
}

.timeline-item .content {
  font-family: "Molengo", system-ui;
  font-size: 1.1em;
  line-height: 1.6;
}

.timeline-item:nth-child(odd) .content {
  text-align: right;
}

.timeline-item:nth-child(even) .content {
  text-align: left;
}

.timeline-item .year {
  font-family: "Monomakh", system-ui;
  font-size: 2em;
  margin-bottom: 10px;
}

.timeline-item p {
  color: #666;
  max-width: 400px;
  margin: 0 auto;
}

.timeline-item .number {
  font-family: "Monomakh", system-ui;
  font-size: 2.5em;
  color: white;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b98b23;
  background: radial-gradient(
    circle,
    rgba(185, 139, 35, 1) 0%,
    rgba(212, 166, 63, 1) 100%
  );
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-item .image {
  position: relative;
}

.timeline-item:nth-child(even) .image {
  text-align: right;
}

.timeline-item .image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 0;
}

.timeline-item .image img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */

footer {
  background: url(../images/footer-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 20px solid #b98b23;
  color: white;
  padding: 60px 0;
  font-family: "Molengo", system-ui;
}

footer .container {
  width: 1400px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

footer .left h2 {
  font-family: "Monomakh", system-ui;
  font-size: 2.5em;
  font-weight: 400;
  line-height: 1.2;
}

footer .right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer .right h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: 600;
}

footer .right a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.2s;
  text-align: right;
}

footer .right a:hover {
  color: #b98b23;
}

/* -------------------------------------------------------------------------- */
/*                                Media Queries                                */
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
  .hero {
    height: 400px;
    min-height: auto;
    padding: 40px 0;
  }

  .hero .container {
    width: 100%;
    padding: 20px;
    flex-direction: column;
    height: auto;
    position: relative;
  }

  .hero .container .left {
    width: 100%;
    margin-bottom: 40px;
  }

  .hero .container .left img {
    height: auto;
    width: 20%;
    transform: rotate(90deg);
  }

  .hero .container .right {
    width: 100%;
    padding: 0;
    align-items: flex-end;
  }

  .hero .container .right .nav-opener {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero .container .right .nav-opener.active {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hero .container .right nav {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100vh;
    margin: 0;
    padding: 100px 40px;
    border-radius: 0;
    transition: right 0.3s ease-in-out;
  }

  .hero .container .right nav.show {
    right: 0;
  }

  .hero .container .right nav a {
    font-size: 2em;
  }

  .hero .container .right img[src*="sign.svg"] {
    display: none;
  }

  .timeline {
    padding: 40px 0;
  }

  .timeline .container {
    width: 100%;
    padding: 0 20px;
  }

  .timeline h1 {
    font-size: 3em;
    margin-bottom: 20px;
  }

  .timeline .description {
    font-size: 1em;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .timeline-item .number {
    display: none;
  }

  .timeline-item .content,
  .timeline-item .number,
  .timeline-item .image {
    grid-column: 1;
  }

  .timeline-item .content .year,
  p {
    text-align: center;
  }

  .timeline-item:not(:last-child)::after {
    display: none;
  }

  .timeline-item .number {
    order: -1;
  }

  .timeline-item .content {
    order: 0;
  }

  .timeline-item .image {
    order: 1;
  }

  .timeline-item .image::before {
    display: none;
  }

  .timeline-item .image img {
    max-width: 300px;
    margin: 0 auto;
  }

  footer .container {
    width: 100%;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
  }

  footer .left h2 {
    font-size: 2.5em;
  }

  footer .right {
    align-items: center;
    text-align: center;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 0.5em 1em;
  border: 2px solid #000;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: #ffff00;
  color: #000;
  outline: 3px solid #0000ff;
  box-shadow: 0 0 2px #000;
}
