/* Site calculator (/calc) */
.calc { padding-top: clamp(40px, 8vh, 88px); padding-bottom: 96px; }
.calc__head { max-width: 860px; margin-bottom: clamp(32px, 6vh, 56px); }
.calc__head .lede { margin-top: 20px; max-width: 58ch; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc__form { display: grid; gap: 20px; }

.cstep { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--graphite); padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.cstep legend { float: left; width: 100%; font-size: 20px; font-weight: 500; letter-spacing: -.01em; display: flex; gap: 12px; align-items: baseline; margin-bottom: 2px; }
.cstep legend + * { clear: both; }
.cstep__no { font-size: 13px; color: var(--cyan); }
.cstep__hint { color: var(--violet-text); font-size: 15px; padding: 12px 14px; border-radius: 8px; background: rgba(43, 255, 136, .06); border: 1px solid rgba(43, 255, 136, .18); }
.cstep__note { font-size: 14px; color: var(--dim); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field > span small { font-size: 13px; }

/* Niche tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; }
.tile input, .opt input, .feat input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: grid; gap: 6px; justify-items: start; min-height: 84px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 15px; line-height: 1.25; color: var(--ash); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.tile i { font-style: normal; font-size: 22px; line-height: 1; }
.tile span:hover { color: var(--ink); border-color: var(--dim-line); }
.tile input:checked + span { color: var(--ink); border-color: var(--cyan); background: rgba(43, 255, 136, .08); }
.tile input:focus-visible + span, .opt input:focus-visible + span, .feat input:focus-visible ~ .feat__box { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Features */
.feats { display: grid; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.feat:hover .feat__name { color: var(--ink); }
.feat__box { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.feat input:checked ~ .feat__box { background: var(--cyan); border-color: var(--cyan); }
.feat input:checked ~ .feat__box::after { content: ""; width: 10px; height: 5px; border: 2px solid #03130A; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.feat__name { font-size: 16px; color: var(--ash); transition: color .15s; }
.feat input:checked ~ .feat__name { color: var(--ink); }
.feat__name em { font-style: normal; font-family: var(--mono); font-size: 11px; color: #03130A; background: var(--cyan); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.feat__price { font-size: 12px; color: var(--dim); text-align: right; }
.feat__rec { display: none; grid-column: 2 / -1; font-size: 12px; color: var(--amber); }
.feat.is-rec .feat__rec { display: block; }
.feat.is-rec .feat__box { border-color: var(--amber); }

/* Support options */
.opts { display: grid; gap: 8px; }
.opt { position: relative; }
.opt span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt b { font-weight: 500; }
.opt small { grid-column: 1; color: var(--ash); font-size: 14px; }
.opt i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 14px; color: var(--ash); white-space: nowrap; }
.opt span:hover { border-color: var(--dim-line); }
.opt input:checked + span { border-color: var(--cyan); background: rgba(43, 255, 136, .08); }
.opt input:checked + span i { color: var(--ink); }

/* Payback */
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; }
.stepper button { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raise); font-size: 20px; cursor: pointer; }
.stepper button:hover { border-color: var(--cyan); }
.stepper .input { text-align: center; -moz-appearance: textfield; }
.stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; }
.payback { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 8px; background: var(--void); border: 1px solid var(--line); }
.payback > div { display: grid; gap: 6px; }
.payback__big { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; color: var(--cyan); font-variant-numeric: tabular-nums; }

/* Send */
.send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.send__wa { gap: 10px; min-height: 56px; font-size: 17px; }

/* Side: phone + total */
.calc__side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.phone { width: min(100%, 290px); margin: 0 auto; padding: 10px; border-radius: 34px; background: #1a1d1b; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(43, 255, 136, .25); }
.phone__screen { border-radius: 26px; background: #f6f3ee; color: #1b1a18; padding: 18px 16px 14px; display: grid; gap: 12px; min-height: 380px; align-content: start; font-size: 13px; overflow: hidden; }
.mock__top { display: flex; align-items: center; gap: 8px; }
.mock__logo { width: 28px; height: 28px; border-radius: 50%; background: #1b1a18; color: #f6f3ee; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.mock__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__hero { display: grid; gap: 4px; padding: 16px 14px; border-radius: 16px; background: linear-gradient(140deg, #2a2420, #5b4636); color: #fff; }
.mock__hero b { font-size: 17px; line-height: 1.2; font-weight: 600; }
.mock__hero small { opacity: .75; font-size: 12px; }
.mock__list { list-style: none; display: grid; gap: 6px; }
.mock__list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; background: #fff; border-radius: 10px; }
.mock__list b { font-weight: 600; white-space: nowrap; }
.mock__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__badges:empty { display: none; }
.mock__badges span { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: #e9e4dc; animation: pop .3s ease; }
.mock__cta { display: block; text-align: center; padding: 12px; border-radius: 12px; background: #1fa855; color: #fff; font-weight: 600; }
.mock__url { text-align: center; font-size: 10px; color: #8a847b; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.phone__cap { text-align: center; font-size: 12px; color: var(--dim); max-width: 34ch; margin: 0 auto; }

.total { border: 1px solid var(--cyan); border-radius: 10px; background: var(--graphite); padding: 22px; display: grid; gap: 8px; }
.total__price { font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.total__meta { color: var(--ash); font-size: 15px; }
.total__list { list-style: none; display: grid; gap: 4px; margin: 8px 0 0; font-size: 14px; color: var(--ash); }
.total__list li::before { content: "✓ "; color: var(--cyan); }
.total__extra { font-size: 13px; color: var(--amber); }
.promise { list-style: none; display: grid; gap: 6px; margin: 10px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.promise li { display: flex; gap: 8px; }
.promise li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--cyan); }
.total__go { width: 100%; }

/* FAQ */
.calc__faq { max-width: 760px; margin-top: clamp(56px, 10vh, 96px); display: grid; gap: 0; }
.calc__faq h2 { margin-bottom: 16px; }
.calc__faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.calc__faq details:last-child { border-bottom: 1px solid var(--line); }
.calc__faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.calc__faq summary::after { content: "+"; font-family: var(--mono); color: var(--ash); }
.calc__faq details[open] summary::after { content: "−"; }
.calc__faq p { margin-top: 10px; color: var(--ash); max-width: 62ch; }

/* Sticky bar (phones only) */
.calc__bar { display: none; }

@media (max-width: 980px) {
  .calc__grid { grid-template-columns: minmax(0, 1fr); }
  .calc__side { display: contents; }
  .calc__side .phone { order: 0; width: min(100%, 250px); }
  .phone__cap { order: 1; }
  .calc__form { order: 2; }
  .calc__side .total { order: 3; }
  .phone__screen { min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(5, 6, 6, .96); border-top: 1px solid var(--line-strong); transform: translateY(110%); transition: transform .25s; }
  .calc__bar.is-on { transform: none; }
  .calc__bar span { display: grid; }
  .calc__bar small { font-size: 12px; color: var(--ash); }
  .calc__bar b { font-size: 20px; font-weight: 500; }
  .calc__bar .button { min-height: 44px; padding: 0 18px; }
}
@media (max-width: 600px) {
  .two, .send, .payback { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: 22px minmax(0, 1fr); }
  .feat__price { grid-column: 2; text-align: left; }
}
