/* Улучшенные стили для нового сайта */

/* Стили для баннера с адресом */
.address-banner {
  position: relative;
  overflow: hidden;
}

.address-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg-top-ph1.jpg');
  background-position: right top;
  background-repeat: no-repeat;
  background-size: auto 100%;
  opacity: 0.25; /* Увеличили прозрачность фонового изображения для десктопа */
  z-index: 1;
}

.address-banner.bg-secondary {
  background-color: rgba(153, 20, 37, 0.95) !important; /* Вернули исходную непрозрачность фона */
  position: relative;
  z-index: 2;
}

/* Адаптивность для баннера с адресом */
@media (max-width: 768px) {
  .address-banner::before {
    background-size: contain;
    background-position: right center;
    opacity: 0.1; /* Сохраняем меньшую прозрачность на мобильных */
  }
}

.address-banner .container {
  position: relative;
  z-index: 3;
}

/* Сохраняем оригинальные стили для текста */
.address-banner h2,
.address-banner p {
  position: relative;
  z-index: 3;
}

/* Фото нотариуса */
.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  max-width: 250px; /* Further reduced from 300px to 250px */
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gallery-item {
    margin-bottom: 0;
  }
  .gallery-item img {
    margin: 0;
  }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Кнопки услуг */
.services-buttons {
  padding: 3rem 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.services-buttons .row {
  justify-content: center;
  gap: 1.5rem;
}

.services-buttons .btn {
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.services-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.services-buttons .btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.services-buttons .btn-secondary {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

/* Часы работы */
.schedule-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--light-color), white);
}

.working-hours {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.working-hours-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.working-hours-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Мобильное меню */
@media (max-width: 992px) {
  .nav-menu {
    overflow-y: auto;
    padding-bottom: 4rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color); /* Золотистый фон */
    border-radius: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--secondary-color); /* Красная рамка */
    color: var(--secondary-color); /* Красный цвет символа */
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .hamburger.active {
    background: var(--primary-color);
    color: white;
  }
  
  .menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1002;
  }
  
  .menu-close::before,
  .menu-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
  }
  
  .menu-close::before {
    transform: rotate(45deg);
  }
  
  .menu-close::after {
    transform: rotate(-45deg);
  }

  .services-buttons .btn {
    font-size: 0.9rem;
    padding: 1rem;
    margin: 0.5rem;
  }
}

/* Режим работы в шапке */
.schedule-brief {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(104, 94, 59, 0.1);
  border-radius: 6px;
  font-size: 0.9rem;
}

.schedule-brief p {
  margin: 0;
  color: var(--primary-color);
  line-height: 1.4;
}

.schedule-brief strong {
  color: var(--secondary-color);
}

/* Мобильные улучшения */
@media (max-width: 768px) {
  .row.align-items-start {
    flex-direction: column;
  }
  
  .row.align-items-start .col-5,
  .row.align-items-start .col-7 {
    width: 100%;
    padding: 0;
  }
  
  .gallery-item img {
    max-width: 250px;
    margin: 0 auto 1.5rem;
  }

  .services-buttons .col-3 {
    width: 100%;
  }

  .working-hours {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  /* Изменение порядка отображения на мобильных устройствах */
  .main .container .row {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .main .container .row .col-4,
  .main .container .row .col-8 {
    width: 100%;
  }
  
  /* Увеличение отступов текста от краев */
  .main .section {
    padding: 0 15px;
  }
  
  /* Уменьшение расстояния между кнопками */
  .services-buttons .row {
    gap: 0.5rem;
  }
  
  .services-buttons .btn {
    margin-bottom: 0.5rem;
  }
}

/* Дополнительные стили для маленьких экранов */
@media (max-width: 576px) {
  .working-hours-title {
    font-size: 1.5rem;
  }

  .services-buttons {
    padding: 2rem 0;
  }

  .services-buttons .btn {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}
