/* ==========================================
   Специфичные стили: Круг Освальда
   calc-oswald.css
   ========================================== */

/* Сетка цветных чипсов (6 цветов Освальда) */
.cc-calc-oswald-wheel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .cc-calc-oswald-wheel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .cc-calc-oswald-wheel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cc-calc-oswald-chip {
  background: #ffffff !important;
  border: 2px solid #e8e8e8 !important;
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.cc-calc-oswald-chip:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12) !important;
}

.cc-calc-oswald-chip--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 1px #667eea !important;
}

.cc-calc-oswald-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.cc-calc-oswald-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748 !important;
}

.cc-calc-oswald-chip--active .cc-calc-oswald-title {
  color: #667eea !important;
}

.cc-calc-oswald-desc {
  font-size: 11px;
  color: #718096 !important;
  text-align: center;
  line-height: 1.2;
}

.cc-calc-oswald-chip--active .cc-calc-oswald-desc {
  color: #4c51bf !important;
}

/* Сетка интенсивности */
.cc-calc-intensity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .cc-calc-intensity-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-intensity-chip {
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.cc-calc-intensity-chip strong {
  font-size: 14px;
  color: #2d3748 !important;
}

.cc-calc-intensity-chip small {
  font-size: 11px;
  color: #718096 !important;
}

.cc-calc-intensity-chip:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
}

.cc-calc-intensity-chip--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
}

.cc-calc-intensity-chip--active strong {
  color: #667eea !important;
}

/* Сравнительный блок пары */
.cc-calc-pair-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
}

@media (max-width: 640px) {
  .cc-calc-pair-display {
    flex-direction: column;
    text-align: center;
  }
}

.cc-calc-pair-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-calc-pair-label {
  font-size: 11px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-calc-pair-val {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .cc-calc-pair-val {
    justify-content: center;
  }
}

.cc-calc-pair-val strong {
  font-size: 18px;
  color: #2d3748;
}

.cc-calc-pair-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cc-calc-pair-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #667eea;
  font-weight: 800;
}

.cc-calc-pair-connector span {
  font-size: 26px;
  line-height: 1;
}

.cc-calc-pair-connector small {
  font-size: 11px;
  text-transform: uppercase;
  color: #a0aec0;
}

/* Сетка результатов на 4 карточки */
.cc-calc-results__grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .cc-calc-results__grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .cc-calc-results__grid--4 {
    grid-template-columns: 1fr;
  }
}

/* Детальные карточки инфо */
.cc-calc-detail-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px 18px;
}

.cc-calc-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}

.cc-calc-detail-text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}

/* Блок профессионального совета */
.cc-calc-advice-box {
  background: #fff;
  border-left: 4px solid #667eea;
  padding: 14px 16px;
  border-radius: 4px 8px 8px 4px;
  margin-top: 14px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Шаги алгоритма */
.cc-calc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .cc-calc-steps-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-step {
  background: #fafbff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 16px;
  position: relative;
}

.cc-calc-step__num {
  width: 28px;
  height: 28px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cc-calc-step__title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}

.cc-calc-step__text {
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
}

/* Таблица шпаргалки */
.cc-calc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}

.cc-calc-table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.cc-calc-table-custom th {
  background: rgba(102, 126, 234, 0.06);
  color: #667eea;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.cc-calc-table-custom td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #2d3748;
  vertical-align: middle;
}

.cc-calc-table-custom tr:last-child td {
  border-bottom: none;
}

.cc-calc-table-custom tr:hover td {
  background: #fafbff;
}