/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  /*background: #f4f4f4;*/
  background: #ffffff;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Прогресс-бар прокрутки */
#progressBarContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1300;
}
#progressBar {
  height: 100%;
  width: 0%;
  background: #ffdc00;
  transition: width 0.25s ease-out;
}

/* Header (desktop) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(122,134,145,0.95);
  color: #fff;
  z-index: 1100;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  height: 60px;
}
header:hover {
  background: rgba(122,134,145,1);
}
header .logo {
  display: flex;
  align-items: center;
}
header .logo img {
  max-height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}
header .logo img:hover {
  transform: scale(1.05);
}
header h1 {
  font-size: 1.5em;
  margin: 0;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 20px;
  position: relative;
}
nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: 5px;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #ffdc00;
}

/* Секции */
section {
  padding: 80px 20px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  width: 100%;
}
.container {
  width: 100%;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: url('/img/bg/1-bg.png') no-repeat center center/cover;
  color: #fff;
  position: relative;
  text-align: center;
  padding: 120px 20px;
  overflow: hidden;
  width: 100%;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}
.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.hero .content:hover {
  transform: scale(1.02);
}
.hero h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.3em;
  margin-bottom: 30px;
}
.btn {
  display: inline-block;
  background: #00539C;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  background: #003d75;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Раздел "О компании" */
#about {
  background: #f9f9f9;
  padding: 80px 20px;
  width: 100%;
}
#about h2 {
  color: #00539C;
  margin-bottom: 20px;
  text-align: center;
  font-size: 2.2em;
}
#about p {
  max-width: 900px;
  margin: 0 auto 15px;
  text-align: center;
  font-size: 1.1em;
}

/* Раздел "Возможности" */
#services {
  background: #fff;
  padding: 80px 20px;
  width: 100%;
}
#services h2 {
  text-align: center;
  color: #00539C;
  margin-bottom: 40px;
  font-size: 2.2em;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service-card {
  background: #e8f0fe;
  padding: 20px;
  flex: 1 1 calc(45% - 20px);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4em;
}

/* Раздел "Наши специалисты" */
#team {
  background: #f9f9f9;
  padding: 80px 20px;
  width: 100%;
}
#team h2 {
  text-align: center;
  color: #00539C;
  margin-bottom: 20px;
  font-size: 2.2em;
}
#team p {
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.8;
}

/* Раздел "Кейсы" */
#cases {
  background: #fff;
  padding: 80px 20px;
  width: 100%;
}
#cases h2 {
  text-align: center;
  color: #00539C;
  margin-bottom: 20px;
  font-size: 2.2em;
}
#cases .case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.case-item {
  background: #e8f0fe;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 calc(30% - 20px);
  min-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.case-item h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}
.case-item p {
  font-size: 0.95em;
  margin-bottom: 10px;
}
.cases-note {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  max-width: 900px;
  margin: 20px auto 0;
  font-style: italic;
}

/* Раздел "Почему выбирают нас" */
#why {
  background: #f9f9f9;
  padding: 80px 20px;
  width: 100%;
}
#why h2 {
  text-align: center;
  color: #00539C;
  margin-bottom: 20px;
  font-size: 2.2em;
}
#why p {
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: center;
  font-size: 1.1em;
}

/* Раздел "Связаться с нами" */
#contact {
  background: #fff;
  padding: 80px 20px;
  width: 100%;
  background: url('/img/bg/c4.png') no-repeat bottom center/cover;
  position: relative;
  text-align: center;
  overflow: hidden;
}
#contact h2 {
  text-align: center;
  color: #00539C;
  margin-bottom: 20px;
  font-size: 2.2em;
}
#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#contact form input,
#contact form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  width: 100%;
  transition: border-color 0.3s ease;
}
#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: #00539C;
}
#contact form textarea {
  resize: vertical;
  min-height: 120px;
}
#contact form button {
  background: #00539C;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#contact form button:hover {
  background: #003d75;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background: rgba(122,134,145,0.95);
  color: #fff;
  text-align: center;
  padding: 20px;
  width: 100%;
}

/* Кнопка "Наверх" */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00539C;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 2200;
  transition: background 0.3s ease, transform 0.3s ease;
}
#backToTop:hover {
  background: #003d75;
  transform: translateY(-3px);
}

/* === Мобильные стили === */
/* === Мобильные стили === */
@media (max-width: 1000px) {
  /* Скрываем основной header на мобильных устройствах */
  header {
    display: none;
  }
  
  /* Фиксированная кнопка для переключения меню (по умолчанию показана в виде круга в левом верхнем углу) */
  #mobileToggle {
    display: block;
    position: fixed;
    top: 10px;
    left: 15px; /* Центр кнопки на 25px снаружи от левого края */
    width: 50px;
    height: 50px;
    background: rgba(122,134,145,0.95);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    z-index: 1500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
  }
  #mobileToggle:hover {
    background: rgba(122,134,145,1);
  }

  /* При открытом меню (body.menu-open) переключаем стиль кнопки, чтобы она превращалась в панель */
  body.menu-open #mobileToggle {
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    border-radius: 0;
    font-size: 18px;
    padding: 10px 20px;
  }
  
  /* Мобильное меню — по умолчанию скрыто (не зависит от display, управление производится через класс на body) */
  #mobileMenu {
    display: none;
  }
  /* При добавлении класса menu-open на body, мобильное меню отображается */
  body.menu-open #mobileMenu {
    display: block;
    position: fixed;
    top: calc(100% - 0px); /* Располагается непосредственно под панелью #mobileToggle */
    left: 0;
    width: 100%;
    background: rgba(0,83,156,0.95);
    padding: 20px;
    z-index: 1400;
  }
  #mobileMenu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
  }
  #mobileMenu ul li {
    margin: 15px 0;
  }
  #mobileMenu ul li a {
    color: #fff;
    font-size: 1.2em;
    font-weight: 500;
  }
}
