:root {
  --bg: #f4f1ec;
  --ink: #1c1b19;
  --muted: #6f6a64;
  --line: #e3ddd4;
  --card: #ffffff;
  --accent: #8d4b2e;
  --shadow: 0 16px 40px rgba(40, 32, 24, 0.06);
  --header: 5.5rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.6rem 0 1.25rem;
}

.logo {
  display: inline-block;
  color: inherit;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.logo-forma {
  color: #182632;
}

.logo-forma .logo-mark {
  margin: -0.405em 0 -0.405em -0.405em;
}

.logo-batteries .logo-mark {
  height: 0.95em;
  margin-right: 0.4em;
}

.logo-mark {
  display: block;
  width: auto;
  height: 1.6em;
}

.hero-forma img {
  object-position: center center;
}

.card.is-empty {
  cursor: default;
}

.card.is-empty:hover {
  transform: none;
  border-color: var(--line);
}

.card.is-empty .brochure::after {
  content: none;
}

.card.is-empty .photo {
  background: #ebe4e1;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.language {
  flex: none;
  padding-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.language-single {
  letter-spacing: 0.01em;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-select select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231c1b19' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 2.1rem 0.45rem 0.9rem;
  cursor: pointer;
}

.language-select select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero {
  margin: 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 492;
  object-fit: cover;
  object-position: center 42%;
}

.intro,
.sheet {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.25rem 0 4.5rem;
}

.intro h1,
.sheet h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.intro p,
.sheet p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.sheet .prompt {
  margin-top: 1.35rem;
  font-weight: 700;
}

.sheet .lang-buttons {
  margin: 0 0 3.25rem;
}

.sheet .products {
  width: 100%;
  margin-top: 1.5rem;
}

main {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 4.5rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.85rem 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #d3c9bb;
}

.card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1.15 / 1;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: #fbfbfb;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.sku {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.model {
  margin-top: 0.2rem;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.spec {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.brochure {
  margin-top: auto;
  padding-top: 0.95rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.brochure::after {
  content: " →";
}

.products-two {
  width: min(760px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-two.is-single {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.products-two .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.products-two .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}

@media (max-width: 980px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    width: min(1180px, calc(100% - 1.5rem));
    padding-top: 1.2rem;
  }

  main { width: min(1180px, calc(100% - 1.5rem)); }

  .intro,
  .sheet {
    width: min(760px, calc(100% - 1.5rem));
  }

  .products,
  .products-two,
  .products-two.is-single { grid-template-columns: 1fr; }
}

.home-intro {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-intro p {
  margin: 0;
}

.battery-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.battery-back a {
  color: var(--muted);
  text-decoration: none;
}

.battery-back a:hover {
  color: var(--ink);
}

.battery-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}

.battery-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1.1 / 1;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.battery-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.battery-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.battery-copy .spec {
  margin: 0.45rem 0 1.25rem;
  font-size: 1.05rem;
}

.battery-content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.battery-content h2 {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.battery-content .wp-block-buttons,
.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}

.battery-content .wp-block-button__link,
.lang-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.battery-content .wp-block-button__link:hover,
.lang-buttons a:hover {
  border-color: #d3c9bb;
  background: #fffaf5;
}

.lang-buttons a.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.battery-content .wp-block-button__link:focus-visible,
.lang-buttons a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .battery-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card,
  .battery-content .wp-block-button__link,
  .lang-buttons a { transition: none; }
  .card:hover,
  .battery-content .wp-block-button__link:hover,
  .lang-buttons a:hover { transform: none; }
}

@media (max-width: 640px) {
  .lang-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .lang-buttons a {
    min-width: 0;
    width: 100%;
    padding: 0.78rem 0.4rem;
  }
}
