/* Калькуляторы GiGas — виджет для iframe. Токены и Nekst — как в petr:home (page.css). Имена классов прототипа сохранены. */
@font-face { font-family: 'Nekst'; font-weight: 400; font-style: normal; font-display: swap; src: url('/local/templates/2025/fonts/nekst/Nekst-Regular-Web.woff2') format('woff2'), url('/local/templates/2025/fonts/nekst/Nekst-Regular-Web.woff') format('woff'); }
@font-face { font-family: 'Nekst'; font-weight: 500; font-style: normal; font-display: swap; src: url('/local/templates/2025/fonts/nekst/Nekst-Medium-Web.woff2') format('woff2'), url('/local/templates/2025/fonts/nekst/Nekst-Medium-Web.woff') format('woff'); }
@font-face { font-family: 'Nekst'; font-weight: 600 900; font-style: normal; font-display: swap; src: url('/local/templates/2025/fonts/nekst/Nekst-SemiBold-Web.woff2') format('woff2'), url('/local/templates/2025/fonts/nekst/Nekst-SemiBold-Web.woff') format('woff'); }

:root {
  --gigas-red: #d12e28;
  --gigas-red-dark: #b22722;
  --gigas-ink: #000000;
  --gigas-graphite: #414141;
  --gigas-graphite-dark: #2e2e2e;
  --gigas-text: #4f4f4f;
  --gigas-muted: #767676;
  --gigas-line: #e1e1e1;
  --gigas-line-strong: #b5b5b5;
  --gigas-surface: #f6f6f6;
  --gigas-surface-grey: #e9e9e9;
  --gigas-white: #ffffff;
  --gigas-yellow: #ffd250;
  --gigas-blue: #1e96af;
  --gigas-red-tint: rgba(209, 46, 40, 0.08);
  --gigas-focus: 0 0 0 2px #ffffff, 0 0 0 4px #1e96af;
  --r: 16px;
  --rs: 12px;
  --sh: none;
  --note: #fff6d6;      /* dev-пометки (?debug=1) */
  --note-b: #e6c453;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Nekst", Arial, sans-serif; font-weight: 400; background: var(--gigas-white); color: var(--gigas-ink); font-size: 15px; line-height: 1.2; -webkit-font-smoothing: antialiased; }
a { color: var(--gigas-ink); }
button { font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }   /* 19.10 р.10: iOS красит текст кнопок системным синим — цвет как у страницы */
.svgi { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.12em; }
@keyframes fadeUp {
        from {
          opacity: 0;
         
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
@keyframes pop {
        0% {
          transform: scale(0.94);
          opacity: 0;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
body.screen-enter #app > * { animation: fadeUp 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
body.screen-enter .res > *,
body.screen-enter .qcard > * { animation: fadeUp 0.45s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.res > *:nth-child(2) { animation-delay: 0.06s; }
.res > *:nth-child(3) { animation-delay: 0.12s; }
.res > *:nth-child(4) { animation-delay: 0.18s; }
.res > *:nth-child(5) { animation-delay: 0.24s; }
body.screen-enter .kit .kcard { animation: fadeUp 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.kit .kcard:nth-child(3) { animation-delay: 0.07s; }
.kit .kcard:nth-child(4) { animation-delay: 0.14s; }
.kit .kcard:nth-child(5) { animation-delay: 0.2s; }
.kit .kcard:nth-child(6) { animation-delay: 0.26s; }
.mback.open .modal { animation: pop 0.28s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 18px 20px 100px; }
.h1 { font-size: 30px; font-weight: 600; margin-bottom: 6px; }
.sub { color: var(--gigas-muted); margin-bottom: 22px; max-width: 640px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.tile { background: var(--gigas-white); border: 1px solid var(--gigas-line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); cursor: pointer; transition: transform 0.2s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.2s; display: flex; flex-direction: column; gap: 9px; text-align: left; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--gigas-red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
@media (hover: hover) { .tile:hover { box-shadow: none; border-color: var(--gigas-red); } }
@media (hover: hover) { .tile:hover::after { transform: scaleX(1); } }
.tile .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gigas-red-tint); color: var(--gigas-red-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tile .tt { font-weight: 600; font-size: 16.5px; }
.tile .td { color: var(--gigas-muted); font-size: 13px; flex: 1; line-height: 1.45; }
.tile .tm { color: var(--gigas-red-dark); font-weight: 600; font-size: 12.5px; }
.tile.soon { opacity: 0.62; }
@media (hover: hover) { .tile.soon:hover { transform: none; box-shadow: var(--sh); border-color: var(--gigas-line); } }
.tile.master { background: var(--gigas-graphite); border-color: transparent; grid-column: 1/-1; }
@media (min-width: 780px) {
  .tile.master { grid-column: span 2; }
}
.tile.master .ic { background: rgba(255, 255, 255, 0.14); color: var(--gigas-white); }
.tile.master .tt { color: var(--gigas-white); font-size: 19px; }
.tile.master .td { color: var(--gigas-line-strong); }
.tile.master .tm { color: var(--gigas-white); }
.tile.master::after { height: 4px; }
.qcard { background: var(--gigas-white); border: 1px solid var(--gigas-line); border-radius: var(--r); box-shadow: var(--sh); padding: 30px; max-width: 660px; margin: 0 auto; }
.qbadge { display: inline-flex; align-items: center; gap: 6px; background: var(--gigas-red-tint); color: var(--gigas-red-dark); font-weight: 600; font-size: 12px; border-radius: 12px; padding: 5px 13px; margin-bottom: 14px; }
.progress { height: 5px; background: var(--gigas-surface-grey); border-radius: 999px; margin-bottom: 22px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gigas-red); border-radius: 999px; transition: width 0.45s cubic-bezier(0.22, 0.8, 0.3, 1); }
.qtitle { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.qhint { color: var(--gigas-muted); font-size: 13.5px; margin-bottom: 20px; }
.opts { display: grid; gap: 10px; }
.opt { color: var(--gigas-ink); border: 1.5px solid var(--gigas-line); border-radius: var(--rs); padding: 15px 17px; background: var(--gigas-white); text-align: left; font-size: 15px; font-weight: 600; transition: border-color 0.15s, background 0.15s, transform 0.1s; position: relative; }
.opt small { display: block; color: var(--gigas-muted); font-size: 12.5px; margin-top: 3px; font-weight: 500; }
@media (hover: hover) { .opt:hover { border-color: var(--gigas-red); } }   /* 19.10 р.10: наведение — только где есть мышь; на iPhone :hover залипал на варианте под пальцем, и выделенными казались несколько */
.opt.sel { border-color: var(--gigas-red); background: var(--gigas-surface); font-weight: 600; }
.opt.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 15px; border: solid var(--gigas-red-dark); border-width: 0 2.5px 2.5px 0; transform: translateY(-62%) rotate(45deg); }
.numrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.numrow input { flex: 1; min-width: 130px; border: 1.5px solid var(--gigas-line); border-radius: var(--rs); padding: 13px 15px; font-size: 19px; font-weight: 600; font-family: inherit; transition: border-color 0.15s; }
.numrow input:focus { outline: none; border-color: var(--gigas-red); }
.unit { color: var(--gigas-muted); font-weight: 600; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { color: var(--gigas-ink); border: 1.5px solid var(--gigas-line); background: var(--gigas-white); border-radius: 12px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; transition: 0.15s; }
@media (hover: hover) { .chip:hover { border-color: var(--gigas-red); color: var(--gigas-red-dark); } }
.chip.sel { background: var(--gigas-red); border-color: transparent; color: var(--gigas-white); }
.qnav { display: flex; gap: 10px; margin-top: 26px; }
.btn { border: none; border-radius: var(--rs); padding: 13px 24px; font-size: 14px; font-weight: 500; line-height: 1.1; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-p { background: var(--gigas-red); color: var(--gigas-white); box-shadow: none; }
@media (hover: hover) { .btn-p:hover { background: var(--gigas-red-dark); } }
.btn-p:disabled { background: var(--gigas-surface-grey); color: var(--gigas-text); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-s { background: var(--gigas-graphite); border: 1.5px solid var(--gigas-graphite); color: var(--gigas-white); }
@media (hover: hover) { .btn-s:hover { background: var(--gigas-graphite-dark); border-color: var(--gigas-graphite-dark); } }
.btn-g { background: var(--gigas-white); border: 1.5px solid var(--gigas-red); color: var(--gigas-red); }
@media (hover: hover) { .btn-g:hover { background: var(--gigas-red-tint); } }
.btn-lg { width: 100%; padding: 16px; font-size: 14px; }
.spacer { flex: 1; }
.microcopy { text-align: center; color: var(--gigas-muted); font-size: 12px; margin-top: 12px; }
.estnote { text-align: center; color: var(--gigas-muted); font-size: 12px; margin: 10px auto 2px; line-height: 1.45; }   /* 16.10 (раунд 8, п. 4): под кнопкой «Добавить в корзину», на ПК одной строкой */
@media (min-width: 761px) { .estnote { white-space: nowrap; } }
.rooms { overflow-x: auto; }
.rooms .room { display: grid; min-width: 560px; grid-template-columns: 1.3fr 0.7fr 0.7fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.rooms input,
      .rooms select { border: 1.5px solid var(--gigas-line); border-radius: 8px; padding: 10px 11px; font-size: 14px; width: 100%; font-family: inherit; font-weight: 600; }
.rooms input:focus,
      .rooms select:focus { outline: none; border-color: var(--gigas-red); }
.rooms .rhead { display: grid; min-width: 560px; grid-template-columns: 1.3fr 0.7fr 0.7fr auto auto; gap: 8px; color: var(--gigas-muted); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.corner { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gigas-muted); white-space: nowrap; }
.del { background: none; border: none; color: var(--gigas-line-strong); font-size: 17px; padding: 4px; transition: color 0.15s; }
.del:hover { color: var(--gigas-red); }
.addroom { margin-top: 6px; }
.multi label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--gigas-line); border-radius: var(--rs); padding: 14px 16px; cursor: pointer; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
@media (hover: hover) { .multi label:hover { border-color: var(--gigas-red); } }
.multi label.sel { border-color: var(--gigas-red); background: var(--gigas-surface); font-weight: 600; }
.multi input { width: 18px; height: 18px; accent-color: var(--gigas-red); }
.multi .mic { width: 34px; height: 34px; border-radius: 12px; background: var(--gigas-red-tint); color: var(--gigas-red-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.res { background: var(--gigas-white); border: 1px solid var(--gigas-line); border-radius: var(--r); box-shadow: var(--sh); padding: 34px; max-width: 660px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; }
.res .big { font-size: 31px; font-weight: 600; line-height: 1.22; margin: 10px 0 4px; }
.res .big em { color: var(--gigas-red-dark); font-style: normal; position: relative; }
.res .big em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: var(--gigas-red-tint); z-index: -1; border-radius: 999px; }
.res .badge { display: inline-flex; background: var(--gigas-red-tint); color: var(--gigas-red-dark); font-weight: 600; font-size: 12px; border-radius: 12px; padding: 5px 14px; }
.why { margin: 20px auto 0; max-width: 490px; text-align: left; background: var(--gigas-surface); border: 1px solid var(--gigas-line); border-radius: var(--rs); padding: 15px 19px; font-size: 13.5px; color: var(--gigas-text); }
.why b { display: block; margin-bottom: 7px; color: var(--gigas-ink); font-size: 12px; }
.why div { padding: 2.5px 0; }
.disc { color: var(--gigas-muted); font-size: 12.5px; margin-top: 16px; }
.rtable { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.rtable th { color: var(--gigas-muted); font-weight: 600; font-size: 12px; text-align: left; padding: 8px; border-bottom: 2px solid var(--gigas-line); }
.rtable td { padding: 8px; border-bottom: 1px solid var(--gigas-line); text-align: left; font-weight: 600; }
.rtable td:last-child,
      .rtable th:last-child { text-align: right; }
.kit { max-width: 780px; margin: 0 auto; }
.kcard { background: var(--gigas-white); border: 1px solid var(--gigas-line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; margin-bottom: 14px; }
.ghead { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.ghead .gic { width: 34px; height: 34px; border-radius: 12px; background: var(--gigas-red-tint); color: var(--gigas-red-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.ghead small { font-weight: 600; color: var(--gigas-muted); font-size: 12px; margin-left: auto; }
.mainp { display: flex; gap: 18px; align-items: center; }
.pimg { width: 100px; height: 100px; border-radius: 12px; background: var(--gigas-white); border: 1px solid var(--gigas-line); color: var(--gigas-red-dark); display: flex; align-items: center; justify-content: center; font-size: 44px; flex-shrink: 0; position: relative; }
.pdisc { position: absolute; top: -8px; left: -8px; background: var(--gigas-yellow); color: var(--gigas-ink); font-size: 11px; font-weight: 600; border-radius: 8px; padding: 3px 7px;  }
.pname { font-weight: 600; font-size: 15px; line-height: 1.4; }
.pname:hover { color: var(--gigas-red-dark); cursor: pointer; }
.ptag { display: inline-flex; background: var(--gigas-red); color: var(--gigas-white); font-size: 10.5px; font-weight: 600; border-radius: 8px; padding: 3px 9px; margin-bottom: 7px; }
.pprice { font-weight: 600; font-size: 23px; margin-top: 5px; }
.pprice .per { font-size: 13px; color: var(--gigas-muted); font-weight: 500; }
.pold { color: var(--gigas-muted); font-size: 13.5px; text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.klist .krow { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gigas-line); transition: background 0.15s; }
.klist .krow:last-child { border-bottom: none; }
.krow input { width: 19px; height: 19px; accent-color: var(--gigas-red); flex-shrink: 0; }
.krow .kn { flex: 1; font-size: 14px; font-weight: 600; }
.krow .kn small { display: block; color: var(--gigas-muted); font-size: 12px; font-weight: 500; margin-top: 1px; }
.krow .kp { font-weight: 600; white-space: nowrap; font-size: 14.5px; text-align: right; }
.krow .kp small { display: block; font-weight: 500; font-size: 11px; color: var(--gigas-muted); }
.qb { display: inline-block; background: var(--gigas-surface); border: 1px solid var(--gigas-line); border-radius: 8px; padding: 1px 7px; font-size: 12px; font-weight: 600; color: var(--gigas-text); margin-left: 4px; white-space: nowrap; }
.ktotal { display: flex; align-items: center; gap: 14px; background: var(--gigas-graphite); color: var(--gigas-white); border-radius: var(--r); padding: 20px 24px; margin-top: 6px; flex-wrap: wrap; box-shadow: var(--sh); }
.ktotal .tl { font-size: 12px; color: var(--gigas-line-strong); font-weight: 600; }
.ktotal .tv { font-size: 29px; font-weight: 600; }
/* 21.10 р.15: цены сайта ещё не получены или не получены — вместо суммы текст (цены снимка не показываем) */
.ktotal .tv .tvwait { display: block; font-size: 16px; font-weight: 500; color: var(--gigas-muted); }
.ktotal .tv i { font-style: normal; color: rgba(255, 255, 255, 0.72); }
.ctarow { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ctarow .btn { flex: 1; min-width: 220px; }
.othermodels { text-align: center; margin-top: 16px; }
.othermodels a { color: var(--gigas-red-dark); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.othermodels a:hover { color: var(--gigas-red); text-decoration: underline; }
.stages { display: flex; flex-direction: column; margin: 16px 0; text-align: left; }
.stage { display: flex; gap: 12px; align-items: flex-start; }
.stage .sn { width: 30px; height: 30px; border-radius: 12px; background: var(--gigas-red); color: var(--gigas-white); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: none; }
.stage .sline { width: 2px; flex: 1; background: var(--gigas-line); margin: 3px 14px; }
.stage .sb { padding-bottom: 18px; }
.stage .sb b { display: block; font-size: 14.5px; font-weight: 600; }
.stage .sb small { color: var(--gigas-muted); font-size: 12.5px; }
.passport { background: var(--gigas-graphite); color: var(--gigas-white); border-radius: var(--r); padding: 26px; margin-bottom: 14px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.passport .ph { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; margin-bottom: 16px; }
.passport .ph .gic { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: var(--gigas-white); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.passport .ph small { margin-left: auto; font-size: 11px; color: var(--gigas-line-strong); font-weight: 600; }
.passport table { width: 100%; border-collapse: collapse; font-size: 13.5px; position: relative; }
.passport th { color: var(--gigas-line-strong); font-weight: 600; text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); width: 32%; vertical-align: top; font-size: 12px; }
.passport td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-weight: 600; color: var(--gigas-white); }
.passport tr:last-child th,
      .passport tr:last-child td { border-bottom: none; }
.passport td b { color: var(--gigas-white); font-weight: 600; }
.passport .pfoot { margin-top: 14px; font-size: 12px; color: var(--gigas-line-strong); line-height: 1.5; }
.cartrow { display: flex; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--gigas-line); }
.cartrow .ci { width: 56px; height: 56px; border-radius: 12px; background: var(--gigas-white); border: 1px solid var(--gigas-line); color: var(--gigas-red-dark); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.cartrow .cn { flex: 1; font-size: 14px; font-weight: 600; }
.cartrow .cn:hover { color: var(--gigas-red-dark); cursor: pointer; }
.cartrow .cq { color: var(--gigas-muted); font-size: 13px; white-space: nowrap; font-weight: 600; }
.cartrow .cp { font-weight: 600; white-space: nowrap; }
.mgr { background: var(--gigas-surface); border: 0; border-radius: var(--rs); padding: 15px 17px; margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mgr .mt { flex: 1; font-size: 13.5px; }
.fld { margin-bottom: 13px; }
.fld label { display: block; font-size: 12px; font-weight: 600; color: var(--gigas-muted); margin-bottom: 6px; }
.fld input,
      .fld textarea { width: 100%; border: 1.5px solid var(--gigas-line); border-radius: var(--rs); padding: 13px 15px; font-size: 15px; font-family: inherit; font-weight: 600; transition: border-color 0.15s; }
.fld input:focus,
      .fld textarea:focus { outline: none; border-color: var(--gigas-red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--gigas-muted); margin: 14px 0; line-height: 1.45; }
.consent input { width: 17px; height: 17px; accent-color: var(--gigas-red); flex-shrink: 0; margin-top: 1px; }
.consent a { color: var(--gigas-red-dark); }
.success { text-align: center; padding: 34px 22px; }
.success .si { width: 70px; height: 70px; border-radius: 12px; background: var(--gigas-red-tint); color: var(--gigas-red); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; animation: pop 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.success h3 { font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.success p { color: var(--gigas-muted); font-size: 14px; max-width: 420px; margin: 0 auto 6px; }
.calcid { display: inline-block; background: var(--gigas-surface); border: 1px solid var(--gigas-line); border-radius: 8px; padding: 6px 15px; font-weight: 600; font-size: 15px; margin: 10px 0; }
.mback { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.mback.open { display: flex; }
.modal { background: var(--gigas-white); border-radius: var(--r); padding: 30px; max-width: 440px; width: 100%; max-height: 92vh; overflow: auto; position: relative; box-shadow: none; }
.mclose { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 21px; color: var(--gigas-muted); transition: color 0.15s; }
.mclose:hover { color: var(--gigas-red); }
.modal h3 { font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.modal .msub { color: var(--gigas-muted); font-size: 13.5px; margin-bottom: 18px; }
.note { display: none; background: var(--note); border: 1px dashed var(--note-b); border-radius: var(--rs); padding: 10px 12px; font-size: 12.5px; color: var(--gigas-text); margin: 10px 0; line-height: 1.5; }
.note b { color: var(--gigas-ink); }
body.dev .note { display: block; }
.devtag { display: none; }
body.dev .devtag { display: inline-block; background: var(--note-b); color: var(--gigas-ink); font-size: 10.5px; font-weight: 600; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 760px) {
  .rooms .room,
        .rooms .rhead { grid-template-columns: 1.1fr 0.6fr 0.6fr auto auto; }
  .res .big { font-size: 24px; }
  .h1 { font-size: 24px; }
}
.srow { display: grid; grid-template-columns: 34px 1fr 76px 92px 104px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gigas-line); font-size: 14px; }
.srow:last-of-type { border-bottom: none; }
.srow .sr { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.srow .ssum { font-weight: 600; }
.srow .c-p { color: var(--gigas-text); font-weight: 500; }
.srow .c-q { font-weight: 600; }
.shead { padding: 6px 0; border-bottom: 2px solid var(--gigas-line); font-size: 12px; font-weight: 600; color: var(--gigas-muted); }
.srow input { width: 19px; height: 19px; accent-color: var(--gigas-red); }
.sname { font-weight: 600; display: block; line-height: 1.35; }
.swhy { display: block; color: var(--gigas-muted); font-size: 12px; margin-top: 1px; }
.sloco { background: var(--gigas-surface); border: 1.5px solid var(--gigas-red); border-radius: var(--rs); padding: 12px 10px; margin: 6px 0; grid-template-columns: 58px 1fr 76px 92px 104px; box-shadow: none; }
.sloco .lico { width: 52px; height: 52px; font-size: 26px; border-radius: 12px; }
.sloco .lname { display: block; font-size: 14.5px; line-height: 1.3; margin-top: 3px; }
.sloco .lmeta { display: block; color: var(--gigas-muted); font-size: 12px; margin-top: 2px; }
.sloco .lmeta .in { color: var(--gigas-blue); font-style: normal; font-weight: 600; }
.sloco .ssum { font-size: 16px; }
.monly { display: none; }
@media (max-width: 760px) {
  .srow { grid-template-columns: 30px 1fr 92px; }
  .sloco { grid-template-columns: 46px 1fr 92px; }
  .sloco .lico { width: 42px; height: 42px; font-size: 21px; }
  .c-q,
        .c-p { display: none; }
  .monly { display: block; color: var(--gigas-text); font-size: 12px; font-weight: 600; margin-top: 2px; }
}
.ohead { background: var(--gigas-white); border: 1px solid var(--gigas-line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px 24px; margin-bottom: 14px; position: relative; overflow: hidden; }
.ohead .big { font-size: 24px; font-weight: 600; line-height: 1.25; margin: 8px 0 2px; }
.ohead .big em { color: var(--gigas-red-dark); font-style: normal; }
.ohead .badge { display: inline-flex; background: var(--gigas-red-tint); color: var(--gigas-red-dark); font-weight: 600; font-size: 11px; border-radius: 12px; padding: 4px 12px; }
.ohead .disc { color: var(--gigas-muted); font-size: 12px; margin-top: 10px; }
.editlink { float: right; font-size: 12.5px; color: var(--gigas-muted); cursor: pointer; margin-left: 10px; text-decoration: none; }
.editlink:hover { color: var(--gigas-red); text-decoration: underline; }
.whyd { margin-top: 10px; border: 1px solid var(--gigas-line); border-radius: var(--rs); background: var(--gigas-surface); }
.whyd summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--gigas-text); list-style: none; display: flex; align-items: center; }
.whyd summary::after { content: "▾"; margin-left: auto; color: var(--gigas-muted); transition: transform 0.2s; }
.whyd[open] summary::after { transform: rotate(180deg); }
.whyd > div,
      .whyd > table { padding: 0 14px 12px; font-size: 13px; color: var(--gigas-text); }
.whyd .rtable { margin-top: 0; }
.stickycta { display: none; }
@media (max-width: 760px) {
  .stickycta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--gigas-white); border-top: 1px solid var(--gigas-line); box-shadow: none; padding: 10px 14px; gap: 12px; align-items: center; }
  .stickycta .sc-sum { font-weight: 600; font-size: 18px; line-height: 1.1; }
  .stickycta .sc-sum small { display: block; font-weight: 600; font-size: 10.5px; color: var(--gigas-muted); }
  .stickycta .btn { flex: 1; padding: 12px; font-size: 14px; }
  .stickycta .sc-alt { font-size: 12px; font-weight: 600; color: var(--gigas-red-dark); white-space: nowrap; cursor: pointer; flex-shrink: 0; text-decoration: none; }
  .wrap { padding-bottom: 120px; }
  .ohead { padding: 16px; }
  .ohead .big { font-size: 20px; }
  .ctarow { display: none; }
}
.part { color: var(--gigas-muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.prating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--gigas-ink); margin-top: 3px; }
.prating .star { color: var(--gigas-red); font-size: 13px; }
.prating span { color: var(--gigas-muted); font-weight: 500; }
.pfavs { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; color: var(--gigas-line-strong); }
.pfavs .svgi { width: 19px; height: 19px; cursor: pointer; transition: color 0.15s; }
.pfavs .svgi:hover { color: var(--gigas-red); }
.kcard.main-card { position: relative; }

/* ── Правила GiGas поверх прототипа ── */
h1, .h1, .res .big, .ohead .big, .qtitle, .success h3, .modal h3 { line-height: 1; }
.h1 { font-size: 30px; }
.btn, .chip, .opt, .fld input, .fld textarea, .numrow input, .rooms input, .rooms select { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn:active { transform: none; }
.btn-lg { min-height: 52px; }
.chip { display: inline-flex; align-items: center; }
:focus-visible { outline: none; box-shadow: var(--gigas-focus); }
.opt:focus-visible, .btn:focus-visible { box-shadow: var(--gigas-focus); }
.numrow input:focus, .rooms input:focus, .rooms select:focus, .fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gigas-red); box-shadow: var(--gigas-focus); }
.tile .ic, .multi .mic, .ghead .gic, .cartrow .ci, .pimg { color: var(--gigas-red); }
.tile.master .ic { color: var(--gigas-white); }
.passport .ph .gic { color: var(--gigas-white); }
.mclose { width: 44px; height: 44px; top: 6px; right: 8px; }
.mclose:hover { color: var(--gigas-red); }
.msg-err { margin: 10px 0; padding: 12px 14px; border-radius: var(--rs); background: var(--gigas-red-tint); color: var(--gigas-red-dark); font-size: 14px; line-height: 1.3; }
.msg-err a { color: inherit; font-weight: 600; white-space: nowrap; }
.missing { margin: 12px 0; padding: 12px 14px; border-radius: var(--rs); background: var(--gigas-surface); text-align: left; font-size: 13.5px; }
.missing b { display: block; margin-bottom: 6px; }
.missing div { padding: 3px 0; }
.kitok .lnk { text-decoration: none; }
a.btn { text-decoration: none; }

/* Внутри iframe нет прокрутки: родитель растягивает iframe по высоте */
html { scroll-behavior: auto; }
.wrap { max-width: none; padding: 4px 0 8px; }
body.in-frame { overflow: hidden; }
body.in-frame .wrap { padding-bottom: 8px; }
/* Модалка в iframe: контейнер ставится JS-ом в видимую часть окна (top/height от родителя), модалка по центру области.
   Пока родитель не ответил — скрыта (до 300 мс); не ответил совсем (.nov, виджет открыт напрямую) — fixed по центру окна. */
body.in-frame .mback { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 100%; align-items: center; padding: 12px; }
body.in-frame .mback.open:not(.vp):not(.nov) { visibility: hidden; }
body.in-frame .mback.nov { position: fixed; inset: 0; height: auto; }
body.in-frame .mback.tall { align-items: flex-start; }
body.in-frame .modal { max-height: none; }

@media (max-width: 760px) {
  .qcard, .res, .modal, .kcard { padding: 18px; }
  .ktotal, .passport { padding: 18px; }
  body.in-frame .stickycta { display: none; }   /* 20.10 р.13, п. 8: во встроенном калькуляторе на телефоне одна кнопка — под итогом (.ctarow); панель с суммой дублировала её */
  body.in-frame .ctarow { display: flex; }
  .tiles { grid-template-columns: 1fr; }
  .stickycta .btn { min-height: 44px; }
}

/* ?embed=1: витрина внутри секции главной — заголовок и подзаголовок даёт секция */
body.embed #app > .h1,
body.embed #app > .sub { display: none; }

/* ── Визуал по брендбуку (как на главной): задача calc-polish ── */
.gi { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -0.2em; }
.gigas-info__text-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 14px; font-weight: 500; color: var(--gigas-red); text-decoration: none; cursor: pointer; }
.gigas-info__text-link:hover { color: var(--gigas-red); text-decoration: underline; }
.editlink, .othermodels a, .stickycta .sc-alt { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--gigas-red); }
.editlink { font-size: 13px; min-height: 44px; }
.othermodels a { min-height: 44px; }
.whyd summary::after { content: ""; width: 7px; height: 7px; margin: 0 4px 3px auto; border: solid var(--gigas-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.2s; }
.whyd[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.missing .mwhy { color: var(--gigas-muted); }
.missing { text-align: left; }
.mgr { border: 1px solid var(--gigas-line); text-align: left; }

/* подписи полей и бейджи: обычный регистр, трекинг 0 */
.fld label { font-size: 13px; font-weight: 500; color: var(--gigas-graphite); }
.badge, .qbadge, .ptag { font-weight: 500; }
.ptag { font-size: 12px; }
.rtable th, .rooms .rhead, .passport th, .passport .ph small, .ktotal .tl { font-weight: 500; }
.why b { font-size: 13px; }

/* плитки витрины — как плитки калькуляторов главной: белая карточка с линией, картинка объекта, стрелка → */
.tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile { padding: 16px 18px; border-radius: 12px; gap: 8px; min-height: 132px; transition: border-color 0.15s, box-shadow 0.15s; color: var(--gigas-ink); font-family: inherit; }
.tile::after { display: none; }
.tile:hover { border-color: #d0d0d0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.tile .tt { font-size: 16px; font-weight: 600; line-height: 1.1; max-width: calc(100% - 96px); }
.tile .td { font-size: 13px; line-height: 1.25; color: var(--gigas-text); flex: 1; max-width: calc(100% - 104px); }
.tile .tm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gigas-red); }
.tile .tobj { position: absolute; right: 8px; bottom: 8px; width: 100px; height: 100px; object-fit: contain; pointer-events: none; }
.tile.master { background: var(--gigas-graphite) url("/local/components/petr/home/templates/.default/images/bg/home-calc-house-bg-1332x398.webp") right center / cover no-repeat; border-color: transparent; color: var(--gigas-white); }
.tile.master:hover { border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.tile.master .tt { color: var(--gigas-white); font-size: 19px; max-width: none; }
.tile.master .td { color: rgba(255, 255, 255, 0.72); max-width: 60%; }
.tile.master .tm { color: var(--gigas-white); }

/* строка «Рекомендуем»: один акцент (бейдж), рамка — линия, фон — surface */
.sloco { border: 1px solid var(--gigas-line); background: var(--gigas-surface); }

/* экран «Комплект в корзине» / «Заявка отправлена»: режим C — белая галочка в красном круге */
.success .si { width: 64px; height: 64px; border-radius: 50%; background: var(--gigas-red); color: var(--gigas-white); font-size: 30px; }
.success .si .svgi { stroke-width: 2.2; }
.success .qnav { justify-content: center; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { min-height: 100px; padding: 12px; border: 0; border-radius: 16px; background: #f2f1f0; gap: 4px; }
  .tile:hover { box-shadow: none; }
  .tile .tt { font-size: 14px; font-weight: 500; max-width: none; }
  .tile .td { display: none; }
  .tile .tm { font-size: 12px; font-weight: 400; color: #8f8f8f; margin-top: auto; }
  .tile .tm .gi { display: none; }
  .tile .tobj { width: 50px; height: 50px; right: 6px; bottom: 6px; }
  .tile.master { grid-column: 1 / -1; min-height: 120px; background: var(--gigas-graphite) url("/local/components/petr/home/templates/.default/images/bg/home-calc-house-bg-1332x398.webp") right center / cover no-repeat; }
  .tile.master .td { display: block; max-width: 70%; font-size: 12.5px; }
  .tile.master .tm { color: rgba(255, 255, 255, 0.75); }
  .tile.master .tm .gi { display: inline-block; }
  .stickycta .sc-alt { min-height: 44px; font-size: 12px; }
}
body.in-frame.parent-dim { position: relative; }
body.in-frame.parent-dim::before { content: ""; position: absolute; inset: 0; z-index: 59; background: rgba(0, 0, 0, 0.55); }
body.in-frame.parent-dim .mback { background: transparent; }
/* правки 15.10: «Выбрать всё» — обычный чекбокс в шапке спецификации (п. 8); шаг контакта перед результатом (К2) */
.khead { display: flex; align-items: center; gap: 12px; font-weight: 800; margin-bottom: 4px; }
.khead--master { margin: 18px 0 10px; font-size: 17px; }
.selall { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--gigas-graphite); cursor: pointer; user-select: none; }
.selall input { width: 19px; height: 19px; margin: 0; accent-color: var(--gigas-red); cursor: pointer; }
.qcontact .fld:first-of-type { margin-top: 18px; }
.qcontact .consent { margin: 4px 0 6px; }
