:root {
  --green: #87cb3b;
  --green-dark: #6eae28;
  --gray: #404040;
  --ink: #2a2a2a;
  --paper: #f4f5f2;
  --line: #e1dfdf;
  --blue: #5050f7;
  --font: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: var(--gray);
}
.brand img { width: 96px; }
.burger {
  display: none;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}
#nav { display: flex; align-items: center; gap: 4px; }
#nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 12px 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
#nav a.is-active { color: var(--green); }
#nav a.is-active::after,
#nav a:hover::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 20px;
  background: var(--green);
}
.nav-wa {
  margin-left: 8px;
  background: var(--green);
  color: var(--gray) !important;
  border-radius: 999px;
  padding: 10px 14px !important;
}
.nav-wa::after { display: none !important; }
.nav-wa:hover { background: var(--green-dark); }

.hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 80px 28px 150px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(64,64,64,.9), rgba(64,64,64,.28)),
    url("https://ecomoto.az/assets/AllProductsWallpaper-60aed321.jpg") center 72% / cover;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1, .about-page h1, .contact-page h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero p { max-width: 46ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.btn.solid { background: var(--green); color: var(--gray); }
.btn.solid:hover { background: var(--green-dark); }
.btn.ghost { border: 1px solid #fff; color: #fff; }

.home-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}
.home-cats a {
  position: relative;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: #333 var(--photo) var(--pos, center) / cover no-repeat;
}
.home-cats span {
  width: 100%;
  padding: 14px 16px;
  background: rgba(64, 64, 64, .92);
  border-left: 4px solid var(--green);
}
.home-cats a:hover span { background: var(--green); color: var(--gray); }

.page-store { background: var(--gray); color: #fff; }
.store { max-width: 1100px; margin: 0 auto; padding: 28px 22px 64px; }
.store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.store-head h1 { margin: 0; font-size: 28px; }
.cats-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cats-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
}
.cats-nav a.is-on,
.cats-nav a:hover { background: var(--green); color: var(--gray); }
.cats-nav small { font-weight: 600; opacity: .75; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  color: var(--gray);
  border-radius: 16px;
}
.find, .sort { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; }
.find input, .sort select {
  min-height: 42px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--gray);
}
.segment {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.segment legend { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.segment button {
  border: 0;
  background: #f1f2ef;
  color: var(--gray);
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
}
.segment button:first-of-type { border-radius: 12px 0 0 12px; }
.segment button:last-of-type { border-radius: 0 12px 12px 0; }
.segment button.is-on { background: var(--gray); color: #fff; }

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.result-line p { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .clear {
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
}
.clear { margin-left: auto; background: transparent; }
.clear:hover, .chips button:hover { background: #fff; color: var(--gray); }

.product {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 22px;
  align-items: center;
  background: #fff;
  color: var(--gray);
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 14px;
}
.product-photo h2 {
  display: inline-flex;
  margin: 0 0 10px;
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.3;
}
.product.benzin .product-photo h2 { background: var(--blue); }
.product-photo img { width: 100%; height: 180px; object-fit: contain; }
.product-actions { margin-top: 12px; justify-content: center; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.specs li {
  display: flex;
  align-items: center;
  background: var(--gray);
  color: #fff;
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}
.specs span {
  background: var(--green);
  color: var(--gray);
  min-width: 132px;
  padding: 7px 10px;
  font-weight: 700;
}
.specs b { padding: 7px 12px; font-weight: 600; }
.product-copy p { margin: 0 0 12px; line-height: 1.6; font-size: 14px; }
.fuel-note { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #777; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.act.wa { background: var(--green); color: var(--gray); }
.act.wa:hover { background: var(--green-dark); }
.act.call { border: 1px solid var(--gray); color: var(--gray); }
.empty {
  background: #fff;
  color: var(--gray);
  border-radius: 16px;
  padding: 28px;
}
.empty button {
  margin-top: 10px;
  border: 0;
  background: var(--green);
  color: var(--gray);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.about-page { max-width: 1100px; margin: 0 auto; padding: 36px 22px 72px; }
.page-about { background: #f0f0f0; }
.lead { max-width: 62ch; line-height: 1.6; font-size: 18px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-grid article {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border-top: 4px solid var(--green);
}
.about-grid h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #888; }
.about-grid p { margin: 0; line-height: 1.65; }

.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.address { font-size: 18px; }
.phones { display: grid; gap: 8px; margin: 18px 0; }
.phones a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
}
.phones span { color: #777; font-weight: 700; font-size: 13px; }
.phones a:hover b { color: var(--green-dark); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  text-decoration: none;
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.contact-page iframe { width: 100%; min-height: 460px; border: 0; border-radius: 16px; background: #fff; }

.foot {
  margin-top: 1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px 28px;
  background: var(--gray);
  color: #fff;
}
.foot-brand { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.foot img { width: 84px; }
.foot p { margin: 0; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.foot-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.foot-links span {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.foot-links a:hover { color: var(--green); }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  #nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--gray);
    padding: 8px 12px 16px;
  }
  #nav.is-open { display: flex; }
  .store-head, .filter-bar, .product, .about-grid, .contact-page { grid-template-columns: 1fr; display: grid; }
  .store-head { align-items: stretch; }
  .cats-nav { justify-content: flex-start; }
  .product-photo img { height: 200px; }
  .pit-board, .pit-map { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
}

.slider {
  position: relative;
  height: 520px;
  margin: 18px 22px 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gray);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 520px; object-fit: cover; object-position: center; }
.slide-overlay { position: absolute; inset: 0; background: transparent; }
.slide-copy {
  position: absolute;
  z-index: 2;
  left: 76px;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 46%);
  padding: 22px 24px;
  border-radius: 16px;
  border-left: 4px solid var(--green);
  background: rgba(28, 28, 28, .82);
  color: #fff;
}
.slide-copy h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); }
.slide-copy p { margin: 0; line-height: 1.6; font-weight: 600; font-size: 16px; }
.slide-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--gray);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.slide-btn.prev { left: 16px; right: auto; }
.slide-btn.next { right: 16px; left: auto; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.dot.is-on { background: var(--green); }

.stage {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 24px;
  margin: 0 22px;
  min-height: 480px;
  padding: 28px;
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20,20,20,.15), rgba(20,20,20,.62)),
    url("https://ecomoto.az/assets/RA5BackgImage-a3f52faa.jpg") center / cover;
}
.stage-bike {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  justify-self: center;
}
.stage-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stage-copy {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(28, 28, 28, .62);
}
.stage-copy h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); }
.stage-copy p { margin: 0; line-height: 1.65; font-size: 15px; }
.stage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stage-stats div {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stage-stats span {
  color: var(--green);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.stage-stats sup { font-size: .45em; margin-left: 2px; }
.stage-stats p { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #eee; }

.factory { margin: 0 0 22px; position: relative; }
.factory img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; }
.factory figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.about-points article, .about-story { background: #fff; border-radius: 16px; padding: 20px; }
.about-points h2, .about-story h2 { margin: 0 0 8px; font-size: 16px; }
.about-points p, .about-story p { margin: 0 0 12px; line-height: 1.65; }
.motto { font-style: italic; letter-spacing: .04em; border-bottom: 3px solid var(--green); padding-bottom: 8px; }
.about-video { margin-top: 18px; }
.about-video iframe { width: 100%; border: 0; border-radius: 16px; }

.page-contact { background: #171717; color: #fff; }
.pit-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 22px 0;
}
.pit-hero h1 {
  margin: 0 0 12px;
  max-width: none;
  width: 100%;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pit-hero p { max-width: none; margin: 0 0 6px; line-height: 1.5; }
.pit-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 22px;
}
.pit-board a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  background: #242424;
  border-top: 4px solid var(--green);
  border-radius: 14px;
  padding: 22px 18px;
}
.pit-board span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bdbdbd; }
.pit-board b { font-size: 28px; }
.pit-board a:hover { background: #303030; }
.pit-map {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 16px;
  max-width: 1100px;
  margin: 18px auto 36px;
  padding: 0 22px;
  align-items: stretch;
}
.pit-map iframe { width: 100%; height: 240px; border: 0; border-radius: 16px; }
.pit-map > div {
  background: #242424;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pit-map p { margin: 0; line-height: 1.5; }
.pit-map a { color: #fff; }
.page-contact .social a { border-color: #fff; color: #fff; }

@media (max-width: 900px) {
  .slider { height: auto; margin: 12px 12px 0; }
  .slide { position: relative; display: none; }
  .slide.is-on { display: block; }
  .slide img { height: 230px; object-position: center; }
  .slide-overlay { display: none; }
  .slide-copy {
    position: static;
    transform: none;
    width: auto;
    margin: 12px;
    padding: 18px 16px;
  }
  .slide-btn { top: 115px; }
  .home-cats { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .home-cats a { height: 170px; font-size: 15px; }
  .stage, .stage-side { display: grid; grid-template-columns: 1fr; }
  .stage { min-height: 0; margin: 0 12px; padding: 16px; }
  .stage-stats { grid-template-columns: 1fr 1fr; }
  .pit-board, .pit-map, .about-points { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-links { justify-content: flex-start; }
}

.dock {
  position: fixed;
  z-index: 40;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock a {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  animation: dock-bob 2.2s ease-in-out infinite;
}
.dock a:nth-child(2) { animation-delay: .25s; }
.dock a:nth-child(3) { animation-delay: .5s; }
.dock svg { width: 32px; height: 32px; display: block; }
.dock i { font-size: 28px; line-height: 1; }
.dock a.dock-call { background: #2f80ed; }
.dock a.dock-wa { background: #25d366; }
.dock a.dock-fix { background: #f5a623; }
.dock a:hover { animation-play-state: paused; transform: scale(1.08); }
@keyframes dock-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (min-width: 901px) {
  .product {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
      "photo copy"
      "photo specs";
    align-items: center;
  }
  .product-photo { grid-area: photo; }
  .product-copy { grid-area: copy; }
  .specs {
    grid-area: specs;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
  .product-photo img { height: 210px; }
}
