/* Общие */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}


/* Хедер */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: #111;
  color: #ffcc00;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

header .logo {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #ffcc00;
}

/* Соцсети и язык */
.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

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

.social-icons a:hover {
  color: #ffcc00;
}

/* Кнопки */
.call-btn {
  margin-left: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  background: #ffcc00;
  color: #111;
  text-decoration: none;
  transition: 0.3s;
}

.call-btn:hover {
  background: #fff;
  color: #111;
}

/* Выпадающее меню языка */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: #444;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.lang-btn:hover {
  background: #ffcc00;
  color: #111;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 5px;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  min-width: 120px;
  z-index: 1000;
}

.lang-menu a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
}

.lang-menu a:hover {
  background: #ffcc00;
  color: #111;
}

/* Показ меню */
.lang-dropdown.active .lang-menu {
  display: block;
}

/* Бургер */
.burger {
  color: #fff;
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.burger:active {
  color: #ffcc00;
}

/* Герой */
.hero {
  text-align: center;
  padding: 180px 20px;
  background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
    url("img/image_1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 22%; /* опускаем ниже */
  color: #fff;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #ffcc00;
  color: #111;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #fff;
}

/* Разделы */
section {
  padding: 60px;
  text-align: center;
}

section h3 {
  font-size: 26px;
  margin-bottom: 30px;
}

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

.card {
    display: flex;
    background: #fff;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    flex-direction: column;
    justify-content: center;
}

.card i {
  font-size: 32px;
  color: #ffcc00;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
}

#href_style {
  text-decoration: none;
  color: #111;
  font-weight: bold;
}


/* Футер */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
}

/* Cлайдер */
.works {
  padding: 60px 20px;
}

.works h3 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 0px;
}

.works .swiper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 10px;
}

.works .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.works .swiper-slide:hover {
  transform: scale(1.05);
}

.works .swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


/* Навигационные стрелки */

/* Цвет стрелок по умолчанию */
.swiper {
  --swiper-navigation-size: 30px;
  --swiper-pagination-color: #ffcc00;
}

.swiper-button-prev {
  left: 30px !important;
}

.swiper-button-next {
  right: 30px !important;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-color: #FFF;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  --swiper-navigation-color: #ffcc00;
}

/* Пагинация (точки) */
.swiper-pagination-bullet-active {
  transform: scale(1.2);
}


/* Адаптив */
@media (max-width: 768px) {
  /* Header адаптив */
  header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  header .logo {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  header nav {
    display: none;
    flex-basis: 100%;
    background: #111;
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  header.active nav {
    display: flex;
    flex-direction: column;
  }

  .burger {
    display: block;
    position: absolute;
    top: 12px;
    right: 20px;
  }

  header .social-icons,
  header .lang-dropdown,
  header .call-btn {
    flex: 1 1 100%;
    text-align: center;
    margin: 5px 0;
  }

  .card {
    padding: 20px;
  }

  .card i {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 14px;
  }

  section h3 {
    font-size: 22px;
  }

  .works .swiper-slide img {
    height: 200px;
  }
}
