/* How much? The cost and cover checker (the page opener), how we price, paying, good to know, closing call. */

/* ---------- Opener: the tool ---------- */
.tool { position: relative; isolation: isolate; overflow: clip; background: var(--mask); color: var(--silk); padding-block: clamp(16px, 2vh, 26px) clamp(40px, 5vh, 64px); }
.tool::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 90% at 82% 30%, rgba(201, 147, 90, .12), transparent 62%), radial-gradient(50% 60% at 6% 100%, rgba(63, 208, 122, .06), transparent 70%); }
.tool__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(28px, 4vw, 64px); row-gap: 10px; margin-bottom: clamp(14px, 1.9vh, 22px); }
.tool__title { font-size: clamp(2.5rem, 4.3vw, 4rem); font-weight: 850; font-stretch: 84%; line-height: 1; letter-spacing: -.02em; color: var(--silk); white-space: nowrap; }
.js .tool__title { visibility: hidden; }
.tool__lede { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.5; color: var(--silk-2); padding-bottom: .2em; }
.tool__lede strong { color: var(--gold); font-weight: 700; }

/* No JavaScript: the plain explanation shows and the live tool stays out of the way */
.tool__plain { display: none; }
.no-js .tool__plain { display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--mask-2); }
.no-js .tool__panel { display: none; }
.js .tool__panel { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .tool__panel { opacity: 1; } }
.tool__plain-copy { display: grid; gap: 12px; color: var(--silk-2); }
.tool__plain-copy p { margin: 0; }
.tool__plain-result { color: var(--gold) !important; font-weight: 700; }
.tool__plain-form { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: start; gap: 12px; align-items: end; margin-top: 8px; }

/* The panel: form on the left, the live summary (a readout) on the right */
.tool__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  border: 1px solid var(--line-dark); border-radius: var(--r); background: rgba(26, 52, 36, .92);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(232, 194, 122, .08);
}
.tool__form { position: relative; display: grid; align-content: start; gap: clamp(12px, 1.7vh, 20px); padding: clamp(18px, 2.4vh, 28px) clamp(20px, 2.2vw, 32px) clamp(18px, 2.4vh, 28px) calc(clamp(20px, 2.2vw, 32px) + 38px); }
/* The steps sit on a copper rail down the left of the form; it lights gold as far as you've got */
.tool__thread { position: absolute; z-index: 0; overflow: visible; pointer-events: none; }
.tool__thread .tt__base { fill: none; stroke: var(--copper); stroke-width: 2; opacity: .85; }
.tool__thread .tt__lit { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(232, 194, 122, .6)); }
.tool__sum { position: relative; display: grid; align-content: start; gap: clamp(10px, 1.4vh, 16px); padding: clamp(16px, 2.2vh, 24px) clamp(20px, 2.2vw, 30px) clamp(18px, 2.4vh, 26px); border-left: 1px solid var(--line-dark); border-radius: 0 var(--r) var(--r) 0; background: linear-gradient(180deg, rgba(10, 22, 15, .72), rgba(10, 22, 15, .5)); }

