/* Branch Tabs Styles */
.branch-tabs {
  margin-bottom: 50px;
}

.tabs-header {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 600px;
  margin: 0 0 40px 0;
}

.tab-button {
  flex: 1;
  background: #ffffff;
  border: none;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #364e52;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-button:last-child {
  /* No special styling needed */
}

.tab-button.active {
  background: #e1002e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 0, 46, 0.3);
}

.tab-button:hover:not(.active) {
  background: #f8f9fa;
  color: #e1002e;
}

.tab-button .city-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.tab-button .city-type {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Fade In Animation */
.tab-content.fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Fade Out Animation */
.tab-content.fade-out {
  animation: fadeOutDown 0.3s ease-in forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

/* Branch header styling */
.branch-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #e1002e;
}

/* Branch header animation */
.tab-content.fade-in .branch-header {
  animation: scaleIn 0.4s ease-out backwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.branch-header h3 {
  color: #0c1e21;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.branch-header p {
  color: #364e52;
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* Enhanced contact items for branches */
.tab-content .contact-item.style-2 {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

/* Staggered animation for contact items */
.tab-content.fade-in .contact-item.style-2:nth-child(1) {
  animation: slideInRight 0.5s ease-out 0.1s backwards;
}

.tab-content.fade-in .contact-item.style-2:nth-child(2) {
  animation: slideInRight 0.5s ease-out 0.2s backwards;
}

.tab-content.fade-in .contact-item.style-2:nth-child(3) {
  animation: slideInRight 0.5s ease-out 0.3s backwards;
}

.tab-content.fade-in .contact-item.style-2:nth-child(4) {
  animation: slideInRight 0.5s ease-out 0.4s backwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tab-content .contact-item.style-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-top-color: #e1002e;
}

.tab-content .contact-icon {
  background: linear-gradient(135deg, #e1002e 0%, #b8001f 100%);
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(225, 0, 46, 0.25);
}

.tab-content .contact-icon i {
  color: #ffffff;
  font-size: 28px;
}

.tab-content .contact-title {
  color: #0c1e21;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.tab-content .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tab-content .contact-list li {
  margin-bottom: 8px;
}

.tab-content .contact-list li:last-child {
  margin-bottom: 0;
}

.tab-content .contact-list a {
  color: #364e52;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-content .contact-list a:hover {
  color: #e1002e;
}

.tab-content p {
  color: #364e52;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tabs-header {
    flex-direction: column;
    gap: 12px;
  }

  .tab-button {
    /* Отступы уже заданы через gap */
  }

  .tab-button:last-child {
    /* Отступы уже заданы через gap */
  }
  
  .tab-button .city-name {
    font-size: 14px;
  }
  
  .tab-button .city-type {
    font-size: 11px;
  }
  
  .branch-header h3 {
    font-size: 20px;
  }
  
  .branch-header p {
    font-size: 14px;
  }
}