.tk-calc {
  --tkc-blue-dark: #1a3560;
  --tkc-blue:      #1e55b5;
  --tkc-blue-soft: #e8eef8;
  --tkc-orange:    #c94f00;
  --tkc-grey-dark: #232b3a;
  --tkc-grey:      #5e6a80;
  --tkc-grey-light:#f2f4f8;
  --tkc-white:     #ffffff;
  --tkc-border:    #dce1ed;
  --tkc-green:     #1a7a4a;
  --tkc-green-soft:#ecf7f1;
  --tkc-shadow:    0 2px 10px rgba(26,53,96,.10);
  --tkc-shadow-md: 0 4px 20px rgba(26,53,96,.13);
  --tkc-radius:    8px;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  color: var(--tkc-grey-dark);
  font-size: 15px;
  line-height: 1.6;
  background: #eef0f5;
  padding: 28px 0 40px;
}
.tk-calc *, .tk-calc *::before, .tk-calc *::after { box-sizing: border-box; }

/* ── ШАПКА КАЛЬКУЛЯТОРА ── */
.tk-calc .tkc-calc-header {
  background: var(--tkc-blue-dark);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--tkc-radius) var(--tkc-radius) 0 0;
  margin-bottom: 0;
}
.tk-calc .tkc-calc-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.tk-calc .tkc-header-divider { width: 1px; height: 36px; background: rgba(255,255,255,.25); flex-shrink: 0; }
.tk-calc .tkc-header-title { font-size: 15px; opacity: .85; }
.tk-calc .tkc-header-title strong { display: block; font-size: 18px; opacity: 1; }

/* ── КОНТЕЙНЕР ── */
.tk-calc .tkc-container { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ── КАРТОЧКА ── */
.tk-calc .tkc-card {
  background: var(--tkc-white);
  border-radius: var(--tkc-radius);
  box-shadow: var(--tkc-shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.tk-calc .tkc-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tkc-blue-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tk-calc .tkc-card-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--tkc-blue);
  border-radius: 2px;
}

/* ── ФОРМА ВВОДА ── */
.tk-calc .tkc-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 540px) { .tk-calc .tkc-input-grid { grid-template-columns: 1fr 1fr; } }

.tk-calc .tkc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tkc-grey);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.tk-calc .tkc-field input, .tk-calc .tkc-field select {
  width: 100%;
  border: 1.5px solid var(--tkc-border);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 15px;
  color: var(--tkc-grey-dark);
  background: var(--tkc-white);
  transition: border .15s;
  outline: none;
}
.tk-calc .tkc-field input:focus, .tk-calc .tkc-field select:focus { border-color: var(--tkc-blue); }
.tk-calc .tkc-field .unit { font-size: 12px; color: var(--tkc-grey); margin-top: 4px; }

.tk-calc .tkc-options-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.tk-calc .tkc-check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none; }
.tk-calc .tkc-check-label input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--tkc-blue); cursor: pointer; }

