:root {
  --ink: #111044;
  --ink-2: #1f1e5c;
  --paper: #f4efe2;
  --paper-2: #ebe4d2;
  --paper-3: #e0d8c1;
  --line: #d8cfb6;
  --line-soft: #e6dfca;
  --text: #111044;
  --text-dim: #4a4d6e;
  --text-mute: #7a7a93;
  --cyan: #77dee7;
  --cyan-deep: #3fb8be;
  --yellow: #f5c443;
  --yellow-deep: #e0a920;
  --warn: #e25c3c;
  --display: "Unbounded", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection {
  background: var(--cyan);
  color: var(--ink);
}

.container {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 226, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--cyan);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  height: 120px;
}

.header-inner::before {
  content: "";
  position: absolute;
  left: -18px;
  right: 210px;
  top: 10px;
  height: 100px;
  background:
    linear-gradient(90deg, rgba(119, 222, 231, 0.76) 0%, rgba(119, 222, 231, 0.44) 36%, rgba(119, 222, 231, 0.24) 70%, rgba(244, 239, 226, 0) 100%);
  border-radius: 10px;
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header .brand::before {
  content: "";
  position: absolute;
  inset: -24px -104px -24px -28px;
  background:
    linear-gradient(90deg, rgba(119, 222, 231, 0.72) 0%, rgba(119, 222, 231, 0.34) 48%, rgba(244, 239, 226, 0) 100%);
  border-radius: 8px;
  filter: blur(14px);
  opacity: 0.84;
  pointer-events: none;
}

.brand-logo,
.custom-logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 80px;
  width: auto;
  background: linear-gradient(90deg, rgba(119, 222, 231, 0.94), rgba(119, 222, 231, 0.76));
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow:
    0 12px 28px rgba(63, 184, 190, 0.18),
    inset -18px 0 24px rgba(244, 239, 226, 0.16);
}

.site-header .brand-logo,
.site-header .custom-logo {
  height: 80px;
  width: auto;
}

.brand.small .brand-logo,
.brand.small .custom-logo {
  height: 60px;
}

.main-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

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

.phone-block {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.phone-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(63, 184, 190, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 184, 190, 0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(63, 184, 190, 0); }
}

