* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: "Arial", sans-serif; */
  /* font-family: 'Nunito', sans-serif; */
  font-family: 'Rubik', sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 852px;
  margin: 0 auto;
  /* min-width: 600px; */
}

/* Header */
.header {
  background-color: #fff;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  max-width: 100%;           /* 🔧 не даём вылазить */
  overflow-x: hidden;        /* 🔧 скрываем вылазящее */
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Для адаптации на мобилках */
  gap: 20px;
  font-size: 16px;
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

.logo-img {
  height: 150px;       /* 👈 регулируй по нужной высоте */
  width: auto;
  object-fit: contain;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;  /* 🔧 позволяет перенос */
  gap: 20px;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;      /* ✅ если не влезает — скролл */
  margin-top: 10px;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-text {
  flex: 1 1 0%;
  max-width: 55%;
  min-width: 0;
  scroll-snap-align: start;
}

.hero-text h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-text p {
  margin-bottom: 20px;
}

.services-box {
  background-color: #f5f7fa;
  padding: 20px;
  border-radius: 10px;
}

.services-box h3 {
  margin-bottom: 10px;
}

.services-box ul {
  list-style: none;
  margin-bottom: 15px;
}

.services-box li {
  margin-bottom: 10px;
}

.cta-button {
  display: inline-block;
  padding: 12px 18px;
  background-color: #00a3df;
  color: white;
  width: 100%;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.menu-button {
  display: inline-block;
  padding: 10px 10px;
  background-color: #00a3df;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.menu-button:hover {
  background-color: #008cbe; /* темнее исходного */
}

/* Gallery */
.hero-gallery {
  flex: 1 1 0%;
  max-width: 45%;
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
}

.tap-hint {
  display: none;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.main-img {
  width: 100%;
  border-radius: 10px;
  /* margin-bottom: 15px; */
  transition: transform 0.3s ease;
}

.img-wrapper.main-img-wrapper {
  margin-bottom: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover,
.main-img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact {
  margin-top: 10px;
  padding: 10px 0;
}

.contact p {
  margin-bottom: 10px;
}

.contact h3 {
  margin-bottom: 10px;
}
/* Footer */
.footer {
  text-align: center;
  padding: 5px 0;
  margin-top: 15px;
  background-color: #f0f0f0;
  font-size: 12px;
}

.contact i {
  margin-top: 0px;
  color: #000; /* Чёрный цвет */
  font-size: 11px;
  width: 20px;
  text-align: center;
}

.img-wrapper {
  overflow: hidden;
  border-radius: 10px; /* чтобы рамка осталась округлой */
  position: relative;
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.img-wrapper img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width:95%;
    padding: 0 0px;
    max-width: none;
    font-size: 12px;
  }

  .nav {
    /*flex-direction: column;*/
    /* align-items: flex-start; */
    font-size: 12px;
  }

  .hero {
    /*flex-direction: column;*/
     gap: 5px;
  }
  
  .hero-text h2 {
    font-size: 13px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .cta-button {
    font-size: 12px;
    padding: 8px 8px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease, filter 0.3s ease;
  }

   .menu-button {
    font-size: 12px;
    padding: 10px 10px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s ease, filter 0.3s ease;
  }

  .cta-button:hover,
  .menu-button:hover {
  filter: brightness(85%);
}

  .menu {
    /*flex-direction: column;*/
    gap: 10px;
  }

  .gallery-grid {
    gap: 6px;
  }

  .logo-img {
    height: 80px; /* чуть меньше на мобильных */
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

 .services-box {
    font-size: 11px; 
    padding: 5px;
  }

  .services-box h3 {
    font-size: 12px;
  }

  .services-box li {
    font-size: 11px;
    
  }

  .tap-hint {
    display: block;
    position: absolute;
    top: 25%; /* 👈 настройка положения пальца*/
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tapAnimation 1.5s ease-in-out 2;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
  }

  @keyframes tapAnimation {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0;
    }
    20% {
      transform: translate(-50%, -50%) scale(0.9);
      opacity: 1;
    }
    50% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}