.tf { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.tf__leg { position: relative; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font: 700 1.02rem/1.2 var(--display); font-stretch: 100%; color: var(--silk); }
.tf__n { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--copper); font: 750 .8rem/1 var(--display); font-stretch: 100%; color: var(--gold); transition: background-color .4s, color .4s, box-shadow .4s; }
.tf__n { position: absolute; left: -38px; top: 50%; margin-top: -12px; z-index: 1; background: #1A3424; }
.tf__ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.tf.is-done .tf__n { background: var(--gold); color: var(--mask); box-shadow: 0 0 14px rgba(232, 194, 122, .55); }
.tf__opt { font: 400 .95rem/1.2 var(--body); color: var(--silk-2); }

/* 1. Postcode */
.tf__pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.tf__pc input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1.5px solid rgba(232, 194, 122, .4);
  background: #fff; color: var(--ink); font: 700 1.15rem/1 var(--display); font-stretch: 100%; letter-spacing: .04em; text-transform: uppercase;
  transition: border-color .25s, box-shadow .25s;
}
.tf__pc input::placeholder { text-transform: none; letter-spacing: 0; font: 400 1.02rem/1 var(--body); color: #66736A; }
.tf__pc input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 194, 122, .35); }
.tf__pc .btn { min-height: 52px; }
.tf--pc.is-bad input { border-color: #FF8A7C; }

/* 2. Chips: a pad LED lights and a 45 degree fill sweeps through when pressed */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 14px 9px 12px;
  border: 1.5px solid rgba(201, 147, 90, .45); border-radius: var(--r); background: rgba(10, 22, 15, .35); color: var(--silk);
  font: 650 .98rem/1.15 var(--display); font-stretch: 100%; cursor: pointer; overflow: hidden; isolation: isolate; text-align: left;
  transition: border-color .3s, color .3s;
}
.chip::before { content: ''; position: absolute; inset: -2px -40%; z-index: -1; background: var(--gold); transform: translateX(-102%) skewX(-45deg); transition: transform .55s var(--ease); }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { color: var(--mask); border-color: var(--gold); }
.chip[aria-pressed="true"]::before { transform: translateX(0) skewX(-45deg); }
.chip__led { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--copper); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.chip[aria-pressed="true"] .chip__led { background: var(--red); border-color: var(--mask); box-shadow: 0 0 0 2px rgba(20, 41, 28, .25); }

.swbox { position: relative; display: block; overflow: clip; overflow-clip-margin: 4px; }
.sw { display: block; }
.tf__note { min-height: 3.1em; font-size: 1rem; line-height: 1.5; color: var(--silk-2); }
.tf__note .tag { display: inline-block; margin-right: 6px; font: 750 .9rem/1 var(--display); font-stretch: 100%; color: var(--gold); letter-spacing: .02em; }
.tf__note a { color: var(--gold); }

/* 3. How: three option buttons with drawn icons */
.ways3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.way3 {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center;
  min-height: 66px; padding: 10px 12px; border: 1.5px solid rgba(201, 147, 90, .45); border-radius: var(--r);
  background: rgba(10, 22, 15, .35); color: var(--silk); text-align: left; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color .3s, background-color .3s, opacity .3s;
}
.way3 .ico { grid-row: span 2; width: 28px; height: 28px; color: var(--copper); transition: color .3s; }
.way3__t { font: 750 1.04rem/1.15 var(--display); font-stretch: 88%; white-space: nowrap; }
.way3__s { font-size: .9rem; line-height: 1.25; color: var(--silk-2); }
.way3::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.way3:hover { border-color: var(--gold); }
.way3[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 194, 122, .12); }
.way3[aria-pressed="true"]::after { transform: scaleX(1); }
.way3[aria-pressed="true"] .ico { color: var(--gold); }
.way3:disabled { cursor: not-allowed; opacity: .5; border-style: dashed; }
.way3__x { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: #FF8A7C; transform: scaleX(0) rotate(-8deg); transform-origin: left; transition: transform .5s var(--ease); pointer-events: none; }
.way3:disabled .way3__x { transform: scaleX(1) rotate(-8deg); }
.tf__why { margin: 0; font-size: .95rem; color: #FFB4A8; }

/* 4. Hours */
.hours { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.stepper { display: inline-grid; grid-template-columns: 48px 64px 48px; align-items: center; border: 1.5px solid rgba(201, 147, 90, .45); border-radius: var(--r); overflow: hidden; background: rgba(10, 22, 15, .35); }
.stepper__b { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--gold); cursor: pointer; transition: background-color .25s, color .25s; }
.stepper__b .ico { width: 22px; height: 22px; }
.stepper__b:hover { background: rgba(232, 194, 122, .14); }
.stepper__b:disabled { color: rgba(191, 203, 194, .35); cursor: not-allowed; background: transparent; }
.stepper__v { display: grid; place-items: center; height: 48px; border-inline: 1px solid var(--line-dark); font-size: 1.5rem; font-weight: 750; color: var(--silk); overflow: clip; }
.cells { display: flex; gap: 6px; }
.cell { position: relative; display: grid; justify-items: center; gap: 5px; width: 36px; cursor: pointer; }
.cell i { display: block; width: 100%; height: 20px; border-radius: 2px; border: 1.5px solid rgba(201, 147, 90, .5); background: transparent; transition: background-color .35s, box-shadow .35s, border-color .35s; }
.cell b { font: 600 .82rem/1 var(--display); font-stretch: 100%; color: var(--silk-2); }
.cell.is-on i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 194, 122, .5); }
.tf__est { flex: 1 1 200px; margin: 0; font-size: .98rem; line-height: 1.45; color: var(--silk-2); }

