main {
  display: block;
  margin-top: 80px; /* по дефолту — как высота хедера */
}


/*Практика заголовок*/
.about-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  padding-top: 100px;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%; /* сдвиг вниз по изображению */
  display: block;
}

.about-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.about-intro-img h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 52px;
  font-weight: 400;
  margin: 0;
  text-align: center;
}





.civil-law-text {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  margin-top: 40px;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #111;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify; 
}

.civil-law-text ul {
  margin-top: 10px;
  padding-left: 20px;
}

.civil-law-text li {
  margin-bottom: 10px;
}






.footer {
  background-color: #0e1012;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  margin-top: 80px;
}

.footer-contact {
  margin-bottom: 15px;
  text-align: center;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #aaaaaa;
}

.footer-center {
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}



@media (max-width: 767px) {
  .about-intro-img h1 {
    font-size: 40px;
    text-align: center;
}
  h2 {
    font-size: 22px;
  }
    html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
  }

  body {
    flex-direction: column;
    background: #ffffff;
  }

  main {
    flex: 1 0 auto;
    background-color: #ffffff;
  }

  .footer {
    flex-shrink: 0;
    margin-top: auto !important;
  }

  .about-intro-img {
    margin-top: 0 !important;
    padding-top: 50px !important;
  }

  .about-intro-img .overlay {
    margin-top: 50px !important;
  }
}




@media (min-width: 768px) and (max-width: 1194px) {
  html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
  }

  body {
    display: flex;
    flex-direction: column;
    background: #ffffff;
  }

  main {
    flex: 1 0 auto;
    background-color: #ffffff;
  }

  .footer {
    flex-shrink: 0;
    margin-top: auto !important;
  }

    .about-intro-img .overlay  {
    margin-top: 70px !important;
  }

    .about-intro-img {
    margin-top: 0 !important;
    padding-top: 70px !important;
}
}


