:root {
  --color-black: #111213;
  --color-ink: #17191f;
  --color-header: #1d1d1f;
  --color-header-soft: #2d2d2e;
  --color-red: #e30613;
  --color-red-deep: #c92016;
  --color-red-dark: #a71911;
  --color-text: #1b1d22;
  --color-muted: #6f7278;
  --color-line: #e5e5e5;
  --color-soft: #f6f6f6;
  --color-white: #ffffff;
  --section-muted: #f5f6f7;
  --section-soft: #fafafa;
  --shadow-soft: 0 18px 50px rgba(10, 10, 10, 0.08);
  --shadow-strong: 0 28px 70px rgba(8, 10, 14, 0.14);
  --shadow-red: 0 18px 42px rgba(227, 6, 19, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.22, 0.61, 0.36, 1);
  --type-display: clamp(46px, 4.6vw, 68px);
  --type-page-title: clamp(42px, 4vw, 60px);
  --type-section-title: clamp(31px, 2.9vw, 44px);
  --type-panel-title: clamp(24px, 2vw, 32px);
  --type-card-title: clamp(18px, 1.28vw, 22px);
  --type-body: 16px;
  --type-body-large: 17px;
  --type-small: 14px;
  --type-kicker: 12px;
  --type-title-weight: 900;
  --type-subtitle-weight: 800;
  --type-body-weight: 600;
  --type-title-line: 1.08;
  --type-body-line: 1.7;
  --type-title-spacing: -0.024em;
  --section-title-size: var(--type-section-title);
  --section-title-weight: var(--type-title-weight);
  --section-title-line: var(--type-title-line);
  --section-title-spacing: var(--type-title-spacing);
  --container: 1240px;
  --container-wide: 1360px;
  --header-height: 74px;
}

.calculator-page-main {
  background: var(--section-muted);
}

.calculator-hero-card {
  min-height: 320px;
  justify-content: center;
}

.window-calculator-section {
  padding: 76px 0 92px;
  background: var(--section-muted);
}

.calc-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.calc-app-toolbar span,
.calc-step-heading span,
.calc-choice-group h3,
.dimension-control > span,
.quantity-control,
.calc-summary-panel .section-kicker,
.quote-panel .section-kicker {
  color: var(--color-muted);
  font-size: var(--type-kicker);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calc-app-toolbar strong {
  display: block;
  margin-top: 4px;
  color: var(--color-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.1;
}

.calc-app-selectors {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-app-selectors label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-app-selectors select,
.calc-filterbar select,
.quote-form input,
.quote-form textarea {
  border: 1px solid rgba(20, 22, 26, 0.18);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
}

.calc-app-selectors select,
.calc-filterbar select {
  min-height: 46px;
  padding: 0 36px 0 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.calc-cart-button:hover {
  background: var(--color-red);
  transform: translateY(-2px);
}

.calc-cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 8px;
  background: var(--color-red);
  color: var(--color-white);
}

.calc-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.calc-config,
.calc-summary-sticky,
.quote-panel {
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.calc-step {
  padding: 30px;
  border-bottom: 1px solid var(--color-line);
}

.calc-step:last-child {
  border-bottom: 0;
}

.calc-step-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.calc-step-heading span {
  color: var(--color-red);
  font-size: 15px;
}

.calc-step-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.calc-reset-link,
.calc-more-button,
.quote-panel-header button {
  border: 0;
  background: transparent;
  color: var(--color-red);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.calc-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dimension-control {
  display: grid;
  gap: 10px;
}

.dimension-control div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  border: 1px solid rgba(20, 22, 26, 0.18);
  background: #fbfbfb;
}

.dimension-control button {
  border: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.dimension-control input,
.quantity-control input {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.dimension-control small {
  color: var(--color-muted);
  font-weight: 700;
}

.calc-validation {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--color-red);
  font-weight: 900;
}

.calc-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.calc-filterbar button,
.nose-question button {
  min-height: 46px;
  border: 1px solid rgba(20, 22, 26, 0.18);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0 16px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.calc-filterbar button:hover,
.calc-filterbar button.is-active,
.nose-question button:hover,
.nose-question button.is-active {
  border-color: var(--color-red);
  background: var(--color-red);
  color: var(--color-white);
}

.calc-filterbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.construction-grid,
.system-grid,
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.construction-tile,
.system-tile,
.accessory-tile {
  position: relative;
  min-height: 170px;
  border: 1px solid var(--color-line);
  background: #fbfbfb;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

.construction-tile:hover,
.system-tile:hover,
.accessory-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: 0 16px 35px rgba(10, 10, 10, 0.08);
}

.construction-tile.is-active,
.system-tile.is-active,
.accessory-tile.is-active {
  border-color: var(--color-red);
  background: var(--color-white);
  box-shadow: inset 4px 0 0 var(--color-red), 0 18px 40px rgba(10, 10, 10, 0.1);
}

.construction-tile.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.construction-tile strong,
.system-tile strong,
.accessory-tile strong {
  display: block;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.construction-tile span,
.system-tile span,
.accessory-tile span {
  display: block;
  margin-bottom: 18px;
  color: var(--color-red);
  font-size: 13px;
  font-weight: 900;
}

.construction-tile small,
.system-tile small,
.accessory-tile small {
  display: block;
  margin-top: 10px;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.45;
}

.construction-icon {
  width: 96px;
  height: 58px;
  margin-bottom: 16px;
}

.construction-icon rect,
.construction-icon path {
  fill: none;
  stroke: #9ea7ad;
  stroke-width: 4;
}

.construction-icon .glass {
  fill: rgba(204, 232, 239, 0.65);
  stroke-width: 2;
}

.construction-icon .dash {
  stroke-dasharray: 6 5;
  stroke-width: 2;
}

.personalization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calc-choice-group {
  padding: 20px;
  border: 1px solid var(--color-line);
  background: #fbfbfb;
}

.calc-choice-group h3 {
  margin: 0 0 14px;
  color: var(--color-ink);
}

.color-grid,
.glass-grid,
.handle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.color-swatch,
.glass-option,
.handle-grid label {
  min-height: 54px;
  border: 1px solid rgba(20, 22, 26, 0.16);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 10px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.color-swatch::before {
  content: "";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(20, 22, 26, 0.2);
  background: var(--swatch);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.color-swatch.is-active,
.glass-option.is-active {
  border-color: var(--color-red);
  box-shadow: inset 3px 0 0 var(--color-red);
}

.system-tile {
  min-height: 190px;
}

.system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.system-meta em {
  border: 1px solid var(--color-line);
  padding: 5px 8px;
  color: var(--color-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.accessory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accessory-tile {
  min-height: 130px;
}

.nose-question {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(227, 6, 19, 0.22);
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.06), rgba(255, 255, 255, 0.9));
}

.nose-question strong {
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 900;
}

.nose-question p {
  max-width: 780px;
  margin: 8px 0 16px;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.6;
}

.nose-question-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nose-result {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dfe3e6;
  background: #ffffff;
}

.nose-result span,
.nose-result small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.nose-result strong {
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 900;
}

.quantity-control {
  display: grid;
  width: 180px;
  gap: 8px;
  margin-top: 20px;
}

.quantity-control input {
  border: 1px solid rgba(20, 22, 26, 0.18);
  background: var(--color-white);
}

.calc-summary-sticky {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 26px;
}

.live-window-preview {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin: 18px 0;
  background: radial-gradient(circle at 50% 40%, rgba(227, 6, 19, 0.08), transparent 34%), #f8f9f9;
}

.live-window-preview svg {
  width: min(100%, 280px);
  height: auto;
  overflow: visible;
}

.window-profile {
  fill: var(--profile-color, #fff);
  stroke: #6f7a82;
  stroke-width: 5;
}

.window-glass {
  fill: rgba(204, 232, 239, 0.78);
  stroke: #87949d;
  stroke-width: 2.5;
}

.window-open-line {
  fill: none;
  stroke: #5c666d;
  stroke-width: 1.35;
  stroke-dasharray: 6 5;
}

.window-handle {
  fill: #262b2f;
}

.configured-window-svg {
  shape-rendering: geometricPrecision;
}

.window-frame,
.window-sash,
.window-mullion,
.window-frame-shape {
  stroke: #727c82;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.window-frame-cut {
  fill: rgba(255, 255, 255, 0.62);
  stroke: rgba(96, 108, 116, 0.38);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.window-sash {
  stroke-width: 2.4;
}

.window-sash.is-front {
  filter: drop-shadow(-4px 0 5px rgba(23, 27, 31, 0.14));
}

.window-shadow {
  fill: rgba(20, 24, 28, 0.1);
}

.window-track {
  fill: none;
  stroke: #5f6870;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.calc-summary-panel h2 {
  margin: 0 0 14px;
  color: var(--color-ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.14;
}

.summary-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  font-weight: 800;
}

.summary-lines div:last-child {
  border-bottom: 0;
}

.summary-lines strong {
  color: var(--color-ink);
  text-align: right;
}

.summary-price {
  margin: 22px 0;
  padding: 22px;
  background: var(--color-black);
  color: var(--color-white);
}

.summary-price span,
.summary-price small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  text-transform: uppercase;
}

.summary-price strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: 1;
}

.calc-summary-sticky .btn {
  width: 100%;
  margin-top: 10px;
}

.calc-note {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.quote-panel {
  margin-top: 28px;
  padding: 30px;
}

.quote-panel[hidden] {
  display: none;
}

.quote-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 18px;
}

.quote-panel h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--type-panel-title);
  font-weight: 900;
  line-height: 1.12;
}

.quote-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.quote-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--color-line);
  background: #fbfbfb;
}

.quote-item strong {
  display: block;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 900;
}

.quote-item span {
  color: var(--color-muted);
  font-weight: 700;
}

.quote-item button {
  border: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.quote-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--color-black);
  color: var(--color-white);
}

.quote-total span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  text-transform: uppercase;
}

.quote-total strong {
  font-size: 32px;
  font-weight: 900;
}

.quote-form {
  margin-top: 24px;
}

.quote-form label {
  display: grid;
  gap: 10px;
  color: var(--color-muted);
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 18px;
  background: #fbfbfb;
  color: var(--color-ink);
  font-weight: 800;
  text-transform: none;
}

.quote-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quote-output {
  width: 100%;
  min-height: 190px;
  margin-top: 18px;
  border: 1px solid var(--color-line);
  padding: 18px;
  font: 700 14px/1.6 "Mulish", Arial, sans-serif;
}

@media (max-width: 1180px) {
  .calc-app-grid {
    grid-template-columns: 1fr;
  }

  .calc-summary-sticky {
    position: static;
  }
}

@media (max-width: 860px) {
  .calc-app-toolbar,
  .quote-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .calc-step {
    padding: 24px 18px;
  }

  .calc-step-heading {
    grid-template-columns: 1fr;
  }

  .calc-dimensions,
  .personalization-grid,
  .construction-grid,
  .system-grid,
  .accessory-grid,
  .color-grid,
  .glass-grid,
  .quote-item {
    grid-template-columns: 1fr;
  }

  .calc-filterbar label {
    width: 100%;
    margin-left: 0;
  }

  .calc-filterbar select {
    width: 100%;
  }
}

/* Cleaner calculator layout */
.window-calculator-section {
  padding: 52px 0 72px;
  background: #f4f5f6;
}

.calc-app-toolbar {
  padding: 18px 22px;
  border-color: rgba(20, 22, 26, 0.1);
  box-shadow: none;
}

.calc-app-toolbar strong {
  font-size: clamp(21px, 1.6vw, 26px);
  font-weight: 800;
  line-height: 1.18;
}

.calc-app-toolbar span,
.calc-step-heading span,
.calc-choice-group h3,
.dimension-control > span,
.quantity-control,
.calc-summary-panel .section-kicker,
.quote-panel .section-kicker {
  font-size: 11px;
  font-weight: 800;
}

.calc-app-selectors select,
.calc-filterbar select {
  min-height: 42px;
  font-weight: 800;
}

.calc-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.calc-cart-button span,
.summary-cart-status strong span {
  margin-left: 0;
}

.calc-app-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-top: 20px;
}

.calc-config {
  display: grid;
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calc-step {
  border: 1px solid rgba(20, 22, 26, 0.1);
  background: var(--color-white);
  padding: 24px 26px;
  box-shadow: none;
}

.calc-step:last-child {
  border-bottom: 1px solid rgba(20, 22, 26, 0.1);
}

.calc-step-heading {
  gap: 14px;
  margin-bottom: 18px;
}

.calc-step-heading h2 {
  font-size: clamp(21px, 1.55vw, 26px);
  font-weight: 800;
  line-height: 1.18;
}

.calc-reset-link,
.calc-more-button,
.quote-panel-header button {
  font-weight: 800;
}

.dimension-control div {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  background: var(--color-white);
}

.dimension-control button {
  font-size: 18px;
  font-weight: 800;
}

.dimension-control input,
.quantity-control input {
  min-height: 52px;
  font-size: 23px;
  font-weight: 800;
}

.calc-filterbar {
  gap: 8px;
  margin-bottom: 18px;
}

.calc-filterbar button,
.nose-question button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.construction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.system-grid,
.accessory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.construction-tile {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-areas:
    "icon price"
    "icon title"
    "icon meta";
  column-gap: 14px;
  min-height: 116px;
  padding: 15px;
}

.construction-tile,
.system-tile,
.accessory-tile {
  border-color: rgba(20, 22, 26, 0.1);
  background: var(--color-white);
  box-shadow: none;
}

.construction-tile:hover,
.system-tile:hover,
.accessory-tile:hover {
  transform: none;
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: none;
}

.construction-tile.is-active,
.system-tile.is-active,
.accessory-tile.is-active {
  border-color: var(--color-red);
  box-shadow: inset 3px 0 0 var(--color-red);
}

.construction-tile.is-disabled {
  background: #f6f7f8;
  opacity: 0.58;
}

.construction-icon {
  grid-area: icon;
  align-self: center;
  width: 70px;
  height: 44px;
  margin: 0;
}

.construction-icon rect,
.construction-icon path {
  stroke-width: 3;
}

.construction-tile span {
  grid-area: price;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
}

.construction-tile strong {
  grid-area: title;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
}

.construction-tile small {
  grid-area: meta;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
}

.system-tile,
.accessory-tile {
  min-height: 138px;
  padding: 16px;
}

.system-tile strong,
.accessory-tile strong {
  font-size: 16px;
  font-weight: 800;
}

.system-tile span,
.accessory-tile span {
  margin-bottom: 12px;
  font-weight: 800;
}

.personalization-grid {
  gap: 12px;
}

.calc-choice-group {
  padding: 16px;
  background: var(--color-white);
  border-color: rgba(20, 22, 26, 0.1);
}

.color-grid,
.glass-grid,
.handle-grid {
  gap: 8px;
}

.color-swatch,
.glass-option,
.handle-grid label {
  min-height: 48px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 750;
}

.nose-question {
  padding: 18px;
  background: #fff;
  border-color: rgba(20, 22, 26, 0.1);
}

.nose-question strong {
  font-size: 16px;
  font-weight: 800;
}

.nose-question p {
  font-weight: 600;
}

.calc-summary-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 34px);
  overflow: auto;
}

.calc-summary-sticky {
  position: static;
  padding: 22px;
  border-color: rgba(20, 22, 26, 0.1);
  box-shadow: none;
}

.live-window-preview {
  min-height: 188px;
  margin: 14px 0;
  background: #f7f8f8;
}

.live-window-preview svg {
  width: min(100%, 238px);
}

.calc-summary-panel h2 {
  font-size: 21px;
  font-weight: 800;
}

.summary-lines div {
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
}

.summary-lines strong {
  font-weight: 800;
}

.summary-price {
  margin: 18px 0 12px;
  padding: 18px;
}

.summary-price span,
.summary-price small {
  font-size: 11px;
  font-weight: 800;
}

.summary-price strong {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
}

.summary-cart-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 22, 26, 0.1);
  background: #f7f8f8;
}

.summary-cart-status > span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-cart-status strong {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 800;
}

.calc-summary-sticky .btn {
  margin-top: 8px;
}

.quote-panel {
  border-color: rgba(20, 22, 26, 0.1);
  box-shadow: none;
}

@media (max-width: 1180px) {
  .calc-app-grid {
    grid-template-columns: 1fr;
  }

  .calc-summary-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .calc-step {
    padding: 22px 16px;
  }

  .construction-grid,
  .system-grid,
  .accessory-grid {
    grid-template-columns: 1fr;
  }
}

/* Debesto-sized calculator layout */
.calculator-page-main {
  background: var(--color-white);
}

.calculator-hero.page-hero-dark {
  min-height: 0;
  padding: 18px 0 8px;
  background: var(--color-white);
  color: #4e4f52;
}

.calculator-hero.page-hero-dark::before,
.calculator-hero.page-hero-dark::after,
.calculator-hero .page-hero-card,
.calculator-hero .section-kicker,
.calculator-hero .title-rule,
.calculator-hero .page-hero-actions {
  display: none;
}

.calculator-hero .page-hero-grid {
  display: block;
  max-width: 1150px;
}

.calculator-hero .page-hero-copy {
  max-width: none;
}

.calculator-hero h1 {
  max-width: none;
  margin: 0;
  color: #4b4c50;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.calculator-hero p {
  max-width: none;
  margin: 8px 0 0;
  color: #85878c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.window-calculator-section {
  padding: 22px 0 76px;
  background: var(--color-white);
}

.window-calculator-section::before {
  content: none;
  display: none;
}

.window-calculator-section .container-wide {
  max-width: 1150px;
}

.calc-app-toolbar {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: var(--color-white);
  box-shadow: none;
}

.calc-app-toolbar > div:first-child {
  display: none;
}

.calc-app-selectors {
  width: 100%;
  justify-content: flex-end;
  gap: 8px;
}

.calc-app-selectors label {
  gap: 0;
  color: #8a8c90;
  font-size: 0;
}

.calc-app-selectors select {
  min-height: 36px;
  min-width: 98px;
  padding: 0 28px 0 10px;
  border-color: #dddddd;
  color: #4b4c50;
  font-size: 12px;
  font-weight: 700;
}

.calc-cart-button {
  min-height: 36px;
  border: 1px solid #dddddd;
  background: var(--color-white);
  color: #2f3033;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.calc-cart-button:hover {
  background: #f7f7f7;
  color: #2f3033;
  transform: none;
}

.calc-cart-button span {
  min-width: 18px;
  min-height: 18px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 11px;
}

.calc-app-grid {
  display: grid;
  grid-template-columns: 750px 340px;
  gap: 48px;
  align-items: start;
  margin-top: 0;
}

