html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.header {
  background: url('../images/solid.png');
  background-repeat: repeat;
  background-size: auto;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  height: 70px;
  display: flex;
  top: 25px; /* чтобы шапка была ниже top-bar */
  z-index: 1000;
  transition: all 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
}
.hexagon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #FF6B00;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #FF6B00;
  margin-right: 10px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.nav-list li a:hover,
.nav-list li a.active {
  color: #FF6B00;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.burger {
  display: none;
}
.hero {
  background: url('/images/heroimg.webp') center/cover no-repeat;
  height: 100vh;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
}
.hero-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    margin-top: 230px;
  }
}
.hero-buttons {
  margin-top: 20px;
}
.btn, .btn-outline, .btn-light {
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin: 5px;
}
.btn {
  background: #FF6B00;
  color: #fff;
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #FF6B00;
}
.orange-strip {
  background: #FF6B00;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.orange-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services {
  padding: 80px 0;
  text-align: center;
  background: #f4f0ec;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.service-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}
.service-item i {
  font-size: 40px;
  color: #FF6B00;
  margin-bottom: 20px;
}

.reviews {
  padding: 80px 0;
  text-align: center;
  background: #f4f0ec;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.review-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.review-item .stars {
  color: #FF6B00;
  font-size: 20px;
  margin-bottom: 15px;
}
.review-item p {
  font-style: italic;
  margin-bottom: 10px;
}
.review-item span {
  font-weight: 600;
  font-size: 14px;
  color: #555;
}
.about-text {
  padding: 80px 20px;
  background: #f4f0ec;
  text-align: center;
}
.about-text h2 {
  margin-bottom: 20px;
}
.about-text p {
  max-width: 800px;
  margin: 10px auto;
  line-height: 1.6;
  color: #555;
}

.projects-gallery {
  background: #111;
  padding: 80px 0;
  text-align: center;
}
.projects-gallery h2 {
  color: #fff;
  margin-top: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center; /* Центрируем текст */
}
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Показываем изображение с правильным масштабированием */
}
.gallery-item .description {
  padding: 15px;
  background-color: #f9f9f9;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

.swiper-slide img {
  width: 100%;
  height: 400px; /* или сколько тебе нужно */
  object-fit: cover;
  border-radius: 10px; /* если хочешь скруглённые углы */
}

.top-bar {
  background-color: #f8f8f8;
  font-size: 14px;
  color: #333;
  padding: 5px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100; /* выше шапки */
  transition: top 0.4s ease;
}

.top-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.top-bar-item a {
  color: inherit;
  text-decoration: none;
}

.top-bar-item i {
  color: #ff6600;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
  }

  .hero {
    height: 80vh;
    padding: 20px;
    background-position: center center;
    background-size: cover;
    background-image: url('/images/heroimg-mobile.webp');
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .btn, .btn-outline, .btn-light {
    padding: 10px 20px;
    font-size: 14px;
  }

  .services-grid, .reviews-grid, .gallery-grid, .footer-container {
    grid-template-columns: 1fr;
  }

  .projects-gallery {
    padding: 40px 20px;
  }

  .about-text {
    padding: 40px 20px;
  }

  .cta-container {
    gap: 10px;
  }

  .top-bar-container {
    flex-direction: column;
    gap: 10px;
  }

  .top-bar {
    padding: 5px 0;
  }

  .top-bar-item {
    font-size: 13px;
  }

  .header {
    padding: 10px 0;
    margin-top: 9px; /* добавили отступ сверху для мобильной версии */
  }
  .floating-button {
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 1;
    right: env(safe-area-inset-right, 0px); /* учитываем вырезы на iPhone */
  }
  #scrollToTopBtn {
    bottom: 74px;
    padding: 0;
    right: env(safe-area-inset-right, 0px);
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }

  .hexagon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .btn, .btn-outline, .btn-light {
    font-size: 12px;
  }

  .gallery-item .description {
    font-size: 14px;
  }
}

/* Бургер-меню */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анимация бургера */
.burger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle span:nth-child(2) {
  opacity: 0;
}

.burger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Адаптация навигации для мобильных */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
  }

  .nav.nav-active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list li a {
    font-size: 18px;
    padding: 10px 0;
    display: block;
    width: 100%;
    text-align: center;
  }
}
/* ==== FOOTER STYLES ==== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: #FF6B00;
}

.footer .logo-area {
  display: flex;
  align-items: center;
}

.footer .logo-area .hexagon {
  width: 30px;
  height: 30px;
  font-size: 14px;
  margin-right: 8px;
}

.footer .logo-text {
  font-size: 18px;
  font-weight: bold;
}

.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #FF6B00;
}
/* Адаптация страницы projects */
@media (max-width: 768px) {
  .projects-gallery {
    padding: 60px 20px;
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gallery-item {
    width: 100%;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 15px;
  }

  .gallery-item img {
    height: 250px; /* делаем картинки чуть меньше на телефоне */
  }
}

/* Увеличение стрелок слайдера на мобильных */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 24px;
    color: #fff;
  }
}

/* Added styles as per instruction */
.projects-gallery h1 {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .projects-gallery h1 {
    margin-top: 80px;
    color: #FF6B00;
  }
}

.gallery-caption {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Comfortaa', cursive;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.gallery-item:link,
.gallery-item:visited,
.gallery-item:hover,
.gallery-item:active {
  text-decoration: none;
  color: inherit;
}
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}
.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

#scrollToTopBtn {
  width: 50px;
  height: 50px;
  bottom: 0px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  font-size: 26px;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  padding: 0;
}
# Медиазапрос для уменьшения кнопок на мобильных
@media (max-width: 768px) {
  .floating-button {
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 1;
    right: env(safe-area-inset-right, 0px); /* учитываем вырезы на iPhone */
  }

  #scrollToTopBtn {
    bottom: 30px;
    padding: 0;
    right: 5px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.whatsapp-button {
  right: 30px;
}

@media (max-width: 768px) {
  .whatsapp-button {
    right: 5px;
  }
}

#scrollToTopBtn {
  right: 30px;
}

@media (max-width: 768px) {
  #scrollToTopBtn {
    right: 5px;
  }
}