.underline-hover {
  text-decoration: none;
  color: inherit;
}

.underline-hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}

.underline-hover:hover::after {
  transform: scaleX(1);
}

/* Основные стили аккордеона */
.numbered-accordion {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-family:Montserrat;
}

.accordion-item {
  border-bottom: 2px solid #2D4B59;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background-color: #f8f8f8;
}

.accordion-number {
  font-size: 16px;
  font-weight: 500;
  min-width: 40px;
  margin-right: 20px;
  color: #94A3A8;
  letter-spacing: 0.5px;
}

.accordion-title {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
  color: #222;
}

.accordion-icon {
  transition: transform 0.3s ease;
  margin-left: 20px;
  min-width: 24px;
  text-align: center;
  opacity: 0.7;
    color: #222;
  font-weight: 300;
  font-size: 26px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrappers {
  padding: 0 20px 24px 80px;
}

.accordion-content p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Активное состояние */
.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-header {
  background-color: transparent;
}

.accordion-item.active .accordion-header:hover {
  background-color: transparent;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .accordion-header {
    padding: 15px 16px;
  }
  
  .accordion-number {
    min-width: 32px;
    margin-right: 16px;
    margin-top: 2px;
  }
  
  .accordion-title {
    font-size: 14px;
    padding-right: 10px;
  }
  
  .content-wrappers {
    padding: 0 16px 20px 30px;
  }
  
  .accordion-icon {
    margin-left: 10px;
    margin-top: 2px;
  }
}

@media (max-width: 480px) {
  .accordion-title {
    font-size: 14px;
  }
  
  .content-wrapper {
    padding: 0 16px 20px 20px;
  }
  
  .accordion-number {
    min-width: 28px;
    margin-right: 12px;
  }
}


/* шапка карточек цен */
.uc-price .t-card__title{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    color:white !important;
    background-color:#94A3A8  !important;
    height:120px;
    padding:10px;
    
}
.uc-price .t-card__descr{
    margin:30px;
}

.uc-price .t-btnflex{
     cursor: grab;
}
.uc-price .t-card__btn-wrapper{
    justify-content:center;
}


@media (max-width: 768px) {
.uc-price .t-card__title{
    height:100px;
}

}

@media (max-width: 480px) {
.uc-price .t-card__title{
    height:80px;
}
}

/* кейсы */

    
.tab-button, .tab-button2, .tab-button3, .tab-button4, .tab-button5, .tab-button6{
     cursor: pointer;
     
}
 .tab-button.activate .tn-atom__button-text, .tab-button2.activate .tn-atom__button-text, .tab-button3.activate .tn-atom__button-text{
        background-color: #2D4B59;
        color: #F4F1EF !important; 
        border-color:#2D4B59;
    }
 .tab-button4.activate .tn-atom__button-text, .tab-button5.activate .tn-atom__button-text, .tab-button6.activate .tn-atom__button-text{
        background-color: #2D4B59;
        color: #F4F1EF !important; 
        border-color:#2D4B59;
    }

.tab-content, .tab-content2, .tab-content3, .tab-content4, .tab-content5, .tab-content6  {
  display: none;
}
.tab-content.activate, .tab-content2.activate, .tab-content3.activate, .tab-content4.activate, .tab-content5.activate, .tab-content6.activate {
  display: block;
}


.case-study {
  font-family: montserrat;
  line-height: 1.5;
  color: #274756;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* Контейнер для всего контента */
.content-wrapper {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(39, 71, 86, 0.05);
  border: 1px solid rgba(180, 205, 209, 0.2);
}

/* Заголовки секций */
.content-wrapper h3 {
  color: #274756;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-left: 12px;
  position: relative;
}



/* Секция "Запрос клиента" */
.content-grid {
  background: #f8fafc;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: #274756;
  line-height: 1.6;
  border: 1px solid #b4cdd1;
  margin-bottom: 8px;
  border-left: 3px solid #274756;
}

/* ===== СЕКЦИЯ "СТРАТЕГИЯ"  ===== */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.work-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 15px;
  background: #fafcfd;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: auto;
}

.work-item:hover {
  background: #f0f7f8;
  transform: translateX(3px);
  border-left-color: #274756;
}

.work-number {
  font-size: 14px;
  font-weight: 700;
  color: #274756;
  background: #f0f7f8;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #b4cdd1;
}

.work-text p {
  margin: 0;
  font-size: 14px;
  color: #274756;
  line-height: 1.5;
}

/* ===== СЕКЦИЯ "РЕЗУЛЬТАТЫ"  ===== */
.strategy-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.strategy-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(180, 205, 209, 0.3);
  transition: all 0.2s ease;
  position: relative;
  min-height: auto;
}