.phone-text strong {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.phone-text small {
  display: block;
  margin-top: 3px;
  color: rgba(17, 16, 68, 0.65);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- HERO ---------- */

section {
  scroll-margin-top: 110px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(60% 80% at 88% 22%, rgba(111, 212, 216, 0.32), transparent 60%),
    radial-gradient(70% 60% at 8% 90%, rgba(245, 196, 67, 0.16), transparent 60%),
    var(--paper);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 16, 68, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 16, 68, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "title visual"
    "lede visual"
    "actions visual"
    "stats stats";
  column-gap: 56px;
  row-gap: 32px;
  align-items: start;
}

.hero-title {
  grid-area: title;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-title .line {
  display: block;
  animation: rise 0.8s both;
}

.hero-title .line:nth-child(1) { animation-delay: 0.08s; }
.hero-title .line:nth-child(2) { animation-delay: 0.18s; }
.hero-title .line:nth-child(3) { animation-delay: 0.28s; }

.hero-title em {
  font-style: normal;
  color: var(--yellow-deep);
  position: relative;
}

.hero-title em::after {
  content: "";
  position: absolute;
  inset: auto -0.05em -0.06em -0.05em;
  height: 0.18em;
  background: var(--yellow);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-title .line-dim {
  color: var(--text-mute);
  font-weight: 600;
}

.hero-lede {
  grid-area: lede;
  max-width: 460px;
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  animation: rise 0.7s 0.42s both;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.7s 0.52s both;
}

.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--ink);
  animation: rise 0.7s 0.62s both;
}

.hero-stats > div {
  position: relative;
  padding: 0 28px;
}

.hero-stats > div + div {
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

.hero-stats dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 6px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
}

.hero-stats dd strong {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stats dd span {
  font-size: 18px;
  color: var(--cyan-deep);
}

.hero-stats small {
  color: var(--text-dim);
  font-size: 13px;
}

/* hero visual */

.hero-visual {
  grid-area: visual;
  position: relative;
  align-self: stretch;
  min-height: 480px;
  animation: rise 0.9s 0.3s both;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: visible;
}

.hero-battery-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  max-width: 640px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-arrow {
  font-family: var(--display);
  font-size: 20px;
  transition: transform 0.25s ease;
}

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

.btn-primary {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.btn-outline {
  width: 100%;
  height: 46px;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.woocommerce .button,
.woo-product-card .button,
.added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.woocommerce .button:hover,
.woo-product-card .button:hover,
.added_to_cart:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.btn-more {
  margin: 56px auto 0;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-more:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- SECTION HEAD ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 96px 0 40px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- PRODUCTS ---------- */

.products {
  padding: 0 0 100px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 28px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.product-card:hover {
  background: var(--paper-2);
}

.product-art {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 50%),
    linear-gradient(90deg, #d3ccb4, #ebe4d2 60%, #d3ccb4);
  clip-path: polygon(6% 18%, 92% 14%, 96% 86%, 12% 94%);
}

.product-art::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto 18px;
  height: 56px;
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  border-radius: 4px 6px 0 0;
}

.product-art::after {
  position: absolute;
  left: 18%;
  top: 46%;
  width: 64%;
  padding: 14px 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.product-art.varta::after { content: "VARTA"; color: #ffd84a; background: #0c2c66; }
.product-art.bosch::after { content: "BOSCH"; color: #fff; background: #c81d1d; }
.product-art.exide::after { content: "EXIDE"; color: #fff; background: linear-gradient(90deg, #0c65b8, #2b88d6); }
.product-art.tab::after   { content: "TAB";   color: #fff; background: #26338b; }

.product-art-image {
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: none;
  background: var(--paper-2);
}

.product-art-image::before,
.product-art-image::after {
  display: none;
}

.product-art-image img {
  display: block;
  width: min(88%, 240px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(17, 16, 68, 0.2));
}

.product-art-image span {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.product-card h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-card h3 span {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 16px;
}

.spec {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
}

.spec li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  color: var(--text-dim);
}

.spec li:last-child { border-bottom: 1px dashed var(--line); }

.spec b {
  color: var(--ink);
  font-weight: 600;
}

.card-foot {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.price {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---------- SERVICES ---------- */

.services {
  padding: 0 0 100px;
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.service-grid article {
  position: relative;
  padding: 40px 28px 44px;
  min-height: 240px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.service-grid article:hover {
  background: var(--paper-2);
}

.service-grid article:hover::before {
  transform: scaleX(1);
}

.svc-idx {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
  font-weight: 600;
  transition: color 0.25s ease;
}

.service-grid article:hover .svc-idx {
  color: var(--ink);
}

.service-grid h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.service-grid p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- REQUEST ---------- */

.request-section {
  padding: 0 0 100px;
}

.request-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--ink);
}

.request-copy h2 {
  margin: 18px 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.request-copy h2 em {
  font-style: normal;
  position: relative;
  color: var(--ink);
}

.request-copy h2 em::after {
  content: "";
  position: absolute;
  inset: auto 0 0.04em 0;
  height: 0.2em;
  background: var(--cyan);
  z-index: -1;
}

.request-copy p {
  max-width: 420px;
  margin: 0 0 22px;
  color: var(--text-dim);
}

.request-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.request-bullets li {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.request-bullets li:last-child {
  border-bottom: 1px dashed var(--line);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input::placeholder {
  color: var(--text-mute);
}

.lead-form input:focus,
.lead-form select:focus {
  background: var(--paper-2);
  box-shadow: 0 0 0 3px rgba(111, 212, 216, 0.45);
}

.lead-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.lead-form .btn-primary {
  margin-top: 8px;
}

.policy {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

.policy a {
  color: var(--ink);
  border-bottom: 1px solid var(--cyan-deep);
}

.form-success {
  margin: 12px 0 0;
  padding: 14px 18px;
  background: var(--cyan);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}

/* ---------- CONTACTS ---------- */

.contacts {
  padding: 0 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 56px;
  padding-top: 72px;
  border-top: 1px solid var(--ink);
}

.contact-info h2 {
  margin: 18px 0 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact-info ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-info li:last-child {
  border-bottom: 1px solid var(--line);
}

.ci-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 3px;
}

.ci-value {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.ci-value a {
  color: var(--ink);
  border-bottom: 1px solid var(--cyan-deep);
  transition: background 0.2s;
}

.ci-value a:hover { background: var(--cyan); }

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  border-radius: 4px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: hue-rotate(170deg) saturate(0.45);
}

.map-open-link {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-left: 0;
  border-bottom: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 rgba(16, 14, 64, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.map-open-link:hover {
  transform: translate(-2px, -2px);
  background: var(--cyan);
  box-shadow: 10px 10px 0 rgba(16, 14, 64, 0.14);
}

/* ---------- PAGES ---------- */

.page-section {
  padding: 72px 0 110px;
}

.page-container {
  max-width: 1280px;
}

.page-head {
  margin-bottom: 32px;
}

.entry-content {
  color: var(--ink);
}

/* ---------- WOOCOMMERCE ---------- */

.woo-container {
  padding: 72px 0 100px;
}

body.woocommerce-shop > .page-title,
body.woocommerce-shop > .woocommerce-info,
body.post-type-archive-product > .page-title,
body.post-type-archive-product > .woocommerce-info,
body.woocommerce-shop .woocommerce-no-products-found,
body.post-type-archive-product .woocommerce-no-products-found {
  width: min(1280px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product .woocommerce-result-count,
body.post-type-archive-product .woocommerce-ordering {
  float: none;
  display: block;
  width: min(1280px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
  margin-top: 18px;
}

body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1280px, calc(100% - 56px));
  margin: 32px auto 100px;
  padding: 0;
  border-left: 1px solid var(--line);
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after {
  display: none;
}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

body.woocommerce-shop ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin: 0 0 22px;
  filter: drop-shadow(0 18px 20px rgba(17, 16, 68, 0.2));
}

body.woocommerce-shop > .page-title,
body.post-type-archive-product > .page-title {
  margin-top: 72px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.woocommerce-shop > .woocommerce-info,
body.post-type-archive-product > .woocommerce-info {
  margin-bottom: 72px;
}

.woo-container .woocommerce-products-header__title,
.woo-container .product_title {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.woo-container ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 32px 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.woo-container ul.products li.product {
  width: auto;
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  background: var(--paper);
}

.woo-container ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--display);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.woo-container .price {
  color: var(--ink);
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  color: var(--ink);
}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  border-top-color: var(--line);
  padding: 18px;
}

body.woocommerce-cart table.cart img {
  width: 92px;
  height: 72px;
  object-fit: contain;
}

body.woocommerce-cart table.cart .product-name a {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: min(520px, 100%);
  margin-left: auto;
}

body.woocommerce-cart .cart_totals h2,
body.woocommerce-checkout h3 {
  font-family: var(--display);
  color: var(--ink);
}

body.woocommerce-cart .coupon .input-text,
body.woocommerce-cart table.cart input.qty,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea {
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

body.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 220px;
  margin: 0;
  padding: 0 14px;
}

body.woocommerce-cart table.cart td.actions .button {
  min-height: 46px;
}

body.woocommerce-cart table.cart td.actions > .button {
  margin-top: 12px;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  min-height: 56px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

body.woocommerce-checkout #payment {
  border-radius: 4px;
  background: rgba(17, 16, 68, 0.04);
}

body.woocommerce-checkout #payment div.payment_box {
  background: rgba(119, 222, 231, 0.18);
  color: var(--ink);
}

body.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(119, 222, 231, 0.18);
}

body.woocommerce-checkout #payment #place_order {
  width: 100%;
  min-height: 56px;
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

body.woocommerce-checkout #payment #place_order:hover {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
}

/* ---------- SINGLE PRODUCT ---------- */

body.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  column-gap: 64px;
  row-gap: 40px;
  width: min(1280px, calc(100% - 56px));
  margin: 72px auto 100px;
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

body.single-product div.product div.images {
  min-width: 0;
}

body.single-product div.product div.images img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(17, 16, 68, 0.16));
}

body.single-product div.product div.summary {
  align-self: start;
  min-width: 0;
  padding-top: 8px;
}

body.single-product div.product .product_title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

body.single-product div.product p.price {
  margin: 0 0 20px;
}

body.single-product div.product form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 28px;
}

body.single-product div.product form.cart .quantity {
  display: block;
  float: none;
  margin: 0;
  width: 100%;
}

body.single-product div.product form.cart .qty {
  width: 116px;
  height: 46px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: center;
}

body.single-product div.product form.cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

body.single-product div.product form.cart .single_add_to_cart_button:hover {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
}

body.single-product .woocommerce-tabs,
body.single-product .related {
  grid-column: 1 / -1;
  min-width: 0;
}

/* ---------- FOOTER ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  background:
    linear-gradient(90deg, rgba(119, 222, 231, 0.18) 0%, rgba(244, 239, 226, 0) 52%),
    rgba(244, 239, 226, 0.92);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 -4px 0 var(--cyan);
  color: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: calc((100% - min(1280px, calc(100% - 56px))) / 2 - 24px);
  top: 10px;
  width: 720px;
  height: 92px;
  background: linear-gradient(90deg, rgba(119, 222, 231, 0.72), rgba(119, 222, 231, 0.3) 54%, rgba(244, 239, 226, 0));
  border-radius: 10px;
  filter: blur(14px);
  opacity: 0.82;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(17, 16, 68, 0.68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--ink);
  transition: color 0.2s;
}

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

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "visual"
      "lede"
      "actions"
      "stats";
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats > div { padding: 22px 0; }
  .hero-stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-grid,
  .service-grid,
  .woo-container ul.products,
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .request-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1280px); }

  .hero { padding: 36px 0 64px; }
  .product-grid,
  .service-grid,
  .woo-container ul.products,
  body.woocommerce-shop ul.products,
  body.post-type-archive-product ul.products {
    grid-template-columns: 1fr;
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .brand-logo,
  .custom-logo { height: 60px; }
}
