/* ============================================================
   Сторінка /calculator — мінімальна версія (v2)
   Шкала: h1 30/800 · h2 22/800 · текст 14/500 · таблиця 13 · підпис 12 · дрібний 11
   Кольори: фон #F4F4F4 · картка #fff · лінія #ECECEC · текст #000 · приглушений #616161
   ============================================================ */
.mc {
  --mc-orange: linear-gradient(90deg, #E88742 0%, #E3A033 100%);
  --mc-green: #2E7D32;
  --mc-red: #D8322C;
  --mc-muted: #616161;
  --mc-line: #ECECEC;
  --mc-chip: #F1F1F1;
  font-family: "Montserrat", "Inter", sans-serif;
  color: #000;
  font-size: 14px;
  line-height: 1.45;
}
.mc * { box-sizing: border-box; }
.mc [hidden] { display: none !important; }
.mc__card { background: #fff; border-radius: 20px; padding: 28px 30px; margin-bottom: 16px; }
.mc__h1 { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 0 0 10px; }
.mc__h1 span { background: var(--mc-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc__h2 { font-size: 22px; font-weight: 800; line-height: 1.15; margin: 0; }
.mc__sub { margin: 4px 0 0; font-size: 12px; color: var(--mc-muted); }
.mc__lead { margin: 0 0 20px; font-size: 14px; color: #3A3A3A; max-width: 560px; }

/* ---------- шапка ---------- */
.mc__hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: center; }
.mc__hero-art img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.mc__market { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mc__mk { background: #F4F4F4; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.mc__mk b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.mc__mk span { display: block; margin-top: 2px; font-size: 11px; color: var(--mc-muted); }
.mc__mk--accent { background: #FFF3E8; }

/* ---------- тариф (липка панель) ---------- */
.mc__bar { position: sticky; top: 8px; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .10); }
.mc__bar-label { font-size: 13px; font-weight: 700; margin-right: 4px; }
.mc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc__chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; background: var(--mc-chip); border: none; border-radius: 10px; padding: 0 13px;
  color: #000; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
.mc__chip small { font-weight: 500; color: var(--mc-muted); font-size: 11px; }
.mc__chip:hover { background: #E6E6E6; }
.mc__chip.is-active { background: #000; color: #fff; }
.mc__chip.is-active small { color: #BDBDBD; }
.mc__custom { display: inline-flex; align-items: center; gap: 6px; height: 36px; background: var(--mc-chip); border-radius: 10px; padding: 0 6px 0 13px; font-size: 13px; font-weight: 700; cursor: text; }
.mc__custom.is-active { background: #000; color: #fff; }
.mc__custom input { width: 60px; height: 26px; border: none; border-radius: 7px; background: #fff; padding: 0 8px; font: inherit; font-weight: 700; color: #000; text-align: right; outline: none; }
.mc__bar-eq { margin-left: auto; font-size: 12px; color: var(--mc-muted); white-space: nowrap; }
.mc__bar-eq b { color: #000; font-size: 13px; }

/* ---------- інструменти секції ---------- */
.mc__sechead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mc__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc__seg { display: inline-flex; background: var(--mc-chip); border-radius: 10px; padding: 3px; }
.mc__seg button { height: 30px; border: none; border-radius: 8px; background: transparent; padding: 0 12px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #616161; cursor: pointer; }
.mc__seg button.is-active { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mc__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; }
.mc__toggle input { width: 16px; height: 16px; accent-color: #000; margin: 0; }
.mc__search { height: 36px; width: 150px; border: 1px solid #E1E1E1; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 13px; outline: none; }
.mc__search:focus { border-color: #000; }
.mc__coins { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.mc__coins::-webkit-scrollbar { display: none; }
.mc__coins .mc__chip { height: 32px; padding: 0 12px; font-size: 12px; flex: 0 0 auto; }

/* ---------- таблиця ---------- */
.mc__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mc__table { width: 100%; border-collapse: collapse; }
.mc__table th { padding: 0 10px 8px; border-bottom: 1px solid var(--mc-line); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-muted); text-align: right; white-space: nowrap; }
.mc__table th.l { text-align: left; }
.mc__table td { padding: 14px 10px; border-bottom: 1px solid var(--mc-line); vertical-align: middle; font-size: 13px; text-align: right; white-space: nowrap; }
.mc__table tr:last-child td { border-bottom: none; }
.mc__table tr:hover td { background: #FAFAFA; }
.mc__table td b { display: block; font-weight: 700; font-size: 14px; }
.mc__table td small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--mc-muted); }
.mc__td-rank { width: 30px; text-align: left !important; font-weight: 700; color: #9A9A9A; }
.mc__td-model { text-align: left !important; white-space: normal !important; }
.mc__model { display: flex; align-items: center; gap: 12px; }
.mc__model img { flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #F7F7F7; }
.mc__model-name { display: inline-block; font-weight: 700; font-size: 14px; color: #000; text-decoration: none; line-height: 1.2; }
.mc__model-name:hover { text-decoration: underline; color: #000; }
.mc__model-meta { margin-top: 3px; font-size: 11.5px; color: var(--mc-muted); }
.mc__model-meta .mc__coin { margin-right: 4px; }
.mc__status { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--mc-green); }
.mc__status--9 { color: #9A6B00; } .mc__status--10 { color: #4E6DB8; } .mc__status--5 { color: #9A9A9A; }
.mc__status i { font-style: normal; font-weight: 600; color: #B4561C; margin-left: 8px; }
.mc__status i::before { content: "· "; color: #BDBDBD; }
.mc__coin { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--mc-orange); color: #010405; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.mc__table .pos b { color: var(--mc-green); } .mc__table .neg b { color: var(--mc-red); }
.mc__td-net b { font-size: 16px; font-weight: 800; }
.mc__td-act { width: 120px; }
.mc__act { display: flex; gap: 6px; justify-content: flex-end; }
.mc__btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: none; border-radius: 10px;
  background: #000; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease; }
.mc__btn:hover { background: #2B2B2B; color: #fff; text-decoration: none; }
.mc__ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; border-radius: 10px; background: var(--mc-chip); font-size: 16px; cursor: pointer; }
.mc__ico:hover { background: #E6E6E6; }
.mc__more { display: block; margin: 14px auto 0; height: 40px; padding: 0 20px; border: 1px solid #E1E1E1; border-radius: 10px; background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mc__more:hover { background: #F7F7F7; }
.mc__empty { padding: 24px; text-align: center; color: var(--mc-muted); font-size: 13px; }

/* вибір версії (хешрейт) і поставки (місяць + ціна) — один компонент */
.mc__opts { margin-top: 8px; }
.mc__opts-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mc-muted); margin-bottom: 5px; }
.mc__opts-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.mc__opt { min-width: 88px; padding: 6px 10px; border: 1px solid #E1E1E1; border-radius: 9px; background: #fff; text-align: left; font-family: inherit; color: #000; cursor: pointer; line-height: 1.2; transition: background .15s ease, border-color .15s ease; }
.mc__opt:hover { border-color: #000; }
.mc__opt b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mc__opt small { display: block; font-size: 11px; font-weight: 500; color: var(--mc-muted); margin-top: 1px; }
.mc__opt.is-active { background: #000; border-color: #000; color: #fff; }
.mc__opt.is-active small { color: #BDBDBD; }
.mc__opts-grid--1 .mc__opt { min-width: 0; padding: 5px 10px; }

/* ---------- сонце: вибір асика ---------- */
.mc__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px 30px; }
.mc__pick select { height: 40px; min-width: 320px; max-width: 100%; border: 1px solid #E1E1E1; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; background: #fff; }
.mc__pick .mc__btn { background: var(--mc-chip); color: #000; }

/* ---------- CTA і джерела ---------- */
.mc__cta { display: grid; grid-template-columns: minmax(0, 1fr) 500px; align-items: end; gap: 16px; padding: 36px 40px 36px 40px; background: linear-gradient(223deg, #2B2B2B 1.27%, #000 98.73%); color: #fff; }
.mc__cta .mc__h2 { color: #fff; font-size: 28px; }
.mc__cta p { margin: 8px 0 18px; font-size: 15px; color: #BDBDBD; max-width: 600px; }
.mc__steps { display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; }
.mc__step { display: flex; align-items: center; gap: 10px; }
.mc__step i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mc-orange); color: #000; font-style: normal; font-weight: 800; font-size: 11.5px; }
.mc__step b { font-size: 13.5px; font-weight: 700; color: #fff; }
.mc__step span { font-size: 12.5px; color: #A9A9A9; }
.mc__step span::before { content: " — "; color: #6E6E6E; }
.mc__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mc__cta .mc__btn { height: 50px; padding: 0 22px; font-size: 14px; border-radius: 12px; gap: 9px; }
.mc__btn--tg { background: #2AABEE; color: #fff; }
.mc__btn--tg:hover { background: #229ED9; color: #fff; }
.mc__btn--call { background: #22B14C; color: #fff; }
.mc__btn--call:hover { background: #1C9A40; color: #fff; }
.mc__cta-note { display: block; margin-top: 14px; font-size: 12.5px; color: #A9A9A9; }
.mc__cta-art img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; object-position: bottom; margin-bottom: -30px; }
.mc__foot { margin: 0 4px 8px; font-size: 11px; color: var(--mc-muted); line-height: 1.5; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .mc__hero { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 991px) {
  .mc__card { padding: 22px 18px; }
  .mc__h1 { font-size: 26px; }
  .mc__h2 { font-size: 20px; }
  .mc__hero { grid-template-columns: 1fr; }
  .mc__hero-art { order: -1; }
  .mc__hero-art img { max-height: 180px; }
  .mc__market { grid-template-columns: 1fr 1fr; }
  .mc__bar { top: 4px; }
  .mc__bar-eq { margin-left: 0; width: 100%; }
  .mc__pick { margin-left: 0; }
  .mc__pick select { min-width: 0; width: 100%; }
  .mc__search { width: 100%; }
  /* таблиця -> картки */
  .mc__table thead { display: none; }
  .mc__table, .mc__table tbody, .mc__table tr, .mc__table td { display: block; }
  .mc__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--mc-line); }
  .mc__table tr:hover td { background: transparent; }
  .mc__table td { padding: 0; border: none; text-align: left; white-space: normal; }
  .mc__table td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--mc-muted); margin-bottom: 2px; }
  .mc__table td.mc__td-rank { display: none; }
  .mc__td-model { grid-column: 1 / -1; }
  .mc__td-act { grid-column: 2; align-self: end; }
  .mc__act { justify-content: flex-end; }
  .mc__act .mc__btn { padding: 0 18px; }
}
@media (max-width: 600px) {
  .mc__card { padding: 18px 14px; border-radius: 16px; }
  .mc__h1 { font-size: 24px; }
  .mc__bar { position: static; }
  .mc__cta { grid-template-columns: 1fr; padding: 24px 18px; }
  .mc__step { align-items: flex-start; }
  .mc__step i { margin-top: 1px; }
  .mc__step span { display: block; }
  .mc__step span::before { content: none; }
  .mc__cta-art { order: -1; }
  .mc__cta-art img { max-height: 240px; margin-bottom: 0; }
  .mc__cta .mc__btn { width: 100%; }
}
@media (min-width: 992px) { .mc__coins { flex-wrap: wrap; overflow: visible; } }

/* ---------- мобілка: вибір поставки/версії та крок 1 сонця ---------- */
@media (max-width: 991px) {
  .mc__opts-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .mc__opts-grid--1 { display: flex; }
  .mc__opts-grid .mc__opt { width: 100%; min-width: 0; }
  .mc__opts-grid--1 .mc__opt { width: auto; }
  #mc .mc__pick { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 14px; }
  #mc .mc__pick select { width: 100%; }
  #mc .mc__pick .mc__btn { width: 100%; height: 40px; }
  #mc .sc__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
  #mc .sc__spec { padding: 10px 12px; margin: 0; }
  #mc .sc__spec--income { grid-column: 1 / -1; }
  #mc .sc__spec--qty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; margin: 0; }
  #mc .sc__spec--qty b { margin: 0; }
}

/* сонячний блок на сторінці калькулятора: Montserrat замість Bebas (як на картці товару) */
#mc .sc { font-family: "Montserrat", "Inter", sans-serif; }
#mc .sc__title { font-family: "Montserrat", sans-serif; font-weight: 800; text-transform: none; font-size: 30px; line-height: 1.1; }
#mc .sc__net { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 44px; line-height: 1; }
@media (max-width: 767px) { #mc .sc__title { font-size: 26px; } #mc .sc__net { font-size: 40px; } }

/* SEO-текст внизу сторінки — як модуль html на категоріях */
#mc .section-seo-text { margin-bottom: 16px; }
#mc .section-seo-text .seo-text h2 { font-size: 22px; font-weight: 800; }
#mc .section-seo-text .seo-text p { font-size: 14px; }
