/* Fidella interface styles.
   Near-monochrome navy and slate, one blue accent, hairline borders, small radii.
   Interface text is 13 to 14px; numbers are tabular wherever they line up. */

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ink: #0A2540;
  --ink-2: #425466;
  --ink-3: #697386;
  --ink-4: #8792A2;
  --line: #E6EBF1;
  --line-2: #D5DBE4;
  --surface: #FFFFFF;
  --canvas: #F6F9FC;
  --track: #E9EEF5;
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-tint: #F3F7FF;
  --accent-ring: rgba(37, 99, 235, 0.28);
  --danger: #C0342B;

  --r-1: 6px;
  --r-2: 8px;
  --r-3: 12px;

  --shadow-1: 0 1px 1px rgba(10, 37, 64, 0.04), 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-2: 0 1px 2px rgba(10, 37, 64, 0.04), 0 10px 20px -12px rgba(10, 37, 64, 0.14), 0 24px 48px -24px rgba(10, 37, 64, 0.2);

  --wrap: 1152px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 8px 12px; border-radius: var(--r-1); background: var(--ink); color: #FFFFFF; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Buttons and fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn .ico { width: 15px; height: 15px; stroke-width: 2; }
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(29, 78, 216, 0.4); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { border-color: var(--line-2); background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-1); }
.btn-secondary:hover { background: var(--canvas); }
.btn-lg { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { border-color: transparent; background: #EEF1F5; color: var(--ink-4); box-shadow: none; cursor: not-allowed; }

.link-btn { padding: 0; border: 0; background: none; color: var(--accent-deep); font-size: 13px; font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.field { display: block; }
.field + .field { margin-top: 12px; }
.field label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; font-weight: 500; }
.field label small { color: var(--ink-3); font-size: inherit; font-weight: 400; }

.input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-1);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea.input { height: auto; min-height: 76px; padding: 9px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
input[type="number"].input { -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"].input::-webkit-inner-spin-button,
input[type="number"].input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* A number with its unit shown inside the box */
.unit { position: relative; display: block; }
.unit .input { padding-right: 46px; }
.unit > span { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; pointer-events: none; }

/* One choice out of a few */
.segmented { display: inline-flex; gap: 2px; max-width: 100%; padding: 2px; border-radius: var(--r-2); background: #EEF1F5; }
.segmented label { position: relative; display: block; flex: 1 1 auto; min-width: 56px; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: grid;
  place-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-1);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.segmented input:checked + span { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 37, 64, 0.14), 0 0 0 1px rgba(10, 37, 64, 0.04); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Quantity: a plus on its own, or minus, count, plus */
.qty { display: inline-flex; flex: none; align-items: center; height: 28px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: #FFFFFF; box-shadow: var(--shadow-1); }
.qty button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 5px; background: none; color: var(--ink-2); cursor: pointer; }
.qty button:hover { background: var(--canvas); color: var(--ink); }
.qty .ico { width: 14px; height: 14px; stroke-width: 2; }
.qty-n { min-width: 26px; padding: 0 4px; border-inline: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 26px; text-align: center; }

/* ---------- Header ---------- */

.hd { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.hd-in { position: relative; display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 25px; }

.hd-nav { display: flex; gap: 2px; }
.hd-nav a { padding: 6px 10px; border-radius: var(--r-1); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hd-nav a:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.hd-nav a[aria-current] { color: var(--ink); }

.hd-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hd-tel { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-tel:hover { color: var(--ink); text-decoration: none; }

.menu-toggle { display: none; place-items: center; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: var(--r-1); background: none; color: var(--ink); cursor: pointer; }
.menu-toggle .ico { width: 20px; height: 20px; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Page title ---------- */

.hero { position: relative; padding: 36px 0 104px; overflow: hidden; background: var(--canvas); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 84% -6%, rgba(37, 99, 235, 0.14), transparent 70%),
    radial-gradient(520px 280px at 58% -18%, rgba(56, 189, 248, 0.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.crumbs { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .ico { width: 13px; height: 13px; color: var(--ink-4); }

.hero h1 { margin-top: 14px; font-size: clamp(28px, 20px + 1.9vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.hero-sub { margin-top: 10px; max-width: 560px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ---------- The calculator frame: steps on the left, summary on the right ---------- */

.app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: -64px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: #FFFFFF;
  box-shadow: var(--shadow-2);
}

.app-main { display: flex; flex-direction: column; min-width: 0; }

.progress { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.progress li { display: flex; align-items: center; gap: 10px; }
.progress li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }
.progress button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font-weight: 500; cursor: pointer; }
.progress button[disabled] { cursor: default; }
.progress .n { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-3); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.progress .n .ico { display: none; width: 11px; height: 11px; stroke-width: 3; }
.progress .is-current button { color: var(--ink); }
.progress .is-current .n { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.progress .is-done button { color: var(--ink-2); }
.progress .is-done .n { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.progress .is-done .n b { display: none; }
.progress .is-done .n .ico { display: block; }

.pane { flex: 1; padding: 28px 24px 4px; }
.pane-head h2 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.pane-head h2:focus { outline: none; }
.pane-head p { margin-top: 6px; max-width: 560px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.toolbar-label { margin-right: 2px; color: var(--ink-3); font-size: 13px; }
.toolbar .link-btn { margin-left: auto; }

.chip { height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-1); cursor: pointer; }
.chip:hover { background: var(--canvas); }

/* Appliance list: two columns of rows divided by hairlines */

.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-2); }
.row { display: flex; align-items: center; gap: 10px; min-height: 49px; margin: 0 -1px -1px 0; padding-right: 10px; border: solid var(--line); border-width: 0 1px 1px 0; background: #FFFFFF; }
.row-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 0 0 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.row-main .ico { color: var(--ink-4); }
.row-name { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.row-watts { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty-slot { display: flex; flex: none; justify-content: flex-end; width: 86px; }
.row:not(.is-on) .qty-less,
.row:not(.is-on) .qty-n { display: none; }
.row:not(.is-on):hover { background: #FAFBFD; }
.row.is-on { background: var(--accent-tint); box-shadow: inset 2px 0 0 var(--accent); }
.row.is-on .row-main .ico { color: var(--accent); }

.list-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }

.own { display: grid; grid-template-columns: minmax(0, 1.5fr) 120px auto; gap: 10px; align-items: end; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--canvas); }
.own .field + .field { margin-top: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.own .check { grid-column: 1 / -1; font-weight: 400; color: var(--ink-2); }

/* Step 2: label on the left, control on the right */

.form-rows { margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.form-label h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.form-label p { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.form-control > * + * { margin-top: 14px; }

.range-row { display: flex; align-items: center; gap: 14px; max-width: 440px; }
.range-row input[type="range"] { flex: 1; height: 20px; margin: 0; accent-color: var(--accent); }
.range-row .unit { width: 118px; flex: none; }
.range-row .unit .input { padding-right: 56px; }

.have-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.have-count { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.have-count .qty-n { display: block; }

/* Bottom of the left column: back and continue, always in view */

.app-foot {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 0 var(--r-3);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.foot-sum { display: none; min-width: 0; }
.foot-actions { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }

/* Right column */

.app-side { border-left: 1px solid var(--line); border-radius: 0 var(--r-3) var(--r-3) 0; background: #FAFBFD; }
.side-in { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; }
.side-title { font-size: 14px; font-weight: 600; }
.side-empty { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }

.kv { margin-top: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 13.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.side-rule { height: 1px; margin: 16px 0; border: 0; background: var(--line); }

.pick { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pick-img { display: grid; flex: none; place-items: center; width: 64px; height: 64px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-2); background: #FFFFFF; }
.pick-img img { width: 100%; height: 100%; object-fit: contain; }
.pick-name { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pick-sub { margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }

.side-note { margin-top: 16px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }

.side-form p.side-lead { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.side-form form { margin-top: 16px; }
.side-form .btn { margin-top: 16px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pair .field + .field { margin-top: 0; }
.pair + .field,
.pair + .pair,
.field + .pair { margin-top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:not(:empty) { margin-top: 12px; }
.form-error { margin-top: 12px; color: var(--danger); font-size: 13px; font-weight: 500; line-height: 1.45; }
.form-note { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.contact-lines { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-lines .ico { color: var(--ink-3); }
.sent h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sent p { margin: 8px 0 16px; color: var(--ink-2); font-size: 13.5px; }

/* Step 3: the result */

.result-head { display: flex; align-items: center; gap: 18px; }
.result-img { display: grid; flex: none; place-items: center; width: 120px; height: 96px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #FBFCFE, #EEF2F7); }
.result-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(10, 37, 64, 0.16)); }
.result-lede { color: var(--ink-3); font-size: 13px; }
.result-title { margin-top: 2px; font-size: clamp(22px, 18px + 1vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.028em; font-variant-numeric: tabular-nums; }
.result-title:focus { outline: none; }
.result-sub { margin-top: 5px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.notice { display: flex; gap: 10px; margin-top: 18px; padding: 11px 13px; border: 1px solid #F1D9A6; border-radius: var(--r-2); background: #FFFAEB; color: #5B4208; font-size: 13.5px; line-height: 1.5; }
.notice .ico { margin-top: 2px; color: #B7791F; }

.runtime { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.runtime-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 13.5px; }
.runtime-top strong { flex: none; color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runtime-bar { display: flex; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: var(--track); }
.runtime-bar i { display: block; background: var(--accent); }
.runtime-bar i + i { background: #A9C4FA; }
.runtime-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.runtime-key span { display: inline-flex; align-items: center; gap: 6px; }
.runtime-key span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.runtime-key span + span::before { background: #A9C4FA; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.stat { margin: 0 -1px -1px 0; padding: 14px 16px; border: solid var(--line); border-width: 0 1px 1px 0; }
.stat dt { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.stat-value { margin-top: 3px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--ink-3); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; }

.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block h3 { font-size: 14px; font-weight: 600; }
.block-head span { color: var(--ink-3); font-size: 12.5px; }
.block > p { margin-top: 6px; max-width: 600px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

.bars { margin-top: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr) 68px; gap: 14px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 4px; border-radius: 2px; background: var(--track); }
.bar-fill { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.bar-value { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

.table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13.5px; }
.table th { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; font-weight: 500; text-align: left; }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { padding-right: 0; text-align: right; white-space: nowrap; }
.table .num + .num { padding-left: 16px; }
.table th.num { padding-right: 0; }
.table small { display: block; color: var(--ink-3); font-size: 12.5px; }
.table .is-pick td:first-child { font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 7px; border: 1px solid #CFE0FF; border-radius: 5px; background: var(--accent-tint); color: var(--accent-deep); font-size: 11.5px; font-weight: 500; vertical-align: 1px; }

.tune { margin-top: 30px; border: 1px solid var(--line); border-radius: 10px; }
.tune summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.tune summary::-webkit-details-marker { display: none; }
.tune summary .ico:first-child { color: var(--ink-3); }
.tune summary .ico:last-child { margin-left: auto; color: var(--ink-3); transition: transform 0.15s ease; }
.tune[open] summary .ico:last-child { transform: rotate(180deg); }
.tune-body { padding: 2px 16px 16px; border-top: 1px solid var(--line); }
.tune-body > p { margin-top: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.tune-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 112px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.tune-row + .tune-row { border-top: 1px solid var(--line); }
.tune-head { margin-top: 10px; padding-bottom: 6px; color: var(--ink-3); font-size: 12.5px; }
.tune-row .input { height: 32px; font-size: 13.5px; }
.tune-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tune-sums .field + .field { margin-top: 0; }

.result-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13.5px; font-weight: 500; }
.result-links a,
.result-links button { display: inline-flex; align-items: center; gap: 7px; }
.result-links .link-btn { font-size: 13.5px; }

.fine-print { margin-top: 18px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }

/* ---------- Under the calculator ---------- */

.notes { padding: 80px 0 96px; }
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.notes h2 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.notes-lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.method { margin-top: 20px; border-top: 1px solid var(--line); counter-reset: method; }
.method li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; padding: 15px 0; border-bottom: 1px solid var(--line); counter-increment: method; }
.method li::before { content: counter(method); grid-row: 1 / span 2; padding-top: 2px; color: var(--ink-4); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.method strong { font-size: 14.5px; font-weight: 600; }
.method span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--ink-3); transition: transform 0.15s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { max-width: 560px; padding: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ---------- Footer ---------- */

.ft { border-top: 1px solid var(--line); background: var(--canvas); color: var(--ink-2); font-size: 13.5px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.ft p { margin-top: 12px; max-width: 360px; line-height: 1.6; }
.ft h3 { color: var(--ink); font-size: 13px; font-weight: 600; }
.ft ul { display: grid; gap: 7px; margin-top: 10px; }
.ft ul a { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ft ul a:hover { color: var(--ink); text-decoration: none; }
.ft-base { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }

/* A plain framed panel that overlaps the page title, for pages without a calculator */
.panel { position: relative; margin-top: -64px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-3); background: #FFFFFF; box-shadow: var(--shadow-2); }
.page-pad { padding-bottom: 96px; }

/* ---------- Calculators without steps: inputs on the left, the answer on the right ---------- */

.app-single .app-foot { display: none; }
.pane + .pane { padding-top: 4px; }
.pane-end { padding-bottom: 28px; }

.side-big { margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.side-big + .pick-sub { margin-top: 6px; font-size: 14px; }
.side-actions { display: grid; gap: 12px; margin-top: 18px; }
.side-actions .link-btn,
.side-actions a:not(.btn) { justify-self: start; font-size: 13.5px; font-weight: 500; }
.side-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }

.hint { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.form-control > .hint { margin-top: 8px; }
.inputs { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.inputs .field + .field { margin-top: 0; }
.inputs-3 { --cols: 3; }
.inputs-4 { --cols: 4; max-width: none; }
.tune-body .inputs { margin-top: 14px; }

select.input {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Currency: the symbol sits in front of the number */
.unit-lead .input { padding-right: 12px; padding-left: 28px; }
.unit-lead > span { right: auto; left: 11px; }

.range-out { min-width: 3.2em; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.callout { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--canvas); color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.callout strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* Month-by-month chart */

.chart { position: relative; margin-top: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--ink-3); font-family: var(--font); font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.chart-grid { stroke: var(--line); stroke-width: 1; pointer-events: none; }
.chart-bar { fill: var(--accent); }
.chart-hit { fill: transparent; }
.chart-col:focus { outline: none; }
.chart-col.is-active .chart-bar { fill: var(--accent-deep); }
.chart-col.is-active .chart-hit { fill: rgba(10, 37, 64, 0.04); }
.chart-use { stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-3); font-size: 12.5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key-bar { width: 8px; height: 10px; border-radius: 2px 2px 0 0; background: var(--accent); }
.key-line { width: 14px; height: 1.5px; background: var(--ink); }
.chart-tip {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: var(--r-1);
  background: var(--ink);
  color: #C9D3DF;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(10, 37, 64, 0.55);
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.chart-tip strong { display: block; color: #FFFFFF; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.reveal { margin-top: 14px; }
.reveal summary { color: var(--accent-deep); font-size: 13px; font-weight: 500; cursor: pointer; }

/* Container loading plan, seen from above */

.plan svg { width: 100%; height: auto; margin-top: 12px; }
.plan-floor { fill: var(--canvas); stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-box { fill: #BCD2FB; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-doors { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.block > .plan-key { display: flex; justify-content: space-between; gap: 16px; max-width: none; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }

/* Export quote: lines of product and quantity */

.lines > * + * { margin-top: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 104px 36px; gap: 8px; align-items: center; }
.line-remove { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-1); background: none; color: var(--ink-3); cursor: pointer; }
.line-remove:hover { background: var(--canvas); color: var(--ink); }
.line:first-child .line-remove { visibility: hidden; }
.lines .link-btn { margin-top: 10px; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; padding: 20px 0 24px; border-top: 1px solid var(--line); }
.form-submit .form-note { margin: 0; }
.form-submit .form-error { flex: 1 1 100%; margin: 0; }
.pane .sent { padding: 8px 0 28px; }
.side-list { margin-top: 12px; }
.side-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Page sections outside the calculators ---------- */

.section { padding: 96px 0; }
.section-tint { border-block: 1px solid var(--line); background: var(--canvas); }
.section-dark { background: #0A2540; color: #FFFFFF; }

.sec-head { max-width: 640px; }
.sec-head h2 { font-size: clamp(26px, 20px + 1.6vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.sec-head p a { font-weight: 500; }
.section-dark .sec-head p { color: #ADBDCC; }

.sub-head { margin-top: 56px; max-width: 640px; }
.sub-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.018em; }
.sub-head p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.sub-head p a { font-weight: 500; }

/* A grid of cells divided by hairlines */
.cells-2 { --cols: 2; }
.cells-3 { --cols: 3; }
.cells-4 { --cols: 4; }
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-3); background: #FFFFFF; }
.cell { display: flex; flex-direction: column; margin: 0 -1px -1px 0; padding: 24px; border: solid var(--line); border-width: 0 1px 1px 0; }
.cell h3,
.cell h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.cell p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.cell-link { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 500; }
.cell-meta { color: var(--ink-3) !important; font-size: 13px !important; }

.icon-box { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--canvas); color: var(--accent); }

a.cell { color: inherit; transition: background-color 0.12s ease; }
a.cell:hover { background: #FAFBFD; text-decoration: none; }
a.cell .cell-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-deep); }
a.cell .cell-link .ico { width: 14px; height: 14px; }

.group-label { margin-top: 36px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.group-label:first-child { margin-top: 0; }
.group-label + .cells { margin-top: 12px; }

/* Home: opening */

.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--canvas); }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(37, 99, 235, 0.15), transparent 70%),
    radial-gradient(640px 380px at 62% -14%, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}
.home-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: 80px; padding-bottom: 88px; }
.home-hero h1 { font-size: clamp(36px, 22px + 3.4vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -0.038em; }
.home-hero h1 span { display: block; }
.home-hero h1 span + span { color: var(--ink-3); }
.lede { margin-top: 20px; max-width: 520px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-call { margin-top: 18px; color: var(--ink-3); font-size: 13.5px; }
.hero-call a { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* A small working example of the backup calculator */
.demo { border: 1px solid var(--line); border-radius: var(--r-3); background: #FFFFFF; box-shadow: var(--shadow-2); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.demo-head strong { font-size: 14px; font-weight: 600; }
.demo-head span { color: var(--ink-3); font-size: 12.5px; }
.demo-body { padding: 18px 20px 20px; }
.demo-label { color: var(--ink-2); font-size: 13px; }
.demo-body .segmented { display: flex; margin-top: 8px; }
.demo-body .kv { margin-top: 14px; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-3) var(--r-3); background: #FAFBFD; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.demo-foot .btn { flex: none; }

.strip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.strip > div { padding: 22px 24px 26px 0; }
.strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip strong { display: block; font-size: 14.5px; font-weight: 600; }
.strip span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* Home: products */

.product-photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-2); background: linear-gradient(180deg, #FBFCFE, #EEF2F7); }
.product-photo img { position: absolute; inset: 12% 14%; width: 72%; height: 76%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(10, 37, 64, 0.16)); }
.product h4 { margin-top: 20px; font-size: 20px; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.product > p { min-height: 4.8em; }
.specs { margin-top: 14px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.specs dt { color: var(--ink-2); }
.specs dd { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.specs small { color: var(--ink-3); font-size: inherit; font-weight: 400; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 20px; font-size: 13.5px; font-weight: 500; }

.ranges { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-3); background: #FFFFFF; }
.range { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 18px 24px; }
.range + .range { border-top: 1px solid var(--line); }
.range h4 { font-size: 15px; font-weight: 600; }
.range p { margin-top: 2px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.range .range-uses { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.range a { font-size: 13.5px; font-weight: 500; white-space: nowrap; }

/* Home: solar */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.photos { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 16 / 10; }
.photos img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; background: var(--track); }
.photos img:first-child { grid-row: 1 / span 2; }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.reasons li { padding: 24px 28px 0 0; }
.reasons li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.reasons h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.reasons p { margin-top: 8px; color: #ADBDCC; font-size: 14px; line-height: 1.6; }

.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); counter-reset: process; }
.process li { padding: 20px 20px 0 0; counter-increment: process; }
.process li::before { content: counter(process); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; background: #FFFFFF; color: var(--ink-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.process h3 { margin-top: 14px; font-size: 15px; font-weight: 600; }
.process p { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

.faq-wide { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wide .faq { margin-top: 0; }

/* Home: contact */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { margin-top: 28px; border-top: 1px solid var(--line); }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--accent-deep); text-decoration: none; }
.contact-list .ico { width: 18px; height: 18px; color: var(--ink-3); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-3); background: #FFFFFF; box-shadow: var(--shadow-2); }
.card .btn { margin-top: 16px; }

/* Simple centred message page */
.message-page { padding: 120px 0 140px; }
.message-page h1 { font-size: clamp(30px, 22px + 2vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.032em; }
.message-page p { margin-top: 12px; max-width: 520px; color: var(--ink-2); font-size: 16px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { border-top: 1px solid var(--line); border-left: 0; border-radius: 0 0 var(--r-3) var(--r-3); }
  .side-in { position: static; }
  /* In the stepped calculator the summary moves into the bar at the bottom until the result step. */
  .app[data-at] .app-side[data-view="summary"] { display: none; }
  .app-foot { flex-direction: column; align-items: stretch; gap: 10px; border-radius: 0 0 var(--r-3) var(--r-3); }
  .app[data-at="3"] .app-foot { border-radius: 0; }
  .foot-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
  .foot-sum strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .foot-sum span { flex: none; font-variant-numeric: tabular-nums; }
}

@media (max-width: 980px) {
  .app-single .app-foot { display: flex; }
  .home-hero-grid,
  .split,
  .contact,
  .faq-wide { grid-template-columns: minmax(0, 1fr); }
  .home-hero-grid { padding-top: 56px; padding-bottom: 64px; }
  .demo { max-width: 520px; }
  .section { padding: 72px 0; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .cells-3,
  .cells-4 { --cols: 2; }
  .cells.products { --cols: 1; }
  .product > p { min-height: 0; }
}

@media (max-width: 820px) {
  .hd-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: calc(-1 * var(--gutter));
    left: calc(-1 * var(--gutter));
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 12px;
    border-bottom: 1px solid var(--line);
    background: #FFFFFF;
    box-shadow: 0 16px 24px -16px rgba(10, 37, 64, 0.2);
  }
  .hd-nav.is-open { display: flex; }
  .hd-nav a { padding: 11px 0; border-radius: 0; font-size: 15px; }
  .hd-nav a:hover { background: none; }
  .menu-toggle { display: grid; }
  .hd-end .btn { display: none; }

  .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .notes { padding: 56px 0 64px; }
  .ft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cells-2,
  .cells-3,
  .cells-4 { --cols: 1; }
  .cell { padding: 20px; }
  .section { padding: 56px 0; }
  .strip,
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .strip > div { padding: 16px 0; }
  .strip > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .reasons li { padding: 20px 0; }
  .reasons li + li { padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .process li::before { grid-row: 1 / span 2; }
  .process h3 { margin-top: 2px; }
  .range { grid-template-columns: minmax(0, 1fr); padding: 16px 20px; }
  .card { padding: 20px 16px; }
  .inputs-3,
  .inputs-4 { --cols: 2; }
  .line { grid-template-columns: minmax(0, 1fr) 84px 36px; }
  .side-big { font-size: 28px; }

  .hero { padding: 24px 0 88px; }
  .hero-sub { font-size: 15px; }
  .hd-tel span { display: none; }
  .hd-tel .ico { width: 18px; height: 18px; }

  .progress { gap: 8px; padding: 12px 16px; }
  .progress li { gap: 8px; }
  .progress li + li::before { width: 10px; }
  .progress li:not(.is-current) .t { display: none; }

  .pane { padding: 22px 16px 4px; }
  .app-foot { padding: 12px 16px; }
  .side-in { padding: 20px 16px; }

  .toolbar { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar > * { flex: none; }
  .toolbar .link-btn { margin-left: 4px; }

  /* Larger touch targets */
  .list { grid-template-columns: minmax(0, 1fr); }
  .row { min-height: 54px; }
  .row-main { height: 54px; }
  .qty { height: 36px; }
  .qty button { width: 36px; height: 34px; }
  .qty-n { min-width: 30px; font-size: 14px; line-height: 34px; }
  .qty-slot { width: 106px; }
  .btn { height: 40px; }
  .input { height: 42px; font-size: 16px; }
  .tune-row .input { height: 38px; font-size: 16px; }
  .segmented span { height: 36px; padding: 0 10px; }

  .own { grid-template-columns: minmax(0, 1fr) 104px; }
  .own .btn { grid-column: 1 / -1; }

  .form-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .segmented { display: flex; }

  .result-head { align-items: flex-start; gap: 14px; }
  .result-img { width: 88px; height: 72px; padding: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bars li { grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 62px; gap: 10px; }
  .tune-row { grid-template-columns: minmax(0, 1fr) 88px 80px; gap: 8px; }
  .tune-sums { grid-template-columns: minmax(0, 1fr); }
  .tune-sums .field + .field { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
