:root {
  --ink: #101511;
  --muted: #4e5a50;
  --green: #236b2d;
  --light: #eef8eb;
  --page: #f7f6ef;
  --line: #dfe7dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 22px; }
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f7f6ef;
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo { display: block; width: 145px; height: auto; }
.navlinks { display: flex; gap: 18px; align-items: center; font-weight: 850; font-size: 14px; }
.navlinks a, .navlinks summary { color: var(--ink); text-decoration: none; }
.phone { font-size: 14px; font-weight: 850; }

.battery-page { padding-block: 36px 64px; }
.battery-intro { max-width: 670px; margin-bottom: 24px; }
.breadcrumb { display: inline-block; margin-bottom: 15px; font-size: 14px; font-weight: 750; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(36px, 6.1vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
h2 { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.14; letter-spacing: -.025em; }
h3 { font-size: 22px; line-height: 1.18; letter-spacing: -.025em; }
.battery-comparison-page .battery-intro {
  margin-inline: auto;
  text-align: center;
}

.battery-comparison-page #battery-options-title,
.battery-comparison-page #battery-options-title ~ .battery-note {
  text-align: center;
}

.battery-intro p { color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); margin-top: 12px; }

.battery-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.battery-card, .battery-panel, .comparison-details, .product-image {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(16, 21, 17, .055);
}

.battery-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; text-align: center; }
.battery-card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 13px; }
.battery-card h3 span { white-space: nowrap; }
.battery-card p { margin-top: 8px; color: var(--muted); flex: 1; }

.appliance-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  font-size: 14px;
}

.appliance-icon {
  position: relative;
  flex: 0 0 13px;
  height: 10px;
  margin-block: 4px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 6px 6px;
}

.appliance-icon::before,
.appliance-icon::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.appliance-icon::before {
  top: -5px;
  left: 1px;
  box-shadow: 5px 0 currentColor;
}

.appliance-icon::after {
  bottom: -5px;
  left: 4px;
}

.battery-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; text-align: center; }
.battery-facts div { min-width: 0; border-radius: 11px; padding: 9px 10px; background: var(--light); }
.battery-facts dt { font-size: 13px; color: var(--muted); font-weight: 750; }
.battery-facts dd { margin: 1px 0 0; font-size: 19px; font-weight: 850; white-space: nowrap; }

.battery-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.battery-card .battery-actions { justify-content: center; }
.battery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  min-height: 44px;
  color: white;
  background: var(--green);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}
.battery-button:hover { background: #184f22; }
.battery-actions a:not(.battery-button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
.battery-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

.comparison-details { margin-top: 22px; padding: 15px; }
.comparison-details summary { cursor: pointer; font-weight: 850; padding: 6px 2px; }
.comparison-details table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 8px; font-size: 14px; }
.comparison-details th, .comparison-details td {
  text-align: left;
  vertical-align: top;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.comparison-details thead th { background: var(--light); }
.comparison-details .battery-note { margin-inline: 6px; }

.battery-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.battery-panel { padding: clamp(16px, 3vw, 26px); }
.battery-panel h2 { font-size: clamp(23px, 3vw, 29px); }
.battery-panel p { margin-top: 10px; color: var(--muted); }
.battery-panel ul { margin: 12px 0 0; padding-left: 20px; }
.battery-panel li + li { margin-top: 8px; }
.battery-contact { margin-top: 22px; padding: clamp(18px, 4vw, 28px); background: var(--light); border-radius: 20px; }
.battery-contact p { margin: 8px 0 12px; color: var(--muted); }

.product-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 26px; }
.product-hero .battery-intro { margin-bottom: 0; }
.product-hero .battery-actions { margin-top: 12px; }
.product-image { margin: 0; padding: 14px; }
.product-image img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; border-radius: 12px; }
.product-image figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.product-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; align-items: start; }
.battery-installations { margin-top: 34px; text-align: center; }
.battery-installations .battery-note { margin-top: 8px; }
.battery-installations img { max-height: none; }

.battery-highlights {
  list-style: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.battery-highlights li + li { margin-top: 3px; }
.battery-highlights strong { color: var(--ink); }

@media (max-width: 900px) {
  .nav { gap: 8px; min-height: 65px; }
  .logo { width: 124px; }
}

@media (max-width: 760px) {
  .battery-options, .battery-panels, .product-hero, .product-visuals { grid-template-columns: minmax(0, 1fr); }
  .battery-card img { height: 100px; }
  .battery-card { padding: 15px; }
  .battery-page { padding-block: 23px 42px; }
  .wrap { padding-inline: 16px; }
}

@media (max-width: 400px) {
  .comparison-details { padding-inline: 8px; }
  .comparison-details th, .comparison-details td { padding-inline: 4px; font-size: 13px; }
}
