/* Основные настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  background-image: url('images/body.jpg'); /* путь к фону */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;

  font-family: 'Inter', sans-serif;
  /*background-color: #f9f9f9;*/
  color: #333;
  line-height: 1.6;
  /*background-color: #f4f6f8; *//* фон */
  /*background-color: #ffffff;*/
  /*color: #333333; */
  /*color: #444444;*/
  background-color: #f4f6f8;
  /*color: #333333;*/
  font-family: 'Inter', sans-serif; 
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2); /* белый фильтр с прозрачностью */
  z-index: -1;
}

/* Шапка */
header {
   display: flex;
   justify-content: space-between;
  /*justify-content: center;/
  align-items: center;
  /*flex-wrap: wrap;*/
  /*margin-top: 100px;*/
  height: 150px; /* фиксированная высота */
  /* background-color: #0057b7;*/ /* основной цвет */
  /*background-color: #2c3e50;*/
  background-color: #0057b7;

  position: relative;
  background-image: url('images/header.jpg'); /* путь к твоему фону */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 40px;
  /*border-bottom-left-radius: 12px;*/
  /*border-bottom-right-radius: 12px;*/
  z-index: 1;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.1); /* белый фильтр с прозрачностью */
  z-index: 0;
  pointer-events: none; 
}


header h1 {
  font-size: 2.5rem;
  margin-left: 20px;
  margin-right: 0;
  width: fit-content;
  -webkit-text-stroke: 1px #111;
}

nav {
    margin: 1px 100px;
    margin-top: 12px;
}

nav a {
  /*color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  pointer-events: auto;
  z-index: 1;
  position: absolute;
  top: 20;*/
  

  /*display: flex;
  gap: 20px; /* расстояние между пунктами */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* если места мало — перенос строк */*/


  /*position: relative; */
  /*display: flex;*/
  flex-direction: row;     /* горизонтально */
 /* gap: 20px;               /* расстояние между пунктами */*/
  list-style: none;
  margin: 10px 10px;
  /*padding-top: 100px;*/

  display: inline-block;
  text-decoration: none;
  color: white;
  z-index: 2;
}

nav a:hover {
  text-decoration: underline;
}

header button {
  background-color: #ffcc00;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

button {
  /*background-color: #ff9800;*/ /* акцент */
  /*background-color: #1abc9c;*/
  /*color: white;*/
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #e68900;
}

/* Секции */
section {
  padding: 60px 0; /* верх и низ */
  /*max-width: 1200px;*/
  /*margin: auto;*/
  margin-bottom: 100px; /* расстояние между разделами */
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #3333cc;

  /*color: #ff9800;*/
  font-weight: bold;
  -webkit-text-stroke: 0.3px #fff;
  /*text-shadow: 1px 1px 2px rgba(0,0,0,0.5);*/

}

section p {
  font-size: 1.1rem;
}

/* Карточки услуг */
.card {
  /*background-color: white;*/
  /*border: 1px solid #ddd;*/
  /*padding: 20px;*/
  margin-bottom: 20px;
  /*border-radius: 8px;*/
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.05);*/
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 20px;
}

/* Форма обратной связи */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #003060;
}

/* Футер */
footer {
  background-color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}





/* Адаптивность */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
  }

  section {
    /*padding: 40px 20px;*/
  }
}

/* Подключение анимаций */
.card, section, header, footer {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.card.visible, section.visible, header.visible, footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация кнопок */
button:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Иконки */
.icon {
  /*margin-right: 10px;*/
  /*color: #004080;*/
  /*font-size: 1.2rem;*/
  color: #0057b7;
  font-size: 1.2rem;
  margin-right: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  /*max-width: 1200px;*/
  /*margin: 0 auto;*/
  /*padding: 0 20px;*/
}

.section {
  padding: 60px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #004080;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #003060;
}

#about .icon {
  color: #0057b7; /* синий для "О компании" */
}

#services .icon {
  color: #1abc9c; /* бирюзовый для "Услуги" */
}

#contact .icon {
  color: #f582ae; /* коралловый для "Контакты" */
}

.icon:hover {
  /*color: #ffcc00;*/
  /*transition: color 0.3s ease;*/
  color: #ff9800;
  transition: color 0.3s ease;
}

/*
.marquee {
  width: 100%;
  overflow: hidden;
  background-color: #559855;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}

.marquee__inner {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 15s linear infinite;
  padding-left: 100%;
}

.marquee-icon {
  height: 70px;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
*/

.marquee {
  width: 100%;
  overflow: hidden;
  background-color: #559855;
  color: white;
  font-weight: bold;
  font-size: 1.7rem;
  padding: 10px 0;
  position: relative;
}

.marquee__track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 12s linear infinite;
}

.marquee-icon {
  height: 70px;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
  }

  .logo {
    margin-bottom: 10px;
  }
}

