.navbar-header {
    margin-right: auto;
}

.navbar-nav {
    margin-left: auto;
}

.main_home h1 {
    font-size: 24px; /* Зменшує розмір шрифту */
    margin-top: -150px; /* Піднімає слоган вище */
}

.single_home_slider {
    display: contents;
}

h3 {
    font-size: 17px;
    font-style: normal;
    font-weight: bold;
    color: white;

}

.text1 {
    position: relative;
    width: 100%; /* Приклад ширини */
    height: 300px; /* Приклад висоти */

    font-weight: bold;
    padding-bottom: 20px;

}

.top-left {
    position: absolute; /* Абсолютне позиціонування */
    top: -10PX; /* Відступ зверху */
    left: 0; /* Відступ зліва */
    margin: -80px; /* Внутрішні відступи, якщо потрібно */
}

.contact-section {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: rgb(107 114 128);
}

.form-group-container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid black;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 1.2rem;
  background-color: gray;
  color: #fff;
  padding: 13px 5px;
  border-radius: 0.375rem;
}

/* Responsive Fixes */

/* For devices with width 1024px and below */
@media (max-width: 1024px) {
    .main_home h1 {
        font-size: 20px;
        margin-top: -100px;
    }
    .top-left {
        text-align: center;
        margin: 0 auto;
    }
    .top-left h3 {
        font-size: 15px;
    }
    .text-right a {
        width: 100px;
        height: 40px;
        line-height: 40px;
        font-size: 12px;
    }
}

/* For devices with width 768px and below (Tablets) */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    .main_home h1 {
        font-size: 18px;
    }
    .col-sm-6 {
        width: 100%;
        text-align: center;
    }
    .top-left {
        text-align: center;
        margin: 0 auto;
    }
    .text1 {
        text-align: center;
        margin: 0;
    }
    .text-right {
        text-align: center;
    }
    .text-right a {
        font-size: 12px;
        width: 90px;
        height: 35px;
        line-height: 35px;
    }
}

/* For devices with width 480px and below (Mobile Phones) */
@media (max-width: 480px) {
    .main_home h1 {
        font-size: 16px;
        margin-top: -80px;
    }
    .col-sm-6 {
        width: 100%;
        text-align: center;
    }
    .top-left {
        text-align: center;
        margin-top: 1%;
        margin-left: 15%;

    }
    .top-left h3 {
        font-size: 13px;
    }
    .text1 {
        text-align: center;
        margin-top: 8%;
    }
    .text-right {
        margin-top: 70%;
        text-align: center;
    }
    .text-right a {
        font-size: 10px;
        width: 80px;
        height: 30px;
        line-height: 30px;
    }
}
