body{
  font-family: sans-serif;
  margin: 0;
  padding-top: 70px;
}
header{
    display: flex;
    position: fixed;
    flex-direction: row;
    background-image: linear-gradient(to right, #663c02, #1f1201);
    justify-content: space-between;
    padding: 5px;
    height: 70px;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.hero{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://img.goodfon.com/original/1920x1080/d/41/stalker-stalker-2-gsc-game-world-s-t-a-l-k-e-r-2-heart-of-ch.jpg');
}
.hero  p{
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    color: #e0e0e0;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    color: #e0e0e0; 
    max-width: 600px;
}
.cta-button {
   font-size: 1rem;
   font-weight: bold;
   color: #ffffff;
   text-decoration: none;
   padding: 15px 35px;
   border-radius: 50px;
   background-image: linear-gradient(to right, #d17702, #034c85);
   box-shadow: 5px 8px 25px rgba(133, 78, 3, 0.4);
   transition: all 0.3s ease;
}
.cta-button:hover{
    transform: scale(1.05) translateY(-3px);
    box-shadow: 5px 12px 30px rgba(133, 78, 3, 0.6);
}
.but{
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background-color: #24211e;
    color: white;
    border-radius: 10px;
    font-size: medium;
    line-height: 1.1;
    height: 20px;
}
.logo{
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    color: #E8E6D8;
}
.menu{
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

main{
    border-top: 2px solid #4f3402 ;
    border-bottom: 0 solid #4f3402 ;
    border-left:  0 solid #4f3402 ;
    border-right: 0 solid #4f3402 ;
    padding: 20px;
    background-color:  #24211e;
    color: white;
    text-align: center;
}
.container {
    padding: 0 6%;
    margin: 0 auto;
}

.cards-wrap {
    display: flex;
    flex-wrap: wrap;
    gap:15px;
    justify-content: space-around;
    perspective: 1000px; /* створює 3D ефект */
}
.card{
    background-color: #382501;
    border: 2px solid #0a0a0a;
    border-radius: 10px;
    max-width: 300px;
    padding: 5px 10px;
    margin: 10px auto;
    box-shadow: 0 0 20px 5px rgba(130, 81, 1, 0.6);
    width: 100%;
    height: 550px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}
.card:hover {
  transform: rotateY(180deg); /* переворот при наведенні */
}
.card p{
    font-size: 16px;
    font-weight: normal;
}
.card p span{
    font-weight: bold;
    display: block;
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%; /* важливо, щоб обидві сторони займали всю картку */
  top: 0;
  left: 0;
  border: 2px solid #5c4418;
  border-radius: 10px;
  background: #3b2a0e;
  color: #fff3d4;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* вирівнюємо текст зверху */
  padding: 20px;
  box-sizing: border-box;
}

.card-back {
  color: white;
  transform: rotateY(180deg);
}
.img{
    border: 2px solid #8f5e03;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(133, 78, 3, 0.4);
    transition: all 0.3s ease;
}
.img:hover{
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 30px rgba(133, 78, 3, 0.6);
}
.deteils{
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  background-image: linear-gradient(to right, #d17702, #034c85);
  box-shadow: 5px 8px 25px rgba(133, 78, 3, 0.4);
  transition: all 0.3s ease;
}
.deteils:hover{
    transform: scale(1.05) translateY(-3px);
    box-shadow: 5px 12px 30px rgba(133, 78, 3, 0.6);
}
footer{
    border-top: 2px solid #4f3402 ;
    border-bottom: 0 solid #4f3402 ;
    border-left:  0 solid #4f3402 ;
    border-right: 0 solid #4f3402 ;
    padding: 20px;
    background-color:  #141413;
    color: white;
}
/* 1. Ховаємо технічний чекбокс */
.menu-checkbox {
    display: none;
}

/* 2. Стилізуємо іконку бургера (три лінії) */
.hamburger {
    display: none; /* Приховано на ПК */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

/* Переконайтеся, що лінії мають розмір та колір */
.hamburger span {
    display: block;      /* Обов'язково для відображення */
    width: 30px;         /* Ширина ліній */
    height: 3px;         /* Товщина ліній */
    background-color: #E8E6D8; /* Колір (білий/кремовий) */
    margin-bottom: 5px;  /* Відступ між лініями */
    border-radius: 2px;
    transition: 0.3s;
}

/* Приберіть margin-bottom у останньої лінії, щоб не було перекосу */
.hamburger span:last-child {
    margin-bottom: 0;
}

/* ноутбуки */
@media (max-width:1200px){

.menu{
width:80%;
}

.logo{
width:400px;
}

button{
font-size:20px;
}

}

/* планшети */
@media (max-width:768px){
  
header h2{
  font-size: 15;
}
  
.menu{
width:95%;
}

.logo{
width:300px;
}

button{
width:100%;
height:50px;
font-size:18px;
}

}

/* телефони */
@media (max-width:480px){
    .hamburger {
            display: flex; /* Показуємо іконку на мобільних */
            margin-right: 20px;
            justify-content: center;
        }

    .menu {
        display: none; /* Ховаємо стандартне меню */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Висота твого хедеру */
        left: 0;
        width: 100%;
        background-color: #24211e;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 2px solid #4f3402;
    }

    .menu .but {
        width: 80%;
        margin: 0 auto;
    }

    /* МАГІЯ: Якщо чекбокс натиснутий (checked), показуємо сусідній елемент .menu */
    .menu-checkbox:checked ~ .menu {
        display: flex;
    }

    /* Анімація перетворення бургера на хрестик при натисканні */
    .menu-checkbox:checked + .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-checkbox:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked + .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    header h2{
      font-size: 15;
    }
    .logo{
    width:220px;
    }
    
    button{
    height:45px;
    font-size:16px;
    }

}
