* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  line-height: 1.5;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.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;

}


.footer {
  background: #1c2b3a;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  margin-top: auto; /* прижимает вниз */
}


.about {
  flex: 1;
  padding: 8px 0;
  background: #eef2f7;
  color: #333;
}

.about h2 {
  font-size: 2rem;
  text-align: center; /* центрируем заголовок */
  margin-bottom: 10px;
}

.about h3{
    text-align: center;
}

.about p {
  max-width: 1000px;
  margin: 15px auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  text-indent: 30px;


}

.about ul {
  max-width: 1000px;
  margin: 10px auto;
  padding-left: 20px;
  text-align: left;
  list-style: disc;
}

.about li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.about {
  padding: 40px 0;
  background: #eef2f7;
}


.about-wrapper h2 {
    text-align: center;
}

.about-text {
  flex: 1 1 55%;
}

/* Навигация */
.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; 
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.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 img {
  width: 120px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.nav a:hover {
  color: #4da6ff;
}
.phone {
  font-weight: 600;
}

/* Футер */
.footer {
  background: #1c2b3a;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  margin-top: auto;
  font-size: 0.95rem;
}


.cards-section h2 {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0 30px;
  color: #1c2b3a;
  padding-bottom: 10px;
}

/* Список проектов */
.projects-list {
  list-style: decimal inside;
  display: flex;
  flex-direction: column;
  gap: 45px; 
}

.projects-list li {
  font-size: 1.1rem;
  line-height: 1.1;
  margin-bottom: 10px;
  font-style: bold;
}
.projects-list li::marker {
  font-weight: bold;   
  color: #1c2b3a;      
}

.images-row {
  display: flex;
  justify-content: space-between; 
  gap: 20px;                      
  margin-top: 20px;
  flex-wrap: wrap;                 
}

.images-row img {
  flex: 1 1 calc(25% - 20px);  
  max-width: calc(25% - 20px);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  object-fit: cover; 
}

.images-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.content {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}

.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; 
}


.spacer {
  height: 40px; 
}
/* 📱 Планшеты */
@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;
  }

  .projects-list {
    gap: 35px;
  }

  .images-row {
    justify-content: center;
    gap: 15px;
  }

  .images-row img {
    flex: 1 1 calc(45% - 10px);
    max-width: 45%;
  }

  .wrapper {
    margin-left: 0;
  }
}

/* 📱 Телефоны */
@media (max-width: 590px) {
  .logo img {
    width: 90px;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .projects-list li {
    font-size: 1rem;
    line-height: 1.4;
  }

  .images-row img {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .btn {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    font-size: 0.9rem;
    padding: 10px 12px;
    text-align: center;
  }

  .container.cards {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wrapper {
    margin: 20px auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: 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;
  }
}