:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(12, 15, 22, 0.88);
  --panel-strong: rgba(13, 17, 25, 0.98);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f8fbff;
  --muted: #a2acba;
  --soft: #d6dce6;
  --accent: #ff2f7d;
  --accent-2: #ff78ac;
  --warning: #f59e0b;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 5px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --body-bg:
    radial-gradient(circle at 70% 8%, rgba(255, 47, 125, 0.22), transparent 28rem),
    radial-gradient(circle at 20% 25%, rgba(88, 101, 242, 0.12), transparent 24rem),
    linear-gradient(180deg, #07080c 0%, #090c12 46%, #05070a 100%);
  --grid-line: rgba(255, 255, 255, 0.026);
  --header-bg: rgba(5, 7, 10, 0.86);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --input-bg: rgba(255, 255, 255, 0.06);
  --text-on-accent: #ffffff;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1ea;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 252, 247, 0.98);
  --line: rgba(29, 35, 45, 0.12);
  --line-strong: rgba(29, 35, 45, 0.2);
  --text: #101319;
  --muted: #697382;
  --soft: #2d3542;
  --accent: #f42b76;
  --accent-2: #c90053;
  --warning: #b7791f;
  --shadow: 0 28px 72px rgba(55, 42, 34, 0.16);
  --body-bg:
    radial-gradient(circle at 73% 10%, rgba(255, 47, 125, 0.18), transparent 29rem),
    radial-gradient(circle at 14% 34%, rgba(255, 184, 207, 0.34), transparent 24rem),
    linear-gradient(180deg, #fffaf3 0%, #f6f1ea 48%, #efe7de 100%);
  --grid-line: rgba(29, 35, 45, 0.052);
  --header-bg: rgba(255, 250, 243, 0.86);
  --glass-bg: rgba(16, 19, 25, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --input-bg: rgba(255, 255, 255, 0.82);
  --text-on-accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Manrope, sans-serif;
  background: var(--body-bg);
}

button,
textarea,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 168px minmax(420px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.mobile-brand {
  display: none;
}

:root[data-theme="light"] .brand img {
  filter: invert(1);
}

:root[data-theme="light"] .mobile-brand img {
  filter: invert(1);
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.header-search textarea {
  width: 100%;
  min-height: 46px;
  max-height: 164px;
  resize: vertical;
  overflow: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  line-height: 1.35;
  background: var(--input-bg);
}

.header-search textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 47, 125, 0.18);
}

.header-search.is-attention {
  border-color: rgba(255, 47, 125, 0.76);
  box-shadow: 0 0 0 4px rgba(255, 47, 125, 0.12), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #ff6aa7);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 47, 125, 0.16);
}

.search-submit.is-loading {
  opacity: 0.75;
}

.search-submit:disabled {
  cursor: wait;
  opacity: 0.76;
}

.search-submit svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.widget-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.widget-status[data-tone="error"] {
  color: #ff9abf;
}

.widget-status[data-tone="warning"] {
  color: var(--warning);
}

.part-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 6px;
  left: 6px;
  z-index: 100;
  display: grid;
  gap: 4px;
  max-height: min(320px, 52vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.part-suggestions[hidden] {
  display: none;
}

.part-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.part-suggestion strong {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.part-suggestion span {
  color: var(--muted);
  font-size: 12px;
}

.part-suggestion:hover,
.part-suggestion:focus-visible {
  border-color: rgba(255, 47, 125, 0.42);
  outline: none;
  background: rgba(255, 47, 125, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.phone-link,
.messenger-link,
.account-link,
.cart-button,
.theme-toggle,
.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.checkout-button,
.cart-panel button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.phone-link,
.messenger-link,
.account-link,
.cart-button,
.theme-toggle {
  min-height: 38px;
  padding: 0 12px;
  color: var(--soft);
  background: var(--glass-bg);
}

.phone-link,
.messenger-link,
.account-link,
.cart-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
}

.phone-link {
  border-color: transparent;
  color: var(--text);
  background: transparent;
  font-weight: 800;
}

.messenger-link {
  justify-content: center;
  border-color: transparent;
  background: transparent;
}

.account-link {
  border-color: transparent;
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #ff6aa7);
  box-shadow: 0 14px 26px rgba(255, 47, 125, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.icon-link {
  justify-content: center;
  width: 38px;
  padding: 0;
}

.icon-link img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.cart-button {
  position: relative;
  justify-content: center;
  gap: 8px;
  width: 40px;
  padding: 0;
  border-color: transparent;
  color: var(--text);
  background: transparent;
  font-weight: 900;
}

.cart-icon {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

:root[data-theme="light"] .cart-icon {
  filter: none;
}

.cart-button span {
  position: absolute;
  top: 1px;
  right: -2px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--text-on-accent);
  background: var(--accent);
  font-size: 10px;
  line-height: 1;
}

.theme-toggle {
  justify-content: center;
  width: 48px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 48px;
  height: 24px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--input-bg);
  box-shadow: none;
}

.theme-icon {
  position: relative;
  z-index: 2;
  width: 13px;
  height: 13px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  color: #f59e0b;
}

.theme-icon-moon {
  color: #cbd5e1;
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateX(24px);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

:root[data-theme="light"] .theme-toggle-knob {
  transform: translateX(0);
  background: rgba(255, 47, 125, 0.16);
  box-shadow: 0 8px 16px rgba(244, 43, 118, 0.16), inset 0 0 0 1px rgba(244, 43, 118, 0.22);
}

.theme-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-pad {
  padding: clamp(46px, 6vw, 86px) clamp(18px, 5vw, 78px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  min-height: calc(100svh - 74px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -16vw;
  bottom: 2vw;
  width: 54vw;
  height: 22vw;
  content: "";
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 47, 125, 0.24), transparent 65%);
  filter: blur(10px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Unbounded, sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 62px);
  line-height: 1;
}

h3 {
  font-size: 18px;
}

.hero-lead {
  max-width: 650px;
  color: var(--soft);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-link,
.primary-button,
.cart-panel button {
  border-color: transparent;
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #ff6aa7);
  box-shadow: 0 16px 34px rgba(255, 47, 125, 0.17);
}

.secondary-link,
.ghost-button {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual img {
  position: absolute;
  right: -18vw;
  bottom: 1.6vw;
  z-index: 2;
  width: min(960px, 76vw);
  max-width: none;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.72));
  transform: none;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 120, 172, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 47, 125, 0.28), rgba(255, 255, 255, 0.03));
}

.hero-orbit-a {
  right: 2vw;
  bottom: -175px;
  width: min(680px, 50vw);
  height: min(680px, 50vw);
}

.brand-strip {
  position: relative;
  padding: 0 clamp(18px, 5vw, 78px) 22px;
}

.logo-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.logo-carousel::-webkit-scrollbar {
  display: none;
}

.logo-carousel-track {
  display: flex;
  gap: clamp(28px, 4vw, 68px);
  width: max-content;
  min-width: 100%;
  align-items: center;
  will-change: transform;
}

.logo-carousel::before,
.logo-carousel::after {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  width: 56px;
  height: 0;
  content: "";
  pointer-events: none;
}

.brand-logo-card {
  display: grid;
  flex: 0 0 132px;
  gap: 8px;
  justify-items: center;
  min-height: 118px;
  padding: 0;
  border: 0;
  color: var(--muted);
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.brand-logo-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

:root[data-theme="dark"] .brand-logo-card .mono-logo {
  filter: brightness(0) invert(1) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

:root[data-theme="light"] .brand-logo-card .mono-logo {
  filter: brightness(0) saturate(0) drop-shadow(0 10px 14px rgba(55, 42, 34, 0.12));
}

.brand-logo-card em {
  color: var(--muted);
  font-family: Unbounded, sans-serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: -0.02em;
}

.client-carousel {
  margin-top: 18px;
}

.client-logo-card {
  display: grid;
  flex: 0 0 clamp(170px, 17vw, 250px);
  height: 132px;
  overflow: hidden;
  place-items: center;
  padding: 0;
}

.client-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

:root[data-theme="dark"] .client-logo-card img[alt="ZP Performance"],
:root[data-theme="dark"] .client-logo-card img[alt="Max Power Cars"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.1) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

:root[data-theme="light"] .client-logo-card img {
  filter: drop-shadow(0 16px 24px rgba(55, 42, 34, 0.12));
}

.steps-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 18px;
}

.steps-grid article,
.review-grid a,
.category-card,
.cart-panel,
.lead-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.steps-grid article {
  padding: 24px;
}

.steps-grid article span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 47, 125, 0.42);
  border-radius: var(--radius-sm);
  color: var(--accent-2);
  font-weight: 900;
}

.steps-grid article p,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  gap: 32px;
  align-items: start;
}

.section-heading {
  max-width: 640px;
}

.section-heading.compact {
  max-width: 900px;
}

.work-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 360px);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.work-gallery::-webkit-scrollbar {
  display: none;
}

.work-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0c0f16;
  height: clamp(260px, 32vw, 420px);
  scroll-snap-align: start;
}

.work-gallery figure:first-child {
  grid-row: auto;
}

.work-gallery .work-wide {
  grid-column: auto;
}

.work-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.work-gallery-dots {
  display: none;
}

.review-grid,
.review-carousel,
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-grid a,
.review-card {
  min-height: 142px;
  padding: 24px;
}

.review-grid strong {
  display: block;
  margin-bottom: 18px;
  font-family: Unbounded, sans-serif;
  font-size: 22px;
}

.review-grid span {
  color: var(--accent-2);
}

.review-carousel {
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  grid-template-columns: none;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-carousel::-webkit-scrollbar {
  display: none;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 0 rgba(255, 47, 125, 0), 0 18px 46px rgba(0, 0, 0, 0.18);
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.review-card strong {
  color: #fff;
  font-family: Unbounded, sans-serif;
  font-size: 20px;
}

.review-card p {
  flex: 1;
  margin: 12px 0 16px;
  line-height: 1.55;
}

.review-card em,
.stars {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 800;
}

.clients-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.06) 0%, rgba(5, 7, 10, 0.56) 48%, rgba(5, 7, 10, 0.94) 100%),
    linear-gradient(135deg, rgba(255, 47, 125, 0.34), rgba(5, 7, 10, 0.1) 58%),
    var(--category-image) center / cover no-repeat;
  background-blend-mode: normal, color, normal;
}