.calc-config {
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calc-step {
  padding: 0 10px 42px;
  border: 0;
  border-bottom: 1px solid #d9d9d9;
  background: var(--color-white);
  box-shadow: none;
}

.calc-step + .calc-step {
  padding-top: 36px;
}

.calc-step:last-child {
  border-bottom: 0;
}

.calc-step-heading {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 20px;
}

.calc-step-heading span {
  color: var(--color-red);
  font-size: 15px;
  font-weight: 800;
}

.calc-step-heading h2 {
  position: relative;
  margin: 0;
  color: #333438;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.calc-step-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 60px;
  height: 3px;
  background: var(--color-red);
}

.calc-reset-link {
  margin-left: auto;
  color: #6f7278;
  font-size: 12px;
  font-weight: 700;
}

.calc-dimensions {
  grid-template-columns: repeat(2, 230px);
  gap: 20px;
}

.dimension-control {
  gap: 5px;
}

.dimension-control > span {
  position: relative;
  z-index: 1;
  width: max-content;
  margin: 0 0 -12px 46px;
  padding: 0 6px;
  background: var(--color-white);
  color: #b0b2b6;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.dimension-control div {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  border-color: #b6b6b6;
  background: var(--color-white);
}

.dimension-control button {
  min-height: 46px;
  border-right: 1px solid #d0d0d0;
  color: #333438;
  font-size: 20px;
  font-weight: 800;
}

.dimension-control button:last-child {
  border-right: 0;
  border-left: 1px solid #d0d0d0;
}

.dimension-control input {
  min-height: 46px;
  color: #4b4c50;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.dimension-control div::after {
  content: none;
}

.dimension-control small {
  color: #333438;
  font-size: 12px;
  font-weight: 600;
}

.calc-validation {
  margin-top: 10px;
  font-size: 12px;
}

.calc-filterbar {
  justify-content: flex-end;
  min-height: 26px;
  margin: -2px 0 20px;
}

.calc-filterbar button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #777a80;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.calc-filterbar button:hover,
.calc-filterbar button.is-active {
  background: transparent;
  color: var(--color-red);
}

.calc-filterbar label {
  margin-left: 10px;
  color: #b0b2b6;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.calc-filterbar select {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #a2a4a8;
  padding: 0 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.construction-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 26px;
}

.construction-tile {
  display: flex;
  min-height: 176px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.construction-tile:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.construction-tile.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.construction-tile.is-active strong {
  color: var(--color-red);
}

.construction-tile.is-disabled {
  background: transparent;
  opacity: 0.38;
}

.construction-icon {
  width: 112px;
  height: 92px;
  margin: 0 0 13px;
}

.construction-icon rect,
.construction-icon path {
  stroke: #8f9aa0;
  stroke-width: 2.4;
}

.construction-icon .glass {
  fill: #c8e7ee;
  stroke-width: 1.6;
}

.construction-tile span {
  order: 3;
  margin: 8px 0 0;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 800;
}

.construction-tile strong {
  order: 2;
  color: #777a80;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.construction-tile small {
  display: none;
}

.personalization-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calc-choice-group {
  min-height: 100px;
  padding: 0;
  border: 1px solid #eeeeee;
  background: var(--color-white);
}

.calc-choice-group h3 {
  margin: 0;
  padding: 12px 14px 8px;
  color: #777a80;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.color-grid,
.glass-grid,
.handle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #eeeeee;
}

.color-swatch,
.glass-option,
.handle-grid label {
  min-height: 48px;
  border: 0;
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  background: #fafafa;
  color: #333438;
  font-size: 13px;
  font-weight: 700;
}

.color-swatch.is-active,
.glass-option.is-active {
  border-color: #eeeeee;
  box-shadow: inset 0 -2px 0 var(--color-red);
}

.system-grid,
.accessory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-tile,
.accessory-tile {
  min-height: 124px;
  padding: 16px;
  border: 1px solid #eeeeee;
  background: var(--color-white);
  box-shadow: none;
}

.system-tile:hover,
.accessory-tile:hover,
.system-tile.is-active,
.accessory-tile.is-active {
  transform: none;
  border-color: var(--color-red);
  box-shadow: inset 0 -3px 0 var(--color-red);
}

.system-tile strong,
.accessory-tile strong {
  font-size: 17px;
  font-weight: 800;
}

.nose-question {
  padding: 18px;
  border-color: #eeeeee;
  background: #fafafa;
}

.nose-question button {
  min-height: 42px;
  border-color: #d0d0d0;
  font-size: 12px;
}

.quantity-control {
  width: 160px;
}

.calc-summary-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 58px);
  overflow: visible;
}

.calc-summary-sticky {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  padding: 0 12px 14px;
  border: 1px solid #b7b7b7;
  background: var(--color-white);
  box-shadow: none;
  overflow: auto;
  scrollbar-width: thin;
}

.calc-summary-panel .section-kicker {
  flex: 0 0 auto;
  margin: 0 -12px 8px;
  padding: 0;
  color: #4b4c50;
  font-size: 17px;
  font-weight: 800;
  line-height: 38px;
  text-align: center;
  text-transform: none;
}

.live-window-preview {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-height: 106px;
  margin: 0 0 10px;
  background: #fafafa;
}

.live-window-preview svg {
  width: min(100%, 190px);
  max-height: 96px;
}

.calc-summary-panel h2 {
  flex: 0 0 auto;
  margin: 0 0 8px;
  color: #55575b;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.summary-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  margin-bottom: 8px;
  border-top: 1px solid #e4e4e4;
  border-left: 1px solid #e4e4e4;
}

.summary-lines div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border-right: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  color: #777a80;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.22;
}

.summary-lines div span,
.summary-lines div strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-lines div span {
  color: #8c8e93;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-lines div strong {
  color: #25262a;
  font-size: 12px;
  font-weight: 800;
}

.summary-price {
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 11px 12px;
  background: #111213;
}

.summary-price span {
  font-size: 10px;
}

.summary-price strong {
  font-size: 23px;
  line-height: 1.05;
}

.summary-price small {
  margin-top: 4px;
  font-size: 11px;
}

.summary-cart-status {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding: 8px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  font-size: 12px;
}

.summary-cart-status span {
  color: #8c8e93;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-summary-sticky .btn {
  flex: 0 0 auto;
  min-height: 38px;
  margin-top: 7px;
  padding: 0 14px;
  font-size: 12px;
}

.calc-note {
  flex: 0 0 auto;
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(560px, 100vw);
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-white);
  box-shadow: -28px 0 70px rgba(8, 10, 14, 0.22);
  overflow: auto;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer .quote-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  align-items: center;
  padding: 22px 28px;
  background: var(--color-white);
}

.cart-drawer .quote-panel-header h2 {
  font-size: 28px;
}

.cart-drawer .quote-items,
.cart-drawer .quote-total,
.cart-drawer .quote-form,
.cart-drawer .quote-output {
  margin-left: 28px;
  margin-right: 28px;
}

.cart-empty {
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 1px dashed #cccccc;
  color: #777a80;
}

.cart-empty strong {
  color: #333438;
  font-size: 20px;
}

.quote-item.cart-line {
  grid-template-columns: 84px 1fr auto;
  align-items: start;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}

.cart-line-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: #f7f7f7;
}

.cart-line-preview .construction-icon {
  width: 58px;
  height: 42px;
  margin: 0;
}

.cart-line-main {
  display: grid;
  gap: 5px;
}

.cart-line-main strong {
  font-size: 17px;
  line-height: 1.25;
}

.cart-line-main span,
.cart-line-main small,
.cart-line-price span {
  color: #777a80;
  font-size: 12px;
  font-weight: 600;
}

.cart-line-actions {
  display: inline-grid;
  grid-template-columns: 34px auto 34px;
  align-items: center;
  width: max-content;
  margin-top: 10px;
  border: 1px solid #d7d7d7;
}

.cart-line-actions button {
  min-height: 32px;
  border: 0;
  background: var(--color-white);
  color: #333438;
  font-size: 18px;
  font-weight: 800;
}

.cart-line-actions em {
  padding: 0 10px;
  color: #333438;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cart-line-price {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.cart-line-price strong {
  font-size: 17px;
}

.cart-line-price button {
  border: 0;
  background: transparent;
  color: var(--color-red);
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.cart-drawer .quote-total {
  margin-top: 22px;
}

.cart-drawer .quote-form h3 {
  margin: 0 0 16px;
  color: #333438;
  font-size: 20px;
}

.cart-page-main {
  background: #f4f5f6;
}

.cart-page-section {
  min-height: clamp(540px, 60vh, 660px);
  padding: 30px 0 48px;
}

.cart-page-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.cart-page-item-main,
.cart-page-quantity,
.cart-page-price,
.cart-page-total-row strong,
.cart-page-total-row em {
  transition: opacity 160ms ease, filter 160ms ease;
}

.cart-page-layout.is-refreshing .cart-page-item-main,
.cart-page-layout.is-refreshing .cart-page-quantity,
.cart-page-layout.is-refreshing .cart-page-price,
.cart-page-layout.is-refreshing .cart-page-total-row strong,
.cart-page-layout.is-refreshing .cart-page-total-row em {
  opacity: 0.34;
  filter: blur(7px);
  pointer-events: none;
}

.cart-page-layout.is-refreshing::before {
  content: none;
}

.cart-page-layout.is-refreshing::after {
  content: "Odświeżam koszyk";
  position: absolute;
  left: 50%;
  top: 96px;
  z-index: 7;
  transform: translateX(-50%);
  min-width: 164px;
  padding: 11px 14px 11px 38px;
  background:
    radial-gradient(circle at 20px 50%, #e30613 0 4px, transparent 5px),
    #111317;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(17, 19, 23, 0.22);
  pointer-events: none;
  animation: summaryRefreshPulse 520ms ease-in-out infinite;
}

.cart-page-list,
.cart-page-summary {
  background: #ffffff;
  border: 1px solid #e0e4e7;
}

.cart-page-toolbar,
.cart-page-summary-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #e7eaed;
}

.cart-page-toolbar h2 {
  margin: 0;
  color: #17191f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
}

.cart-page-summary h2 {
  margin: 0;
  color: #17191f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
}

.cart-page-toolbar span,
.cart-page-summary-header span {
  color: #747a83;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-page-items {
  display: grid;
}

.cart-page-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, auto);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #e7eaed;
}

.cart-page-item:last-child {
  border-bottom: 0;
}

.cart-page-item-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.cart-page-item-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 96px;
  border: 1px solid #e0e5e8;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f8fa 100%);
}

.cart-window-thumb {
  width: 112px;
  height: 80px;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.cart-window-thumb .cart-thumb-outer,
.cart-window-thumb .cart-thumb-frame {
  fill: var(--thumb-fill);
  stroke: #748089;
  stroke-width: 1.15;
}

.cart-window-thumb .cart-thumb-sash,
.cart-window-thumb .cart-thumb-inner-frame {
  fill: var(--thumb-inner);
  stroke: #89949b;
  stroke-width: 0.95;
}

.cart-window-thumb .cart-thumb-glass {
  fill: #d7f1f6;
  stroke: #91a8b0;
  stroke-width: 0.9;
}

.cart-window-thumb .cart-thumb-outer-bevel,
.cart-window-thumb .cart-thumb-bevel {
  fill: none;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 0.7;
}

.cart-window-thumb .cart-thumb-dash,
.cart-window-thumb .cart-thumb-dash path {
  fill: none;
  stroke: #69757d;
  stroke-width: 0.85;
  stroke-dasharray: 4 3;
}

.cart-window-thumb .cart-thumb-handle {
  fill: #fbfbf9;
  stroke: #737f87;
  stroke-width: 0.7;
}

.cart-page-item-main strong {
  display: block;
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.22;
}

.cart-page-item-main span,
.cart-page-item-main small,
.cart-page-price span {
  display: block;
  margin-top: 4px;
  color: #6f747c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-page-quantity {
  display: inline-grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  border: 1px solid #dfe3e6;
}

.cart-page-quantity button {
  min-height: 36px;
  border: 0;
  background: #f6f7f8;
  color: #17191f;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.cart-page-quantity strong {
  color: #17191f;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.cart-page-price {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.cart-page-price strong {
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
}

.cart-page-price button,
.cart-page-clear {
  border: 0;
  background: transparent;
  color: var(--color-red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cart-page-clear:disabled {
  color: #a4a8ad;
  cursor: not-allowed;
}

.cart-page-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 34px 24px;
}

.cart-page-empty strong {
  color: #17191f;
  font-size: 22px;
  font-weight: 900;
}

.cart-page-empty span {
  max-width: 520px;
  color: #666b73;
  font-weight: 700;
}

.cart-page-summary {
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.cart-page-summary-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.cart-page-totals {
  display: grid;
  border: 1px solid #e4e8eb;
  background: #ffffff;
}

.cart-page-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e8eb;
}

.cart-page-total-row:last-child {
  border-bottom: 0;
}

.cart-page-total-row span {
  color: #6e747d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-page-total-row span em {
  color: inherit;
  font-style: normal;
}

.cart-page-total-row strong {
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.cart-page-total {
  background: #111317;
  color: #ffffff;
}

.cart-page-total span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-page-total strong {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.cart-page-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.cart-page-summary-actions .btn {
  width: 100%;
}

.cart-page-summary .quote-form {
  margin-top: 0;
}

.cart-page-summary .quote-form h3 {
  margin: 0 0 10px;
  color: #17191f;
  font-size: 18px;
}

.cart-page-summary .quote-output {
  min-height: 150px;
  margin-top: 0;
}

.cart-page-summary .quote-form {
  gap: 10px;
}

.cart-page-summary .quote-form label {
  gap: 6px;
  font-size: 11px;
}

.cart-page-summary .quote-form input {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}

.cart-page-summary .quote-form textarea {
  min-height: 88px;
  padding: 12px 14px;
  font-size: 14px;
}

.cart-page-summary .quote-actions .btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 12px;
}

.cart-page-summary .quote-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.cart-page-summary .cart-page-summary-actions {
  margin-top: 0;
}

.btn:disabled,
.cart-checkout-button.is-loading {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

body.cart-modal-open {
  overflow: hidden;
}

.cart-order-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cart-order-modal[hidden] {
  display: none;
}

.cart-order-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.58);
}

.cart-order-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  border: 1px solid #e1e5e8;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(8, 10, 14, 0.28);
  overflow: visible;
}

.cart-order-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7eaed;
}

.cart-order-dialog header span {
  color: #737983;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-order-dialog header h2 {
  margin: 4px 0 0;
  color: #17191f;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.08;
}

.cart-order-dialog header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dde2e6;
  background: #ffffff;
  color: #17191f;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.cart-order-dialog .quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 0;
  padding: 18px 22px 20px;
}

.cart-order-dialog .quote-form label {
  gap: 7px;
  font-size: 11px;
}

.cart-order-dialog .cart-form-field-wide,
.cart-order-dialog .quote-actions,
.cart-order-dialog .form-status {
  grid-column: 1 / -1;
}

.cart-order-dialog .quote-form input {
  min-height: 44px;
  padding: 0 15px;
  font-size: 14px;
}

.cart-order-dialog .quote-form textarea {
  min-height: 78px;
  padding: 13px 15px;
  font-size: 14px;
}

.cart-order-dialog .quote-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.cart-order-dialog .quote-actions .btn {
  width: 100%;
  min-height: 48px;
}

.payment-status-section {
  padding: 82px 0 96px;
}

.payment-status {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.payment-status > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-status h1 {
  max-width: 720px;
  margin: 0;
  color: #06080d;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.payment-status p {
  margin: 0;
  color: var(--color-muted);
  font-weight: 800;
}

.payment-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .window-calculator-section .container-wide,
  .calculator-hero .page-hero-grid {
    max-width: calc(100% - 40px);
  }

  .calc-app-grid {
    grid-template-columns: 1fr;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .calc-summary-panel {
    position: static;
  }

  .cart-page-summary {
    position: static;
  }
}

@media (max-width: 860px) {
  .calc-dimensions,
  .personalization-grid,
  .system-grid,
  .accessory-grid {
    grid-template-columns: 1fr;
  }

  .construction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .quote-item.cart-line {
    grid-template-columns: 70px 1fr;
  }

  .cart-line-price {
    grid-column: 2;
    justify-items: start;
  }

  .cart-page-section {
    padding: 32px 0 56px;
  }

  .cart-page-toolbar,
  .cart-page-summary-header {
    align-items: start;
    flex-direction: column;
    padding: 20px;
  }

  .cart-page-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .cart-page-price {
    justify-items: start;
  }

  .cart-order-modal {
    padding: 14px;
  }

  .cart-order-dialog {
    width: 100%;
    overflow: auto;
  }

  .cart-order-dialog .quote-form {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.has-js body.page-leaving {
  pointer-events: none;
}

.page-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 134px),
    linear-gradient(90deg, rgba(227, 6, 19, 0.2), transparent 31%),
    linear-gradient(135deg, #080909 0%, #151719 74%, #220607 100%);
  background-position:
    0 0,
    0 0,
    0 0;
  background-size:
    auto,
    auto,
    auto;
  color: #ffffff;
  pointer-events: none;
  animation: introBackdrop 960ms var(--ease-out) both;
}

.has-js .page-intro {
  display: grid;
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: auto -10vw 0 auto;
  width: 44vw;
  height: 7px;
  background: var(--color-red);
  transform: skewX(-22deg) translateX(105%);
  animation: introRedSweep 880ms var(--ease-out) 40ms both;
}

.page-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(227, 6, 19, 0.18), transparent 28%);
  opacity: 0.65;
  animation: introGlow 880ms ease both;
}

.page-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 30px;
  transform: translate3d(0, 10px, 0);
  opacity: 0.001;
  animation: introBrandIn 620ms var(--ease-out) 40ms both;
}

.page-intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.page-intro-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 8px solid var(--color-red);
  transform: scale(0.84) rotate(-4deg);
  animation: introMark 620ms var(--ease-out) 70ms both;
}

.page-intro-mark span {
  width: 12px;
  height: 12px;
  background: #0d0e0f;
  transform: scale(0);
  animation: introMarkCore 420ms var(--ease-out) 240ms both;
}

.page-intro-name {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
  animation: introNameReveal 620ms var(--ease-out) 180ms both;
}

.page-intro-line {
  width: min(360px, 64vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.page-intro-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-red);
  transform: translateX(-100%);
  animation: introLine 760ms var(--ease-out) 220ms both;
}

.page-intro.is-leaving {
  animation: introPanelOut 560ms var(--ease-out) both;
}

.page-intro.is-leaving .page-intro-grid {
  animation: introBrandOut 360ms ease both;
}

