/* ============================================================
   Good-Remont.by — Replan Calculator (DLE14)
   File: /templates/belik-9-2/css/gr-replan-calc.css
   ============================================================ */

:root{
  /* Акцент стараюсь под “ремонт/стройка”. Если у тебя есть
     свои CSS-переменные — можно заменить на var(--...) */
  --grc-accent: var(--accent, #f3b300);
  --grc-text: inherit;
  --grc-bg: #ffffff;
  --grc-border: rgba(0,0,0,.12);
  --grc-soft: rgba(0,0,0,.04);
  --grc-shadow: rgba(0,0,0,.06);
}

.grc{
  font-family: inherit;
  color: var(--grc-text);
}

.grc, .grc *{
  box-sizing: border-box;
}

.grc__wrap{
  max-width: 1160px;
  margin: 0 auto;
}

.grc__header{
  margin-bottom: 14px;
}

.grc__title{
  margin: 0 0 6px 0;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.15;
}

.grc__sub{
  margin: 0;
  opacity: .78;
  font-size: 14px;
  line-height: 1.45;
}

.grc__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px){
  .grc__grid{
    grid-template-columns: 1.08fr .92fr;
    align-items: start;
  }
}

.grc__card{
  background: var(--grc-bg);
  border: 1px solid var(--grc-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px var(--grc-shadow);
}

.grc__cardTitle{
  margin: 0 0 10px 0;
  font-weight: 900;
  font-size: 16px;
}

.grc__field{
  margin: 0 0 12px 0;
}

.grc__label{
  display: block;
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: 13px;
}

.grc__hint{
  margin: 6px 0 0 0;
  font-size: 12px;
  opacity: .72;
  line-height: 1.35;
}

.grc__input,
.grc__select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.20);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  outline: none;
}

.grc__input:focus,
.grc__select:focus{
  border-color: rgba(0,0,0,.45);
}

.grc__radios{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grc__radio{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  background: rgba(0,0,0,.02);
  cursor: pointer;
  user-select: none;
}

.grc__radio input{
  margin: 0;
}

.grc__checks{
  display: grid;
  gap: 10px;
}

.grc__check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}

.grc__check input{
  margin-top: 3px;
}

.grc__checkTitle{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
}

.grc__checkDesc{
  margin-top: 4px;
  font-size: 12px;
  opacity: .78;
  line-height: 1.35;
}

.grc__divider{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 12px 0;
}

.grc__btnrow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.grc__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}

.grc__btn--primary{
  background: var(--grc-accent);
  color: #111;
}

.grc__btn--ghost{
  background: transparent;
  border: 1px solid rgba(0,0,0,.25);
  color: inherit;
}

.grc__btn:active{
  transform: translateY(1px);
}

.grc__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.grc__badge--ok{
  background: rgba(46, 204, 113, .14);
  border: 1px solid rgba(46, 204, 113, .35);
  color: #1a7f37;
}

.grc__badge--warn{
  background: rgba(241, 196, 15, .14);
  border: 1px solid rgba(241, 196, 15, .35);
  color: #8a6d00;
}

.grc__badge--no{
  background: rgba(231, 76, 60, .14);
  border: 1px solid rgba(231, 76, 60, .35);
  color: #b42318;
}

.grc__badge--info{
  background: rgba(52, 152, 219, .14);
  border: 1px solid rgba(52, 152, 219, .35);
  color: #1d4ed8;
}

.grc__kpi{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (min-width: 560px){
  .grc__kpi{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.grc__kpiItem{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.02);
  border-radius: 14px;
  padding: 10px 12px;
}

.grc__kpiTitle{
  margin: 0 0 6px 0;
  font-size: 11px;
  opacity: .72;
}

.grc__kpiValue{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.grc__list{
  margin: 0;
  padding-left: 18px;
}

.grc__list li{
  margin: 6px 0;
}

.grc__muted{
  font-size: 12px;
  opacity: .75;
  line-height: 1.35;
}

.grc__accordion details{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.grc__accordion summary{
  cursor: pointer;
  font-weight: 900;
  user-select: none;
}

.grc__tag{
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.20);
  background: rgba(0,0,0,.02);
}

/* --- KPI: чтобы текст не вылезал из карточек + 3 колонки вместо 4 --- */
.grc__kpiItem { min-width: 0; }

.grc__kpiTitle,
.grc__kpiValue{
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 560px){
  .grc__kpi{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}