*,
*::before,
*::after {
  box-sizing: border-box;
}


@font-face {
  font-family: 'JosefinSans';
  src: url('../fonts/JosefinSans.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}

.burger {
display: none;
}

body {
  font-family: 'JosefinSans', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #000;
}

.logo-wrapper {
  grid-area: logo;
}

.desktop-nav {
  grid-area: nav;
}

.inquire-btn {
  grid-area: inquire;
}
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav inquire"; /* логотип | меню | inquire */
  align-items: center;
  padding: 0 20px;
  height: 70px;
  width: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}

.inquire-btn {
  justify-self: end;
  font-family: 'JosefinSans', sans-serif;
  font-size: 1.2rem;
  color: white;
  padding: 8px 20px;
  border: 1px solid white;
  border-radius: 30px;
  background: transparent;
  text-decoration: none;
  justify-self: end; /* справа */
  transition: all 0.3s ease-in-out;
}

.inquire-btn:hover {
  background-color: white;
  color: black !important;
}




.hero-section {
  padding-top: 0; /* убери внутренний отступ */
}




.hero-content h1,
.hero-content p {
opacity: 0;
transform: scale(0.98);
animation: pixelReveal 1.8s steps(8) forwards;
}

.hero-content h1 {
animation-delay: 0.4s;
}

.hero-content p {
animation-delay: 1.1s;
}

@keyframes pixelReveal {
0% {
  opacity: 0;
  filter: contrast(0) brightness(2) grayscale(1);
  transform: scale(1.03);
}
30% {
  filter: contrast(3) brightness(1.5) saturate(2);
  opacity: 0.5;
}
60% {
  filter: contrast(1.5) blur(1px);
  transform: scale(0.99);
}
100% {
  opacity: 1;
  filter: none;
  transform: scale(1);
}
}



.logo {
height: 6rem;
transition: transform 0.3s ease;
}

.logo:hover {
transform: scale(1.08) rotate(-1deg);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.navbar li {
  display: inline;
}
.navbar a {
text-decoration: none;
color: white;
font-size: 1.4rem;
font-weight: 600;
padding: 10px 15px;
text-shadow: none;
transition: all 0.3s ease;
}

.navbar a:hover {
color: rgb(255, 255, 255);
text-shadow: 0 0 1px white, 0 0 2px white;
}



.hero-section {
position: relative;
width: 100%;
min-height: 100vh; /* чтобы точно растягивалось на весь экран */
background: url('/assets/back-hero.jpg') no-repeat center center/cover;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}



.services {
  padding: 100px 20px;
  text-align: center;
  background-color: #fff;
}

.services h2 {
  font-size: 3rem;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f9f9f9, #ececec);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 2rem;
  margin: 20px 0;
  color: #222;
}

.gifs {
  filter: grayscale(100%);
}

.service-card p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

/* ====== Media Queries ====== */

@media (max-width: 1024px) {
.navbar ul {
  gap: 10px;
}

.navbar a,
.inquire-btn {
  font-size: 1.2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modal-content {
  max-width: 700px;
  padding: 30px;
}
.logo{
  height: 5rem;
}
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  .navbar {
    display: grid;
    grid-template-columns: 50px 1fr 110px; /* Бургер | Лого | Inquire */
    align-items: center;
    padding: 0 20px;
    height: 70px;
    width: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
  }

  .burger {
    position: absolute;
    top: 20px; left: 5%;
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    justify-self: start; /* слева */
    z-index: 100011;
  }
  .logo {
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    height: 3rem;
    padding-left: 0; /* ❌ убрать padding вообще */
  }
  
    .inquire-btn {
      font-family: 'JosefinSans', sans-serif;
      font-size: 1rem;
      color: white;
      padding: 8px 16px;
      border: 1px solid white;
      border-radius: 30px;
      text-decoration: none;
      background: transparent;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      
      /* Новый блок: */
      position: absolute;
      top: 21px; left: 10%; 
      justify-self: end; /* ✅ в сетке грид вправо */
      align-self: center; /* ✅ по центру по вертикали */
      
      max-width: 100px;
      height: auto;
      z-index: 999;
      transition: all 0.3s;
    }
    
    .inquire-btn:hover {
      background: white;
      color: black !important;
    }
  
  


/* мобильное меню (ul) выезжает справа */
.navbar ul {
  position: fixed;
  top: 0; right: -100%;
  width: 220px; height: 100vh;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px;
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  border-left: 1px solid #333;
}

.navbar li {
  width: 100%;
}

.hero-section {
  height: auto;
  padding: 100px 20px;
}

.hero-content h1 {
  font-size: 2rem;
}

.services-grid {
  grid-template-columns: 1fr;
}

.service-card {
  padding: 30px;
}

.modal-content {
  max-width: 90%;
  padding: 20px;
}
}


@media (max-width: 480px) {
  .navbar {
    display: grid;
    grid-template-columns: 40px 1fr 90px; /* бургер | лого | inquire */
    align-items: center;
    padding: 0 20px;
    height: 70px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }

  .logo {
    height: 2.5rem;
    justify-self: center; /* вот это обязательно */
  }

  .burger {
    position: fixed;
    top: 20px; left: 20px;
    display: block;
    justify-self: start;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    z-index: 100011;
    transition: background 0.3s;
  }

  .inquire-btn {
      font-family: 'JosefinSans', sans-serif;
      font-size: 1rem;
      color: white;
      padding: 8px 16px;
      border: 1px solid white;
      border-radius: 30px;
      text-decoration: none;
      background: transparent;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      
      /* Новый блок: */
      position: absolute;
      top: 21px; left: 10%; 
      justify-self: end; /* ✅ в сетке грид вправо */
      align-self: center; /* ✅ по центру по вертикали */
      
      max-width: 100px;
      height: auto;
      z-index: 999;
      transition: all 0.3s;
    }
    
    .inquire-btn:hover {
      background: white;
      color: black !important;
    }
  
  .inquire-btn:hover {
    background: white;
    color: black !important;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }


.footer-content {
  padding: 20px;
}

.modal-btn {
  padding: 10px 20px;
}

.close-modal {
  
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
}
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content p, 
.service-card p {
text-shadow: none !important;
}


/* ————————— Full-screen mobile menu ————————— */
/* Мобильное меню: фон с размытие и плавный фейд-ин */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0); /* полупрозрачный черный */
  backdrop-filter: blur(15px) brightness(1.2);
  -webkit-backdrop-filter: blur(15px) brightness(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
  z-index: 10003;
}
.mobile-menu.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Когда закрывается */
.mobile-menu.hiding {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0; /* Убираем отступы */
  margin: 0;  /* Убираем отступы */
}

/* Пункты меню — увеличенный шрифт, разделители и отступы */
.mobile-nav li {
margin: 18px 0;
list-style: none;
text-align: center;
border-bottom: none;
}
.mobile-nav a {
color: #ffffff;
font-size: 2rem;
text-decoration: none;
font-weight: 500;
text-decoration: none;
transition: color 0.3s;
text-align: center;  /* ✅ выравниваем текст по центру */
display: inline-block;
}

.mobile-nav a:hover {
color: #ccc;
}

/* Контакты — чуть меньше, но с иконками */
.mobile-contacts {
margin: 20px 0;
text-align: center;
color: white;
}
.mobile-contacts a {
display: inline-block;
color: #ffffff;
font-size: 1rem;
text-decoration: none;
margin: 0 10px;
transition: color 0.2s;

}
.mobile-contacts a:hover {
color: #ccc;
}

.mobile-socials {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Соц-иконки: белые, с лёгким светящимся эффектом */
.mobile-socials img {
width: 36px; 
height: 36px;
filter: invert(1) drop-shadow(0 0 6px rgba(255,255,255,0.5));
margin: 0 8px;
transition: transform 0.2s, filter 0.2s;
}
.mobile-socials img:hover {
transform: scale(1.1);
filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}



/* центрируем нав-список по вертикали */
.mobile-menu.show .mobile-nav {
margin-top: 80px;
}


/* когда мобильное меню открыто, прячем overlay, hero и inquire-кнопку и navbar */
.mobile-menu.show ~ .overlay,
.mobile-menu.show ~ .hero-content,
.mobile-menu.show ~ .inquire-btn,
.mobile-menu.show ~ .navbar {
  display: none !important;
}