.category-card summary {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: end;
  gap: 6px;
  padding: 18px 52px 18px 18px;
  cursor: pointer;
  list-style: none;
}

.category-card summary::-webkit-details-marker {
  display: none;
}

.category-card summary:focus-visible {
  outline: 3px solid rgba(255, 47, 125, 0.26);
  outline-offset: -3px;
}

.category-card summary::after {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  content: "+";
  color: #fff;
  background: rgba(5, 7, 10, 0.52);
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.category-card[open] summary::after {
  content: "-";
}

.category-card strong {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
}

.category-card small {
  color: rgba(245, 248, 255, 0.76);
  font-size: 12px;
  line-height: 1.35;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.52);
}

.category-panel {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.category-panel p {
  margin: 0;
  color: rgba(245, 248, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.category-panel button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent), #ff6aa7);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 47, 125, 0.18);
}

.site-footer {
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 47, 125, 0.11), transparent 38%),
    linear-gradient(180deg, var(--glass-bg-strong), var(--glass-bg));
  box-shadow: var(--shadow);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand img {
  display: block;
  width: 152px;
  height: auto;
  object-fit: contain;
}

:root[data-theme="light"] .footer-brand img {
  filter: invert(1);
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-contact-line {
  color: var(--soft);
  font-weight: 800;
}

.footer-phone {
  width: fit-content;
  color: var(--text);
  font-family: Unbounded, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.footer-nav,
.footer-platforms {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-platforms a,
.footer-bottom a {
  color: var(--muted);
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-nav a:hover,
.footer-platforms a:hover,
.footer-bottom a:hover {
  color: var(--accent-2);
  transform: translateX(2px);
}

.footer-platforms a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.footer-platforms a::after {
  content: "↗";
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.results-drawer {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 85;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, calc(100vw - 44px));
  max-height: min(84vh, 820px);
  transform: translateY(calc(100% + 40px));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(24px);
  transition: transform 260ms ease, opacity 260ms ease;
}

.results-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.results-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
}

#close-results {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.analog-button {
  align-self: center;
  min-height: 34px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 47, 125, 0.52);
  border-radius: var(--radius-sm);
  color: #fff;
  background: rgba(255, 47, 125, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.analog-button:hover {
  background: rgba(255, 47, 125, 0.28);
}

.analog-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.analog-button[hidden] {
  display: none;
}

.results-content {
  overflow: auto;
  padding: 14px 16px 10px;
}

.result-group {
  margin-bottom: 16px;
}

.result-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px 8px 0 0;
  color: var(--soft);
  background: rgba(12, 16, 24, 0.94);
}

.result-group-title strong {
  color: #fff;
  font-size: 15px;
}

.result-group-title span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.analog-source-title {
  margin-top: 12px;
  border-radius: 8px;
}

.analog-group {
  margin-bottom: 10px;
}

.offers-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.03);
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(92px, 0.7fr) minmax(170px, 1fr) 112px 112px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.offer-row:first-child {
  border-top: 0;
}

.offer-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

.offer-row strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-row span,
.offer-stock {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-part strong,
.offer-stock {
  display: none;
}

.offer-warehouse span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.offer-part span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.offer-part.is-empty {
  display: none;
}

.offer-delivery strong {
  color: var(--accent-2);
}

.offer-stock {
  color: var(--soft);
}

.offer-price {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.offer-action {
  display: flex;
  justify-content: flex-end;
}

.offer-quantity {
  display: grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.offer-quantity.has-items {
  border-color: rgba(34, 197, 94, 0.58);
  background: rgba(34, 197, 94, 0.1);
}

.offer-quantity button {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  border: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  background: var(--accent);
  cursor: pointer;
}

.offer-quantity.has-items button:last-child {
  color: #06110b;
  background: #22c55e;
}

.offer-quantity button:first-child {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.08);
}

.offer-quantity button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.qty-value {
  display: grid;
  min-width: 34px;
  height: 32px;
  align-items: center;
  justify-items: center;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.offer-row .qty-value {
  display: grid;
  place-items: center;
  padding: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateY(1px);
}

.cart-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-width: 1px 0 0;
  border-radius: 0 0 12px 12px;
}

.cart-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.cart-panel span {
  color: var(--muted);
  font-size: 13px;
}

.cart-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cart-panel button,
.checkout-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
}

.checkout-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lead-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lead-card.compact-lead {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
}

.lead-card p {
  margin: 0;
  color: var(--soft);
}

.lead-card input,
.lead-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lead-card textarea {
  min-height: 94px;
}

:root[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse at center, rgba(255, 47, 125, 0.18), transparent 65%);
}

:root[data-theme="light"] .hero-orbit {
  border-color: rgba(16, 19, 25, 0.1);
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 47, 125, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(255, 47, 125, 0.2), rgba(255, 255, 255, 0.64));
}

