@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Uncial+Antiqua&display=swap');

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

}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #292424; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f1e7d0; 
}

/* HEADER PC */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(51, 41, 41, 0.8); 
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid rgba(190, 159, 101, 0.2); 
  
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  height: 80px; 
}

.nav-list{
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  list-style-type: none;
}

.nav-list a {
  text-decoration: none; 
  transition: 0.3s;
  font-family: 'Cinzel', serif; 
  font-weight: 900;
  font-weight: bold;
  letter-spacing: 2px; 
  text-transform: uppercase;
  background: linear-gradient(to bottom, #d4af37 0%, #fefbcf 50%, #d4af37 100%);
  background-clip: text;
 -webkit-text-fill-color: transparent;
}

.nav-list a:hover {
   transition: color 0.3s ease;
   background: linear-gradient(to bottom, #221c08 0%, #aaa55e 50%, #1d1807 100%);
  background-clip: text;
 -webkit-text-fill-color: transparent;
 font-size: 20px;
}

.header-logo{
display: block;
  height: 180px; 
  width: auto;
  margin: 0 20px; 
  position: relative;
  transform: translateY(50px);
}

/* Hero PC */

.hero {
  position: relative;
  min-height: 100vh; 
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;     
  padding-top: 80px;    
}

.scroll-wrapper {
  position: relative; 
  display: inline-block; /* Он будет ровно такого размера, как картинка */
  z-index: 2;}

.scroll-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 15%; 
  box-sizing: border-box;
  text-align: center;
  color: #2a1b0a;}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1; 
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);}


.hero-content h1 {
  font-size: 5rem;
  color: #e2cea7;
  text-shadow: 3px 3px 10px rgba(0,0,0,0.8); 
  text-align: center;
}

.hero-scroll{
 transform: translate(0%, 0%) scale(1.1);
}

/* CARDS SEC */

.cards-chapter{
  display: flex;
  flex-direction: column;
}

.cards-container{
display: block;        
height: auto;         
padding: 80px 0;
text-align: center;
}

.cards-wrapper {
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 40px;              
  margin-top: 50px;       
  flex-wrap: wrap;         
}

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

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

.card-face {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; 
  border-radius: 12px;
  overflow: hidden;
}

.card {
  cursor: pointer;
  width: 250px;
  height: 380px;
  transition: transform 0.3s ease;
  position: relative; 
  perspective: 1000px;
}

.card:hover{
transform: scale(1.05);
}

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

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}