/* ── КНОПКИ ── */
.tk-calc .tkc-btn-primary {
  background: var(--tkc-blue); color: #fff; border: none;
  border-radius: 6px; padding: 12px 32px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s; letter-spacing: .3px;
}
.tk-calc .tkc-btn-primary:hover { background: #1748a0; box-shadow: var(--tkc-shadow); }

.tk-calc .tkc-btn-outline {
  background: transparent; color: var(--tkc-blue-dark);
  border: 1.5px solid var(--tkc-border); border-radius: 6px;
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border .15s, background .15s;
}
.tk-calc .tkc-btn-outline:hover { border-color: var(--tkc-blue); background: var(--tkc-blue-soft); }

.tk-calc .tkc-btn-orange {
  background: var(--tkc-orange); color: #fff; border: none;
  border-radius: 6px; padding: 12px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.tk-calc .tkc-btn-orange:hover { background: #a84000; }

/* ── РЕЗУЛЬТАТЫ ── */
.tk-calc #tkc-results { display: none; }
.tk-calc #tkc-results.visible { display: block; }

.tk-calc .tkc-match-banner {
  background: var(--tkc-green-soft);
  border: 1.5px solid #a3d4ba;
  border-radius: var(--tkc-radius);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; font-size: 15px;
}
.tk-calc .tkc-match-banner .icon { font-size: 22px; }
.tk-calc .tkc-match-banner strong { color: var(--tkc-green); }
.tk-calc .tkc-match-banner.warn { background: #fff9ec; border-color: #f0d88a; }
.tk-calc .tkc-match-banner.warn strong { color: #b07800; }

/* ── ТАБЛИЦА СПЕЦИФИКАЦИИ ── */
.tk-calc .tkc-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 6px; }
.tk-calc .tkc-spec-table thead th {
  background: var(--tkc-blue-dark); color: #fff;
  padding: 10px 12px; text-align: left; font-weight: 600;
  font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
}
.tk-calc .tkc-spec-table thead th:first-child { border-radius: 6px 0 0 0; }
.tk-calc .tkc-spec-table thead th:last-child  { border-radius: 0 6px 0 0; }
.tk-calc .tkc-spec-table tbody tr:nth-child(even) { background: #f7f9fc; }
.tk-calc .tkc-spec-table tbody td { padding: 9px 12px; border-bottom: 1px solid var(--tkc-border); vertical-align: middle; }
.tk-calc .tkc-spec-table tbody td:first-child { font-weight: 700; font-family: monospace; font-size: 13px; }
.tk-calc .tkc-spec-table tfoot td { padding: 10px 12px; font-weight: 700; background: var(--tkc-blue-soft); font-size: 14px; }
.tk-calc .tkc-spec-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tk-calc .tkc-spec-table .approx { color: var(--tkc-grey); font-size: 12px; }

.tk-calc .tkc-section-subtitle {
  font-size: 13px; font-weight: 700; color: var(--tkc-grey);
  text-transform: uppercase; letter-spacing: .5px; margin: 20px 0 10px;
}

/* ── МЕТРИКИ ── */
.tk-calc .tkc-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 640px) { .tk-calc .tkc-metrics-grid { grid-template-columns: 1fr 1fr; } }
.tk-calc .tkc-metric-card {
  background: var(--tkc-white); border-radius: var(--tkc-radius);
  box-shadow: var(--tkc-shadow); padding: 16px; text-align: center;
  border-top: 3px solid var(--tkc-blue);
}
.tk-calc .tkc-metric-card.orange { border-top-color: var(--tkc-orange); }
.tk-calc .tkc-metric-card.green  { border-top-color: var(--tkc-green); }
.tk-calc .tkc-metric-card.grey   { border-top-color: #8a96b0; }
.tk-calc .tkc-metric-value { font-size: 26px; font-weight: 800; color: var(--tkc-blue-dark); line-height: 1; margin-bottom: 4px; }
.tk-calc .tkc-metric-card.orange .tkc-metric-value { color: var(--tkc-orange); }
.tk-calc .tkc-metric-card.green  .tkc-metric-value { color: var(--tkc-green); }
.tk-calc .tkc-metric-card.grey   .tkc-metric-value { color: #5e6a80; }
.tk-calc .tkc-metric-unit  { font-size: 14px; font-weight: 600; color: var(--tkc-grey); }
.tk-calc .tkc-metric-label { font-size: 12px; color: var(--tkc-grey); margin-top: 4px; }

/* ── УСЛОВИЯ ПРИМЕНЕНИЯ ── */
.tk-calc .tkc-conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 540px) { .tk-calc .tkc-conditions-grid { grid-template-columns: 1fr; } }
.tk-calc .tkc-condition-item {
  background: var(--tkc-grey-light); border-radius: 6px; padding: 10px 14px;
  font-size: 13px; display: flex; align-items: flex-start; gap: 8px;
}
.tk-calc .tkc-condition-item .ci-icon { flex-shrink: 0; margin-top: 1px; }
.tk-calc .tkc-condition-item strong { display: block; font-size: 12px; color: var(--tkc-grey); text-transform: uppercase; }

/* ── CTA ── */
.tk-calc .tkc-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 20px 24px; background: var(--tkc-blue-soft);
  border-radius: var(--tkc-radius); border: 1.5px solid #c4d4ef;
}
.tk-calc .tkc-cta-text { flex: 1; min-width: 200px; font-size: 15px; }
.tk-calc .tkc-cta-text strong { display: block; color: var(--tkc-blue-dark); }

/* ── БЕЙДЖ СЕРИИ ── */
.tk-calc .tkc-series-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tkc-blue-dark); color: #fff;
  border-radius: 4px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}

/* ── ПОДСКАЗКА И СНОСКА ── */
.tk-calc .tkc-hint { font-size: 12px; color: var(--tkc-grey); margin-top: 10px; padding: 8px 12px; background: var(--tkc-grey-light); border-radius: 5px; }
.tk-calc .tkc-footnote { font-size: 12px; color: var(--tkc-grey); margin-top: 12px; line-height: 1.5; }