.strategy-phase:hover {
  transform: translateX(3px);
  border-color: #94a3a8;
}


.phase-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: #94a3a8;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strategy-phase p {
  margin: 0;
  font-size: 14px;
  color: #274756;
  line-height: 1.5;
}

/* Цвета для номеров результатов */
.strategy-phase:nth-child(1) .phase-title { background: #274756; }
.strategy-phase:nth-child(2) .phase-title { background: #94a3a8; }
.strategy-phase:nth-child(3) .phase-title { background: #6b8287; }
.strategy-phase:nth-child(4) .phase-title { background: #4a5f64; }
.strategy-phase:nth-child(5) .phase-title { background: #274756; }

/* Последний элемент (стоимость услуги) 
.strategy-phase:nth-child(5) {
  background: #f8fafc;
  color: #274756;
  border: 1px solid #b4cdd1;
  margin-top: 10px;
  grid-template-columns: 1fr;
  padding: 15px;
  text-align: left;
}

.strategy-phase:nth-child(5):before {
  display: none;
}

.strategy-phase:nth-child(5) .phase-title {
  background: transparent;
  color: #274756;
  font-size: 16px;
  font-weight: 600;
  width: auto;
  height: auto;
  margin-bottom: 5px;
  justify-content: flex-start;
  opacity: 1;
  text-align: left;
  padding: 0;
}

.strategy-phase:nth-child(5) p {
  color: #274756;
  font-size: 14px;
  margin-top: 5px;
  padding-left: 0;
}
*/
/* Еще более компактная версия на очень маленьких экранах */
@media (max-width: 768px) {
  .case-study {
    padding: 15px 10px;
  }
  
  .content-wrapper {
    padding: 15px;
    border-radius: 10px;
  }
  
  .content-wrapper h3 {
    font-size: 18px;
    margin-bottom: 12px;
    padding-left: 10px;
  }
  
  .content-wrapper h3:before {
    width: 3px;
    height: 14px;
  }
  
  .content-grid {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .work-item,
  .strategy-phase {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .work-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .phase-title {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  
  .work-text p,
  .strategy-phase p {
    font-size: 13px;
  }
  
  .strategy-phase:nth-child(5) {
    padding: 12px;
  }
  
  .work-grid,
  .strategy-content {
    gap: 6px;
  }
}

/* Убираем лишние отступы между секциями */
.tab-content:not(:last-child) {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(180, 205, 209, 0.3);
}

/* Убираем лишние отступы между секциями */
.tab-content2:not(:last-child) {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(180, 205, 209, 0.3);
}

/*  анимация */
.tab-content {
  animation: fadeIn 0.3s ease;
}

/*  анимация */
.tab-content2 {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Плотное расположение нечетных/четных строк */
.work-item:nth-child(odd) {
  background: #fafcfd;
}

.work-item:nth-child(even) {
  background: #ffffff;
}

/* Убираем минимальную высоту */
.work-item,
.strategy-phase {
  min-height: unset;
}

/* Еще более плотная версия для десктопов */
@media (min-width: 769px) {
  .work-item {
    padding: 10px 12px;
  }
  
  .strategy-phase {
    padding: 10px 12px;
  }
  
  .work-grid {
    gap: 6px;
  }
  
  .strategy-content {
    gap: 6px;
  }
}

/* Инлайн-стиль */
.compact-mode .work-item {
  padding: 8px 10px;
  margin-bottom: 2px;
}

.compact-mode .strategy-phase {
  padding: 8px 10px;
  margin-bottom: 2px;
}

.compact-mode .work-grid,
.compact-mode .strategy-content {
  gap: 4px;
}
}