@keyframes introBrandIn {
  from {
    opacity: 0.001;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes introBackdrop {
  0% {
    filter: brightness(0.92);
    background-position:
      -18px 0,
      0 0,
      0 0;
  }
  100% {
    filter: brightness(1);
    background-position:
      0 0,
      0 0,
      0 0;
  }
}

@keyframes introBrandOut {
  to {
    opacity: 0;
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes introMark {
  to {
    transform: scale(1) rotate(0);
  }
}

@keyframes introMarkCore {
  to {
    transform: scale(1);
  }
}

@keyframes introNameReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes introLine {
  0% {
    transform: translateX(-100%);
  }
  64% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes introRedSweep {
  to {
    transform: skewX(-22deg) translateX(0);
  }
}

@keyframes introGlow {
  0% {
    opacity: 0.44;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes introPanelOut {
  to {
    transform: translate3d(0, -102%, 0);
  }
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

.container,
.header-inner,
.hero-perks {
  width: min(var(--container), calc(100% - 88px));
  margin: 0 auto;
}

.container-wide {
  width: min(var(--container-wide), calc(100% - 88px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: linear-gradient(180deg, #151617 0%, #202123 100%);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(21, 22, 23, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
  transition: opacity 160ms ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--color-red);
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--color-header);
}

.brand-name {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}

.main-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 2px;
  background: var(--color-red);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: #ffffff;
}

.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.header-cart:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.header-cart svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.header-cart strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.header-cart strong[hidden] {
  display: none;
}

.header-cart-wrap {
  position: relative;
  display: inline-flex;
}

.header-cart-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dfe4e8;
  box-shadow: 0 26px 70px rgba(10, 12, 16, 0.24);
  color: #17191f;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.header-cart-popover[hidden] {
  display: block;
  visibility: hidden;
}

.header-cart-wrap.is-open .header-cart-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.header-cart-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid #dfe4e8;
  border-left: 1px solid #dfe4e8;
  transform: rotate(45deg);
}

.header-cart-popover-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6eaee;
}

.header-cart-popover-head span,
.header-cart-popover-total span {
  display: block;
  color: #747b84;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.header-cart-popover-head strong {
  display: block;
  margin-top: 4px;
  color: #17191f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.header-cart-popover-head button {
  border: 0;
  background: transparent;
  color: #737982;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.header-cart-popover-items {
  display: grid;
  gap: 0;
}

.header-cart-popover-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f2;
}

.header-cart-popover-items article strong {
  display: block;
  color: #17191f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.18;
}

.header-cart-popover-items article span {
  display: block;
  margin-top: 5px;
  color: #737982;
  font-size: 12px;
  font-weight: 700;
}

.header-cart-popover-items article em {
  color: #17191f;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.header-cart-popover-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 13px 14px;
  background: #111213;
  color: #ffffff;
}

.header-cart-popover-total strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.header-cart-popover-cta {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.header-cart-popover-empty {
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.header-cart-popover-empty strong {
  color: #17191f;
  font-size: 16px;
  font-weight: 900;
}

.header-cart-popover-empty span {
  color: #737982;
  font-size: 13px;
  font-weight: 700;
}

.cart-toast {
  position: fixed;
  top: calc(var(--header-height, 74px) + 16px);
  right: 24px;
  z-index: 1300;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 18px;
  background: #111213;
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(10, 12, 16, 0.24);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(14px, -8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.cart-toast.is-success {
  background: #111213;
}

.cart-toast.is-error {
  background: #b40d18;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.menu-button {
  border: 0;
  color: var(--color-white);
  background: transparent;
}

.btn svg,
.perk svg,
.feature-card svg,
.process-step svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.header-cta {
  min-width: 134px;
  padding: 16px 24px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.2);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-cta:hover {
  background: var(--color-red-dark);
  box-shadow: 0 16px 30px rgba(227, 6, 19, 0.28);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  cursor: pointer;
  transition: background 160ms ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-white);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

body.menu-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: clamp(76px, calc((100vw - var(--container-wide)) / 2 - 60px), 284px) minmax(560px, 760px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  height: clamp(560px, calc(100vh - var(--header-height) - 96px), 610px);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: 46px 34px 38px 0;
}

.section-kicker {
  margin: 0 0 20px;
  color: var(--color-red-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(44px, 3.72vw, 58px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.022em;
}

.hero h1 span {
  display: block;
}

.title-rule {
  display: block;
  width: 62px;
  height: 4px;
  margin: 18px 0 22px;
  background: var(--color-red);
}

.hero-lead {
  max-width: 510px;
  margin: 0;
  color: #5c6068;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 2px solid transparent;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  margin-left: 18px;
  stroke-width: 2.2;
  transition: transform 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 16px 32px rgba(227, 6, 19, 0.18);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  box-shadow: 0 22px 38px rgba(227, 6, 19, 0.26);
}

.btn-secondary {
  border-color: #24262a;
  background: var(--color-white);
  color: #17191f;
}

.btn-secondary:hover {
  border-color: var(--color-red);
  color: var(--color-red-deep);
}

.hero-media {
  grid-column: 2 / 4;
  grid-row: 1;
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow:
    inset 1px 0 0 rgba(0, 0, 0, 0.04),
    -18px 0 38px rgba(255, 255, 255, 0.35);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 8%;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.42) 52%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  z-index: 3;
  width: 3px;
  background: var(--color-red);
  opacity: 0;
  transform: scaleY(0.28);
  transform-origin: center;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.01);
  transition: transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}

.hero-media:hover img {
  filter: contrast(1.03) saturate(1.04);
  transform: scale(1.045);
}

.hero-perks {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.045);
}

.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 24px;
  color: #33363c;
  font-size: 13px;
  font-weight: 800;
  border-right: 1px solid #ededed;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.perk:last-child {
  border-right: 0;
}

.perk:hover {
  background: #fafafa;
  color: var(--color-red-deep);
}

.perk svg {
  width: 26px;
  height: 26px;
  color: #30333a;
  stroke-width: 1.45;
}

.producer-strip {
  padding: 40px 0 42px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-white);
}

.producer-strip .container {
  width: min(var(--container-wide), calc(100% - 88px));
}

.producer-strip p {
  position: relative;
  width: max-content;
  margin: 0 0 26px;
  color: #17191f;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: var(--section-title-weight);
  line-height: 1.16;
  letter-spacing: var(--section-title-spacing);
}

.producer-strip p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 164px;
  height: 4px;
  background: var(--color-red);
}

.producer-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: center;
  border-left: 1px solid #ececec;
  border-top: 1px solid #ececec;
}

.producer-logos span {
  display: grid;
  place-items: center;
  min-height: 92px;
  background: var(--section-soft);
  color: #555a61;
  border-right: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.9;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.producer-logos span:hover {
  color: var(--color-red-deep);
  opacity: 1;
  filter: saturate(1.16);
  transform: translateY(-2px);
}

.logo-blue {
  color: #164f9f;
}

.logo-red {
  color: #c8221a;
}

.proof-section {
  position: relative;
  padding: 72px 0 76px;
  background: #050505;
  color: var(--color-white);
  overflow: hidden;
}

.proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.12), transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.proof-grid {
  position: relative;
  width: min(var(--container-wide), calc(100% - 88px));
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: 56px;
  align-items: center;
}

.proof-copy h2,
.comparison h2,
.case-quote p {
  margin: 0;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.proof-copy h2 {
  color: var(--color-white);
}

.proof-copy p {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 540px;
  margin: 28px 0 32px;
  background: rgba(255, 255, 255, 0.12);
}

.proof-stats div {
  min-height: 112px;
  padding: 22px 18px 18px;
  background: rgba(255, 255, 255, 0.055);
}

.proof-stats strong {
  display: block;
  color: var(--color-white);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.proof-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.proof-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(227, 6, 19, 0.12), transparent 28%),
    linear-gradient(135deg, #17191b 0%, #0d0e10 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.proof-map::before,
.proof-map::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.proof-map::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%, transparent 72%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px);
}

.proof-map::after {
  right: 0;
  bottom: 0;
  width: 138px;
  height: 138px;
  border-right: 16px solid var(--color-red);
  border-bottom: 16px solid var(--color-red);
  transform: skewX(-22deg) translateX(18px);
}

.route-map {
  isolation: isolate;
}

.map-caption {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 5;
  display: grid;
  gap: 7px;
}

.map-caption span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.map-caption strong {
  color: var(--color-white);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.logistics-map {
  position: absolute;
  inset: 18px;
  z-index: 3;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  overflow: visible;
}

.map-base {
  pointer-events: none;
}

.route-map-dark .map-base {
  opacity: 0.28;
  filter: invert(1) grayscale(1);
}

.route-map-light .map-base {
  opacity: 0.16;
}

.map-land {
  fill: rgba(255, 255, 255, 0.09);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.map-land-muted {
  fill: rgba(255, 255, 255, 0.055);
}

.map-route {
  fill: none;
  stroke: var(--color-red);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 9 13;
  opacity: 0.82;
}

.map-node circle,
.map-hub circle {
  fill: var(--color-red);
  stroke: var(--color-white);
  stroke-width: 4;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.map-hub circle:first-child {
  fill: rgba(227, 6, 19, 0.16);
  stroke: rgba(227, 6, 19, 0.28);
}

.route-map:hover .map-node circle,
.route-map:hover .map-hub circle:last-child {
  transform: scale(1.08);
}

.map-node text,
.map-hub-label {
  fill: rgba(255, 255, 255, 0.82);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 23px;
  font-weight: 900;
  text-anchor: middle;
}

.map-hub-label {
  fill: var(--color-white);
  font-size: 22px;
  text-anchor: start;
}

.comparison {
  padding: 74px 0 80px;
  background: var(--color-white);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(360px, 0.56fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 30px;
}

.split-heading h2 {
  position: relative;
  padding-bottom: 18px;
}

.split-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  height: 4px;
  background: var(--color-red);
}

.split-heading p {
  margin: 0 0 7px;
  color: #60646b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.comparison-table {
  border: 1px solid #dedede;
  background: var(--color-white);
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.055);
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1.2fr;
  min-height: 78px;
  border-bottom: 1px solid #e7e7e7;
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > div {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  color: #52565d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  border-right: 1px solid #e7e7e7;
}

.comparison-row > div:last-child {
  color: #202227;
  border-right: 0;
}

.comparison-row > div:first-child {
  color: #1d2025;
  font-weight: 900;
}

.comparison-head {
  min-height: 56px;
  background: #f2f2f2;
}

.comparison-head > div {
  color: #17191f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-head > div:last-child {
  position: relative;
  background: var(--color-white);
}

.comparison-head > div:last-child::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  background: var(--color-red);
  box-shadow: inset 4px 4px 0 var(--color-white);
}

.calculator-preview {
  position: relative;
  padding: 36px 0 42px;
  background: var(--color-white);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
}

.calculator-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.58fr) minmax(500px, 0.82fr);
  gap: 34px;
  align-items: start;
}

.calculator-copy {
  padding-top: 18px;
}

.calculator-copy h2 {
  font-size: clamp(30px, 2.7vw, 40px);
}

.calculator-copy h2,
.clients-section h2,
.offer-heading h2,
.contact-cta h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.calculator-copy p {
  max-width: 520px;
  margin: 0 0 18px;
  color: #60646b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.62;
}

.calculator-checks {
  display: grid;
  gap: 1px;
  max-width: 520px;
  margin: 20px 0 24px;
  background: #dedede;
}

.calculator-checks span {
  position: relative;
  padding: 14px 20px 14px 46px;
  background: var(--color-white);
  color: #25282d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-checks span::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--color-red);
  box-shadow: inset 4px 4px 0 var(--color-white);
  transform: translateY(-50%);
}

.calculator-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 700px);
  min-height: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #dedede;
  box-shadow: 0 24px 70px rgba(17, 18, 19, 0.11);
}

.calculator-panel::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 132px;
  height: 132px;
  border-right: 16px solid var(--color-red);
  border-bottom: 16px solid var(--color-red);
  transform: skewX(-22deg) translateX(18px);
  pointer-events: none;
}

.calc-topline,
.calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.calc-topline {
  padding-bottom: 14px;
  border-bottom: 1px solid #ececec;
}

.calc-topline span,
.calc-summary span,
.calc-field span {
  display: block;
  color: #7a7d83;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.calc-topline strong {
  color: #17191f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-window {
  position: relative;
  display: flex;
  width: min(100%, 250px);
  margin: 10px auto 18px;
  align-items: center;
  justify-content: center;
  background: transparent;
  filter: drop-shadow(0 18px 22px rgba(17, 18, 19, 0.08));
}

.calc-window::before,
.calc-window::after {
  content: none;
}

.calc-window-drawing {
  display: block;
  width: 100%;
  height: auto;
}

.window-shadow,
.window-frame,
.window-inner-frame,
.sash-frame,
.glass-pane,
.center-profile {
  vector-effect: non-scaling-stroke;
}

.window-shadow {
  fill: rgba(206, 216, 221, 0.2);
}

.window-frame {
  fill: #f6f8f9;
  stroke: #9ca7ad;
  stroke-width: 1.4;
}

.window-inner-frame {
  fill: #ffffff;
  stroke: #c7d1d6;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.sash-frame {
  fill: #f9fbfb;
  stroke: #b5c1c7;
  stroke-width: 1.15;
}

.glass-pane {
  fill: #edf7f9;
  stroke: #c4d0d6;
  stroke-width: 1;
}

.glass-shine {
  fill: none;
  stroke: rgba(132, 150, 158, 0.25);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.center-profile {
  fill: #eef3f5;
  stroke: #b5c1c7;
  stroke-width: 1.1;
}

.window-handle {
  fill: #353b40;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e4e4e4;
}

.calc-field {
  min-height: 58px;
  padding: 11px 14px;
  background: #fbfbfb;
}

.calc-field strong {
  display: block;
  margin-top: 8px;
  color: #181a1f;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.calc-summary {
  margin-top: 16px;
  padding: 16px 20px;
  background: #111213;
  color: var(--color-white);
}

.calc-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--color-white);
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1;
}

.calc-summary .text-link {
  color: var(--color-white);
  flex: 0 0 auto;
}

.calc-summary .text-link:hover {
  color: var(--color-white);
}

.why {
  padding: 66px 0 72px;
  background: var(--section-muted);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #e8e8e8;
}

.center-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.center-heading h2,
.workflow h2,
.delivery h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.center-heading .title-rule {
  width: 48px;
  height: 3px;
  margin: 12px 0 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 30px 26px 26px;
  background: var(--color-white);
  border: 1px solid #ececec;
  box-shadow: 0 14px 30px rgba(15, 15, 15, 0.03);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: var(--color-red);
  transition: width 220ms var(--ease-out);
}

.feature-card:hover {
  background: var(--color-white);
  border-color: rgba(201, 32, 22, 0.22);
  box-shadow: var(--shadow-strong);
  transform: translateY(-6px);
}

.feature-card:hover::before {
  width: 100%;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  color: var(--color-red);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: #24262b;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: #6f7278;
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  padding: 60px 0 52px;
  background: var(--section-muted);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #e8e8e8;
}

.workflow h2 {
  margin-bottom: 28px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.process-step {
  position: relative;
  min-height: 158px;
  padding: 4px 18px 0 0;
  border-right: 1px solid #e8e8e8;
  transition: transform 180ms ease;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 220ms var(--ease-out);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step:hover::before {
  width: 52px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step svg {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: #2b2e34;
  stroke-width: 1.35;
  transition: color 160ms ease;
}

.process-step:hover svg {
  color: var(--color-red-deep);
}

.process-step span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.process-step h3 {
  margin: 0 0 7px;
  color: #202227;
  font-size: 17px;
  font-weight: 800;
}

.process-step p {
  margin: 0;
  color: #6d7076;
  font-size: 14px;
  line-height: 1.55;
}

.clients-section {
  padding: 74px 0 80px;
  background: var(--color-white);
  border-top: 1px solid #ededed;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dedede;
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.055);
}

.client-card {
  min-height: 258px;
  padding: 34px 30px 30px;
  background: #ffffff;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.client-card:hover {
  background: #fbfbfb;
  box-shadow: 0 22px 44px rgba(17, 18, 19, 0.08);
  transform: translateY(-4px);
}

.client-card strong {
  display: block;
  margin-bottom: 24px;
  color: var(--color-red);
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 900;
  line-height: 1;
}

.client-card h3 {
  max-width: 330px;
  margin: 0 0 12px;
  color: #17191f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.client-card p {
  margin: 0;
  color: #666a71;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.case-strip {
  padding: 64px 0;
  background: #111213;
  color: var(--color-white);
  overflow: hidden;
}

.case-grid {
  width: min(var(--container-wide), calc(100% - 88px));
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.7fr);
  gap: 56px;
  align-items: stretch;
}

.case-quote {
  position: relative;
  padding: 6px 0 0 34px;
  border-left: 4px solid var(--color-red);
}

.case-quote p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
}

.case-quote span {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.case-points article {
  min-height: 128px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.055);
}

.case-points strong {
  display: block;
  color: var(--color-white);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.case-points span {
  display: block;
  max-width: 320px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.delivery {
  padding: 64px 0 68px;
  background: var(--section-muted);
  border-bottom: 1px solid #e8e8e8;
}

.delivery-grid {
  width: min(var(--container-wide), calc(100% - 88px));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: stretch;
}

.delivery-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.delivery-copy p {
  max-width: 455px;
  margin: 18px 0 22px;
  color: #60646b;
  font-size: 16px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #17191f;
  font-size: 13px;
  font-weight: 900;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.text-link::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 12px;
  margin-left: 12px;
  background: var(--color-red);
  clip-path: polygon(0 42%, 68% 42%, 68% 0, 100% 50%, 68% 100%, 68% 58%, 0 58%);
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.text-link:hover {
  color: var(--color-red-deep);
}

.text-link:hover::after {
  transform: translate(4px, -1px);
}

.map-panel {
  position: relative;
  min-height: 304px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(227, 6, 19, 0.08), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f5f6 100%);
  border: 1px solid #efefef;
  box-shadow: 0 22px 55px rgba(17, 18, 19, 0.06);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(17, 18, 19, 0.045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(17, 18, 19, 0.03) 0 1px, transparent 1px 84px);
  opacity: 1;
  pointer-events: none;
}

.route-map-light .map-caption span {
  color: #777b82;
}

.route-map-light .map-caption strong {
  color: #17191f;
}

.route-map-light .map-land {
  fill: rgba(17, 18, 19, 0.055);
  stroke: rgba(17, 18, 19, 0.14);
}

.route-map-light .map-land-muted {
  fill: rgba(17, 18, 19, 0.035);
}

.route-map-light .map-node text,
.route-map-light .map-hub-label {
  fill: #2f3338;
}

.route-map-light .map-route {
  stroke-width: 3.5;
}

.offer-section {
  padding: 76px 0 82px;
  background: var(--color-white);
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #e7e7e7;
}

.offer-heading {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(360px, 0.55fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 34px;
}

.offer-heading h2 {
  position: relative;
  padding-bottom: 18px;
}

.offer-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 164px;
  height: 4px;
  background: var(--color-red);
}

.offer-heading p {
  margin: 0 0 6px;
  color: #60646b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #dedede;
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.05);
}

.offer-card {
  position: relative;
  min-height: 318px;
  padding: 32px 28px 28px;
  background: var(--section-soft);
  overflow: hidden;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.offer-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 4px;
  background: var(--color-red);
  transition: width 220ms var(--ease-out);
}

.offer-card:hover {
  background: var(--color-white);
  box-shadow: 0 24px 48px rgba(17, 18, 19, 0.08);
  transform: translateY(-5px);
}

.offer-card:hover::before {
  width: 100%;
}

.offer-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--color-red);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.offer-card h3 {
  margin: 0 0 13px;
  color: #191b20;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.offer-card p {
  margin: 0 0 22px;
  color: #686c73;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
}

.offer-card a {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.offer-card a::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 12px;
  margin-left: 12px;
  background: var(--color-red);
  clip-path: polygon(0 42%, 68% 42%, 68% 0, 100% 50%, 68% 100%, 68% 58%, 0 58%);
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.offer-card a:hover {
  color: var(--color-red-deep);
}

.offer-card a:hover::after {
  transform: translate(4px, -1px);
}

.contact-cta {
  position: relative;
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.9), rgba(227, 6, 19, 0.72)),
    linear-gradient(135deg, #151617 0%, #242528 100%);
  color: var(--color-white);
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 112px);
  pointer-events: none;
}

.contact-cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.contact-cta h2 {
  max-width: 780px;
  color: var(--color-white);
}

.contact-cta p {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.68;
}

.contact-cta-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn-dark {
  border-color: rgba(255, 255, 255, 0.32);
  background: #111213;
  color: var(--color-white);
}

.btn-dark:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: #202123;
}

.newsletter {
  padding: 44px 0;
  background: var(--section-muted);
  border-bottom: 1px solid var(--color-line);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 30px;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: var(--section-title-weight);
  line-height: 1.16;
  letter-spacing: -0.016em;
}

.newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 142px;
  border: 1px solid #d8d8d8;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.newsletter-form:hover,
.newsletter-form:focus-within {
  border-color: rgba(201, 32, 22, 0.45);
  box-shadow: 0 16px 34px rgba(17, 18, 19, 0.08);
  transform: translateY(-2px);
}

.newsletter-form input {
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 0;
  color: #1c1e22;
  background: #fbfbfb;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 32, 22, 0.22);
}

.newsletter-form button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.newsletter-form button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.34) 44%, transparent 56% 100%);
  transform: translateX(-115%);
  transition: transform 420ms var(--ease-out);
  pointer-events: none;
}

.newsletter-form button:hover {
  background: var(--color-red-dark);
  box-shadow: 0 16px 30px rgba(227, 6, 19, 0.24);
  transform: translateY(-1px);
}

.newsletter-form button:hover::after {
  transform: translateX(115%);
}

.newsletter-form.is-sent::after {
  content: "Dziękujemy, adres został zapisany.";
  position: absolute;
  left: 0;
  bottom: -28px;
  color: var(--color-red-deep);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(227, 6, 19, 0.17), transparent 34%),
    linear-gradient(135deg, #101112 0%, #181a1c 58%, #111213 100%);
  background-size: 170px 170px, 170px 170px, auto, auto;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - var(--container-wide)) / 2));
  width: min(18vw, 260px);
  height: 5px;
  background: var(--color-red);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 96px;
  height: 96px;
  border-right: 14px solid var(--color-red);
  border-bottom: 14px solid var(--color-red);
  opacity: 0.95;
  pointer-events: none;
}

.site-footer .brand {
  transition:
    opacity 160ms ease,
    transform 180ms var(--ease-out);
}

.site-footer .brand-mark {
  transition:
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.site-footer .brand:hover {
  opacity: 1;
  transform: translateX(3px);
}

.site-footer .brand:hover .brand-mark {
  box-shadow:
    0 0 0 1px rgba(227, 6, 19, 0.45),
    0 10px 22px rgba(227, 6, 19, 0.26);
  transform: rotate(90deg);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(150px, 1fr));
  gap: 0;
  padding: 68px 0 62px;
}

