/* ==========================================
   Общие стили калькуляторов ColorClick
   calc-base.css
   ========================================== */

.cc-calc-page {
  background: #f8f9fa;
  padding: 80px 0 120px;
  font-family: 'Montserrat', sans-serif;
}

.cc-calc-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cc-calc-intro {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cc-calc-body {
  max-width: 860px;
  margin: 0 auto;
}

/* --- Блоки --- */
.cc-calc-block {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.cc-calc-block--optional {
  border-style: dashed;
  border-color: #d1d5db;
  background: #fffdf8;
}

.cc-calc-block__header {
  background: rgba(102,126,234,0.04);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.cc-calc-block__num {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-calc-block__title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  flex: 1;
}

.cc-calc-optional-badge {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.cc-calc-block__body {
  padding: 24px;
}

/* --- Hint --- */
.cc-calc-hint {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin: 0 0 16px;
  padding-left: 4px;
}

.cc-calc-field-hint {
  font-size: 12px;
  color: #999;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* --- Row / Field --- */
.cc-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cc-calc-field {
  display: flex;
  flex-direction: column;
}

.cc-calc-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

/* --- Inputs / Selects --- */
.cc-calc-input,
.cc-calc-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.cc-calc-input::-webkit-outer-spin-button,
.cc-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cc-calc-input:focus,
.cc-calc-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.cc-calc-input::placeholder {
  color: #adb5bd;
}

.cc-calc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Результаты --- */
.cc-calc-results {
  margin-top: 32px;
  margin-bottom: 40px;
}

.cc-calc-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cc-calc-result {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.cc-calc-result--highlight {
  background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%);
  border-color: rgba(102,126,234,0.3);
}

.cc-calc-result__label {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  margin-bottom: 8px;
}

.cc-calc-result__value {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.cc-calc-result--highlight .cc-calc-result__value {
  font-size: 32px;
  color: #667eea;
}

.cc-calc-result__sub {
  font-size: 13px;
  color: #28a745;
  font-weight: 600;
  margin-top: 4px;
}

.cc-calc-results__note {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 16px;
  line-height: 1.5;
}

/* --- CTA --- */
.cc-calc-cta {
  background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
}

.cc-calc-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  line-height: 1.4;
}

.cc-calc-cta__sub {
  font-size: 13px;
  color: #999;
  margin: 12px 0 0;
}

/* --- SEO --- */
.cc-calc-seo {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 40px;
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.cc-calc-seo h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  line-height: 1.3;
}

.cc-calc-seo h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 28px 0 12px;
  line-height: 1.3;
}

.cc-calc-seo p {
  margin: 0 0 16px;
}

/* --- Предупреждение --- */
.cc-calc-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #d4a017;
  padding: 12px 16px;
  background: #fffdf0;
  border: 1px solid #f0e0a0;
  border-radius: 10px;
  margin-top: 12px;
}

/* --- Мобильная адаптация --- */
@media (max-width: 768px) {
  .cc-calc-page {
    padding: 50px 0 80px;
  }

.cc-calc-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}
.cc-calc-back:hover {
  color: #1a1a2e;
}

.cc-calc-header {
    margin-bottom: 32px;
  }

  .cc-calc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cc-calc-block__body {
    padding: 20px 16px;
  }

  .cc-calc-results__grid {
    grid-template-columns: 1fr;
  }

  .cc-calc-result--highlight {
    border-color: rgba(102,126,234,0.4);
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
  }

  .cc-calc-cta {
    padding: 28px 20px;
  }

  .cc-calc-seo {
    padding: 28px 20px;
    font-size: 15px;
  }
}
