* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #ffffff;
  color: #222;
  line-height: 1.5;
}



.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Хедер */
.header {
  background: #1c2b3a;
  color: #fff;
  padding: 15px 0;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}
.logo img {
  width: 120px;
  margin-right: 10px;
}
.phone {
  font-weight: 600;
  font-size: 0.95rem;

}

/* Герой */
.hero {
  position: relative;
  background: url('../img/parovoi-3.jpg') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 58, 0.7);
}
.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.9rem;
  padding-bottom: 0px;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}


.hero p {
  font-size: 1.2rem;

}

.btn1 {
  display: inline-block;
  padding: 12px 25px;
  background: #fff;
  color: #1c2b3a;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn1:hover {
  background: #426588;
  color: #fff;
}

/* Карточки */
.cards-section {
  padding: 60px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border: 3px solid #0d3768;
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.3s;
}

.card li {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
  padding-left: 15px;
  padding: 4px;
}
.card:hover {
  transform: translateY(-5px);
}
.card h2 {
  margin-bottom: 5px;
  color: #1c2b3a;
  text-align: center;
}
.card p {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}

/* Футер фиксируется внизу */
.footer {
  background: #1c2b3a;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  margin-top: auto; /* ключевая строка */
}

.about {
  padding: 70px 0;
  background: #ffffff;
  color: #333;
}
.about h2 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 30px;
}
.about p {
  max-width: 600px;
  margin: 15px auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}
.about ul {
  max-width: 700px;
  margin: 20px auto;
  padding-left: 20px;
  text-align: left;
  list-style: disc;
}
.about li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.about {
  padding: 80px 0;
  background: #ffffff;
}

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 55%;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin: 15px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.about-text ul {
  margin: 20px 0;
  padding-left: 20px;
  list-style: disc;
  color: #444;
}

.about-text li {
  margin-bottom: 8px;
}

.about-carousel {
  flex: 1 1 40%;
  text-align: center;
}

.about-carousel h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #1c2b3a;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(76, 102, 158, 1);
  background: rgba(76, 102, 158, 1)
}

.carousel .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  display: block;
  height: auto;
  width: 100%;
  flex-shrink: 0;
  object-fit: cover; 
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 43, 58, 0.7);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.carousel button:hover {
  background: #64a2ff;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

/* Навигация */
.nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin-left: -10px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: #4da6ff; 
}

.features {
  padding: 60px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.feature-card {
  background: #fff;
  border: 2px solid #0d3768;
  border-radius: 12px;
  padding: 30px 0px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1c2b3a;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #1c2b3a;
  padding: 0px 4px; 
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  padding: 10px 10px; 
}


.wrapper {
  margin-bottom: 30px; 

}


.container.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  cursor: pointer;
  background-color: #113b57;
  color: white;
  transition: 0.3s;
  width: max-content;
  min-width: 200px;
}

.btn:hover {
  background-color: #2980b9; 
}

.feature-icon img {
  max-width: 30%; 
  height: auto;    
}

@media (max-width: 992px) {
  .header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    text-align: center;
  }

  .nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-wrapper {
    flex-direction: column;
  }

  .about-text, 
  .about-carousel {
    flex: 1 1 100%;
    text-align: center;
  }
}


@media (max-width: 590px) {
  .logo img {
    width: 90px;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    height: 300px;
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn,
  .btn1 {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .wrapper {
    margin: 40px auto !important;   
    width: 90% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .container.cards {
    margin: 10 auto !important;
    padding: 0 15px !important;     
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;    
    width: 100% !important;
  }

  .btn {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 10px !important;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
    text-align: center !important;
  }

}

/* Гамбургер и анимация меню */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    margin-left: 15px;
    cursor: pointer;
    z-index: 1000;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
    background: #1c2b3a;
    padding: 15px;
    position: absolute;
    top: 60px;
    right: 10px;
    border-radius: 10px;
    z-index: 999;

    /* плавное раскрытие */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .nav.active ul {
    max-height: 400px;
    opacity: 1;
  }
}