/* The board map */
.map { display: grid; gap: 8px; }
.map__svg { width: 100%; height: auto; max-height: 26vh; overflow: visible; }
.map__edge { fill: #10241A; stroke: rgba(201, 147, 90, .5); stroke-width: 1.5; }
.map__hole { fill: #0A160F; stroke: var(--copper); stroke-width: 1.5; }
.map__bg path { fill: none; stroke: #1B3A28; stroke-width: 2; stroke-linejoin: round; }
.via { fill: #10241A; stroke: #8C7A55; stroke-width: 1.4; transition: stroke .4s, fill .4s; }
.rt.is-hit .via { stroke: var(--gold); fill: #3A2C12; }
.map__smd rect { fill: #2B2F2C; stroke: #6B5A44; stroke-width: .8; }
.rt__bed { fill: none; stroke: #23503A; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.rt__cu { fill: none; stroke: #6E9C78; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.rt__lit { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.rt.is-hit .rt__bed { stroke: #5A4320; }
.rt--out .rt__bed, .rt--out .rt__cu { stroke-dasharray: 3 7; }
.rt--out { opacity: 0; }
.rt--out .rt__lit { stroke: #FF8A7C; }
.u1__glow { fill: rgba(232, 194, 122, .18); stroke: none; opacity: 0; }
.u1__pin { stroke: var(--copper); stroke-width: 2.2; }
.u1__body { fill: #1F2421; stroke: #4A4F4B; stroke-width: 1.4; }
.u1__dot { fill: #5D635F; }
.u1__t { fill: #B9C2BB; font: 700 12px/1 var(--display); font-stretch: 100%; letter-spacing: .06em; }
.map__lbl { fill: var(--silk); font: 750 15px/1 var(--display); font-stretch: 100%; letter-spacing: .02em; }
.map__lbl--u1 { fill: var(--gold); font-size: 13px; letter-spacing: .1em; }
.pad__body { fill: #C9A35E; stroke: var(--gold); stroke-width: 1.2; transition: fill .4s; }
.pad__ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; }
.pad.is-hit .pad__body { fill: var(--gold); filter: url(#glow); }
.pad.is-dim { opacity: .45; transition: opacity .5s; }
.pad--out { opacity: 0; }
.pad--out .pad__body { fill: #3A1F1C; stroke: #FF8A7C; }
.pad--out .pad__ring { stroke: #FF8A7C; }
.map__dot { fill: #FFE7B0; opacity: 0; }
.map__silk { fill: rgba(244, 246, 242, .35); font: 650 10px/1 var(--display); font-stretch: 110%; letter-spacing: .14em; }
.map__cap { display: flex; align-items: center; gap: 10px; margin: 0; font: 650 .98rem/1.3 var(--display); font-stretch: 100%; color: var(--gold); }
.map__cap .swbox { flex: 1; }
.map__led { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3FD07A; box-shadow: 0 0 10px #3FD07A; }
.map__led.is-red { background: #FF6B5E; box-shadow: 0 0 10px #FF6B5E; }

/* Summary rows */
.sum { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.sum__row { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.sum dt { font: 700 .92rem/1.3 var(--display); font-stretch: 100%; color: var(--copper); letter-spacing: .02em; }
.sum dd { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--silk); }
.sum__row--money { align-items: center; }
.sum__row--money dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.sum__row--fee dd { color: var(--silk-2); }
.sum dd strong { font-weight: 700; }
.sum dd strong.ok { color: #9BE3B4; }
.sum dd strong.no { color: #FFB4A8; }
.money { display: inline-flex; align-items: flex-start; font-size: clamp(2.6rem, 3.6vw, 3.4rem); font-weight: 800; font-stretch: 92%; line-height: 1; color: var(--gold); letter-spacing: -.01em; text-shadow: 0 0 28px rgba(232, 194, 122, .25); }
.money__cur { font-size: .62em; margin-top: .1em; margin-right: .04em; }
.odo { display: inline-flex; overflow: clip; height: 1em; line-height: 1; min-width: 1.8em; }
.odo__c { display: block; overflow: clip; height: 1em; }
.odo__s { display: flex; flex-direction: column; }
.odo__s span { display: block; height: 1em; line-height: 1; text-align: center; }
.money__sub { font-size: .98rem; color: var(--silk-2); flex: 1 1 10em; }
.sum__btns { gap: 10px; }
.sum__btns .btn { flex: 1 1 auto; padding-inline: 20px; }

/* Phones and tablets: a slim live bar while the summary is still below the screen */
.tbar { display: none; }
@media (max-width: 1180px) {
  .js .tbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 8px 14px; border-radius: var(--r); background: rgba(12, 26, 17, .96); border: 1px solid var(--gold);
    color: var(--silk); text-decoration: none; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s;
  }
  .js .tbar.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }
  .tbar__led { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3FD07A; box-shadow: 0 0 10px #3FD07A; }
  .tbar__money { font-size: 1.5rem; font-weight: 800; font-stretch: 92%; color: var(--gold); }
  .tbar__txt { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.25; color: var(--silk-2); }
  .tbar__go { display: inline-flex; align-items: center; gap: 6px; font: 700 .95rem/1 var(--display); font-stretch: 100%; color: var(--gold); white-space: nowrap; }
  .tbar__go .ico { width: 18px; height: 18px; transform: rotate(90deg); }
}

/* ---------- How we work out your bill: an invoice that prints as you scroll ---------- */
.bill { overflow: clip; }
.bill__head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.bill__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.bill__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.bill__wires .w { fill: none; stroke: #B07B45; stroke-width: 2; stroke-linejoin: round; opacity: .5; }
.bill__wires .wp { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.bill__wires circle { fill: var(--bench); stroke: #B07B45; stroke-width: 2; }
.bill__pts { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vh, 22px); }
.bpt { position: relative; padding: 16px 20px 16px 52px; border-radius: var(--r); background: rgba(255, 255, 255, .55); border: 1px solid var(--line-light); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.bpt__pad { position: absolute; left: 18px; top: 21px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B07B45; background: var(--bench); transition: background-color .4s, box-shadow .4s, border-color .4s; }
.bpt__h { text-wrap: wrap; font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 800; font-stretch: 90%; color: var(--brand); margin-bottom: 4px; }
.bpt p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--muted); }
.bpt.is-on { background: #fff; border-color: rgba(201, 147, 90, .7); box-shadow: 0 18px 40px -26px rgba(16, 24, 19, .45); }
.bpt { transition: background-color .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease); }
.bpt.is-hot { transform: translateX(8px); border-color: var(--red); }
.bpt.is-on .bpt__pad { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 38, 43, .16); }

.inv { position: relative; z-index: 1; margin: 0; width: min(100%, 560px); justify-self: end; }
.inv__feed { position: relative; z-index: 1; }
.inv__slot { position: relative; z-index: 2; height: 30px; border-radius: var(--r); background: linear-gradient(180deg, #1F3A28, var(--mask)); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.inv__led { position: absolute; right: 18px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #3FD07A; box-shadow: 0 0 10px #3FD07A; }
.inv__mouth { position: absolute; left: 7%; right: 7%; bottom: 7px; height: 4px; border-radius: 2px; background: #07110B; }
.inv__paper {
  position: relative; z-index: 1; margin: -9px 7% 0; padding: 26px 26px 34px; background: #FCFDFB; color: var(--ink);
  box-shadow: 0 30px 50px -30px rgba(16, 24, 19, .5);
  --zz: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--zz)), 95% 100%, 90% calc(100% - var(--zz)), 85% 100%, 80% calc(100% - var(--zz)), 75% 100%, 70% calc(100% - var(--zz)), 65% 100%, 60% calc(100% - var(--zz)), 55% 100%, 50% calc(100% - var(--zz)), 45% 100%, 40% calc(100% - var(--zz)), 35% 100%, 30% calc(100% - var(--zz)), 25% 100%, 20% calc(100% - var(--zz)), 15% 100%, 10% calc(100% - var(--zz)), 5% 100%, 0 calc(100% - var(--zz)));
  background-image: linear-gradient(rgba(28, 52, 35, .035) 1px, transparent 1px); background-size: 100% 26px;
}
.inv__top { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.inv__top img { width: 52px; height: 52px; }
.inv__name { margin: 0; font: 800 1.1rem/1.15 var(--display); font-stretch: 90%; color: var(--brand); }
.inv__addr { margin: 0; font-size: .92rem; color: var(--muted); }
.inv__kind { margin: 0; font: 800 1.05rem/1 var(--display); font-stretch: 110%; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.inv__lines { display: grid; }
.inv__ln { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed rgba(28, 52, 35, .28); font-size: 1rem; line-height: 1.4; }
.inv__ln b { font-weight: 700; color: var(--brand); white-space: nowrap; }
.inv__ln b.desig { font-size: 1.12rem; }
.inv__ln.is-on::before { content: ''; position: absolute; left: -26px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--red); }
.inv__total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 16px 0 10px; border-bottom: 2px solid var(--brand); font: 800 1.15rem/1.2 var(--display); font-stretch: 92%; color: var(--brand); }
.inv__total b { font-size: 1.3rem; color: var(--red); }
.inv__foot { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.inv__head { position: absolute; left: 0; right: 0; top: 0; height: 70px; margin-top: -35px; background: linear-gradient(180deg, rgba(232, 194, 122, 0), rgba(232, 194, 122, .16), rgba(232, 194, 122, 0)); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }

/* ---------- Three ways to pay ---------- */
.pay__busbox { position: relative; }
.pay__src { position: absolute; left: 0; top: -22px; display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 700 1rem/1 var(--display); font-stretch: 100%; color: var(--gold); }
.pay__src i { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(232, 194, 122, .7); }
.pay__bus { display: block; width: 100%; height: 70px; margin-bottom: -6px; overflow: visible; }
.pay__trunk, .pay__drop { fill: none; stroke: var(--copper); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .7; }
.pay__bus .pp { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.pay__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.pcard { position: relative; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line-dark); border-radius: var(--r); background: linear-gradient(180deg, rgba(26, 52, 36, .95), rgba(16, 34, 23, .95)); transition: border-color .5s, box-shadow .5s; }
.pcard.is-hot { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 194, 122, .3), 0 30px 60px -36px rgba(232, 194, 122, .4); }
.pcard__art { width: 100%; height: auto; max-height: 200px; margin: 0 0 18px; border-radius: calc(var(--r) - 2px); background: radial-gradient(80% 90% at 50% 50%, rgba(232, 194, 122, .08), transparent 70%), rgba(10, 22, 15, .5); overflow: visible; }
.pcard .h3 { margin-bottom: 8px; text-wrap: wrap; }
.pcard p { margin: 0; color: var(--silk-2); font-size: 1.05rem; }
.pcard .ln { fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pcard .ln--gold { stroke: var(--gold); }
.pcard .ln--soft { opacity: .55; }
.pcard .paper { fill: #FCFDFB; stroke: var(--gold); }
.pcard .art-letter .ln--soft { stroke: var(--brand); opacity: .8; }
.pcard .paybtn { fill: var(--red); stroke: var(--red); }
.pcard .env { fill: none; }
.pcard .env-back { fill: #0C1C12; }
.pcard .env-front { fill: #183323; }
.pcard .ln--ink { stroke: var(--brand); opacity: .8; }
.pcard .coin { fill: var(--gold); stroke: var(--mask); stroke-width: 2; opacity: 0; }
.pcard .card__glint { fill: rgba(255, 255, 255, .16); opacity: 0; }

/* ---------- Good to know: accordion with a photo pane ---------- */
.know__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.know .title { margin-bottom: clamp(22px, 2.6vw, 34px); }
.acc { border-top: 1px solid var(--line-light); }
.acc__item { position: relative; border-bottom: 1px solid var(--line-light); }
.acc__item::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.acc__item.is-open::before { transform: scaleX(1); }
.acc__h { margin: 0; font-size: inherit; }
.acc__btn { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; min-height: 72px; padding: 14px 44px 14px 4px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--brand); }
.acc__ico { width: 40px; height: 40px; padding: 7px; border-radius: var(--r); border: 1.5px solid rgba(176, 123, 69, .6); color: #8A5A2B; background: rgba(255, 255, 255, .5); transition: background-color .4s, color .4s, border-color .4s; }
.acc__item.is-open .acc__ico { background: var(--brand); border-color: var(--brand); color: var(--gold); }
.acc__t { text-wrap: wrap; font: 800 clamp(1.2rem, 1.6vw, 1.5rem)/1.2 var(--display); font-stretch: 90%; }
.acc__pm { position: relative; width: 22px; height: 22px; }
.acc__pm i { position: absolute; left: 0; top: 10px; width: 22px; height: 2px; background: var(--red); transition: transform .45s var(--ease); }
.acc__item.is-open .acc__pm i:last-child { transform: rotate(0deg); }
.acc__pm i:last-child { transform: rotate(90deg); }
.acc__panel { overflow: clip; }
.js .acc__item:not(.is-open) .acc__panel { height: 0; }
.acc__in { padding: 0 32px 22px 60px; }
.acc__in p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.know__media { width: min(100%, calc(var(--media-cap) * .82)); justify-self: end; }
.know__frame { position: relative; aspect-ratio: 4 / 4.6; max-height: min(64vh, 580px); width: 100%; }
.know__shot { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; }
.know__shot.is-on { opacity: 1; visibility: visible; }
.know__shot img { width: 100%; height: 100%; object-fit: cover; }
.know__shot figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: calc(var(--r) - 2px); background: rgba(20, 41, 28, .9); color: var(--silk); font: 650 1rem/1.2 var(--display); font-stretch: 100%; }
.know__led { width: 9px; height: 9px; border-radius: 50%; background: #3FD07A; box-shadow: 0 0 10px #3FD07A; }

/* ---------- Closing call ---------- */
.last { overflow: clip; }
.last__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.last .title { margin-bottom: 16px; }
.last .lede { margin-bottom: 18px; }
.last__phone { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--gold); text-decoration: none; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 800; font-stretch: 92%; }
.last__phone .ico { width: .8em; height: .8em; }
.last__phone:hover { color: #fff; }
.last__media { position: relative; }
.last__frame { position: relative; aspect-ratio: 3 / 2; max-height: min(60vh, 520px); width: 100%; }
.last__frame img { width: 100%; height: 100%; object-fit: cover; }
.last__areas { position: absolute; left: -24px; bottom: -28px; z-index: 3; padding: 16px 18px; border-radius: var(--r); background: var(--mask); border: 1px solid var(--line-dark); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.last__areas-h { margin: 0 0 10px; font: 700 .98rem/1.2 var(--display); font-stretch: 100%; color: var(--silk-2); }
.last__codes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.last__codes li { padding: 7px 10px; border: 1px solid var(--line-dark); border-radius: calc(var(--r) - 4px); font-size: .98rem; color: var(--silk); transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s; }
.last__codes li.is-hot { background: var(--gold); border-color: var(--gold); color: var(--mask); box-shadow: 0 0 20px rgba(232, 194, 122, .5); }

/* ---------- Short desktop screens: the whole tool, Book and Send included, stays on the first screen ---------- */
@media (min-width: 1181px) and (max-height: 940px) {
  .tool { padding-top: 12px; }
  .tool__head { margin-bottom: 12px; }
  .tool__title { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
  .tool__form { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .tf { gap: 6px; }
  .tf__leg { margin-bottom: 6px; }
  .tf__pc input, .tf__pc .btn { min-height: 48px; }
  .chip { min-height: 40px; padding: 7px 12px 7px 10px; font-size: .95rem; }
  .tf__note { min-height: 2.9em; font-size: .97rem; line-height: 1.45; }
  .way3 { min-height: 58px; padding-block: 8px; }
  .stepper { grid-template-columns: 44px 56px 44px; }
  .stepper__b, .stepper__v { height: 44px; }
  .stepper__b { width: 44px; }
  .tool__sum { gap: 10px; padding-top: 16px; padding-bottom: 18px; }
  .map__svg { max-height: 22vh; }
  .sum__row { padding: 6px 0; }
  .money { font-size: 2.8rem; }
  .sum__btns .btn { min-height: 50px; }
}
@media (min-width: 1181px) and (max-height: 820px) {
  .tool { padding-top: 8px; }
  .tool__head { margin-bottom: 8px; }
  .tool__title { font-size: 2.5rem; }
  .tool__lede { font-size: 1.02rem; }
  .tool__form { gap: 9px; padding-top: 14px; padding-bottom: 14px; }
  .tf { gap: 4px; }
  .tf__leg { margin-bottom: 4px; font-size: .98rem; }
  .tf__pc input, .tf__pc .btn { min-height: 44px; }
  .chips { gap: 6px; }
  .chip { min-height: 36px; padding: 5px 10px 5px 9px; font-size: .92rem; gap: 7px; }
  .tf__note { min-height: 2.8em; font-size: .94rem; line-height: 1.4; }
  .way3 { min-height: 50px; padding-block: 6px; }
  .way3 .ico { width: 24px; height: 24px; }
  .way3__s { font-size: .875rem; }
  .stepper { grid-template-columns: 44px 50px 44px; }
  .stepper__b, .stepper__v { height: 44px; }
  .stepper__v { font-size: 1.3rem; }
  .cell i { height: 16px; }
  .tf__est { font-size: .94rem; line-height: 1.35; }
  .tool__sum { gap: 8px; padding-top: 12px; padding-bottom: 14px; }
  .map { gap: 4px; }
  .map__svg { max-height: 20vh; }
  .map__cap { font-size: .92rem; }
  .sum__row { padding: 5px 0; }
  .sum dd { font-size: .95rem; line-height: 1.38; }
  .money { font-size: 2.4rem; }
  .sum__btns .btn { min-height: 46px; padding-block: 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tool__panel { grid-template-columns: 1fr; }
  .tool__sum { border-left: 0; border-top: 1px solid var(--line-dark); border-radius: 0 0 var(--r) var(--r); }
  .map__svg { max-height: none; }
}
@media (max-width: 900px) {
  .bill__grid, .know__grid, .last__grid { grid-template-columns: 1fr; }
  .inv { justify-self: center; }
  .bill__wires { display: none; }
  .pay__grid { grid-template-columns: 1fr; }
  .pay__busbox { display: none; }
  .know__media { justify-self: stretch; width: 100%; }
  .know__frame { aspect-ratio: 4 / 3; }
  .last__areas { position: relative; left: 0; bottom: 0; margin-top: -30px; margin-inline: 14px; }
}
@media (max-width: 760px) {
  .tool__head { grid-template-columns: 1fr; }
  .tool__title { white-space: normal; font-size: clamp(2.3rem, 10vw, 3rem); }
  .ways3 { grid-template-columns: 1fr; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { min-height: 48px; padding: 8px 10px; font-size: .95rem; }
  .way3 { min-height: 56px; }
  .tool__plain-form { grid-template-columns: 1fr; }
  .tool__form { padding: 20px 14px 20px 44px; }
  .tf__n { left: -34px; }
  .tool__sum { padding: 18px 16px 22px; }
  .sum__row { grid-template-columns: 1fr; gap: 4px; }
  .sum__btns .btn { width: 100%; }
  .inv__paper { margin-inline: 4%; padding: 20px 16px 30px; }
  .inv__top { grid-template-columns: 40px minmax(0, 1fr); }
  .inv__top img { width: 40px; height: 40px; }
  .inv__kind { grid-column: 1 / -1; }
  .acc__in { padding: 0 8px 20px 0; }
  .acc__btn { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding-right: 38px; }
  .acc__ico { width: 36px; height: 36px; }
  .last__phone { font-size: 1.9rem; }
}

/* Reduced motion: everything in its finished state */
@media (prefers-reduced-motion: reduce) {
  .js .tool__title { visibility: visible; }
}

/* The open/close mark sits at the right edge, out of the text's row */
.acc__btn .acc__pm { position: absolute; right: 4px; top: 50%; translate: 0 -50%; }
