*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'JosefinSans';
  src: url('../fonts/JosefinSans.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
}
.logo-wrapper {
  grid-area: logo;
}

.about-desktop-nav {
  grid-area: nav;
}
.inquire-btn {
  grid-area: inquire;
}
.overlay {
  pointer-events: none;
}

/* ==================== ОБЩИЕ НАСТРОЙКИ ==================== */
body {
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==================== HERO ==================== */
.about-hero {
  background: url("../assets/about-hero.jpg") center center/cover no-repeat;
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.about-hero h1 {
  padding-bottom: 7rem;
  font-size: 4rem;
  z-index: 2;
  font-family: 'JosefinSans', sans-serif;
  color: #fff;
  text-shadow: 2px 2px 5px black;
}

.about-section {
  background-color: #0d0d0d;
  max-width: 900px;
  margin: auto;
  padding: 100px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  line-height: 1.8;
  z-index: 2;
}

.about-section p {
  margin-bottom: 30px;
  color: #ccc;
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-section {
    padding: 60px 20px;
    font-size: 1rem;
  }
}

.burger {
  display: none;
  }

/* ==================== HOW WE WORK ==================== */
.how-we-work {
  background-color: #f8f5f2;
  color: #111;
  padding: 100px 20px 80px;
  text-align: center;
  font-family: 'VT323', monospace;
}

.how-title {
  font-size: 3.8rem;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 1px 1px black;
}

.how-subtext {
  font-size: 1.4rem;
  margin-bottom: 80px;
  line-height: 1.6;
  font-weight: bold;
}

.timeline-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 0;
  align-items: flex-start;
}

.timeline-bar::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #bbb, #333, #bbb);
  border-radius: 2px;
  z-index: 1;
}

.timeline-step {
  position: relative;
  text-align: center;
  width: 20%;
  z-index: 2;
  padding-top: 20px;
  transition: transform 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-10px);
}

.timeline-step .dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: #111;
  color: white;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.timeline-step .dot:hover {
  background: #222;
  box-shadow: 0 0 10px #111, inset 0 0 6px #555;
}

.timeline-step p {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  font-family: 'JosefinSans', sans-serif;
  max-width: 200px;
  margin: 50px auto 0;
  transition: transform 0.3s ease;
}

.timeline-step:hover p {
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .timeline-bar {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-top: 40px;
    position: relative;
  }

  .timeline-bar::before {
    display: none;
  }

  .timeline-step {
    width: 100%;
    padding-top: 0;
    text-align: center; /* Центруем текст */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центруем ВСЁ содержимое */
  }

  .timeline-step .dot {
    position: relative;
    margin: 0 auto 20px;
    left: 0;
    transform: translateX(0); /* убираем смещения */
  }

  .timeline-step p {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ==================== NAVBAR ==================== */
.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;
  }

    .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;
    }

    @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;
    }
      
   
      
      .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;
      }
      