:root {
  color-scheme: light;
  --navy: #101c27;
  --ink: #132634;
  --muted: #516571;
  --paper: #f4f7f7;
  --mint: #5cebc4;
  --line: #dce5e7;
  font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #008469; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.header { background: var(--navy); color: white; border-bottom: 1px solid #ffffff26; }
.bar { min-height: 74px; display: flex; align-items: center; gap: 34px; }
.logo { display: inline-flex; flex: none; border-radius: 50%; background: #fff; }
.logo img { display: block; border-radius: inherit; }
.eyebrow span { color: var(--mint); }
nav { display: flex; gap: 26px; margin-right: auto; }
nav a, .phone { font-size: .93rem; }
nav a:hover, .phone:hover { color: var(--mint); }
.cart-button {
  display: inline-grid;
  grid-template-columns: auto minmax(2.5ch, auto);
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0;
  color: var(--navy);
  background: var(--mint);
  border: 0;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.cart-button-label {
  padding-inline: 12px;
}
.cart-button-count {
  min-inline-size: 40px;
  padding: 3px 9px;
  border-inline-start: 1px solid #101c2740;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-button:hover {
  background: #8af5d8;
}
.cart-button:focus-visible {
  outline-color: var(--mint);
}
.hero {
  position: relative;
  isolation: isolate;
  color: white;
  background: #172c3a;
}
.hero-images, .hero-images::after, .hero-image { position: absolute; inset: 0; }
.hero-images { z-index: -1; }
.hero-images::after {
  content: "";
  background: linear-gradient(90deg, #0b1825 0%, #0b1825de 25%, #0b18255c 62%, #0b182510 100%);
}
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: 0; transition: opacity .6s ease; }
.hero-image:first-child, .hero-image.is-active { opacity: 1; }
.hero-image.is-active { z-index: 1; }
.hero-images::after { z-index: 2; }
.hero-inner { padding-block: clamp(65px, 6vw, 98px) clamp(70px, 7vw, 100px); animation: rise .65s both; }
.hero-controls { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.hero-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: white; border: 0; border-radius: 50%; background: #101c27ad; }
.hero-dot::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.hero-dot[aria-current="true"] { color: var(--mint); }
.hero-dot[aria-current="true"]::before { background: currentColor; }
.hero-controls button:focus-visible { outline-color: var(--mint); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #aff4e3; letter-spacing: .12em; font-size: .875rem; font-weight: 750; margin: 0 0 18px; }
.eyebrow span { width: 23px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.8vw, 5.45rem); font-weight: 820; }
h2 { font-size: clamp(2rem, 3.3vw, 3.2rem); }
.intro { margin: 22px 0 29px; max-width: 405px; color: #d5e5ec; font-size: clamp(1rem, 2vw, 1.22rem); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button, .secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; transition: background .2s, transform .2s; }
.button { background: var(--mint); color: #0e292b; }
.button:hover { background: #91f6dc; transform: translateY(-2px); }
.secondary { background: #0b182561; border-color: #c5e4ed66; }
.secondary:hover { background: #304959; }
.finder { position: relative; margin-top: -46px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 36px #122b4114; padding: 24px; }
.finder form { display: grid; align-items: end; grid-template-columns: 1fr 1.6fr auto; gap: 16px; }
.finder-heading { align-self: center; }
.finder h2 { font-size: clamp(1.25rem, 2vw, 1.64rem); margin: 0; }
.search-assist { position: relative; min-width: 0; display: grid; gap: 5px; }
.search-suggestions {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 6px) 0 auto;
  max-height: min(340px, 45vh);
  margin: 0;
  padding: 5px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 32px #182d4324;
}
.search-suggestions li { display: grid; gap: 3px; padding: 8px 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.search-suggestions li:hover, .search-suggestions li[aria-selected=true] { background: #dcfbf2; }
.suggestion-name { font-size: .95rem; font-weight: 650; line-height: 1.35; }
.suggestion-meta { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.finder p, .section-head p, .results, .specs, .delivery p { color: var(--muted); }
label { display: grid; gap: 5px; font-weight: 650; font-size: .9rem; }
input, select { width: 100%; min-height: 48px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
select { appearance: none; padding-right: 31px; background-image: linear-gradient(45deg, transparent 50%, #516571 50%), linear-gradient(135deg, #516571 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
select:disabled { opacity: .58; cursor: default; }
.catalog { padding-block: 49px 56px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-head p { margin-top: 9px; }
.search { width: min(100%, 290px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; }
.filters button[aria-pressed=true] { background: var(--navy); color: white; border-color: var(--navy); }
.results { display: flex; gap: 16px; min-height: 28px; margin: 15px 0 6px; }
.text-button { padding: 0; border: 0; background: none; text-decoration: underline; color: #00634e; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: white; transition: box-shadow .23s, transform .23s; animation: rise .34s both; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px #182d4314; }
.product-photo { aspect-ratio: 1.42; display: block; width: 100%; object-fit: contain; background: #edf1f2; }
.image-button { border: 0; padding: 0; background: none; }
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-block: 6px 4px; font-size: .95rem; line-height: 1.4; }
.card h3 button { text-align: left; background: none; padding: 0; border: 0; color: var(--ink); font-weight: 620; overflow-wrap: anywhere; }
.card h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .specs, .card-category { font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.card-category { color: var(--muted); }
.part-number { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.specs { font-size: .9rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; }
.price { font-size: 1.28rem; font-weight: 850; white-space: nowrap; }
.card .price { font-size: .875rem; font-weight: 650; }
.card .button { min-height: 40px; padding: 7px 12px; font-size: .875rem; font-weight: 650; }
.delivery { border-top: 1px solid var(--line); padding-block: 37px 55px; }
.delivery h2 { font-size: 2rem; }
.delivery p, .contact p:not(.eyebrow) { max-width: 54ch; margin-top: 12px; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 750; color: #00634e; text-decoration: underline; }
.contact { background: var(--navy); color: white; }
.contact-inner { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 20px; padding-block: 56px; }
.contact p:not(.eyebrow), address small { color: #c4d4db; }
address { display: grid; justify-items: start; gap: 6px; font-style: normal; line-height: 1.4; }
address strong { font-size: 1.25rem; font-weight: 700; }
address a { font-size: 1rem; font-weight: 600; color: var(--mint); }
address a[href^="tel:"] { font-size: 1.125rem; }
address a:hover { text-decoration: underline; }
.contact-method { margin-block: 6px; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.messengers a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 10px;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: .875rem;
}
.messengers img { object-fit: contain; }
.messenger-hint { display: block; margin-top: 5px; font-size: .875rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 78px; color: var(--muted); }
dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 16px; padding: 0; color: var(--ink); }
dialog[open] { animation: rise .23s both; }
dialog::backdrop { background: #06121caa; backdrop-filter: blur(4px); }
.panel-shell { position: relative; padding: 28px; }
.panel-shell h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); margin: 0 48px 12px 0; }
.close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.close::before, .close::after {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.close::before { transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.close:hover { background: #e1f6ef; border-color: #b7d9ce; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 19px; }
.detail .product-photo { border-radius: 9px; }
.detail p + p { margin-top: 11px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cart-line button { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; min-width: 34px; min-height: 34px; }
.cart-controls { display: flex; gap: 6px; align-items: center; }
.total { margin: 17px 0; font-weight: 800; }
.notice { position: fixed; z-index: 2; right: 16px; bottom: 16px; padding: 10px 17px; border-radius: 8px; background: var(--navy); color: white; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.notice.visible { opacity: 1; transform: none; }
.skip { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 9px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .bar { gap: 15px; }
  nav { gap: 13px; }
  .phone { display: none; }
  .finder form { grid-template-columns: 1fr auto; }
  .finder-heading { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-block: 9px; }
  nav { order: 3; width: 100%; justify-content: space-between; padding: 3px 0; }
  .hero-image { object-position: 64% center; }
  .hero-images::after { background: linear-gradient(90deg, #0b1825f2, #0b1825b8); }
  .hero-inner { padding-block: 66px 76px; }
  .finder { padding: 15px; }
  .finder form { grid-template-columns: 1fr; }
  .results { flex-wrap: wrap; gap: 4px 16px; }
  .catalog { padding-top: 48px; }
  .section-head, .footer { align-items: start; flex-direction: column; }
  .grid, .detail, .contact-inner { grid-template-columns: 1fr; }
  .footer { padding-block: 15px; }
  .panel-shell { padding: 20px; }
  .cart-line { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.engine-navigator { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; gap: 18px; }
.family-list { display: grid; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.family-option {
  min-height: 51px;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  border: 0;
  border-inline-start: 4px solid transparent;
  text-align: start;
  font-weight: 660;
  transition: background .2s, border-color .2s;
}
.family-option + .family-option { border-top: 1px solid var(--line); }
.family-option:hover { background: var(--paper); }
.family-option[aria-pressed=true] { background: #dcfbf2; border-inline-start-color: #008469; }
.family-option:focus-visible { outline-offset: -4px; }
.engine-workspace { min-width: 0; padding: clamp(14px, 2vw, 24px); background: white; border: 1px solid var(--line); border-radius: 12px; }
.family-title { margin-bottom: 16px; font-size: clamp(1.35rem, 2.55vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.engine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr)); gap: 10px; }
.engine {
  min-height: 63px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  text-align: left;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 680;
  transition: background .2s, border-color .2s;
}
.engine:hover { border-color: #008469; }
.engine[aria-pressed=true] { background: #dcfbf2; border-color: #008469; }
.engine-scope { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
#scope-title { margin-top: 6px; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; }
.detail .card-bottom { flex-wrap: wrap; }

.engine-scope .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 12px; }
.engine-scope .card-bottom { flex-wrap: wrap; }
.engine-empty { grid-column: 1 / -1; color: var(--muted); }
.engine-empty a { color: #00634e; text-decoration: underline; }
.photo-placeholder { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.more-parts { margin-top: 22px; }

.review-filter { display: inline-flex; align-items: center; gap: 7px; }
.review-filter input { width: 16px; min-height: 16px; margin: 0; accent-color: #00634e; }

@media (max-width: 720px) {
  .engine-navigator { grid-template-columns: 1fr; gap: 12px; }
  .family-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-option + .family-option { border-top: 0; }
  .family-option:nth-child(even) { border-inline-start-color: var(--line); }
  .family-option:nth-child(n+3) { border-top: 1px solid var(--line); }
  .family-option[aria-pressed=true] { border-inline-start-color: #008469; }
}

#inquiry-form { display: grid; gap: 10px; margin-top: 18px; }
#inquiry-form label { display: grid; gap: 4px; }
#inquiry-form textarea { padding: 8px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
#inquiry-form button { justify-self: start; }

.engine-photo { display:block; width:100%; height:84px; margin-bottom:8px; object-fit:contain; background:white; border-radius:5px; }
.product-extra-photo { display:inline-block; width:64px; height:64px; margin:8px 8px 0 0; }
.product-extra-photo img { display:block; width:100%; height:100%; object-fit:contain; border:1px solid var(--line); border-radius:6px; }
