/* Thermo Plus — квиз-калькулятор экономии. Брендинг и шрифты синхронизированы с сайтом (Elementor global kit): --D52127 красный, Inter Tight. Тёмная тема отключена — сайт светлый. */
/* Тема сайта переопределяет display у section/div своими стилями, из-за чего нативный [hidden] перестаёт скрывать элементы — форсируем его явно. */
#thermo-savings-calc [hidden]{display:none !important}
#thermo-savings-calc{
  --bg:#F8F8F8; --surface:#ffffff; --fg:#3A4755; --muted:#5d6b7c; --line:#DCDEDF;
  --brand:#D52127; --brand-soft:#fbe4e5; --accent:#D52127; --accent-soft:#fbe4e5;
  --good:#1e8a5a; --good-soft:#e2f4ea; --warn:#b4530a;
  --display:"Inter Tight",system-ui,sans-serif; --body:"Inter Tight",system-ui,sans-serif;
  --r:14px;
  background:var(--bg);color:var(--fg);font-family:var(--body);font-size:16px;line-height:1.45;
  padding:16px 0 40px;
}
#thermo-savings-calc, #thermo-savings-calc *{box-sizing:border-box}
#thermo-savings-calc.app{max-width:520px;margin:0 auto;padding-inline:16px;transition:max-width .2s ease}
#thermo-savings-calc header.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#thermo-savings-calc .logo{font-family:var(--display);font-weight:800;letter-spacing:.02em;color:var(--brand);font-size:17px}
#thermo-savings-calc .logo span{color:#101220}
#thermo-savings-calc .tag{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
#thermo-savings-calc .progress{height:6px;background:var(--line);border-radius:6px;overflow:hidden;margin-bottom:18px}
#thermo-savings-calc .progress i{display:block;height:100%;background:var(--accent);width:0;transition:width .3s}
#thermo-savings-calc .card{background:var(--surface);border-radius:var(--r);padding:22px 18px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
#thermo-savings-calc h1,#thermo-savings-calc h2,#thermo-savings-calc h3{font-family:var(--display);margin:0;color:var(--fg)}
#thermo-savings-calc h1{font-size:26px;line-height:1.2;font-weight:800}
#thermo-savings-calc h2{font-size:21px;line-height:1.25;font-weight:700}
#thermo-savings-calc h3{font-size:16px;font-weight:700}
#thermo-savings-calc p{margin:0}
#thermo-savings-calc .lead{color:var(--muted);margin-top:8px}
#thermo-savings-calc .step-n{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
#thermo-savings-calc .hint{font-size:13px;color:var(--muted);margin-top:6px}
#thermo-savings-calc .stack{display:flex;flex-direction:column;gap:12px;margin-top:18px}
#thermo-savings-calc .opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:14px}
#thermo-savings-calc .opt{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;background:transparent;color:var(--fg);font:inherit;text-align:left;width:100%}
#thermo-savings-calc .opt small{display:block;color:var(--muted);font-size:13px}
#thermo-savings-calc .opt[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
#thermo-savings-calc .opt:focus-visible,#thermo-savings-calc .btn:focus-visible,#thermo-savings-calc input:focus-visible,#thermo-savings-calc select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#thermo-savings-calc .opt .dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);flex:none}
#thermo-savings-calc .opt[aria-pressed="true"] .dot{border-color:var(--brand);background:var(--brand);box-shadow:inset 0 0 0 3px var(--surface)}
#thermo-savings-calc label.f{display:block;font-size:13px;color:var(--muted);margin-bottom:4px}
#thermo-savings-calc input[type=number],#thermo-savings-calc input[type=text],#thermo-savings-calc input[type=tel],#thermo-savings-calc select{width:100%;padding:11px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:16px}
#thermo-savings-calc .row{display:flex;gap:10px;flex-wrap:wrap}
#thermo-savings-calc .row>*{flex:1 1 120px;min-width:0}
#thermo-savings-calc .seg{display:flex;gap:6px}
#thermo-savings-calc .seg button{flex:1;padding:10px 6px;border:1.5px solid var(--line);border-radius:10px;background:transparent;color:var(--fg);font:inherit;cursor:pointer}
#thermo-savings-calc .seg button[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);font-weight:600}
#thermo-savings-calc .check{display:flex;align-items:center;gap:10px;font-size:15px;cursor:pointer;padding:6px 0}
#thermo-savings-calc .check input{width:20px;height:20px;accent-color:var(--brand)}
#thermo-savings-calc .slider{margin-top:10px}
#thermo-savings-calc .slider .val{font-family:var(--display);font-size:34px;font-weight:800;color:var(--brand);font-variant-numeric:tabular-nums}
#thermo-savings-calc .slider input[type=range]{width:100%;accent-color:var(--accent)}
#thermo-savings-calc .slider .scale{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
#thermo-savings-calc .nav{display:flex;gap:10px;margin-top:22px}
#thermo-savings-calc .btn{padding:13px 18px;border-radius:12px;border:0;font:inherit;font-weight:600;cursor:pointer;font-size:16px}
#thermo-savings-calc .btn.primary{background:var(--accent);color:#fff;flex:1}
#thermo-savings-calc .btn.primary:disabled{opacity:.45;cursor:not-allowed}
#thermo-savings-calc .btn.ghost{background:transparent;color:var(--muted);border:1.5px solid var(--line)}
#thermo-savings-calc .btn.brand{background:var(--brand);color:#fff;flex:1}
#thermo-savings-calc .note{background:var(--accent-soft);border-radius:10px;padding:10px 12px;font-size:14px;margin-top:14px}
#thermo-savings-calc .note.good{background:var(--good-soft)}
#thermo-savings-calc .note.brand{background:var(--brand-soft)}
/* result */
#thermo-savings-calc .hero{background:var(--brand);color:#fff;border-radius:var(--r);padding:22px 18px}
#thermo-savings-calc .hero .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.1em;opacity:.8}
#thermo-savings-calc .hero .big{font-family:var(--display);font-size:38px;font-weight:800;line-height:1.1;margin-top:6px;font-variant-numeric:tabular-nums}
#thermo-savings-calc .hero .big em{font-style:normal;color:#ffd9b0}
#thermo-savings-calc .hero .sub{opacity:.9;margin-top:8px;font-size:15px}
#thermo-savings-calc .kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#thermo-savings-calc .kpi{background:var(--surface);border-radius:12px;padding:12px 14px}
#thermo-savings-calc .kpi b{display:block;font-family:var(--display);font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--brand)}
#thermo-savings-calc .kpi span{font-size:13px;color:var(--muted)}
#thermo-savings-calc .bars{display:grid;gap:14px;margin-top:14px}
#thermo-savings-calc .bar{display:grid;grid-template-columns:72px 1fr auto;gap:8px;align-items:center;font-size:14px}
#thermo-savings-calc .bar .track{height:14px;background:var(--line);border-radius:7px;overflow:hidden}
#thermo-savings-calc .bar .track i{display:block;height:100%;border-radius:7px}
#thermo-savings-calc .bar.before .track i{background:var(--muted)}
#thermo-savings-calc .bar.after .track i{background:var(--good)}
#thermo-savings-calc .bar .v{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
#thermo-savings-calc table{width:100%;border-collapse:collapse;font-size:14px;margin-top:10px}
#thermo-savings-calc th,#thermo-savings-calc td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
#thermo-savings-calc th{font-size:12px;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.06em}
#thermo-savings-calc td.n,#thermo-savings-calc th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#thermo-savings-calc td.good{color:var(--good);font-weight:600}
#thermo-savings-calc .twrap{overflow-x:auto}
/* На узких экранах 4 колонки таблицы (подпись + Сейчас/После/Экономия) не помещались
   без горизонтального скролла, из-за чего заголовок "Экономия" обрезался по краю —
   чуть плотнее шрифт/отступы, чтобы таблица умещалась целиком. */