.footer-grid > div {
  min-height: 220px;
  padding: 0 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-grid > div:last-child {
  padding-right: 0;
}

.footer-brand {
  position: relative;
}

.footer-brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 5px;
  background: var(--color-red);
}

.footer-brand p,
.site-footer p {
  max-width: 280px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.socials a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 12px 24px rgba(227, 6, 19, 0.26);
  transform: translateY(-4px) scale(1.06);
}

.socials a:active {
  transform: translateY(-1px) scale(0.98);
}

.site-footer h3 {
  position: relative;
  margin: 0 0 24px;
  padding-top: 8px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.site-footer h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--color-red);
}

.site-footer a:not(.brand):not(.socials a) {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px 0;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  transition:
    color 160ms ease,
    padding-left 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.site-footer a:not(.brand):not(.socials a)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--color-red);
  border-right: 2px solid var(--color-red);
  opacity: 0;
  transform: translate(-13px, -50%) rotate(45deg);
  transition:
    opacity 160ms ease,
    transform 180ms var(--ease-out);
}

.site-footer a:not(.brand):not(.socials a)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 180ms var(--ease-out);
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer a:not(.brand):not(.socials a):hover {
  color: var(--color-white);
  padding-left: 14px;
  transform: translateX(2px);
}

.site-footer a:not(.brand):not(.socials a):hover::before {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.site-footer a:not(.brand):not(.socials a):hover::after {
  width: 100%;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage-main {
  background: var(--color-white);
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 620px;
  padding: 64px 0;
  align-items: center;
  overflow: hidden;
}

.page-hero-dark {
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.12), transparent 31%),
    linear-gradient(135deg, #080808 0%, #151617 100%);
  color: var(--color-white);
}

.page-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 118px);
  pointer-events: none;
}

.firm-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 190px;
  height: 190px;
  border-right: 18px solid var(--color-red);
  border-bottom: 18px solid var(--color-red);
  transform: skewX(-22deg);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--container-wide), calc(100% - 88px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.58fr);
  gap: 70px;
  align-items: center;
}

.page-hero-copy {
  display: grid;
  align-content: center;
}

.page-hero-copy h1 {
  max-width: 870px;
  margin: 0;
  color: inherit;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.026em;
}

.page-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.72;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-hero-card {
  position: relative;
  min-height: 360px;
  padding: 34px;
  display: grid;
  align-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 4px;
  background: var(--color-red);
}

.page-hero-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 118px;
  height: 118px;
  border-right: 14px solid var(--color-red);
  border-bottom: 14px solid var(--color-red);
  transform: skewX(-22deg);
  pointer-events: none;
}

.page-hero-card:hover {
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.46);
  transform: translateY(-5px);
}

.page-hero-card > div,
.page-hero-card > h2,
.page-hero-card > p,
.page-hero-card > a {
  position: relative;
  z-index: 1;
}

.page-hero-card > span,
.page-hero-card > div > span,
.article-feature > span,
.blog-side-list article > span,
.article-card > span,
.value-card > span,
.firm-profile-card > span,
.process-board-grid article > span,
.timeline-item > span {
  display: block;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.page-hero-card strong {
  display: block;
  max-width: 420px;
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.page-hero-card h2 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.016em;
}

.page-hero-card p {
  max-width: 430px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.page-hero-card .text-link {
  color: #ffffff;
}

.blog-hero .page-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 520px);
  gap: 76px;
}

.blog-hero .page-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 4.1vw, 64px);
  line-height: 1.04;
}

.blog-hero .page-hero-copy p {
  max-width: 640px;
}

.blog-hero .page-hero-card {
  justify-self: end;
  width: min(100%, 520px);
}

.operation-steps,
.status-rows {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.12);
}

.operation-steps span,
.status-rows span {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}

.firm-status .status-rows span {
  color: #ffffff;
  font-weight: 900;
}

.operation-card .operation-steps span {
  color: #ffffff;
  font-weight: 900;
}

.operation-steps span:hover,
.status-rows span:hover {
  background: rgba(227, 6, 19, 0.2);
  color: #ffffff;
  transform: translateX(4px);
}

.page-band {
  padding: 76px 0 82px;
  background: var(--color-white);
  border-bottom: 1px solid #e8e8e8;
}

.page-muted {
  background: var(--section-muted);
}

.page-metrics-band {
  padding-top: 0;
  background: var(--color-white);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(17, 18, 19, 0.12);
}

.metric-tile {
  min-height: 230px;
  padding: 34px 32px 30px;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.12), transparent 46%),
    #151617;
  color: #ffffff;
}

.metric-tile strong {
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.metric-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric-tile p {
  max-width: 330px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
}

.page-split,
.timeline-grid,
.quick-contact {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(460px, 1fr);
  gap: 72px;
  align-items: start;
}

.page-split h2,
.timeline-grid h2,
.process-board h2,
.quick-contact-copy h2,
.article-feature h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.page-split p,
.quick-contact-copy p {
  max-width: 660px;
  margin: 0;
  color: #60646b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}

.value-grid,
.firm-profile-grid,
.article-grid,
.process-board-grid {
  display: grid;
  gap: 1px;
  background: #dedede;
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.055);
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.firm-profile-grid,
.article-grid,
.process-board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.firm-profile-card,
.article-card,
.process-board-grid article {
  position: relative;
  min-height: 286px;
  padding: 34px 30px 30px;
  background: #ffffff;
  overflow: hidden;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease-out);
}

.process-board-grid article {
  min-height: 270px;
  background: #fbfbfb;
}

.value-card::before,
.firm-profile-card::before,
.article-card::before,
.process-board-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 4px;
  background: var(--color-red);
  transition: width 220ms var(--ease-out);
}

.value-card:hover,
.firm-profile-card:hover,
.article-card:hover,
.process-board-grid article:hover {
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(17, 18, 19, 0.08);
  transform: translateY(-5px);
}

.value-card:hover::before,
.firm-profile-card:hover::before,
.article-card:hover::before,
.process-board-grid article:hover::before {
  width: 100%;
}

.value-card > span,
.firm-profile-card > span,
.article-card > span,
.process-board-grid article > span {
  margin-bottom: 54px;
  color: var(--color-red);
  font-size: 24px;
}

.value-card h3,
.firm-profile-card h3,
.article-card h3,
.process-board-grid h3,
.timeline-item h3,
.blog-side-list h3 {
  margin: 0 0 12px;
  color: #17191f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.value-card p,
.firm-profile-card p,
.article-card p,
.process-board-grid p,
.timeline-item p {
  margin: 0;
  color: #666a71;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.timeline-list {
  border-top: 1px solid #dedede;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid #dedede;
}

.timeline-item span {
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: var(--color-red);
  font-size: 24px;
}

.timeline-item h3,
.timeline-item p {
  grid-column: 2;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(340px, 0.56fr);
  gap: 1px;
  background: #dedede;
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.055);
}

.blog-library {
  background: #ffffff;
}

.blog-feature-editorial {
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 0.62fr);
}

.blog-feature-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.article-feature,
.blog-side-list article {
  background: #ffffff;
}

.article-feature {
  min-height: 390px;
  padding: 44px 42px;
}

.article-feature > span {
  margin-bottom: 34px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 24px;
  color: #7a7d83;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.article-meta time,
.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: #7a7d83;
}

.article-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--color-red);
}

.article-feature > .article-meta {
  margin-top: -14px;
}

.article-feature p {
  max-width: 640px;
  margin: 18px 0 28px;
  color: #60646b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}

.blog-side-list {
  display: grid;
  gap: 1px;
}

.blog-side-list article {
  min-height: 130px;
  padding: 28px 30px;
  transition:
    background 180ms ease,
    transform 180ms var(--ease-out);
}

.blog-side-list article:hover {
  background: #fbfbfb;
  transform: translateX(5px);
}

.blog-side-list article > span {
  margin-bottom: 16px;
}

.blog-side-list p {
  margin: 12px 0 0;
  color: #666a71;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.article-card .article-meta {
  margin: -34px 0 22px;
}

.article-card .article-meta span {
  margin: 0;
  color: #7a7d83;
  font-size: 11px;
}

.article-card-published {
  background:
    linear-gradient(180deg, rgba(227, 6, 19, 0.035), transparent 42%),
    #ffffff;
}

.article-grid-existing {
  grid-template-columns: minmax(0, 620px);
  max-width: 620px;
}

.article-card a {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.article-card p {
  margin-bottom: 44px;
}

.article-card a::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 12px;
  margin-left: 12px;
  background: var(--color-red);
  clip-path: polygon(0 42%, 68% 42%, 68% 0, 100% 50%, 68% 100%, 68% 58%, 0 58%);
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.article-card a:hover {
  color: var(--color-red-deep);
}

.article-card a:hover::after {
  transform: translate(4px, -1px);
}

.blog-index {
  display: grid;
  margin-top: 30px;
  border-top: 1px solid #dedede;
}

.blog-index-existing {
  max-width: 1120px;
}

.blog-index-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 130px;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 20px 0;
  border-bottom: 1px solid #dedede;
}

a.blog-index-row {
  transition:
    color 160ms ease,
    transform 180ms var(--ease-out);
}

a.blog-index-row:hover {
  color: var(--color-red-deep);
  transform: translateX(5px);
}

.blog-index-row span,
.blog-index-row em {
  color: #7a7d83;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.blog-index-row strong {
  color: #17191f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.process-board {
  display: grid;
  gap: 34px;
}

.firm-scope-section {
  background: #ffffff;
}

.service-matrix {
  display: grid;
  grid-template-columns: minmax(360px, 0.62fr) minmax(520px, 1fr);
  gap: 70px;
  align-items: start;
}

.service-matrix-copy h2 {
  margin: 0;
  color: #17191f;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.service-matrix-copy p {
  max-width: 560px;
  margin: 0;
  color: #60646b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}

.service-matrix-list {
  display: grid;
  border-top: 1px solid #dedede;
}

.service-matrix-row {
  display: grid;
  grid-template-columns: 60px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid #dedede;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease;
}

.service-matrix-row:hover {
  border-color: rgba(227, 6, 19, 0.34);
  transform: translateX(5px);
}

.service-matrix-row span {
  color: var(--color-red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.service-matrix-row strong {
  color: #17191f;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.service-matrix-row p {
  margin: 0;
  color: #666a71;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
}

.quick-contact-section {
  position: relative;
  padding: 82px 0 86px;
  background: var(--color-white);
}

.section-anchor {
  position: absolute;
  top: calc(var(--header-height) * -1);
}

.quick-contact-points {
  display: grid;
  gap: 1px;
  max-width: 560px;
  margin-top: 30px;
  background: #dedede;
}

.quick-contact-points span {
  position: relative;
  padding: 17px 20px 17px 48px;
  background: #fbfbfb;
  color: #25282d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-contact-points span::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--color-red);
  box-shadow: inset 4px 4px 0 #fbfbfb;
  transform: translateY(-50%);
}

.lead-form {
  position: relative;
  padding: 34px;
  background: #111213;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(17, 18, 19, 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1d1f21;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.lead-form input,
.lead-form select {
  min-height: 52px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 126px;
  padding: 15px 14px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(227, 6, 19, 0.72);
  background: #202225;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.lead-form button {
  width: max-content;
  min-width: 210px;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.form-status {
  position: absolute;
  left: 34px;
  bottom: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 180ms var(--ease-out);
}

.lead-form.is-sent .form-status {
  opacity: 1;
  transform: none;
}

.contact-section {
  padding: 74px 0 78px;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.09), transparent 33%),
    linear-gradient(135deg, #111213 0%, #1d1f21 100%);
  color: var(--color-white);
  overflow: hidden;
}

.contact-section-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(520px, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-section-copy h2 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.contact-section-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}

.contact-tiles {
  display: grid;
  gap: 1px;
  max-width: 590px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.11);
}

.contact-tiles a,
.contact-tiles div {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    background 160ms ease,
    transform 180ms var(--ease-out);
}

.contact-tiles a:hover {
  background: rgba(227, 6, 19, 0.2);
  transform: translateX(5px);
}

.contact-tiles span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.contact-tiles strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.contact-form {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.contact-page-main {
  background: var(--section-muted);
}

.contact-hero-card {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.22), transparent 42%),
    #181a1c;
  color: #ffffff;
}

.contact-hero-card::after {
  right: 0;
  bottom: 0;
  width: 78px;
  height: 78px;
  border-right-width: 0;
  border-bottom-width: 0;
  background: linear-gradient(135deg, transparent 0 58%, var(--color-red) 59% 100%);
  transform: none;
}

.contact-hero-card span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-hero-card a {
  color: #ffffff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.1;
}

.contact-hero-card a:hover {
  color: var(--color-red);
}

.contact-hero-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 700;
}

.contact-page-content {
  padding: 86px 0 96px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.76fr) minmax(520px, 1fr);
  gap: 64px;
  align-items: center;
}

.contact-details-panel {
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.12), transparent 42%),
    #111213;
  color: #ffffff;
}

.contact-details-panel h2 {
  max-width: 560px;
  margin: 0;
  color: #ffffff;
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  line-height: var(--section-title-line);
  letter-spacing: var(--section-title-spacing);
}

.contact-details-panel p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.72;
}

.contact-page-form {
  box-shadow: 0 28px 70px rgba(17, 18, 19, 0.16);
}

.blog-archive {
  border-top: 1px solid #e8e8e8;
}

.blog-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-category-row a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: #ffffff;
  border: 1px solid #dedede;
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 180ms var(--ease-out);
}

.blog-category-row a:hover {
  border-color: rgba(227, 6, 19, 0.44);
  color: var(--color-red-deep);
  transform: translateY(-2px);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.article-back-link::before {
  content: "";
  width: 28px;
  height: 12px;
  margin-right: 10px;
  background: var(--color-red);
  clip-path: polygon(100% 42%, 32% 42%, 32% 0, 0 50%, 32% 100%, 32% 58%, 100% 58%);
}

.article-back-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.article-meta-hero {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.58);
}

.article-meta-hero time,
.article-meta-hero span {
  color: rgba(255, 255, 255, 0.64);
}

.article-summary-card p {
  margin-bottom: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 0.42fr);
  gap: 76px;
  align-items: start;
}

.article-body {
  color: #25282d;
}

.article-lead {
  margin: 0 0 34px;
  color: #3b3e44;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: -0.008em;
}

.article-body h2 {
  margin: 44px 0 16px;
  color: #17191f;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.018em;
}

.article-body p {
  margin: 0 0 20px;
  color: #60646b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.78;
}

.article-table {
  display: grid;
  margin: 32px 0 38px;
  border: 1px solid #dedede;
  box-shadow: 0 18px 45px rgba(17, 18, 19, 0.055);
}

.article-table > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.7fr 1.2fr;
  gap: 1px;
  background: #dedede;
}

.article-table strong,
.article-table span {
  display: block;
  padding: 16px 18px;
  background: #ffffff;
  color: #17191f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.article-table span {
  color: #60646b;
  font-weight: 700;
}

.article-checklist {
  display: grid;
  gap: 1px;
  margin: 28px 0 38px;
  padding: 0;
  list-style: none;
  background: #dedede;
}

.article-checklist li {
  position: relative;
  padding: 18px 20px 18px 50px;
  background: #fbfbfb;
  color: #25282d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.article-checklist li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: var(--color-red);
  box-shadow: inset 4px 4px 0 #fbfbfb;
}

.article-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 30px;
  background: #111213;
  color: #ffffff;
}

.article-cta-panel span,
.article-aside-box span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.article-cta-panel strong {
  display: block;
  max-width: 430px;
  margin-top: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.014em;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  gap: 14px;
}

.article-aside-box {
  padding: 26px;
  background: #111213;
  color: #ffffff;
}

.article-aside-box + .article-aside-box {
  background: #f6f6f6;
  color: #17191f;
}

.article-aside-box + .article-aside-box span {
  color: #7a7d83;
}

.article-aside-box strong {
  display: block;
  margin-top: 14px;
  color: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}

.article-aside-box p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
}

.article-aside-box + .article-aside-box p {
  color: #666a71;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Central typography layer: keeps section rhythm consistent across pages. */
.section-kicker,
.page-hero-card > span,
.page-hero-card > div > span,
.article-feature > span,
.blog-side-list article > span,
.article-card > span,
.value-card > span,
.firm-profile-card > span,
.process-board-grid article > span,
.timeline-item > span,
.lead-form label,
.site-footer h3,
.article-meta,
.blog-index-row span,
.map-caption span,
.calc-topline span,
.contact-tiles span {
  font-size: var(--type-kicker);
  font-weight: var(--type-title-weight);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 3.72vw, 58px);
  font-weight: var(--type-title-weight);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

.page-hero-copy h1,
.blog-hero .page-hero-copy h1 {
  font-size: var(--type-page-title);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-spacing);
}

.proof-copy h2,
.comparison h2,
.split-heading h2,
.calculator-copy h2,
.clients-section h2,
.center-heading h2,
.workflow h2,
.delivery h2,
.offer-heading h2,
.contact-cta h2,
.page-split h2,
.timeline-grid h2,
.process-board h2,
.quick-contact-copy h2,
.article-feature h2,
.service-matrix-copy h2,
.contact-section-copy h2,
.contact-details-panel h2,
.producer-strip p,
.case-quote p {
  font-size: var(--type-section-title);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-spacing);
}

.page-hero-card h2,
.page-hero-card strong,
.contact-hero-card a,
.article-cta-panel strong,
.article-body h2,
.article-aside-box strong {
  font-size: var(--type-panel-title);
  font-weight: var(--type-title-weight);
  line-height: 1.14;
  letter-spacing: -0.018em;
}

.feature-card h3,
.process-step h3,
.client-card h3,
.offer-card h3,
.value-card h3,
.firm-profile-card h3,
.article-card h3,
.process-board-grid h3,
.timeline-item h3,
.blog-side-list h3,
.service-matrix-row strong,
.blog-index-row strong,
.contact-tiles strong {
  font-size: var(--type-card-title);
  font-weight: var(--type-subtitle-weight);
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.hero-lead,
.page-hero-copy p,
.blog-hero .page-hero-copy p,
.proof-copy p,
.split-heading p,
.calculator-copy p,
.center-heading p,
.delivery-copy p,
.offer-heading p,
.contact-cta p,
.quick-contact-copy p,
.service-matrix-copy p,
.contact-section-copy p,
.contact-details-panel p,
.article-feature p,
.article-body p,
.article-lead {
  font-size: var(--type-body);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: 0;
}

.page-hero-copy p,
.hero-lead,
.article-lead {
  font-size: var(--type-body-large);
}

.page-hero-card p,
.feature-card p,
.process-step p,
.client-card p,
.offer-card p,
.value-card p,
.firm-profile-card p,
.article-card p,
.timeline-item p,
.blog-side-list p,
.service-matrix-row p,
.article-aside-box p,
.metric-tile p {
  font-size: var(--type-small);
  font-weight: var(--type-body-weight);
  line-height: 1.62;
  letter-spacing: 0;
}

.btn,
.text-link,
.lead-form button,
.site-footer a:not(.brand):not(.socials a),
.blog-category-row a {
  font-size: 13px;
  font-weight: var(--type-title-weight);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* Tighten editorial step sections after the global type pass. */
.value-grid,
.process-board-grid {
  box-shadow: 0 18px 42px rgba(17, 18, 19, 0.045);
}

.value-card,
.process-board-grid article {
  min-height: 230px;
  padding: 30px 28px 28px;
}

.value-card > span,
.process-board-grid article > span {
  margin-bottom: 34px;
  font-size: 11px;
  line-height: 1;
}

.value-card h3,
.process-board-grid h3 {
  max-width: 360px;
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.16;
}

.value-card p,
.process-board-grid p {
  max-width: 410px;
  font-size: 14px;
  line-height: 1.55;
}

.timeline-grid {
  grid-template-columns: minmax(300px, 0.52fr) minmax(560px, 1fr);
  gap: 58px;
}

.timeline-grid h2,
.process-board h2 {
  max-width: 520px;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.04;
}

.timeline-item > span {
  font-size: 11px;
}

.timeline-item h3 {
  font-size: 20px;
  line-height: 1.16;
}

.timeline-item p {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.56;
}

.has-js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 480ms var(--ease-snap),
    transform 620ms var(--ease-out),
    clip-path 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, clip-path;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.has-js .reveal[data-reveal="left"] {
  transform: translate3d(-22px, 0, 0);
}

.has-js .reveal[data-reveal="right"] {
  transform: translate3d(22px, 0, 0);
}

.has-js .reveal[data-reveal="left"].is-visible,
.has-js .reveal[data-reveal="right"].is-visible {
  transform: none;
}

.has-js .reveal[data-reveal="media"] {
  opacity: 1;
  clip-path: inset(0 0 0 22%);
  transform: translate3d(18px, 0, 0);
}

.has-js .reveal[data-reveal="media"].is-visible {
  clip-path: inset(0);
  transform: none;
}

.has-js .proof-map.reveal[data-reveal="media"] {
  opacity: 0;
  clip-path: none;
  transform: translate3d(0, 14px, 0);
}

.has-js .proof-map.reveal[data-reveal="media"].is-visible {
  opacity: 1;
  transform: none;
}

.has-js .reveal[data-reveal="row"] {
  opacity: 1;
  clip-path: none;
  transform: translate3d(0, 8px, 0);
}

.has-js .reveal[data-reveal="row"].is-visible {
  transform: none;
}

.has-js .reveal[data-reveal="pop"] {
  transform: translate3d(0, 18px, 0);
}

.has-js .reveal[data-reveal="pop"].is-visible {
  transform: none;
}

.has-js .reveal .title-rule,
.has-js .reveal + .title-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 580ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 140ms);
}

