:root {
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-body-color: #212529;
    --bs-link-color: #212529;
    --bs-link-hover-color: #000;
}

body {
    font-weight: 400;
    line-height: 1.6;
    background: #fafafa;
}

/* Заголовки */
h1, .h1 {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h3, .h3 {
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h4, .h4 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5, .h5 {
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Параграфы */
p {
    margin-bottom: 1.4rem;
    color: #2b2b2b;
}

.lead {
    font-weight: 400;
    font-size: 1.25rem;
    color: #495057;
}

.small, small {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Ссылки */
a {
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Дополнительные классы */
.text-decoration-none:hover {
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    h5, .h5 { font-size: 1.125rem; }
    h6, .h6 { font-size: 1rem; }
    
    .lead {
        font-size: 1.125rem;
    }
}

hr {
    color: #e6e6e6;
}

.bg-main {
    background: #058240!important;
}

.bg-second {
    background: #5BC18A20;
}

.nav-p {
    color: #fff;
}

.nav-p:hover {
    color: #000;
}

.text-color__white {
    color: #fff;
}

.carousel-item img {
    border-radius: 10px;
    max-height: 400px;
    object-fit: cover;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Центрирование */
  text-align: center; /* Центр текста по горизонтали */
  width: 90%; /* Чтобы текст не выходил за края */
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  margin: 0 auto;
  color: #fff;
  max-width: 80%; /* Ограничение ширины текста */
  background: rgba(0, 0, 0, 0.4); /* Фон для читаемости */
  padding: 10px 15px;
  line-height: 1.4;
  border-radius: 16px;
  font-size: 1.3rem;
}

/* Адаптив для маленьких экранов */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 1rem;
    width: 95%;
    top: 45%;
  }
  .carousel-caption p {
    padding: 8px 10px;
  }
}

.carousel-control-prev {
  left: -24px; /* Сдвигаем влево */
}

.carousel-control-next {
  right: -24px; /* Сдвигаем вправо */
}

/* Для маленьких экранов, чтобы стрелки не исчезли за пределами */
@media (max-width: 768px) {
  .carousel-control-prev {
    left: -12px;
  }
  .carousel-control-next {
    right: -12px;
  }
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    z-index: 2;
}

.btn-primary, .b24-form-btn {
    color: #fff!important;
    background: #000!important;
    box-shadow: 0px 4px 4px #00000020!important;
    border-radius: 16px!important;
    border: 2px solid #000!important;
}

.btn-primary:hover, .b24-form-btn:hover {
    background: #011c2b!important;
    box-shadow: 0px 8px 4px #00000040!important;
    border-color: yellow!important;
    text-decoration: none!important;
}

.libertyCarousel-div {
    max-width: 800px;
    margin: 0 auto;
    background: #058240;
}

.carousel-item::before {
    background: #ffffff00;
}

.contacts-card {
    max-width: 1024px;
    margin: 0 auto;
    background: #fff;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
}

.horizontal {
    margin: 0 auto;
}

.vertical {
    margin: auto 0;
}

.feedback-img {
    border-radius: 32px;
    max-width: 240px;
    max-height: 240px;
    padding: 1rem;
}

/* Стили для видеоплеера */
.video-overlay, .pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.9);
    border: none;
    color: white;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    background: rgba(13, 110, 253, 1);
    transform: scale(1.1);
}

#reviewVideo {
    margin: 8px auto;
}

.video-container {
    position: relative;
}

/* Адаптивность для видео */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}