main {
  display: block;
  margin-top: 180px; /* по дефолту — как высота хедера */
}

/*Практика заголовок*/
.public-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  padding-top: 100px;
}

.public-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%; 
  display: block;
}

.public-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.public-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: 48px;
  font-weight: 400;
  margin: 0;
  text-align: center;
}





.public_1-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;
}

.public_1-text {
  margin-top: 10px;
  padding-left: 20px;
}

.public_1-text li {
  margin-bottom: 10px;
}

.public_1-text h2 {
  text-align: center;
}





.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) {
  .public-intro-img h1 {
    font-size: 38px;
  }
    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;
  }

  .public-intro-img {
    margin-top: 0 !important;
    padding-top: 50px !important;
  }

  .public-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;
  }

    .public-intro-img .overlay  {
    margin-top: 70px !important;
  }

    .public-intro-img{
    margin-top: 0 !important;
    padding-top: 70px !important;
}
}