.has-js .reveal.is-visible .title-rule,
.has-js .reveal.is-visible + .title-rule {
  transform: scaleX(1);
}

.has-js .hero-copy.reveal {
  opacity: 1;
  transform: none;
}

.has-js .hero-copy.reveal .section-kicker,
.has-js .hero-copy.reveal h1 span,
.has-js .hero-copy.reveal .hero-lead,
.has-js .hero-copy.reveal .hero-buttons {
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
  transition:
    opacity 440ms var(--ease-snap),
    transform 620ms var(--ease-out);
}

.has-js .hero-copy.reveal.is-visible .section-kicker,
.has-js .hero-copy.reveal.is-visible h1 span,
.has-js .hero-copy.reveal.is-visible .hero-lead,
.has-js .hero-copy.reveal.is-visible .hero-buttons {
  opacity: 1;
  transform: none;
}

.has-js .hero-copy.reveal h1 span:nth-child(1) {
  transition-delay: 80ms;
}

.has-js .hero-copy.reveal h1 span:nth-child(2) {
  transition-delay: 150ms;
}

.has-js .hero-copy.reveal h1 span:nth-child(3) {
  transition-delay: 220ms;
}

.has-js .hero-copy.reveal h1 span:nth-child(4) {
  transition-delay: 290ms;
}

.has-js .hero-copy.reveal .title-rule {
  transition-delay: 360ms;
}

.has-js .hero-copy.reveal .hero-lead {
  transition-delay: 400ms;
}

.has-js .hero-copy.reveal .hero-buttons {
  transition-delay: 500ms;
}

.has-js .hero-media.reveal::after {
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 620ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 120ms);
}

.has-js .hero-media.reveal.is-visible::after {
  opacity: 0;
  transform: translateX(420px) scaleY(1);
}

.has-js .feature-card.reveal::before {
  width: 0;
}

.has-js .feature-card.reveal.is-visible::before {
  width: 52px;
}

.has-js .feature-card.reveal.is-visible:hover::before {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .has-js body {
    opacity: 1;
    transform: none;
  }

  .page-intro {
    display: none;
  }
}