@media (max-width:480px){
  #thermo-savings-calc table{font-size:12.5px}
  #thermo-savings-calc th,#thermo-savings-calc td{padding:7px 4px}
  #thermo-savings-calc th{font-size:10px;letter-spacing:.02em}
}
#thermo-savings-calc details{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}
#thermo-savings-calc summary{cursor:pointer;font-weight:600;font-family:var(--display);list-style:none;display:flex;justify-content:space-between;align-items:center}
#thermo-savings-calc summary::after{content:"+";color:var(--muted);font-size:20px}
#thermo-savings-calc details[open] summary::after{content:"–"}
#thermo-savings-calc .formula{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;background:var(--bg);padding:8px 10px;border-radius:8px;overflow-x:auto;margin:6px 0}
#thermo-savings-calc .params{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
#thermo-savings-calc .params label.f{margin-bottom:2px}
#thermo-savings-calc .params h4{grid-column:1/-1;margin:10px 0 0;font-family:var(--display);font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
#thermo-savings-calc .spec li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
#thermo-savings-calc .spec li span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
#thermo-savings-calc .spec{list-style:none;padding:0;margin:8px 0 0}
#thermo-savings-calc .fine{font-size:12px;color:var(--muted);margin-top:14px}
#thermo-savings-calc .section{margin-top:12px}
@media (prefers-reduced-motion:reduce){#thermo-savings-calc .progress i{transition:none}}

/* ---------- Адаптив: планшет и десктоп ----------
   Контейнер страницы здесь на самом деле full-width — ширину 520px задаёт только
   .app сам по себе (мобильный «телефонный» дизайн по ТЗ источника). На широких
   экранах даём компоненту больше места, но держим текст в комфортной для чтения
   ширине и используем освободившееся место для многоколоночных сеток. */
@media (min-width:640px){
  #thermo-savings-calc.app{max-width:680px;padding-inline:24px}
  #thermo-savings-calc .card{padding:28px 32px}
  #thermo-savings-calc .hero{padding:28px 32px}
}
@media (min-width:1024px){
  #thermo-savings-calc.app{max-width:860px}
  #thermo-savings-calc .card{padding:36px 44px}
  #thermo-savings-calc .hero{padding:36px 44px}
  #thermo-savings-calc h1{font-size:32px}
  #thermo-savings-calc h1,#thermo-savings-calc .lead{max-width:640px}
  #thermo-savings-calc .hero .big{font-size:46px}
  #thermo-savings-calc .hero .sub{max-width:560px}
  #thermo-savings-calc .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  #thermo-savings-calc .params{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1280px){
  #thermo-savings-calc.app{max-width:960px}
}
