.autonomy-page {
  --milk: #f5f7f8;
  --green: #8fae35;
  --ink: #0b0d0f;
  --graphite: #1a1d21;
  --muted: #626d77;
  --line: rgba(43, 49, 55, 0.12);
  --radius: 8px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body, "e-Ukraine Head", Arial, sans-serif);
  line-height: 1.62;
}

.autonomy-root,
.autonomy-page {
  overflow-x: visible !important;
}

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

.autonomy-page {
  background:
    radial-gradient(circle at 82% 10%, rgba(143, 174, 53, 0.13), transparent 28rem),
    linear-gradient(180deg, #f5f7f8 0%, #f5f7f8 100%);
}

.autonomy-main {
  padding: 82px 0 64px !important;
  overflow: visible !important;
}

.autonomy-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.autonomy-hero {
  display: block;
  padding: 14px 0 18px !important;
}

.autonomy-hero .autonomy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(26, 29, 33, 0.72);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0;
}

.autonomy-hero .autonomy-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green, #8fae35);
  box-shadow: none;
}

.autonomy-hero h1 {
  max-width: 590px;
  margin: 0;
  color: var(--elx-ink, #0b0d0f);
  font-size: clamp(40px, 3.55vw, 54px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.autonomy-hero p:not(.autonomy-kicker) {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(26, 29, 33, 0.68);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
  font-weight: 560;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: start;
  padding: 0 !important;
  margin-top: 2px;
}

.calc-panel,
.result-panel,
.calc-card {
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.calc-panel,
.result-panel {
  padding: 20px;
}

.result-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.calc-section + .calc-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line, rgba(43, 49, 55, 0.12));
}

body.autonomy-page .calc-panel > .calc-section {
  padding: 0 !important;
}

body.autonomy-page .calc-panel > .calc-section + .calc-section {
  margin-top: 20px !important;
  padding-top: 18px !important;
}

body.autonomy-page .calc-panel > .calc-section:first-child {
  min-height: 0 !important;
}

.calc-section h2,
.result-panel h2 {
  margin: 0 0 14px;
  color: var(--ink, #0b0d0f);
  font-size: clamp(22px, 2vw, 26px) !important;
  line-height: 1.15 !important;
}

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

.scenario-button {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: #f5f7f8;
  color: var(--ink, #0b0d0f);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.scenario-button strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.12;
}

.scenario-button span {
  color: #666e75;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.scenario-button.is-active {
  border-color: rgba(143, 174, 53, 0.9);
  background: rgba(143, 174, 53, 0.08);
}

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

.calc-field {
  display: grid;
  gap: 7px;
  color: #4f565d;
  font-size: 14px;
  font-weight: 700;
}

.calc-field.full {
  grid-column: 1 / -1;
}

.calc-quantity-block.full {
  grid-column: 1 / -1;
}

.calc-quantity-block {
  display: grid;
  gap: 8px;
}

.calc-field-title {
  color: #4f565d;
  font-size: 14px;
  font-weight: 700;
}

.quantity-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quantity-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: #f5f7f8;
  color: var(--ink, #0b0d0f);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.quantity-button.is-active {
  border-color: rgba(143, 174, 53, 0.9);
  background: rgba(143, 174, 53, 0.08);
}

.calc-quantity-block small {
  color: #7b858d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.calc-field input,
.calc-field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: #f5f7f8;
  color: var(--ink, #0b0d0f);
  padding: 0 16px;
  font-size: 17px;
  font-weight: 700;
}

.calc-hint {
  margin: 10px 0 0;
  color: #68727a;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.calc-parameters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.calc-parameters div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 49, 55, 0.1);
  border-radius: 8px;
  background: rgba(245, 247, 248, 0.75);
}

.calc-parameters span {
  color: #7b858d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
}

.calc-parameters strong {
  color: var(--ink, #0b0d0f);
  font-size: 18px;
  line-height: 1.15;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: 2px solid rgba(143, 174, 53, 0.35);
  outline-offset: 2px;
}

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.appliance-chip {
  position: relative;
  display: block;
}

.appliance-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.appliance-chip span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: #f5f7f8;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.appliance-chip strong {
  color: var(--ink, #0b0d0f);
  font-size: 14px;
  line-height: 1.15;
}

.appliance-chip small {
  color: #808a93;
  font-size: 12px;
  font-weight: 700;
}

.appliance-chip input:checked + span {
  border-color: rgba(143, 174, 53, 0.9);
  background: rgba(143, 174, 53, 0.08);
}

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

.result-value {
  display: grid;
  gap: 0;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line, rgba(43, 49, 55, 0.12));
}

.result-value span {
  color: var(--green, #8fae35);
  font-size: clamp(46px, 5.2vw, 70px) !important;
  line-height: 0.94 !important;
  font-weight: 700;
  letter-spacing: 0;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43, 49, 55, 0.08);
  color: #6a727a;
  font-size: 15px;
  font-weight: 700;
}

.result-list strong {
  color: var(--ink, #0b0d0f);
  text-align: right;
}

.result-warning {
  margin: 0 0 18px;
  color: #5f686f;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.calc-actions {
  display: grid;
  gap: 10px;
}

.calc-actions .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
}

.calc-actions .btn-primary {
  border: 1px solid var(--graphite, #1a1d21) !important;
  background: var(--graphite, #1a1d21) !important;
  color: #f5f7f8 !important;
  box-shadow: 0 18px 36px rgba(11, 13, 15, 0.12);
}

.calc-actions .btn-primary:hover {
  background: #0b0d0f !important;
  border-color: #0b0d0f !important;
}

.calc-actions .btn-secondary {
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12)) !important;
  background: rgba(245, 247, 248, 0.75) !important;
  color: var(--ink, #0b0d0f) !important;
  box-shadow: none !important;
}

.calc-actions .btn-secondary:hover {
  border-color: rgba(43, 49, 55, 0.28) !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

.product-match {
  margin-top: 24px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(143, 174, 53, 0.08);
  border: 1px solid rgba(143, 174, 53, 0.22);
}

.product-match h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.product-match p {
  margin: 0;
  color: #606970;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.formula-band {
  margin-top: 28px;
  padding: 24px 28px !important;
  border: 1px solid var(--line, rgba(43, 49, 55, 0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.formula-band h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.formula-band p {
  margin: 0;
  color: #68727a;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

@media (min-width: 981px) {
  .autonomy-hero h1 {
    white-space: nowrap;
  }
}

body.autonomy-page .autonomy-container {
  width: min(1180px, calc(100% - 48px)) !important;
}

body.autonomy-page .autonomy-hero.autonomy-container {
  display: block !important;
  padding: 18px 0 22px !important;
}

body.autonomy-page .calculator-shell.autonomy-container {
  padding: 0 !important;
  margin-top: 6px !important;
}

body.autonomy-page .formula-band.autonomy-container {
  padding: 24px 28px !important;
}

body.autonomy-page .mobile-sticky-cta {
  display: none !important;
}

@media (max-width: 980px) {
  .autonomy-main {
    padding-top: 104px;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .autonomy-container {
    width: min(100% - 36px, 560px) !important;
  }

  .autonomy-main {
    padding-top: 96px;
  }

  .autonomy-hero {
    padding: 22px 0 28px !important;
  }

  .autonomy-hero h1 {
    max-width: 100% !important;
    font-size: clamp(30px, 7.7vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .autonomy-hero .autonomy-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.2;
  }

  .autonomy-hero p:not(.autonomy-kicker) {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.48;
  }

  .calc-panel,
  .result-panel,
  .formula-band {
    padding: 20px;
  }

  .calc-grid,
  .advanced-row {
    grid-template-columns: 1fr;
  }

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

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

  .scenario-button {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px;
  }

  .scenario-button strong {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.1;
  }

  .scenario-button span {
    display: none;
  }

  .appliance-chip span {
    min-height: 58px;
    padding: 10px;
  }

  .appliance-chip strong {
    font-size: 13px;
  }

  .appliance-chip small {
    font-size: 11px;
  }
}