@media (max-width: 1080px) {
  .container,
  .container-wide,
  .header-inner,
  .page-hero-grid,
  .hero-perks {
    width: min(100% - 48px, var(--container));
  }

  .main-nav {
    gap: 18px;
  }

  .header-cta {
    min-width: 118px;
    padding: 15px 18px;
  }

  .hero-grid {
    grid-template-columns: 32px minmax(480px, 620px) minmax(0, 1fr);
  }

  .page-hero {
    min-height: auto;
    padding: 72px 0;
  }

  .why-grid,
  .process-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid,
  .split-heading,
  .case-grid,
  .calculator-grid,
  .offer-heading,
  .contact-cta-grid,
  .contact-section-grid,
  .contact-page-grid,
  .page-hero-grid,
  .page-split,
  .timeline-grid,
  .service-matrix,
  .article-layout,
  .blog-feature,
  .quick-contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-card {
    min-height: 300px;
  }

  .value-grid,
  .metric-strip,
  .firm-profile-grid,
  .article-grid,
  .process-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-grid {
    padding-left: 0;
  }

  .calculator-copy p,
  .calculator-checks {
    max-width: 640px;
  }

  .contact-cta-actions {
    justify-content: flex-start;
  }

  .proof-map {
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid > div {
    min-height: 190px;
    padding: 0 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0 0 34px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100dvh - var(--header-height));
    display: grid;
    gap: 0;
    align-content: start;
    justify-items: center;
    padding: 28px 24px 32px;
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.06), transparent 32%),
      linear-gradient(180deg, #18191b 0%, #101112 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - var(--header-height)));
    transition:
      opacity 180ms ease,
      transform 220ms var(--ease-out);
  }

  body.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: min(100%, 260px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-button {
    display: block;
  }

  .hero {
    background: var(--color-white);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    width: min(100% - 48px, var(--container));
    max-width: none;
    margin: 0 auto;
    padding: 50px 0 30px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(42px, 8.6vw, 58px);
  }

  .hero-media {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 420px;
    margin: 0 auto;
  }

  .hero-media img {
    min-height: 420px;
  }

  .hero-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perk:nth-child(2n) {
    border-right: 0;
  }

  .producer-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .calculator-preview {
    background: var(--color-white);
  }

  .client-grid,
  .offer-grid,
  .value-grid,
  .metric-strip,
  .firm-profile-grid,
  .article-grid,
  .process-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-matrix-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .service-matrix-row p {
    grid-column: 2;
  }

  .delivery-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    max-width: 520px;
  }

  .comparison-row {
    grid-template-columns: 0.75fr 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .container-wide,
  .header-inner,
  .page-hero-grid,
  .hero-copy,
  .hero-media,
  .hero-perks {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 17px;
  }

  .header-cta {
    display: none;
  }

  .header-cart {
    min-width: 42px;
    padding: 0 10px;
  }

  .header-cart span {
    display: none;
  }

  .hero-copy {
    padding-top: 38px;
  }

  .section-kicker {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 325px;
  }

  .hero-perks,
  .producer-logos,
  .why-grid,
  .process-grid,
  .client-grid,
  .metric-strip,
  .offer-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer::before {
    right: 16px;
    width: 42vw;
  }

  .site-footer::after {
    width: 62px;
    height: 62px;
    border-right-width: 10px;
    border-bottom-width: 10px;
  }

  .footer-grid {
    padding: 48px 0 38px;
  }

  .footer-grid > div,
  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    min-height: 0;
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-grid > div:first-child {
    padding-top: 0;
  }

  .footer-grid > div:last-child {
    border-bottom: 0;
  }

  .footer-brand::after {
    bottom: 22px;
  }

  .perk,
  .perk:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid #ededed;
  }

  .proof-section,
  .comparison,
  .calculator-preview,
  .clients-section,
  .case-strip,
  .delivery,
  .offer-section,
  .contact-cta,
  .contact-section,
  .page-hero,
  .page-band,
  .quick-contact-section {
    padding: 48px 0;
  }

  .page-hero {
    min-height: auto;
  }

  .page-hero-copy h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .blog-hero .page-hero-copy h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .page-hero-copy p,
  .page-split p,
  .quick-contact-copy p,
  .article-feature p {
    font-size: 15px;
  }

  .page-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero-card,
  .article-feature,
  .contact-details-panel,
  .lead-form {
    padding: 24px;
  }

  .form-status {
    left: 24px;
    bottom: 8px;
  }

  .value-grid,
  .metric-strip,
  .firm-profile-grid,
  .article-grid,
  .process-board-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .value-card,
  .firm-profile-card,
  .article-card,
  .process-board-grid article {
    min-height: 0;
  }

  .value-card > span,
  .firm-profile-card > span,
  .article-card > span,
  .process-board-grid article > span {
    margin-bottom: 30px;
  }

  .metric-tile {
    min-height: 0;
    padding: 28px 24px;
  }

  .service-matrix-row,
  .blog-index-row,
  .article-table > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service-matrix-row {
    padding: 22px 0;
  }

  .service-matrix-row strong,
  .service-matrix-row p {
    grid-column: auto;
  }

  .blog-index-row {
    align-items: start;
    gap: 10px;
  }

  .article-layout {
    gap: 34px;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .article-lead {
    font-size: 18px;
  }

  .article-cta-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .article-card a {
    position: static;
    margin-top: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-form button {
    width: 100%;
  }

  .calculator-copy {
    padding-top: 0;
  }

  .calc-window {
    width: min(100%, 188px);
  }

  .contact-tiles {
    margin-top: 24px;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .proof-map {
    min-height: 300px;
  }

  .split-heading {
    gap: 22px;
  }

  .calculator-panel {
    min-height: 0;
    padding: 16px;
  }

  .calc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-summary,
  .contact-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .calc-summary .text-link {
    width: max-content;
  }

  .comparison-table {
    border: 0;
    box-shadow: none;
  }

  .comparison-row,
  .comparison-head {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 14px;
    border: 1px solid #e3e3e3;
  }

  .comparison-row > div {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid #ececec;
  }

  .comparison-row > div:last-child {
    border-bottom: 0;
  }

  .producer-logos {
    gap: 18px;
  }

  .producer-strip p {
    width: auto;
    font-size: 28px;
  }

  .why,
  .workflow {
    padding: 44px 0;
  }

  .feature-card {
    min-height: 0;
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 24px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    height: 52px;
  }

  .has-js .reveal[data-reveal="left"],
  .has-js .reveal[data-reveal="right"],
  .has-js .reveal[data-reveal="media"] {
    transform: translate3d(0, 14px, 0);
  }
}

/* Cleaner calculator SVG rendering: no tiled texture fills, profile-based frames. */
.configured-window-svg {
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.configured-window-svg .profile-piece,
.configured-window-svg .window-frame-shape {
  stroke: #8b979d;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-frame.profile-piece {
  stroke: #9aa6ac;
}

.configured-window-svg .window-sash.profile-piece,
.configured-window-svg .window-mullion.profile-piece {
  stroke: #7f8b91;
}

.configured-window-svg .window-reveal {
  fill: #f7fafb;
  stroke: rgba(116, 128, 136, 0.34);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-glass {
  fill: url("#glassGradient");
  stroke: #8ca1aa;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-glass-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-open-line {
  fill: none;
  stroke: rgba(68, 77, 84, 0.78);
  stroke-width: 1.45;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-open-line-soft {
  opacity: 0.65;
}

.configured-window-svg .window-handle {
  fill: #252b30;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-sash-group.is-front {
  filter: drop-shadow(-3px 0 4px rgba(18, 24, 28, 0.16));
}

.technical-window .window-handle {
  vector-effect: non-scaling-stroke;
}

.configured-window-svg .window-shadow {
  fill: rgba(17, 24, 30, 0.075);
}

.configured-window-svg .window-track {
  fill: none;
  stroke: #667178;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.construction-icon rect,
.construction-icon path,
.construction-icon circle,
.construction-icon polygon {
  stroke: #6f7a82;
  stroke-width: 1.55;
  vector-effect: non-scaling-stroke;
}

.construction-icon .glass {
  fill: #d5edf2;
  stroke: #91a4ad;
  stroke-width: 1.15;
}

.construction-icon .dash {
  fill: none;
  stroke: rgba(67, 76, 83, 0.68);
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

/* Calculator page polish pass: stronger hero, clearer panels, calmer color system. */
.calculator-page-main {
  background: #f3f4f5;
}

.calculator-hero.page-hero-dark {
  position: relative;
  min-height: 392px;
  padding: 86px 0 76px;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.18), transparent 33%),
    radial-gradient(circle at 82% 26%, rgba(227, 6, 19, 0.18), transparent 26%),
    linear-gradient(135deg, #090a0b 0%, #141719 62%, #211011 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.calculator-hero.page-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 132px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%);
  pointer-events: none;
}

.calculator-hero.page-hero-dark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 260px;
  height: 88px;
  border-right: 18px solid var(--color-red);
  border-bottom: 18px solid var(--color-red);
  transform: skewX(-22deg) translateX(36px);
  pointer-events: none;
}

.calculator-hero .page-hero-grid {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 80px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(300px, 390px);
  gap: 76px;
  align-items: center;
}

.calculator-hero .page-hero-copy {
  max-width: 760px;
}

.calculator-hero .section-kicker,
.calculator-hero .title-rule,
.calculator-hero .page-hero-actions {
  display: flex;
}

.calculator-hero .section-kicker {
  margin: 0 0 18px;
  color: #ff2a34;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.calculator-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 4.25vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.026em;
}

.calculator-hero .title-rule {
  width: 86px;
  height: 5px;
  margin: 24px 0 24px;
  background: var(--color-red);
}

.calculator-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.72;
}

.calculator-hero .page-hero-actions {
  gap: 14px;
  margin-top: 30px;
}

.calculator-hero .page-hero-card {
  position: relative;
  display: flex;
  min-height: 236px;
  padding: 34px 34px 32px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.calculator-hero .page-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 96px;
  height: 5px;
  background: var(--color-red);
}

.calculator-hero .page-hero-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  display: block;
  width: 110px;
  height: 110px;
  border-right: 14px solid var(--color-red);
  border-bottom: 14px solid var(--color-red);
  transform: skewX(-22deg);
  opacity: 0.96;
}

.calculator-hero .page-hero-card > span {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-hero .page-hero-card strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.calculator-hero .page-hero-card p {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.6;
}

.window-calculator-section {
  padding: 54px 0 92px;
  background:
    linear-gradient(180deg, #f3f4f5 0%, #f7f8f9 100%);
}

.window-calculator-section .container-wide {
  width: min(1260px, calc(100% - 80px));
  max-width: none;
}

.calc-app-toolbar {
  display: flex;
  margin: 0 0 22px;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border: 1px solid rgba(17, 19, 22, 0.1);
  box-shadow: 0 18px 40px rgba(17, 18, 19, 0.06);
}

.calc-app-toolbar > div:first-child {
  display: block;
}

.calc-app-toolbar span,
.calc-step-heading span,
.calc-summary-panel .section-kicker,
.quote-panel .section-kicker {
  color: #858991;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calc-app-toolbar strong {
  display: block;
  margin-top: 6px;
  color: #17191f;
  font-size: clamp(24px, 2.05vw, 32px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.calc-app-selectors {
  width: auto;
  justify-content: flex-end;
  gap: 10px;
}

.calc-app-selectors label {
  display: grid;
  gap: 7px;
  color: #7c8087;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calc-app-selectors select {
  min-width: 104px;
  min-height: 44px;
  padding: 0 34px 0 13px;
  background: #ffffff;
  border: 1px solid #d9dde1;
  color: #17191f;
  font-size: 13px;
  font-weight: 900;
}

.calc-cart-button {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #17191f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
}

.calc-cart-button:hover {
  background: var(--color-red);
  color: #ffffff;
  transform: translateY(-2px);
}

.calc-cart-button span {
  min-width: 22px;
  min-height: 22px;
  margin-left: 10px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 11px;
}

.calc-app-grid {
  grid-template-columns: minmax(0, 820px) 388px;
  gap: 32px;
  align-items: start;
}

.calc-config {
  display: grid;
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.calc-step {
  padding: 28px 30px 30px;
  background: #ffffff;
  border: 1px solid rgba(17, 19, 22, 0.1);
  box-shadow: 0 18px 40px rgba(17, 18, 19, 0.055);
}

.calc-step + .calc-step {
  padding-top: 28px;
}

.calc-step:last-child {
  border-bottom: 1px solid rgba(17, 19, 22, 0.1);
}

.calc-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.calc-step-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 32px;
  color: #ffffff;
  background: var(--color-red);
  font-size: 12px;
}

.calc-step-heading h2 {
  margin: 0;
  color: #17191f;
  font-size: clamp(22px, 1.75vw, 28px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.calc-step-heading h2::after {
  content: none;
}

.calc-reset-link,
.quote-panel-header button {
  color: #7a7f87;
  font-size: 12px;
  font-weight: 900;
}

.calc-reset-link:hover,
.quote-panel-header button:hover {
  color: var(--color-red);
}

.calc-dimensions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dimension-control {
  gap: 8px;
}

.dimension-control > span {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #747982;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dimension-control div {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  background: #f7f8f9;
  border: 1px solid #d9dde1;
}

.dimension-control button {
  min-height: 52px;
  color: #17191f;
  font-size: 18px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}

.dimension-control button:hover {
  background: #17191f;
  color: #ffffff;
}

.dimension-control input {
  min-height: 52px;
  color: #17191f;
  font-size: 18px;
  font-weight: 900;
}

.dimension-control small,
.calc-validation {
  color: #6f747c;
  font-size: 12px;
  font-weight: 700;
}

.calc-filterbar {
  justify-content: flex-start;
  gap: 8px;
  min-height: auto;
  margin: -4px 0 24px;
}

.calc-filterbar button {
  min-height: 38px;
  padding: 0 14px;
  background: #f5f6f7;
  border: 1px solid #dde1e5;
  color: #3b3f45;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.calc-filterbar button:hover,
.calc-filterbar button.is-active {
  background: #17191f;
  border-color: #17191f;
  color: #ffffff;
  transform: translateY(-1px);
}

.calc-filterbar label {
  margin-left: auto;
  color: #747982;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-filterbar select {
  min-height: 38px;
  padding: 0 32px 0 10px;
  background: #ffffff;
  border: 1px solid #dde1e5;
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.construction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.construction-tile {
  min-height: 204px;
  padding: 20px 16px 18px;
  background: #ffffff;
  border: 1px solid #e0e4e7;
  box-shadow: none;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 160ms ease;
}

.construction-tile:hover {
  background: #fbfcfc;
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 16px 34px rgba(17, 18, 19, 0.08);
  transform: translateY(-3px);
}

.construction-tile.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  border-color: var(--color-red);
  box-shadow: inset 0 4px 0 var(--color-red), 0 18px 36px rgba(227, 6, 19, 0.11);
}

.construction-tile.is-disabled {
  background: #f7f8f9;
  opacity: 0.42;
}

.construction-empty {
  grid-column: 1 / -1;
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e0e4e7;
  color: #17191f;
  text-align: center;
}

.construction-empty strong {
  font-size: 18px;
  font-weight: 900;
}

.construction-empty span {
  color: #737982;
  font-size: 14px;
  font-weight: 700;
}

.construction-icon {
  width: 128px;
  height: 92px;
  margin: 0 auto 16px;
}

.construction-icon rect,
.construction-icon path,
.construction-icon circle {
  vector-effect: non-scaling-stroke;
}

.construction-tile strong {
  order: 2;
  color: #17191f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.24;
}

.construction-tile span {
  order: 3;
  margin-top: 10px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 900;
}

.personalization-grid,
.system-grid,
.accessory-grid {
  gap: 14px;
}

.order-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-mode-tile {
  min-height: 138px;
  border: 1px solid #e0e4e7;
  background: #ffffff;
  padding: 18px;
  color: #17191f;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 160ms ease;
}

.order-mode-tile:hover {
  background: #fbfcfc;
  border-color: rgba(227, 6, 19, 0.34);
  box-shadow: 0 16px 34px rgba(17, 18, 19, 0.08);
  transform: translateY(-3px);
}

.order-mode-tile.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  border-color: var(--color-red);
  box-shadow: inset 0 4px 0 var(--color-red), 0 18px 36px rgba(227, 6, 19, 0.1);
}

.order-mode-tile span {
  display: block;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-mode-tile strong {
  display: block;
  margin-top: 10px;
  color: #17191f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.order-mode-tile small {
  display: block;
  margin-top: 9px;
  color: #666b73;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.calc-choice-group,
.system-tile,
.accessory-tile,
.nose-question {
  background: #ffffff;
  border: 1px solid #e0e4e7;
}

.calc-choice-group h3 {
  padding: 16px 18px 12px;
  color: #17191f;
  font-size: 14px;
  font-weight: 900;
  text-transform: none;
}

.color-grid,
.glass-grid,
.handle-grid {
  border-top: 1px solid #e7eaed;
}

.color-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 16px 18px;
  padding: 16px 18px;
}

.color-swatch,
.glass-option,
.handle-grid label {
  min-height: 60px;
  background: #fbfcfc;
  color: #22252b;
  font-size: 13px;
  font-weight: 800;
}

.color-swatch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #262a30;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
}

.color-swatch::before {
  content: "";
  display: block;
  width: min(72px, 100%);
  aspect-ratio: 1;
  border: 1px solid #d4d9dd;
  background: var(--swatch);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 1px 2px rgba(17, 19, 22, 0.08);
}

.color-swatch:hover,
.glass-option:hover,
.handle-grid label:hover {
  background: transparent;
}

.color-swatch:hover::before {
  border-color: #aeb6bd;
}

.color-swatch.is-active,
.glass-option.is-active,
.handle-grid label:has(input:checked) {
  border-color: #e7eaed;
  box-shadow: inset 0 -3px 0 var(--color-red);
}

.color-swatch.is-active {
  box-shadow: none;
}

.color-swatch.is-active::before {
  border-color: #31a24c;
  box-shadow:
    inset 0 0 0 2px #ffffff,
    0 0 0 3px #31a24c,
    0 6px 14px rgba(49, 162, 76, 0.18);
}

.color-swatch.is-active::after {
  content: "✓";
  position: absolute;
  top: 48px;
  left: calc(50% + 18px);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #36a852;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.calc-choice-group-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.personalization-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e7eaed;
}

.calc-glass-step .personalization-tiles {
  grid-template-columns: minmax(0, 1fr);
  border-top: 0;
}

.personalization-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 12px 18px 10px;
  gap: 16px;
  background: #fbfcfc;
  border-right: 1px solid #e7eaed;
  border-bottom: 1px solid #e7eaed;
}

.personalization-tile > div {
  min-width: 0;
}

.personalization-tile:nth-child(2n) {
  border-right: 0;
}

.calc-glass-step .personalization-tile {
  min-height: 88px;
  padding: 18px 20px;
  border-right: 0;
}

.personalization-tile:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.personalization-tile span,
.personalization-tile small {
  display: block;
  color: #626872;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.personalization-tile strong {
  display: block;
  margin-top: 4px;
  color: #17191f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.personalization-tile button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 2px solid var(--color-red);
  background: transparent;
  color: #17191f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.personalization-tile.is-disabled {
  opacity: 0.76;
}

.color-swatch.is-disabled {
  color: #9aa1a8;
  cursor: not-allowed;
  opacity: 0.52;
}

.calc-modal-root {
  position: relative;
  z-index: 50;
}

.calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 24, 0.42);
  z-index: 80;
}

.calc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  display: flex;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dde2e6;
  box-shadow: 0 24px 80px rgba(18, 22, 26, 0.22);
  transform: translate(-50%, -50%);
}

.calc-modal header,
.calc-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7eaed;
}

.calc-modal footer {
  border-top: 1px solid #e7eaed;
  border-bottom: 0;
  justify-content: flex-end;
}

.calc-modal h3 {
  margin: 0;
  color: #17191f;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.calc-modal header button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #626872;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.calc-modal-list {
  overflow: auto;
  padding: 8px 0;
}

.calc-modal-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 14px 20px;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
  color: #17191f;
  cursor: pointer;
  text-align: left;
}

.calc-modal-glass-option {
  grid-template-columns: 24px 88px minmax(0, 1fr) auto;
  min-height: 112px;
  padding: 14px 22px;
  gap: 16px;
}

.calc-modal-option:hover,
.calc-modal-option.is-active {
  background: #fffafa;
  box-shadow: inset 4px 0 0 var(--color-red);
}

.calc-modal-option strong,
.calc-modal-option small {
  display: block;
}

.calc-modal-option small,
.calc-modal-option em {
  color: #626872;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.modal-secondary,
.modal-primary {
  min-width: 116px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #cfd5da;
  background: #ffffff;
  color: #17191f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.modal-primary {
  border-color: var(--color-red);
  background: var(--color-red);
  color: #ffffff;
}

.radio-dot,
.modal-choice-dot {
  width: 28px;
  height: 28px;
  border: 1px solid #b9c3ca;
  background: linear-gradient(135deg, #f3fbfd, #c4e7ef);
}

.modal-choice-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
}

.glass-preview-chip {
  display: block;
  width: 80px;
  height: 80px;
  border: 1px solid #9eb4bf;
  background: #d8f1f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.glass-preview-chip svg {
  display: block;
  width: 100%;
  height: 100%;
}

.glass-preview-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-dot {
  border-radius: 50%;
  background: #ffffff;
}

.calc-modal-option.is-active .radio-dot {
  border-color: var(--color-red);
  box-shadow: inset 0 0 0 7px #ffffff, inset 0 0 0 14px var(--color-red);
}

.calc-modal-option.is-active .modal-choice-dot {
  border-color: var(--color-red);
  box-shadow: inset 0 0 0 4px #ffffff, inset 0 0 0 10px var(--color-red);
}

.system-tile,
.accessory-tile {
  min-height: 138px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 160ms ease;
}

.system-tile:hover,
.accessory-tile:hover,
.system-tile.is-active,
.accessory-tile.is-active {
  background: #fffafa;
  border-color: var(--color-red);
  box-shadow: inset 0 4px 0 var(--color-red), 0 14px 30px rgba(17, 18, 19, 0.055);
  transform: translateY(-2px);
}

.system-tile strong,
.accessory-tile strong {
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
}

.system-tile p,
.accessory-tile p,
.nose-question p {
  color: #666b73;
  font-weight: 600;
}

.calc-glass-choice {
  margin-bottom: 14px;
}

.nose-question {
  padding: 20px;
  background: #f8f9fa;
}

.nose-question strong {
  color: #17191f;
}

.nose-question button {
  min-height: 42px;
  border: 1px solid #d9dde1;
  background: #ffffff;
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nose-question button.is-active,
.nose-question button:hover {
  background: #17191f;
  border-color: #17191f;
  color: #ffffff;
}

.quantity-control {
  width: 180px;
  margin-top: 18px;
  color: #747982;
}

.quantity-control input {
  min-height: 48px;
  border: 1px solid #d9dde1;
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
}

.calc-summary-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  align-self: start;
}

.calc-summary-sticky {
  height: auto;
  max-height: calc(100vh - 28px);
  min-height: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(17, 19, 22, 0.14);
  box-shadow: 0 18px 42px rgba(17, 18, 19, 0.09);
  overflow: hidden;
}

.calc-summary-panel .section-kicker {
  margin: -12px -12px 10px;
  padding: 11px 12px;
  background: #17191f;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.live-window-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(100px, 18vh, 142px);
  padding: 7px;
  margin: 0 0 6px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f3f7f9 100%);
  border: 1px solid #edf0f2;
}

.live-window-preview svg {
  width: min(100%, 204px);
  max-height: clamp(96px, 17vh, 132px);
}

.live-window-preview .selected-construction-icon {
  display: block;
  width: min(100%, 198px);
  height: auto;
  max-height: none;
  margin: 0;
}

.technical-window-svg {
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.technical-window-svg .preview-frame,
.technical-window-svg .preview-sash,
.technical-window-svg .preview-mullion,
.technical-window-svg .window-frame-shape {
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
}

.technical-window-svg .window-reveal {
  fill: #f7fafb;
  stroke: rgba(101, 112, 120, 0.22);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.technical-window-svg .window-glass {
  fill: url("#glassGradient");
  stroke: #8ca1aa;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.technical-window-svg .window-open-line {
  fill: none;
  stroke: rgba(74, 84, 91, 0.82);
  stroke-width: 1.35;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.technical-window-svg .window-open-line-soft {
  opacity: 0.72;
}

.technical-window-svg .window-handle {
  fill: #343b41;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.technical-window-svg .window-shadow {
  fill: rgba(17, 24, 30, 0.07);
}

.technical-window-svg .window-track {
  fill: none;
  stroke: #667178;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.calc-summary-panel h2 {
  margin: 0 0 7px;
  color: #17191f;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
  text-align: left;
}

.summary-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 7px;
  border: 0;
}

.summary-lines div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid #e1e6ea;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 18, 19, 0.03);
}

.summary-lines div.is-wide {
  grid-column: 1 / -1;
}

.summary-lines div.is-accent {
  border-color: rgba(227, 6, 19, 0.22);
  background: #fff8f8;
}

.summary-lines div span {
  color: #777e87;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.summary-lines div strong {
  color: #17191f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-price {
  margin: 0 0 5px;
  padding: 7px 10px;
  background: #111213;
  color: #ffffff;
}

.summary-price span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-price strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.summary-price small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 800;
}

.summary-cart-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  padding: 5px 0;
  color: #17191f;
}

.calc-summary-sticky .btn {
  min-height: 34px;
  margin-top: 4px;
  font-size: 11px;
}

.calc-summary-sticky .btn[hidden] {
  display: none;
}

.form-status:empty {
  display: none;
}

.calc-summary-sticky .form-status {
  margin: 8px 0 0;
  color: #626872;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.btn.is-loading {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.calc-note {
  display: none;
}

.cart-drawer {
  background: #ffffff;
}

.cart-drawer .quote-panel-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e3e7ea;
}

.cart-drawer .quote-panel-header h2 {
  color: #17191f;
  font-size: 30px;
}

@media (max-width: 1180px) {
  .calculator-hero .page-hero-grid,
  .window-calculator-section .container-wide {
    width: min(100% - 44px, 980px);
  }

  .calculator-hero .page-hero-grid,
  .calc-app-grid {
    grid-template-columns: 1fr;
  }

  .calculator-hero .page-hero-card {
    max-width: 540px;
  }

  .calc-summary-panel {
    position: static;
    max-height: none;
  }

  .calc-summary-sticky {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .calculator-hero.page-hero-dark {
    min-height: 0;
    padding: 58px 0 52px;
  }

  .calculator-hero .page-hero-grid,
  .window-calculator-section .container-wide {
    width: calc(100% - 32px);
  }

  .calculator-hero h1 {
    font-size: 40px;
  }

  .calculator-hero p {
    font-size: 15px;
  }

  .calc-app-toolbar,
  .calc-step-heading {
    grid-template-columns: 1fr;
  }

  .calc-app-toolbar {
    align-items: stretch;
  }

  .calc-app-selectors {
    justify-content: flex-start;
  }

  .calc-dimensions,
  .order-mode-grid,
  .personalization-grid,
  .system-grid,
  .accessory-grid {
    grid-template-columns: 1fr;
  }

  .personalization-tiles {
    grid-template-columns: 1fr;
  }

  .personalization-tile,
  .personalization-tile:nth-child(2n) {
    border-right: 0;
  }

  .personalization-tile:nth-last-child(-n + 2) {
    border-bottom: 1px solid #e7eaed;
  }

  .personalization-tile:last-child {
    border-bottom: 0;
  }

  .construction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .calculator-hero.page-hero-dark {
    padding: 42px 0 38px;
  }

  .calculator-hero h1 {
    font-size: 32px;
  }

  .calculator-hero .page-hero-card {
    display: none;
  }

  .calculator-hero .page-hero-actions {
    margin-top: 24px;
  }

  .calculator-hero .page-hero-actions,
  .calc-app-selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-app-selectors label,
  .calc-app-selectors select,
  .calc-cart-button,
  .quantity-control {
    width: 100%;
  }

  .window-calculator-section {
    padding: 32px 0 58px;
  }

  .calc-step,
  .calc-summary-sticky {
    padding: 20px;
  }

  .calc-summary-panel .section-kicker {
    margin: -20px -20px 14px;
    padding: 14px 20px;
  }

  .construction-grid,
  .summary-lines {
    grid-template-columns: 1fr;
  }

  .calc-modal {
    top: auto;
    bottom: 0;
    left: 16px;
    width: calc(100vw - 32px);
    max-height: min(78vh, 680px);
    transform: none;
  }

  .calc-modal-option {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .calc-modal-glass-option {
    grid-template-columns: 22px 72px minmax(0, 1fr);
  }

  .calc-modal-glass-option .glass-preview-chip {
    width: 68px;
    height: 68px;
  }

  .calc-modal-option em {
    grid-column: 2;
  }

  .calc-modal-glass-option em {
    grid-column: 3;
  }
}

.calculator-page-main .calc-summary-panel {
  position: sticky;
  top: calc(var(--header-height, 74px) + 10px);
  max-height: calc(100vh - var(--header-height, 74px) - 20px);
  align-self: start;
}

.calculator-page-main .calc-summary-sticky {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - var(--header-height, 74px) - 20px);
  padding: 12px;
  overflow: visible !important;
}

.calculator-page-main .live-window-preview,
.calculator-page-main .calc-summary-panel h2,
.calculator-page-main .summary-lines div strong,
.calculator-page-main .summary-price strong,
.calculator-page-main .summary-price small {
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.calculator-page-main .calc-summary-sticky.is-refreshing .live-window-preview,
.calculator-page-main .calc-summary-sticky.is-refreshing h2,
.calculator-page-main .calc-summary-sticky.is-refreshing .summary-lines div strong,
.calculator-page-main .calc-summary-sticky.is-refreshing .summary-price strong,
.calculator-page-main .calc-summary-sticky.is-refreshing .summary-price small {
  opacity: 0.3;
  filter: blur(7px);
  pointer-events: none;
}

.calculator-page-main .calc-summary-sticky.is-refreshing::before {
  content: none;
}

.calculator-page-main .calc-summary-sticky.is-refreshing::after {
  content: "Odświeżam dane";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  transform: translate(-50%, -50%);
  min-width: 164px;
  padding: 11px 14px 11px 38px;
  background:
    radial-gradient(circle at 20px 50%, #e30613 0 4px, transparent 5px),
    #111317;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(17, 19, 23, 0.22);
  pointer-events: none;
  animation: summaryRefreshPulse 520ms ease-in-out infinite;
}

@keyframes summaryRefreshPulse {
  0%,
  100% {
    opacity: 0.86;
  }
  50% {
    opacity: 1;
  }
}

.calculator-page-main .calc-summary-panel .section-kicker {
  margin: -12px -12px 10px;
  padding: 10px 12px;
  font-size: 11px;
}

.calculator-page-main .live-window-preview {
  min-height: clamp(148px, 24vh, 188px);
  margin: 0 0 8px;
  padding: 8px;
}

.calculator-page-main .live-window-preview svg,
.calculator-page-main .live-window-preview .selected-construction-icon {
  width: min(100%, 274px);
  max-height: min(182px, 26vh);
}

.calculator-page-main .technical-window .window-glass {
  fill: #d8f1f6;
  stroke: #8ca1aa;
}

.calculator-page-main .calc-summary-panel h2 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.14;
}

.calculator-page-main .summary-lines {
  gap: 4px;
  margin-bottom: 6px;
}

.calculator-page-main .summary-lines div {
  min-height: 35px;
  padding: 6px 8px;
  gap: 2px;
  border-radius: 4px;
  justify-items: start;
  text-align: left;
}

.calculator-page-main .summary-lines div span {
  font-size: 9px;
  line-height: 1;
  text-align: left;
}

.calculator-page-main .summary-lines div strong {
  font-size: 12px;
  line-height: 1.18;
  text-align: left;
}

.calculator-page-main .summary-price {
  margin-bottom: 4px;
  padding: 9px 12px;
}

.calculator-page-main .summary-price span,
.calculator-page-main .summary-price small {
  font-size: 10px;
}

.calculator-page-main .summary-price strong {
  font-size: 22px;
  line-height: 1.08;
}

.calculator-page-main .summary-cart-status {
  margin-bottom: 4px;
  padding: 5px 0;
  font-size: 12px;
}

.calculator-page-main .calc-summary-sticky .btn {
  min-height: 34px;
  margin-top: 3px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .calculator-page-main .calc-summary-panel {
    position: static;
    max-height: none;
  }

  .calculator-page-main .calc-summary-sticky {
    max-height: none;
    overflow: visible !important;
  }
}

@media (max-width: 620px) {
  .calculator-page-main .calc-summary-sticky {
    padding: 12px;
  }

  .calculator-page-main .live-window-preview {
    min-height: 172px;
  }

  .calculator-page-main .live-window-preview svg,
  .calculator-page-main .live-window-preview .selected-construction-icon {
    width: min(100%, 292px);
    max-height: 182px;
  }

  .calculator-page-main .summary-lines {
    grid-template-columns: 1fr;
  }

  .header-cart-popover {
    right: -8px;
    width: calc(100vw - 32px);
  }

  .cart-toast {
    right: 16px;
    left: 16px;
    text-align: center;
    transform: translateY(-8px);
  }

  .cart-toast.is-visible {
    transform: translateY(0);
  }
}

/* Admin panel */
.admin-body {
  overflow: hidden;
  background: #f4f7fa;
  color: #07111d;
  font-size: 13px;
  line-height: 1.35;
}

.admin-body.page-ready {
  opacity: 1;
}

.admin-auth-body {
  --admin-red: #ec0b13;
  --admin-red-dark: #c8070f;
  --admin-ink: #07111d;
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 17, 29, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 76% 20%, rgba(236, 11, 19, 0.12), transparent 32%),
    #f3f6f8;
  background-size: 96px 96px, 96px 96px, auto, auto;
}

.admin-auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
}

.admin-auth-card {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(100%, 820px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #dce4ea;
  background: #ffffff;
  box-shadow: 0 28px 74px rgba(7, 17, 29, 0.15);
}

.admin-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 260px;
  background:
    linear-gradient(135deg, rgba(236, 11, 19, 0.18), transparent 38%),
    linear-gradient(180deg, #111923 0%, #07111a 100%);
  pointer-events: none;
}

.admin-auth-card .admin-brand {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: start;
  justify-self: start;
  align-items: center;
  min-height: auto;
  margin: 42px 34px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-auth-card .admin-brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 4px solid var(--admin-red);
  box-sizing: border-box;
}

.admin-auth-card .admin-brand strong {
  font-size: 21px;
  line-height: 1;
}

.admin-auth-card .admin-brand span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.admin-auth-card > div {
  position: relative;
  z-index: 1;
  grid-column: 2;
  padding: 74px 64px 14px;
}

.admin-auth-card > div::before {
  content: "Konfiguracja cen, produktów i zamówień";
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 34px;
  border: 1px solid #e1e7ed;
  padding: 0 12px;
  color: #596673;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-auth-card h1 {
  max-width: 420px;
  margin: 8px 0 12px;
  color: var(--admin-ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.04;
}

.admin-auth-card p {
  max-width: 430px;
  margin: 0;
  color: #5f6d79;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.admin-auth-kicker {
  color: var(--admin-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-auth-error {
  grid-column: 2;
  margin: 0 56px;
  border: 1px solid rgba(236, 11, 19, 0.28);
  padding: 12px 14px;
  background: #fff5f5;
  color: #b7070f;
  font-size: 13px;
  font-weight: 900;
}

.admin-auth-form {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: grid;
  gap: 16px;
  padding: 24px 56px 56px;
}

.admin-auth-form label {
  display: grid;
  gap: 8px;
  color: #667481;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d3dce4;
  padding: 0 15px;
  background: #fbfcfd;
  color: var(--admin-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.admin-auth-form input:focus {
  border-color: var(--admin-red);
  outline: 0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(236, 11, 19, 0.12);
}

.admin-auth-form .admin-red-button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border-radius: 0;
  background: var(--admin-red);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 16px 34px rgba(236, 11, 19, 0.24);
}

.admin-auth-form .admin-red-button:hover {
  background: var(--admin-red-dark);
  transform: translateY(-1px);
}

.admin-auth-card > div::before {
  content: none;
  display: none;
}

.admin-auth-card h1 {
  max-width: 360px;
  margin: 10px 0 12px;
  font-size: 33px;
  line-height: 1.02;
}

.admin-auth-card p {
  max-width: 390px;
}

.admin-auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-left: 3px solid var(--admin-red);
  padding-left: 10px;
  white-space: nowrap;
}

.admin-auth-error {
  margin-inline: 64px;
}

.admin-auth-form {
  padding: 18px 64px 54px;
}

.admin-auth-form input {
  min-height: 50px;
}

.admin-auth-form .admin-red-button {
  min-height: 52px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .admin-auth-shell {
    padding: 20px 14px;
  }

  .admin-auth-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .admin-auth-card::before {
    width: 100%;
    height: 86px;
  }

  .admin-auth-card .admin-brand {
    margin: 26px 24px 0;
  }

  .admin-auth-card > div {
    grid-column: 1;
    padding: 56px 24px 18px;
  }

  .admin-auth-card > div::before {
    margin-bottom: 24px;
  }

  .admin-auth-card h1 {
    font-size: 28px;
  }

  .admin-auth-error,
  .admin-auth-form {
    grid-column: 1;
    margin-inline: 24px;
  }

  .admin-auth-form {
    padding: 18px 0 28px;
  }
}

.admin-shell {
  --admin-red: #ec0b13;
  --admin-red-dark: #c8070f;
  --admin-navy: #08131d;
  --admin-navy-soft: #101c27;
  --admin-border: #dfe6ec;
  --admin-muted: #6d7783;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f7fa;
  transition: grid-template-columns 180ms ease;
}

.admin-shell.is-sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.admin-shell.is-sidebar-collapsed .admin-brand,
.admin-shell.is-sidebar-collapsed .admin-menu a,
.admin-shell.is-sidebar-collapsed .admin-collapse {
  justify-content: center;
  padding-inline: 0;
}

.admin-shell.is-sidebar-collapsed .admin-brand-word,
.admin-shell.is-sidebar-collapsed .admin-brand-mode,
.admin-shell.is-sidebar-collapsed .admin-menu-section,
.admin-shell.is-sidebar-collapsed .admin-nav-label,
.admin-shell.is-sidebar-collapsed .admin-menu a b,
.admin-shell.is-sidebar-collapsed .admin-collapse .admin-nav-label {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 122, 155, 0.18), transparent 28%),
    linear-gradient(180deg, #121923 0%, #07111a 54%, #061019 100%);
  color: #ffffff;
  box-shadow: 10px 0 28px rgba(5, 13, 20, 0.12);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.admin-brand-mark {
  display: none;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--admin-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.admin-brand-word,
.admin-brand-mode {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand-word {
  font-size: 19px;
  font-weight: 900;
}

.admin-brand-mode {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.admin-shell.is-sidebar-collapsed .admin-brand-mark {
  display: grid;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 18px 12px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.admin-menu-section {
  margin: 14px 12px 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-menu a,
.admin-collapse {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 180ms ease;
}

.admin-menu a:hover,
.admin-collapse:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.admin-menu a:focus-visible,
.admin-collapse:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.admin-menu a svg,
.admin-collapse svg,
.admin-topbar svg,
.admin-red-button svg,
.admin-light-button svg,
.admin-kebab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-menu a > svg,
.admin-collapse svg {
  flex: 0 0 18px;
}

.admin-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-menu a.is-active {
  background: var(--admin-red);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(236, 11, 19, 0.28);
  transform: none;
}

.admin-menu a.is-sub-active {
  background: rgba(236, 11, 19, 0.13);
  color: #ffffff;
}

.admin-menu a.is-sub-active::before {
  content: none;
}

.admin-menu a b {
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 4px;
  padding: 2px 7px;
  background: var(--admin-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.admin-collapse {
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.58);
}

.admin-main {
  position: relative;
  height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 38px minmax(260px, 1fr) 42px auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.admin-icon-button,
.admin-kebab {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1d2630;
  cursor: pointer;
}

.admin-icon-button:hover,
.admin-kebab:hover {
  background: #f1f4f7;
}

.admin-notification-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.admin-icon-button.has-dot {
  position: relative;
}

.admin-icon-button.has-dot b {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--admin-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.admin-icon-button.has-dot b[hidden] {
  display: none;
}

.admin-icon-button.has-dot.has-unread {
  color: #07111d;
}

.admin-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(10, 18, 28, 0.2);
  color: #111923;
}

.admin-notification-panel[hidden] {
  display: none;
}

.admin-notification-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-top: 1px solid #dfe6ed;
  border-left: 1px solid #dfe6ed;
  background: #ffffff;
  transform: rotate(45deg);
}

.admin-notification-head,
.admin-notification-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-notification-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid #edf1f4;
}

.admin-notification-head span,
.admin-notification-item small,
.admin-notification-item em {
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-notification-head strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.admin-notification-head button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #f2f5f8;
  color: #111923;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.admin-notification-list {
  display: grid;
  max-height: 372px;
  overflow: auto;
}

.admin-notification-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  background: #ffffff;
  padding: 12px 14px 12px 18px;
  color: #111923;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-notification-item:hover {
  background: #fbfdff;
}

.admin-notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--admin-red);
}

.admin-notification-item span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-notification-item strong,
.admin-notification-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-notification-item strong {
  font-size: 13px;
  font-weight: 900;
}

.admin-notification-item b {
  grid-column: 1 / -1;
  color: #34404b;
  font-size: 12px;
  font-weight: 900;
}

.admin-notification-foot {
  padding: 10px 12px;
  background: #fbfcfd;
}

.admin-notification-foot button {
  min-height: 30px;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  background: #ffffff;
  color: #111923;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-notification-foot button:hover {
  border-color: rgba(236, 11, 19, 0.35);
  color: var(--admin-red);
}

.admin-notification-foot small {
  margin-left: auto;
  color: #7a8491;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-notification-empty {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
}

.admin-notification-empty strong {
  font-size: 14px;
  font-weight: 900;
}

.admin-notification-empty span {
  color: #6d7783;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.admin-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid #d7dfe7;
  border-radius: 7px;
  padding: 0 12px;
  background: #ffffff;
  color: #6d7783;
}

.admin-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111923;
  font: inherit;
  font-weight: 700;
}

.admin-toolbar svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-user {
  display: grid;
  grid-template-columns: 36px auto minmax(62px, auto);
  align-items: center;
  gap: 10px;
}

.admin-user > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8edf2;
  color: #4c5966;
  font-weight: 900;
}

.admin-user strong,
.admin-user small {
  display: block;
}

.admin-user strong {
  font-size: 13px;
  font-weight: 900;
}

.admin-user small {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-form button {
  min-height: 30px;
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #6d1117;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-logout-form button:hover {
  border-color: rgba(236, 11, 19, 0.35);
  color: #ec0b13;
}

.admin-workspace {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px 28px;
}

.admin-main.is-view-transitioning .admin-workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: rgba(244, 247, 250, 0.34);
  animation: adminViewDim 260ms ease-out both;
}

.admin-main.is-view-transitioning .admin-card.is-admin-view-active {
  position: relative;
  z-index: 9;
  animation: adminViewEnter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes adminViewEnter {
  from {
    opacity: 0.48;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes adminViewDim {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-main.is-view-transitioning .admin-workspace::before,
  .admin-main.is-view-transitioning .admin-card.is-admin-view-active,
  .admin-tab-panel.is-active {
    animation: none;
  }
}

.admin-card {
  min-width: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 28, 40, 0.04);
}

.has-js .admin-card[data-admin-view]:not(.is-admin-view-active) {
  display: none;
}

.admin-products-card {
  grid-column: span 6;
}

.admin-rules-card {
  grid-column: span 6;
}

.admin-products-card[data-admin-view="products"],
.admin-product-editor-card[data-admin-view="products"] {
  grid-column: span 12;
}

.admin-config-card {
  grid-column: span 12;
}

.admin-dashboard-card,
.admin-stripe-card {
  grid-column: span 4;
}

.admin-dashboard-card[data-admin-view="dashboard"],
.admin-orders-card[data-admin-view="orders"] {
  grid-column: span 12;
}

.admin-orders-card {
  grid-column: span 8;
}

.admin-ranking-card {
  grid-column: span 3;
}

.admin-webhooks-card {
  grid-column: span 3;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f4;
}

.admin-card-head h2,
.admin-ranking-card h2 {
  margin: 0;
  color: #07111d;
  font-size: 16px;
  font-weight: 900;
}

.admin-card-head h2 small {
  color: #07111d;
  font-size: 12px;
  font-weight: 800;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-note {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f4;
}

.admin-red-button,
.admin-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-red-button {
  background: var(--admin-red);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(236, 11, 19, 0.18);
}

.admin-red-button:hover {
  background: var(--admin-red-dark);
}

.admin-light-button {
  border: 1px solid #dfe6ed;
  background: #ffffff;
  color: #111923;
}

.admin-red-button.has-unsaved-changes,
.admin-light-button.has-unsaved-changes {
  position: relative;
}

.admin-red-button.has-unsaved-changes::after,
.admin-light-button.has-unsaved-changes::after {
  content: "Niezapisane";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 8px;
  background: #fff2d8;
  color: #a05b00;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.admin-red-button.has-unsaved-changes::after {
  background: rgba(255, 255, 255, 0.92);
  color: #b40d18;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf1f4;
}

.admin-toolbar select,
.admin-card-head select,
.admin-form-grid input,
.admin-form-grid select,
.admin-rule-row input,
.admin-multiplier-grid input,
.admin-rounding select,
.admin-subtable input,
.admin-advanced-grid input,
.admin-advanced-grid select,
.admin-settings-grid input,
.admin-settings-grid select {
  min-height: 36px;
  border: 1px solid #d8e0e7;
  border-radius: 5px;
  background: #ffffff;
  color: #111923;
  font: inherit;
  font-weight: 750;
}

.admin-toolbar select,
.admin-card-head select,
.admin-rounding select,
.admin-advanced-grid select,
.admin-settings-grid select {
  padding: 0 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-products-table,
.admin-subtable table,
.admin-orders table {
  width: 100%;
  border-collapse: collapse;
}

.admin-products-table th,
.admin-products-table td,
.admin-subtable th,
.admin-subtable td,
.admin-orders th,
.admin-orders td {
  border-bottom: 1px solid #edf1f4;
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-products-table th,
.admin-subtable th,
.admin-orders th {
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-products-table tbody tr {
  cursor: pointer;
}

.admin-products-table tbody tr:hover,
.admin-products-table tbody tr.is-selected {
  background: #fbfdff;
}

.admin-products-table tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-red);
}

.admin-products-table td strong {
  display: block;
  max-width: 420px;
  font-size: 13px;
  font-weight: 900;
}

.admin-products-table td small {
  display: block;
  margin-top: 3px;
  color: #6d7783;
  font-size: 11px;
  font-weight: 800;
}

.admin-products-table code {
  color: #0f1720;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
}

.admin-products-table td button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #25303b;
  cursor: pointer;
}

.admin-products-table td button:last-child {
  color: var(--admin-red);
}

.admin-products-table td button:hover {
  background: #f2f5f8;
}

.admin-products-table td button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-table-action {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #25303b;
  cursor: pointer;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-table-action:hover {
  background: #f2f5f8;
}

.admin-table-action.is-save {
  color: var(--admin-red);
}

.admin-table-action.is-save:hover {
  background: #fff3f4;
}

.admin-table-action.is-save.has-unsaved-changes {
  background: #fff3f4;
  box-shadow: inset 0 0 0 1px rgba(227, 6, 19, 0.2);
}

.admin-table-action.is-saving,
.admin-red-button.is-saving,
.admin-light-button.is-saving {
  cursor: wait;
  opacity: 0.72;
}

.admin-table-action.is-danger {
  color: var(--admin-red);
}

.admin-table-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-subtable tr.is-dirty td {
  background: #fff8f1;
}

.admin-card.is-dirty {
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.08), var(--admin-shadow);
}

.admin-card-foot {
  padding: 12px 18px;
  color: #6d7783;
  font-size: 12px;
  font-weight: 800;
}

.admin-products-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-pagination button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  background: #ffffff;
  color: #17212b;
  cursor: pointer;
}

.admin-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-pagination button:not(:disabled):hover {
  border-color: rgba(236, 11, 19, 0.32);
  color: var(--admin-red);
}

.admin-pagination svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-pagination span {
  min-width: 92px;
  color: #17212b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.admin-mini-window {
  display: block;
  width: 78px;
  height: 52px;
}

.admin-mini-frame {
  fill: #eef4f7;
  stroke: #44515a;
  stroke-width: 2;
}

.admin-mini-sash {
  fill: #f9fbfb;
  stroke: #73828b;
  stroke-width: 1.6;
}

.admin-mini-bevel {
  fill: none;
  stroke: #b4c0c7;
  stroke-width: 1;
}

.admin-mini-glass {
  fill: #d8f1f6;
  stroke: #8aa2ad;
  stroke-width: 1;
}

.admin-mini-dash {
  fill: none;
  stroke: #53636c;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f4;
}

.admin-tabs button {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #34404b;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs button.is-active {
  color: var(--admin-red);
}

.admin-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--admin-red);
}

.admin-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  padding: 22px 18px 18px;
}

.admin-tab-panel {
  display: none;
  min-height: 292px;
}

.admin-tab-panel.is-active {
  display: block;
  animation: adminTabEnter 180ms ease-out both;
}

@keyframes adminTabEnter {
  from {
    opacity: 0.55;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-form-grid,
.admin-rule-row,
.admin-multiplier-grid,
.admin-advanced-grid {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) 110px;
}

.admin-rule-row {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf1f4;
}

.admin-price-rule-row {
  grid-template-columns: minmax(150px, 1.25fr) repeat(3, minmax(120px, 1fr));
}

.admin-multiplier-grid {
  grid-template-columns: repeat(4, 1fr);
}

.admin-advanced-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.admin-payment-settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-payment-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.admin-payment-section {
  overflow: hidden;
  border: 1px solid #edf1f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.03);
}

.admin-payment-section h3 {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1f4;
  color: #101923;
  font-size: 13px;
  font-weight: 900;
}

.admin-payment-section .admin-settings-list div {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 8px 14px;
  min-height: 54px;
  padding: 11px 16px;
}

.admin-payment-section .admin-settings-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payment-section .admin-settings-list strong.is-green {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.admin-payment-section .admin-settings-list small {
  grid-column: 2;
  margin-top: -4px;
}

.admin-tab-panel h3 {
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.admin-form-grid label,
.admin-rule-row label,
.admin-multiplier-grid label,
.admin-rounding,
.admin-advanced-grid label,
.admin-settings-grid label {
  display: grid;
  gap: 7px;
  color: #6d7783;
  font-size: 11px;
  font-weight: 850;
}

.admin-featured-field span {
  color: #17212b;
}

.admin-featured-field input {
  border-color: rgba(238, 0, 17, 0.36);
  background: #fffafa;
}

.admin-form-grid input,
.admin-rule-row input,
.admin-multiplier-grid input,
.admin-advanced-grid input,
.admin-settings-grid input {
  width: 100%;
  padding: 0 10px;
}

.admin-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-input-unit input {
  border-radius: 5px 0 0 5px;
}

.admin-input-unit b {
  display: grid;
  place-items: center;
  min-width: 36px;
  border: 1px solid #d8e0e7;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: #fbfcfd;
  color: #17212b;
  font-size: 11px;
  font-weight: 900;
}

.admin-toggle-label {
  align-content: end;
  justify-items: start;
}

.admin-toggle-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-toggle-label i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d7dee5;
  cursor: pointer;
}

.admin-toggle-label i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
}

.admin-toggle-label input:checked + i {
  background: var(--admin-red);
}

.admin-toggle-label input:checked + i::after {
  transform: translateX(16px);
}

.admin-rounding {
  max-width: 300px;
  margin-top: 18px;
}

.admin-price-preview {
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 7px;
  border: 1px dashed #c7d0d8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.admin-price-preview > span,
.admin-price-preview p {
  margin: 0;
  color: #596573;
  font-size: 12px;
  font-weight: 900;
}

.admin-price-preview small,
.admin-price-preview em {
  color: #6d7783;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.admin-price-preview .admin-mini-window {
  width: 130px;
  height: 88px;
  margin: 8px auto 10px;
}

.admin-price-preview strong {
  color: var(--admin-red);
  font-size: 24px;
  font-weight: 900;
}

.admin-subtable {
  max-height: 292px;
  overflow: auto;
}

.admin-subtable-large {
  max-height: none;
  overflow-x: auto;
}

.admin-subtable-compact {
  max-height: 220px;
  margin-bottom: 18px;
  border: 1px solid #edf1f4;
  border-radius: 6px;
}

.admin-product-editor-card .admin-subtable-compact {
  max-height: 250px;
}

.admin-product-editor-card .admin-subtable th:first-child,
.admin-product-editor-card .admin-subtable td:first-child,
.admin-product-editor-card .admin-subtable th:nth-child(2),
.admin-product-editor-card .admin-subtable td:nth-child(2) {
  text-align: center;
  width: 72px;
}

.admin-subtable input[type="number"] {
  width: 86px;
  min-height: 32px;
  padding: 0 8px;
}

.admin-subtable input[type="text"] {
  width: 100%;
  min-width: 132px;
  min-height: 32px;
  padding: 0 8px;
}

.admin-subtable input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-red);
}

.admin-subtable input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-red);
}

.admin-subtable td strong {
  color: #111923;
  font-size: 12px;
  font-weight: 900;
}

.admin-relation-checkbox {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.admin-relation-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-relation-checkbox span {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #bfc9d2;
  border-radius: 5px;
  background: #ffffff;
}

.admin-relation-checkbox input:checked + span {
  border-color: var(--admin-red);
  background:
    linear-gradient(135deg, transparent 46%, #ffffff 47% 56%, transparent 57%),
    var(--admin-red);
}

.admin-color-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: -2px;
}

.admin-systems-table th:first-child,
.admin-systems-table td:first-child,
.admin-colors-table th:first-child,
.admin-colors-table td:first-child,
.admin-glass-table th:first-child,
.admin-glass-table td:first-child,
.admin-accessories-table th:first-child,
.admin-accessories-table td:first-child {
  width: 86px;
  min-width: 86px;
  white-space: nowrap;
}

.admin-colors-table th:nth-child(2),
.admin-colors-table td:nth-child(2) {
  min-width: 360px;
}

.admin-color-cell {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-color-cell input[type="text"] {
  width: 100%;
  max-width: 320px;
}

.admin-color-cell small {
  display: block;
  margin-top: 4px;
  color: #6d7783;
  font-size: 11px;
  font-weight: 800;
}

.admin-color-preview-dot {
  width: 34px;
  height: 34px;
  margin-right: 0;
  border: 1px solid #d8e0e7;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.admin-glass-table th:nth-child(2),
.admin-glass-table td:nth-child(2) {
  width: 92px;
}

.admin-glass-table th:nth-child(3),
.admin-glass-table td:nth-child(3) {
  min-width: 210px;
}

.admin-glass-table th:nth-child(4),
.admin-glass-table td:nth-child(4) {
  min-width: 260px;
}

.admin-glass-preview {
  display: block;
  width: 66px;
  height: 50px;
  border: 1px solid #d8e0e7;
  border-radius: 7px;
  background: #eef7fa;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.admin-rate-unit {
  display: inline-grid;
  grid-template-columns: minmax(78px, 1fr) auto;
  width: 154px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d8e0e7;
  border-radius: 5px;
  background: #ffffff;
  vertical-align: middle;
}

.admin-rate-unit input,
.admin-subtable .admin-rate-unit input[type="number"] {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.admin-rate-unit input:focus {
  outline: none;
}

.admin-rate-unit b {
  min-width: 54px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid #d8e0e7;
  border-radius: 0;
  background: #fbfcfd;
}

.admin-rate-unit:focus-within {
  border-color: #bfc9d2;
  box-shadow: 0 0 0 3px rgba(191, 201, 210, 0.22);
}

.admin-progress {
  display: inline-block;
  width: 90px;
  height: 5px;
  margin-right: 10px;
  border-radius: 99px;
  background: #e3e7eb;
  vertical-align: 2px;
}

.admin-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-red);
}

.admin-module-summary {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border-top: 1px solid #edf1f4;
  background: #fbfdff;
}

.admin-module-summary h3 {
  margin: 0;
  color: #07111d;
  font-size: 13px;
  font-weight: 900;
}

.admin-dashboard {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  display: grid;
  gap: 6px;
  min-height: 106px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  padding: 15px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.035);
}

.admin-stats span {
  color: #657180;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  align-self: end;
  color: #07111d;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 950;
  line-height: 1.05;
}

.admin-stats em {
  color: #6d7783;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-stats .is-up {
  color: #0d9e5e;
}

.admin-stats .is-down {
  color: var(--admin-red);
}

.admin-stats .is-warning {
  color: #c87600;
}

.admin-stats .is-neutral {
  color: #6d7783;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.admin-dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
}

.admin-dashboard-chart-panel {
  min-height: 306px;
}

.admin-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f4;
}

.admin-dashboard-panel-head h3 {
  margin: 0 0 4px;
  color: #07111d;
  font-size: 15px;
  font-weight: 950;
}

.admin-dashboard-panel-head span {
  color: #6d7783;
  font-size: 12px;
  font-weight: 800;
}

.admin-dashboard-panel-head button {
  min-height: 30px;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #111923;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-dashboard-panel-head button:hover {
  border-color: rgba(236, 11, 19, 0.35);
  color: var(--admin-red);
}

.admin-dashboard-chart {
  min-height: 230px;
  padding: 18px 18px 14px;
}

.admin-dashboard-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 10px;
  height: 218px;
  align-items: end;
}

.admin-dashboard-bar {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.admin-dashboard-bar span {
  align-self: end;
  display: block;
  width: 100%;
  min-height: 7px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #f01822 0%, #cf0b15 100%);
  box-shadow: 0 8px 14px rgba(236, 11, 19, 0.16);
}

.admin-dashboard-bar small,
.admin-dashboard-bar b {
  color: #7a8491;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.admin-dashboard-bar b {
  color: #111923;
  min-height: 11px;
}

.admin-dashboard-recent {
  display: grid;
}

.admin-dashboard-recent button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  padding: 13px 16px;
  background: #ffffff;
  color: #111923;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-dashboard-recent button:last-child {
  border-bottom: 0;
}

.admin-dashboard-recent button:hover {
  background: #fbfdff;
}

.admin-dashboard-recent span,
.admin-dashboard-recent small {
  min-width: 0;
}

.admin-dashboard-recent strong,
.admin-dashboard-recent small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-recent strong {
  font-size: 13px;
  font-weight: 950;
}

.admin-dashboard-recent small {
  grid-column: 1 / -1;
  color: #6d7783;
  font-size: 11px;
  font-weight: 800;
}

.admin-dashboard-recent b {
  justify-self: end;
  color: #07111d;
  font-size: 14px;
  font-weight: 950;
}

.admin-dashboard-breakdown,
.admin-dashboard-payments {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
}

.admin-dashboard-status-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-dashboard-status-row div {
  display: grid;
  gap: 2px;
}

.admin-dashboard-status-row span,
.admin-dashboard-payment-row span {
  color: #6d7783;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-dashboard-status-row strong,
.admin-dashboard-payment-row strong {
  color: #111923;
  font-size: 13px;
  font-weight: 950;
}

.admin-dashboard-status-row i {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #edf1f4;
}

.admin-dashboard-status-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8a96a3;
}

.admin-dashboard-status-row.is-pending i b {
  background: #e5a019;
}

.admin-dashboard-status-row.is-paid i b {
  background: #0d9e5e;
}

.admin-dashboard-status-row.is-cancelled i b {
  background: var(--admin-red);
}

.admin-dashboard-status-row em {
  color: #111923;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.admin-dashboard-payment-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-dashboard-payment-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-payment-note {
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 850;
}

.admin-dashboard-payment-note.is-warning {
  background: #fff6e6;
  color: #9b5c00;
}

.admin-dashboard-payment-note.is-ok {
  background: #eaf8f1;
  color: #0b7f4e;
}

.admin-dashboard-empty {
  display: grid;
  place-content: center;
  min-height: 150px;
  gap: 6px;
  color: #6d7783;
  text-align: center;
}

.admin-dashboard-empty strong {
  color: #111923;
  font-size: 14px;
  font-weight: 950;
}

.admin-dashboard-empty span {
  font-size: 12px;
  font-weight: 800;
}

.admin-orders {
  overflow: visible;
}

.admin-order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f4;
  background: #fbfcfd;
}

