html {
    scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f3f3f3;
}

div {
    scroll-margin-top: 50px;
}

.hero {
  position: relative;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 40px;
}

.hero-content {
  text-align: right;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  max-width: 100%;
  width: fit-content;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #222;
  white-space: normal;
  word-wrap: break-word;
}

.consult-form {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px;
}

.phone-input {
  padding: 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.consult-button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.consult-button:hover {
  background-color: #0056b3;
}

.qualification {
  position: relative;
  background: url('/images/main-photo12.webp') no-repeat center center;
  background-size: cover;
  height: 1000px;
  color: white;
}

.qualification-content {
  position: absolute;
  top: 15%;
  left: 100px;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
}

.qualification h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.qualification ul {
  list-style: none;
  padding: 0;
}

.qualification ul li {
  font-size: 20px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  /* Для героя */
  .hero {
    flex-direction: column;
    height: auto;
    background: none !important;
	padding: 0px;
  }
  
  .hero::before {
    content: '';
    display: block;
    width: 100%;
    height: 300px;
    background: url('/images/main-photo.webp') no-repeat center center/cover;
    margin-bottom: 20px;
  }
  
  .hero-content {
    width: auto;
    text-align: center;
    order: 2;
    padding: 0px;
    justify-items: center;
  }

  .consult-form {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px;
    flex-direction: column;
  }

  .qualification {
    height: auto;
    background: none !important;
    padding: 0px;
  }
  

  
  .qualification-content {
    position: static;
    width: auto;
    max-width: none;
    background: rgba(0, 0, 0, 0.6);
  }
}

.documents-section {
    text-align: center;
    padding: 20px 0;
    background-color: #f3f3f3;
}
.publications-section {
    text-align: center;
    background-color: #f3f3f3;
}
.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
}

.slider {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.slick-list {
    margin: 0 auto;
}

.slick-slide {
    display: flex !important;
    justify-content: center;
    height: auto !important;
}

.slider img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 10px;
    cursor: pointer;
}
.slick-prev, 
.slick-next {
    background: transparent;
    border: none;
    font-size: 0;
    z-index: 10;
}

.slick-prev:before, 
.slick-next:before {
    color: black !important;
    font-size: 30px;
    opacity: 1;
}

@media (max-width: 768px) {
    .slider {
        flex-direction: column;
        align-items: center;
    }
        .slick-prev, 
        .slick-next {
            background: transparent;
            border: none;
            font-size: 0;
            z-index: 10;
        display: none !important;
        }
}

        .slider1 {
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .slick-list {
            margin: 0 auto;
        }

        .slick-slide {
            display: flex !important;
            justify-content: center;
            align-items: stretch;
            height: auto !important;
        }

        .slider1 .case-block {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            max-width: 400px;
            min-height: 600px;
            border-radius: 10px;
            box-sizing: border-box;
        }

        .slider1 img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
        }

        .slick-prev, 
        .slick-next {
            background: transparent;
            border: none;
            font-size: 0;
            z-index: 10;
        }

        .slick-prev:before, 
        .slick-next:before {
            color: black !important;
            font-size: 30px;
            opacity: 1;
        }

        @media (max-width: 768px) {
            .slider1 {
                flex-direction: column;
                align-items: center;
            }
        }
