/* Мега-меню с табами */
.services-mega-menu {
  display: block;
  min-width: 700px;
  max-width: 90vw;
}
/* Табы */
.services-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #d3b677;
  margin-bottom: 20px;
  padding-bottom: 10px;
}
.services-tab {
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: normal;
    min-width: 170px;
	line-height: 1.75;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.services-tab div {
	line-height: normal;
    margin-bottom: 5px;
}
.services-tab a {
	font-weight: normal;
	text-transform: none;
	color: #4f4247;
	display: none;
}
.services-tab:hover {
  color: #333;
}
.services-tab.active {
  background: #f5f0e8;
}
.services-tab.active a {
	display: block;
}
/* Контент табов */
.services-tabs-content {
  max-height: 400px;
  overflow-y: auto;
}
.services-tabs-content::-webkit-scrollbar {
  width: 4px;
}
.services-tabs-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.services-tabs-content::-webkit-scrollbar-thumb {
  background: #d3b677;
  border-radius: 10px;
}
.services-tab-panel {
  display: none;
}
.services-tab-panel.active {
  display: block;
}
.services-tab-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 0;
}
.services-tab-panel__column {
	display: flex;
	flex-direction: column;
	padding: 0 10px;
	border-right: 1px solid #efefef;
}
.services-tab-panel__column:last-child,
.services-tab-panel__column:nth-child(4n) {
    border-right: none;
}
.services-tab-panel__title {
	font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: normal;
}
.services-tab-panel__title a {
  color: #4f4247;
  text-decoration: none;
}
.services-tab-panel__title a:hover {
  color: #b89e5a;
  text-decoration: underline;
}
.services-tab-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-tab-panel__item {
	line-height: normal;
}
.services-tab-panel__item a {
  color: #444;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  padding: 5px 0;
}
.services-tab-panel__item a:hover {
  color: #d3b677;
  padding-left: 6px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .services-mega-menu {
    min-width: auto;
    width: 100%;
	display: none;
  }
  
  .services-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 3px;
  }
  
  .services-tab {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  
  .services-tab-panel__grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .services-tab-panel__grid {
    grid-template-columns: 1fr;
  }
}

/* Для мобильного меню */
.mobile-only .services-tabs {
  flex-wrap: wrap;
}

.mobile-only .services-tab-panel__grid {
  grid-template-columns: 1fr;
}

.mobile-only .menu-sub--services {
  max-height: none;
  overflow-y: visible;
  padding: 10px 0 !important;
  background: transparent;
  box-shadow: none;
}

/* Базовый фон для выпадающего меню */
.menu__item--services {
	padding: 25px 0;
}
.menu-wrapper .menu__item--services {
	padding: 0;
}
.menu-sub--services {
	background: #ffffff;
	border-radius: 4px;
	left: -100% !important;
}

.services-mega-menu .consult-block {
    display: block;
    background: #f5f0e8;
    border-radius: 4px;
    margin-top: 10px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
	align-items: center;
}
.services-mega-menu .consult-block p {
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
}
.services-mega-menu .consult-block p span {
    font-weight: 600;
    font-size: 14px;
}
.services-mega-menu .consult-block a {
    background: #c8a859;
}



.services-tab-panel__list .hidden-item {
    display: none;
}

.services-tab-panel__list.show-all .hidden-item {
    display: list-item;
}

.show-more-btn {
    color: #4f4247;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.3s ease;
    display: inline-block;
    user-select: none;
    line-height: normal;
	padding: 5px 0;
    font-weight: 500;
}

.show-more-btn:hover {
    color: #b89a5a;
    text-decoration: underline;
}

.show-more-btn .show-less-text {
    display: none;
}

.show-more-btn.expanded .show-more-text {
    display: none;
}

.show-more-btn.expanded .show-less-text {
    display: inline;
}