.admin-order-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d8e0e7;
  border-radius: 7px;
  padding: 0 12px;
  background: #ffffff;
  color: #6d7783;
}

.admin-order-search:focus-within {
  border-color: rgba(236, 11, 19, 0.36);
  box-shadow: 0 0 0 3px rgba(236, 11, 19, 0.08);
}

.admin-order-search svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-order-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111923;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.admin-order-search button {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6d7783;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-order-search button:not([hidden]):hover {
  background: #eef2f5;
  color: var(--admin-red);
}

.admin-order-search button[hidden] {
  display: none;
}

.admin-order-count {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: #6d7783;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-order-count strong {
  color: #07111d;
  font-size: 13px;
  font-weight: 950;
}

.admin-orders-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  min-height: 560px;
}

.admin-order-list-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid #edf1f4;
  background: #fbfcfd;
}

.admin-order-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-order-list-head strong {
  color: #34404b;
  font-size: 11px;
}

.admin-order-list {
  display: grid;
  align-content: start;
  gap: 7px;
  max-height: calc(100vh - 258px);
  overflow: auto;
  padding: 12px 14px;
}

.admin-order-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
  color: #111923;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.admin-order-list-item:hover {
  border-color: rgba(236, 11, 19, 0.32);
  box-shadow: 0 10px 22px rgba(15, 23, 32, 0.07);
  transform: translateY(-1px);
}

