/* Обособленный компонент с префиксом path- */
.path-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  margin: 0 auto;
}

.path-section .path-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.path-section .path-card {
  background-color: #0D96F71A;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
}

/* Структура для десктопа */
@media (min-width: 768px) {
  .path-section .path-card {
    flex-direction: row;
    align-items: center;
  }
}

.path-section .path-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 40%;
}

.path-section .path-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.path-section .path-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 0;
  width: 100%;
}

.path-section .path-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-left: 80px;
  width: 100%;
}

.path-section .path-step::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: -16px;
  width: 2px;
  background-color: #0D96F7;
}

.path-section .path-step:last-child::before {
  display: none;
}

.path-section .path-step-number {
  width: 80px;
  height: 40px;
  border-radius: 24px;
  background-color: #0D96F7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.path-section .path-step-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.6;
  align-self: center;
  margin: 5px 0px 5px 20px;
  width: calc(100% - 100px);
}

.path-section .path-diagram {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 60%;
}

.path-section .diagram-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Изменение на десктопе: горизонтальное расположение */
@media (min-width: 768px) {
  .path-section .diagram-container {
    flex-direction: row;
    gap: 32px;
  }
  
  .path-section .diagram-stats-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
  }
  
  .path-section .diagram-chart {
    flex: 1;
  }
}

.path-section .diagram-stats-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.path-section .diagram-investments-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
}

.path-section .diagram-investments {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-section .diagram-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.path-section .diagram-stat-label {
  font-size: 16px;
  color: #4a5568;
  font-weight: 400;
}

.path-section .diagram-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.path-section .diagram-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.path-section .diagram-chart-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
  text-align: center;
}

.path-section .chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .path-section .chart-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: 100%;
  }
}

.path-section .chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Исправленная диаграмма */
.path-section .chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
}

.path-section .chart::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
}

.path-section .chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.path-section .chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #4a5568;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.path-section .legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.path-section .diagram-earnings {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  margin-top: 16px;
}

.path-section .diagram-earnings-title {
  font-size: 16px;
  color: #4a5568;
  font-weight: 400;
}

.path-section .diagram-earnings-value {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.path-section .path-button {
  background-color: #0D96F7;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  align-self: flex-start;
  transition: background-color 0.2s ease;
}

.path-section .path-button:hover {
  background-color: #0a7dd6;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .path-section .path-card {
    padding: 30px 20px;
  }

  .path-section .path-title {
    font-size: 28px;
  }

  .path-section .path-step-text {
    font-size: 15px;
  }

  .path-section .diagram-stats {
    gap: 8px;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .path-section .path-card {
    flex-direction: column;
    padding: 30px 20px;
    width: 90%;
    margin: 0 auto;
  }

  .path-section .path-content {
    max-width: 100%;
  }

  .path-section .path-title {
    font-size: 24px;
  }

  .path-section .path-steps {
    padding-left: 0;
    width: 100%;
  }

  .path-section .path-step {
    padding-left: 80px;
    position: relative;
    width: 100%;
  }

  .path-section .path-step::before {
    display: none;
  }

  .path-section .path-step-number {
    position: absolute;
    left: 0;
    top: 0;
  }

  .path-section .path-step-text {
    width: calc(100% - 100px);
  }

  .path-section .path-button {
    width: 100%;
    justify-content: center;
  }

  .path-section .path-diagram {
    width: 90%;
    margin: 0 auto;
    max-width: 100%;
  }

  .path-section .diagram-stats-container {
    width: 100%;
    margin: 0 auto;
  }

  .path-section .diagram-container {
    align-items: center;
  }

  .path-section .chart-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .path-section .chart-container {
    margin: 24px auto;
  }

  .path-section .chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .path-section .chart-legend-item {
    flex: 0 0 calc(50% - 12px);
    justify-content: center;
    min-width: auto;
  }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
  .path-section .path-card {
    padding: 24px 16px;
    width: 90%;
    margin: 0 auto;
  }

  .path-section .path-title {
    font-size: 22px;
  }

  .path-section .path-step-text {
    font-size: 14px;
    width: calc(100% - 100px);
  }

  .path-section .path-diagram {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    max-width: 100%;
  }

  .path-section .diagram-container {
    gap: 16px;
    align-items: center;
  }

  .path-section .diagram-stats-container {
    width: 100%;
    margin: 0 auto;
  }

  .path-section .diagram-investments-title {
    font-size: 22px;
  }

  .path-section .diagram-stat-label {
    font-size: 16px;
  }

  .path-section .diagram-stat-value {
    font-size: 20px;
  }

  .path-section .diagram-chart-title {
    font-size: 20px;
  }

  .path-section .chart {
    width: 120px;
    height: 120px;
  }

  .path-section .chart-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .path-section .chart-legend-item {
    flex: 0 0 calc(50% - 10px);
    font-size: 14px;
    justify-content: center;
    min-width: auto;
  }

  .path-section .legend-color {
    width: 14px;
    height: 14px;
  }

  .path-section .diagram-earnings-title {
    font-size: 16px;
  }

  .path-section .diagram-earnings-value {
    font-size: 18px;
  }
}