body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/background.png');
    background-size: cover;
    background-position: 60% 50%;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.container {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4rem;
  padding-top: 160px;
  border-radius: 22px;
  max-width: 90vw;
  width: 1600px;
  box-sizing: border-box;
  margin: 0 auto;
  margin-top: 50px;
  text-align: center;
  flex: 1;
}

.logo {
  width: 200px;
  margin-bottom: 35px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 24px;
    margin-bottom: 60px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 32px;
    height: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: center;
}


.card {
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  padding-top: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  top: 0; left: 0;
  width: 90%;
  height: 90%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  transform: rotateY(180deg);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.nav-btn {
  width: 96px;
  height: 38px;
  background-color: white;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-btn:hover {
  transform: scale(1.1);
}

/* Иконки */
.nav-btn.home {
  background-image: url('icons/Home.PNG');
}

.nav-btn.back {
  background-image: url('icons/Back.PNG');
}

.nav-btn.forward {
  background-image: url('icons/Forward.PNG');
}


footer {
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  opacity: 0.5;
}