:root[data-theme="light"] .secondary-link,
:root[data-theme="light"] .ghost-button,
:root[data-theme="light"] .checkout-button,
:root[data-theme="light"] .analog-button,
:root[data-theme="light"] #close-results {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
}

:root[data-theme="light"] .brand-logo-card {
  color: rgba(16, 19, 25, 0.8);
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .steps-grid article,
:root[data-theme="light"] .review-grid a,
:root[data-theme="light"] .cart-panel,
:root[data-theme="light"] .lead-card,
:root[data-theme="light"] .footer-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
}

:root[data-theme="light"] .category-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.1) 0%, rgba(255, 250, 244, 0.66) 54%, rgba(255, 250, 244, 0.92) 100%),
    linear-gradient(135deg, rgba(244, 43, 118, 0.2), rgba(255, 250, 244, 0.24) 60%),
    var(--category-image) center / cover no-repeat;
}

:root[data-theme="light"] .category-card strong,
:root[data-theme="light"] .category-card small,
:root[data-theme="light"] .category-panel p {
  color: var(--text);
  text-shadow: 0 10px 20px rgba(255, 255, 255, 0.66);
}

:root[data-theme="light"] .category-card summary::after {
  border-color: rgba(16, 19, 25, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] .work-gallery figure {
  background: #fffaf4;
  box-shadow: 0 18px 42px rgba(55, 42, 34, 0.1);
}

:root[data-theme="light"] .work-gallery img {
  opacity: 0.92;
}

:root[data-theme="light"] .review-card {
  color: var(--soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  box-shadow: inset 0 0 0 0 rgba(255, 47, 125, 0), 0 18px 46px rgba(55, 42, 34, 0.1);
}

:root[data-theme="light"] .review-card strong,
:root[data-theme="light"] .offer-row strong,
:root[data-theme="light"] .offer-price,
:root[data-theme="light"] .qty-value,
:root[data-theme="light"] .result-group-title strong,
:root[data-theme="light"] .lead-card input,
:root[data-theme="light"] .lead-card textarea,
:root[data-theme="light"] #close-results {
  color: var(--text);
}

:root[data-theme="light"] .results-drawer {
  background: rgba(255, 252, 247, 0.97);
}

:root[data-theme="light"] .result-group-title {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .offers-table {
  background: rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .offer-row {
  border-top-color: rgba(29, 35, 45, 0.09);
  background: rgba(255, 255, 255, 0.6);
}

:root[data-theme="light"] .offer-row:nth-child(even) {
  background: rgba(247, 240, 232, 0.76);
}

:root[data-theme="light"] .offer-part span {
  color: rgba(16, 19, 25, 0.58);
}

:root[data-theme="light"] .offer-warehouse span {
  color: rgba(16, 19, 25, 0.58);
}

:root[data-theme="light"] .offer-quantity {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .lead-card input,
:root[data-theme="light"] .lead-card textarea {
  background: rgba(255, 255, 255, 0.86);
}

@media (hover: hover) {
  .primary-link:hover,
  .secondary-link:hover,
  .primary-button:hover,
  .ghost-button:hover,
  .checkout-button:hover,
  .cart-panel button:hover,
  .category-card:hover,
  .category-panel button:hover,
  .review-grid a:hover,
  .account-link:hover,
  .search-submit:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 47, 125, 0.62);
  }

  .phone-link:hover,
  .messenger-link:hover,
  .theme-toggle:hover,
  .cart-button:hover {
    transform: translateY(-2px);
    border-color: transparent;
  }

  .review-card:hover {
    border-color: rgba(255, 47, 125, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: 150px minmax(360px, 1fr) auto;
  }

  .phone-link,
  .account-link {
    padding-inline: 10px;
    font-size: 12px;
  }

  .cart-button {
    padding: 0;
  }
}

@media (max-width: 1100px) {
  .hero,
  .split-section,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual img {
    right: -22vw;
    width: min(760px, 112vw);
  }

  .hero-orbit-a {
    right: -4vw;
    bottom: -80px;
    width: min(430px, 72vw);
    height: min(430px, 72vw);
  }

  .review-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .offer-row {
    grid-template-columns: 1fr 0.7fr 1fr 104px 112px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 68px;
    padding-bottom: calc(156px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .brand {
    display: none;
  }

  .mobile-brand {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 91;
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: blur(22px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  }

  .mobile-brand img {
    display: block;
    width: 124px;
    height: auto;
    object-fit: contain;
  }

  .mobile-brand-phone {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .header-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 38px 38px 48px minmax(8px, 1fr) 42px minmax(74px, auto);
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .site-header .phone-link {
    display: none;
  }

  .max-link {
    grid-column: 1;
  }

  .telegram-link {
    grid-column: 2;
  }

  .theme-toggle {
    grid-column: 3;
  }

  .cart-button {
    grid-column: 5;
    justify-self: end;
  }

  .account-link {
    grid-column: 6;
    justify-self: end;
    padding-inline: 12px;
  }

  .cart-button {
    justify-content: center;
    min-height: 34px;
    padding: 0;
    font-size: 12px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    border-radius: 10px;
  }

  .header-search textarea {
    min-height: 44px;
    max-height: 118px;
    padding: 11px 12px;
    resize: vertical;
  }

  .search-submit span {
    display: none;
  }

  .search-submit {
    width: 44px;
    padding: 0;
  }

  .widget-status {
    position: absolute;
  }

  .hero {
    padding-top: 30px;
  }

  .hero::before {
    position: absolute;
    right: -112vw;
    bottom: 18px;
    z-index: -1;
    width: min(820px, 206vw);
    height: 276px;
    content: "";
    background:
      linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.6) 34%, rgba(5, 7, 10, 0.1) 100%),
      url("assets/porsche-911-side.png") 0 100% / contain no-repeat;
    opacity: 0.34;
    pointer-events: none;
    filter: saturate(0.9) contrast(1.08);
  }

  :root[data-theme="light"] .hero::before {
    background:
      linear-gradient(90deg, rgba(255, 250, 243, 0.94) 0%, rgba(255, 250, 243, 0.66) 34%, rgba(255, 250, 243, 0.14) 100%),
      url("assets/porsche-911-side.png") 0 100% / contain no-repeat;
    opacity: 0.42;
  }

  .hero-visual {
    display: none;
  }

  h1 {
    font-size: clamp(34px, 10.4vw, 44px);
    line-height: 1.03;
    overflow-wrap: break-word;
  }

  .review-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-auto-columns: 100%;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    touch-action: pan-x;
  }

  .work-gallery figure {
    height: min(70vw, 360px);
    min-height: 286px;
    border-radius: 10px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .work-gallery-dots {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    padding: 12px 4px 0;
  }

  .work-gallery-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease, opacity 180ms ease;
  }

  .work-gallery-dot.is-active {
    width: 18px;
    background: var(--accent);
  }

  :root[data-theme="light"] .work-gallery-dot {
    background: rgba(16, 19, 25, 0.24);
  }

  :root[data-theme="light"] .work-gallery-dot.is-active {
    background: var(--accent);
  }

  .category-grid {
    gap: 10px;
  }

  .category-card {
    min-height: auto;
  }

  .category-card summary {
    min-height: 94px;
    padding: 16px 52px 16px 16px;
  }

  .category-card strong {
    font-size: 14px;
  }

  .category-panel {
    padding: 0 16px 16px;
  }

  .site-footer {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand img {
    width: 132px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    font-size: 12px;
  }

  .results-drawer {
    right: 8px;
    bottom: calc(154px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: calc(100vh - 176px);
    border-radius: 10px;
  }

  .results-header {
    align-items: start;
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .results-header h2 {
    font-size: 25px;
  }

  .analog-button {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .offer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    min-height: 0;
    padding: 8px 10px;
  }

  .offer-warehouse {
    grid-column: 1;
    grid-row: 1;
  }

  .offer-part {
    grid-column: 1;
    grid-row: 2;
  }

  .offer-delivery {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
  }

  .offer-price {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    font-size: 15px;
  }

  .offer-action {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .offer-part:not(.is-empty) + .offer-delivery {
    grid-row: 3;
  }

  .offer-part:not(.is-empty) ~ .offer-action {
    grid-row: 2 / span 2;
  }

  .offer-row strong {
    font-size: 12px;
    line-height: 1.12;
  }

  .offer-row span {
    font-size: 10px;
    line-height: 1.2;
  }

  .offer-delivery strong {
    font-size: 11px;
  }

  .offer-quantity {
    grid-template-columns: 28px 28px 28px;
  }

  .offer-quantity button,
  .qty-value {
    width: 28px;
    min-width: 28px;
    height: 30px;
  }

  .cart-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-panel-actions {
    justify-content: stretch;
  }

  .cart-panel-actions > * {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