.admin-order-list-item.is-active {
  border-color: var(--admin-red);
  background: #fffafa;
  box-shadow: inset 4px 0 0 var(--admin-red), 0 10px 22px rgba(15, 23, 32, 0.07);
}

.admin-order-list-top,
.admin-order-list-meta,
.admin-order-line-top,
.admin-order-line-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-order-list-top b {
  min-width: 0;
  overflow: hidden;
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-list-top strong {
  min-width: 0;
  overflow: hidden;
  color: #07111d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-id {
  overflow: hidden;
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-list-item > small {
  color: #6d7783;
  font-size: 11px;
  font-weight: 750;
}

.admin-order-list-meta {
  color: #34404b;
  font-size: 12px;
  font-weight: 850;
}

.admin-order-list-meta strong {
  color: #07111d;
  font-weight: 950;
}

.admin-order-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border-top: 1px solid #edf1f4;
  background: #ffffff;
}

.admin-order-pagination button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d8e0e7;
  border-radius: 7px;
  background: #ffffff;
  color: #17212b;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.admin-order-pagination button:not(:disabled):hover {
  border-color: rgba(236, 11, 19, 0.38);
  color: var(--admin-red);
}

.admin-order-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-order-pagination span {
  color: #34404b;
  font-size: 12px;
  font-weight: 900;
}

.admin-order-detail {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.admin-order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f4;
}

.admin-order-detail-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-order-detail-head span,
.admin-order-section h3,
.admin-order-money-grid span,
.admin-order-line-top span {
  color: #6d7783;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-order-detail-head strong {
  color: #07111d;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  word-break: break-word;
}

.admin-order-detail-head small {
  color: #34404b;
  font-size: 12px;
  font-weight: 800;
}

.admin-order-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-order-money-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.admin-order-money-grid strong {
  color: #07111d;
  font-size: 20px;
  font-weight: 950;
}

.admin-order-section {
  display: grid;
  gap: 10px;
}

.admin-order-section h3 {
  margin: 0;
  color: #07111d;
}

.admin-order-customer,
.admin-order-line-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-order-customer span,
.admin-order-line-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #edf1f4;
  border-radius: 7px;
  padding: 9px 10px;
  color: #17212b;
  font-size: 12px;
  font-weight: 800;
}

.admin-order-customer b,
.admin-order-line-meta b {
  color: #6d7783;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-order-message {
  margin: 0;
  border-left: 3px solid var(--admin-red);
  background: #fffafa;
  padding: 10px 12px;
  color: #34404b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.admin-order-items {
  display: grid;
  gap: 10px;
}

.admin-order-line {
  display: grid;
  gap: 12px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.admin-order-line-top strong {
  display: block;
  color: #07111d;
  font-size: 16px;
  font-weight: 950;
}

.admin-order-line-top b {
  display: block;
  color: #6d7783;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.admin-order-line-top > div:last-child strong {
  font-size: 18px;
  text-align: right;
}

.admin-order-line-prices {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #34404b;
  font-size: 12px;
  font-weight: 800;
}

.admin-order-line-prices span {
  border-radius: 999px;
  background: #f4f7fa;
  padding: 6px 10px;
}

.admin-empty-state {
  display: grid;
  gap: 8px;
  min-height: 154px;
  align-content: center;
  padding: 28px;
  color: #6d7783;
}

.admin-empty-state-compact {
  min-height: 120px;
  border: 1px dashed #d8e0e7;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.admin-empty-state strong {
  color: #07111d;
  font-size: 16px;
  font-weight: 900;
}

.admin-empty-state span {
  max-width: 540px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.admin-status,
.admin-settings-list strong.is-green {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.admin-status.is-paid,
.admin-settings-list strong.is-green {
  background: #dff8e8;
  color: #14874d;
}

.admin-status.is-pending {
  background: #fff0db;
  color: #c56a00;
}

.admin-status.is-cancelled {
  background: #eef2f5;
  color: #5f6b76;
}

@media (max-width: 1180px) {
  .admin-orders-workspace {
    grid-template-columns: 1fr;
  }

  .admin-order-list-shell {
    border-right: 0;
    border-bottom: 1px solid #edf1f4;
  }

  .admin-order-list {
    max-height: none;
  }

  .admin-order-money-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-order-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-order-count {
    justify-items: start;
  }

  .admin-order-detail {
    padding: 14px;
  }

  .admin-order-detail-head,
  .admin-order-line-top,
  .admin-order-line-prices {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-order-money-grid,
  .admin-order-customer,
  .admin-order-line-meta {
    grid-template-columns: 1fr;
  }

  .admin-order-line-top b,
  .admin-order-line-top > div:last-child strong {
    text-align: left;
  }
}

.admin-settings-list {
  display: grid;
}

.admin-settings-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid #edf1f4;
  padding: 0 18px;
}

.admin-settings-list div:last-child {
  border-bottom: 0;
}

.admin-settings-list span {
  color: #1a2430;
  font-size: 12px;
  font-weight: 850;
}

.admin-settings-list strong {
  color: #1a2430;
  font-size: 12px;
  font-weight: 850;
}

.admin-settings-list small {
  display: block;
  margin-top: 3px;
  color: #6d7783;
  font-weight: 700;
}

.admin-ranking-card {
  padding: 18px;
}

.admin-ranking-card h2 {
  margin-bottom: 18px;
}

.admin-ranking,
.admin-color-ranking {
  display: grid;
  gap: 14px;
}

.admin-ranking div,
.admin-color-ranking div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 42px;
  align-items: center;
  gap: 10px;
}

.admin-ranking span,
.admin-color-ranking span {
  color: #17212b;
  font-size: 12px;
  font-weight: 800;
}

.admin-ranking i {
  height: 5px;
  border-radius: 99px;
  background: #e3e7eb;
}

.admin-ranking i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--admin-red);
}

.admin-ranking strong,
.admin-color-ranking strong {
  color: #17212b;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.admin-color-ranking div {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.admin-color-ranking span i {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: -2px;
}

@media (max-width: 1380px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-products-card,
  .admin-rules-card {
    grid-column: span 12;
  }

  .admin-products-card[data-admin-view="products"],
  .admin-product-editor-card[data-admin-view="products"] {
    grid-column: span 12;
  }

  .admin-dashboard-card,
  .admin-orders-card,
  .admin-stripe-card,
  .admin-config-card,
  .admin-ranking-card,
  .admin-webhooks-card {
    grid-column: span 6;
  }

  .admin-config-card {
    grid-column: span 12;
  }

  .admin-payment-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-body {
    overflow: auto;
  }

  .admin-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-sidebar {
    position: sticky;
    height: 100vh;
  }

  .admin-shell .admin-brand,
  .admin-menu a,
  .admin-collapse {
    justify-content: center;
    padding-inline: 0;
  }

  .admin-shell .admin-brand-word,
  .admin-shell .admin-brand-mode,
  .admin-menu-section,
  .admin-nav-label,
  .admin-menu a b,
  .admin-collapse .admin-nav-label {
    display: none;
  }

  .admin-shell .admin-brand-mark {
    display: grid;
  }

  .admin-menu {
    padding-inline: 10px;
  }

  .admin-main {
    height: 100vh;
  }

  .admin-topbar {
    grid-template-columns: 38px 1fr;
  }

  .admin-notification-wrap,
  .admin-user {
    display: none;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-card,
  .admin-products-card,
  .admin-rules-card,
  .admin-dashboard-card,
  .admin-orders-card,
  .admin-stripe-card,
  .admin-config-card,
  .admin-ranking-card,
  .admin-webhooks-card {
    grid-column: auto;
  }

  .admin-editor,
  .admin-form-grid,
  .admin-rule-row,
  .admin-price-rule-row,
  .admin-multiplier-grid,
  .admin-advanced-grid,
  .admin-settings-grid,
  .admin-payment-sections,
  .admin-dashboard-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-dashboard {
    padding: 14px;
  }

  .admin-dashboard-bars {
    gap: 7px;
    grid-template-columns: repeat(auto-fit, minmax(14px, 1fr));
  }

  .admin-dashboard-status-row,
  .admin-dashboard-payment-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-status-row em {
    text-align: left;
  }
}

.calculator-page-main .system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calculator-page-main .system-tile {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo name uw"
    "logo meta meta";
  align-items: center;
  gap: 8px 14px;
  min-height: 126px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 22, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  box-shadow: 0 14px 32px rgba(17, 18, 19, 0.045);
  text-align: left;
}

.calculator-page-main .system-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.calculator-page-main .system-tile:hover {
  border-color: rgba(227, 6, 19, 0.32);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(17, 18, 19, 0.08);
  transform: translateY(-2px);
}

.calculator-page-main .system-tile.is-active {
  border-color: var(--color-red);
  background: #fffafa;
  box-shadow: 0 18px 42px rgba(227, 6, 19, 0.12);
  transform: translateY(-2px);
}

.calculator-page-main .system-tile:hover::before,
.calculator-page-main .system-tile.is-active::before {
  transform: scaleX(1);
}

.calculator-page-main .system-logo {
  grid-area: logo;
  box-sizing: border-box;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 68px;
  height: 50px;
  padding: 6px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
}

.calculator-page-main .system-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.calculator-page-main .system-logo.is-placeholder {
  color: #17191f;
  font-size: 17px;
  font-weight: 900;
}

.calculator-page-main .system-tile strong {
  grid-area: name;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(18px, 1.18vw, 21px);
  font-weight: 900;
  line-height: 1.14;
}

.calculator-page-main .system-uw {
  grid-area: uw;
  justify-self: end;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e5e8eb;
  background: #ffffff;
  color: #41464d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.calculator-page-main .system-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.calculator-page-main .system-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #e8ebee;
  background: #f5f6f7;
  color: #646b74;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.calculator-page-main .system-meta em:last-child:nth-child(3) {
  border-color: rgba(227, 6, 19, 0.16);
  background: rgba(227, 6, 19, 0.08);
  color: var(--color-red);
}

.admin-system-image-cell,
.admin-accessory-image-cell {
  min-width: 285px;
}

.admin-image-upload {
  display: grid;
  grid-template-columns: 74px minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-image-upload-controls {
  display: grid;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-image-upload-button {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding-inline: 10px;
  white-space: nowrap;
}

.admin-image-upload-controls small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #6d7783;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-preview {
  display: block;
  width: 64px;
  height: 42px;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  padding: 5px;
}

.calculator-page-main .accessory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #eceff2;
}

.calculator-page-main .accessory-tile {
  display: grid;
  grid-template-columns: 34px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 18px 8px;
  border: 0;
  border-bottom: 1px solid #eceff2;
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.calculator-page-main .accessory-tile:hover,
.calculator-page-main .accessory-tile.is-active {
  border-color: #eceff2;
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.calculator-page-main .accessory-tile.is-active {
  background: #fffafa;
}

.calculator-page-main .accessory-check {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #4f4f4f;
  border-radius: 2px;
  background: #ffffff;
}

.calculator-page-main .accessory-tile.is-active .accessory-check {
  border-color: var(--color-red);
  background: var(--color-red);
  box-shadow: inset 0 0 0 5px #ffffff;
}

.calculator-page-main .accessory-image {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 84px;
  height: 78px;
  margin: 0;
}

.calculator-page-main .accessory-image img {
  display: block;
  max-width: 84px;
  max-height: 78px;
  object-fit: contain;
}

.calculator-page-main .accessory-image.is-placeholder {
  border: 1px solid #e2e4e7;
  color: #4e545b;
  font-size: 18px;
  font-weight: 900;
}

.calculator-page-main .accessory-copy {
  display: block;
  min-width: 0;
  margin: 0;
}

.calculator-page-main .accessory-tile .accessory-copy strong {
  color: #404040;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.calculator-page-main .accessory-tile .accessory-copy small {
  max-width: 620px;
  margin-top: 8px;
  color: #777777;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.calculator-page-main .accessory-price {
  display: block;
  min-width: 92px;
  margin: 0;
  color: #424242;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.admin-accessory-preview {
  display: block;
  width: 64px;
  height: 46px;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  padding: 5px;
}

@media (max-width: 860px) {
  .calculator-page-main .system-grid {
    grid-template-columns: 1fr;
  }

  .calculator-page-main .system-tile {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo name uw"
      "logo meta meta";
    min-height: 0;
    gap: 8px 12px;
    padding: 17px;
  }

  .calculator-page-main .system-logo,
  .calculator-page-main .system-logo img {
    width: 64px;
    height: 48px;
  }

  .calculator-page-main .system-tile strong {
    font-size: 20px;
  }

  .calculator-page-main .system-uw {
    font-size: 12px;
  }

  .calculator-page-main .system-meta em {
    min-height: 26px;
    font-size: 11px;
  }

  .calculator-page-main .accessory-tile {
    grid-template-columns: 30px 72px minmax(0, 1fr);
    grid-template-areas:
      "check image copy"
      "check image price";
    gap: 10px 14px;
    min-height: 104px;
    padding: 14px 4px;
  }

  .calculator-page-main .accessory-check {
    grid-area: check;
  }

  .calculator-page-main .accessory-image {
    grid-area: image;
    width: 68px;
    height: 62px;
  }

  .calculator-page-main .accessory-image img {
    max-width: 68px;
    max-height: 62px;
  }

  .calculator-page-main .accessory-copy {
    grid-area: copy;
  }

  .calculator-page-main .accessory-price {
    grid-area: price;
    min-width: 0;
    text-align: left;
  }

  .calculator-page-main .accessory-tile .accessory-copy strong,
  .calculator-page-main .accessory-price {
    font-size: 17px;
  }

  .calculator-page-main .accessory-tile .accessory-copy small {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .calculator-page-main .system-tile {
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-areas:
      "logo uw"
      "name name"
      "meta meta";
  }

  .calculator-page-main .system-uw {
    max-width: 100%;
    white-space: normal;
  }
}
