/* ==========================================
   Специфичные стили: Интервал окрашивания корней
   calc-touchup.css
   ========================================== */

/* Сетка полей ввода */
.cc-calc-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 680px) {
  .cc-calc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Карточки техник */
.cc-calc-touch-tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .cc-calc-touch-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .cc-calc-touch-tech-grid {
    grid-template-columns: 1fr;
  }
}

.cc-calc-touch-chip {
  background: #ffffff !important;
  border: 1px solid #d2d6dc !important;
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: all 0.2s ease !important;
  outline: none !important;
  text-align: center;
}

.cc-calc-touch-chip:hover {
  background: #f7f9ff !important;
  border-color: #667eea !important;
  transform: translateY(-2px);
}

.cc-calc-touch-chip--active {
  background: #eef2ff !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 1px #667eea !important;
}

.cc-calc-touch-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.cc-calc-touch-title {
  font-size: 13px;
  font-weight: 700;
  color: #2d3748 !important;
  line-height: 1.2;
}

.cc-calc-touch-chip--active .cc-calc-touch-title {
  color: #667eea !important;
}

.cc-calc-touch-sub {
  font-size: 11px;
  color: #718096 !important;
}

.cc-calc-touch-chip--active .cc-calc-touch-sub {
  color: #4c51bf !important;
}

/* Баннер даты следующей записи */
.cc-calc-date-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
}

@media (max-width: 640px) {
  .cc-calc-date-banner {
    flex-direction: column;
    text-align: center;
  }
}

.cc-calc-date-icon {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
}

.cc-calc-date-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cc-calc-date-sublabel {
  font-size: 11px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-calc-date-title {
  font-size: 22px;
  font-weight: 800;
  color: #667eea;
  line-height: 1.2;
}

.cc-calc-date-desc {
  font-size: 13px;
  color: #4a5568;
  margin: 2px 0 0;
}

/* Сетка результатов на 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-advice-box {
  background: #fff;
  border-left: 4px solid #667eea;
  padding: 14px 16px;
  border-radius: 4px 8px 8px 4px;
  margin-top: 16px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Таблица шпаргалки */
.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;
}