/* ============================================================
   МОТО ТОП — home.css (homepage-only styles)
   Extends base.css tokens. Mobile-first. Transforms/opacity
   for motion; marquee is pure CSS. Do not edit base.css.
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(3rem, 9vh, 6.5rem);
  background:
    radial-gradient(
      120% 120% at 88% 15%,
      rgba(246, 143, 71, 0.16),
      rgba(246, 143, 71, 0) 55%
    ),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__copy {
  max-width: 40rem;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.hero__title {
  font-size: var(--fs-hero);
  margin: 0 0 1.1rem;
}
.hero__title .hero__accent {
  color: var(--accent);
}
/* word-split spans (populated by home.js) — masked reveal */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero__title .word__i {
  display: inline-block;
}
.hero__sub {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.9rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* tire visual */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}
.hero__tire-pad {
  position: relative;
  width: min(92%, 460px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.55) 42%,
    rgba(255, 255, 255, 0) 68%
  );
}
.hero__tire {
  width: 86%;
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.55));
  transform-origin: 50% 50%;
}
.hero__spec {
  position: absolute;
  bottom: 6%;
  left: 4%;
  background: rgba(20, 19, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  backdrop-filter: blur(6px);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__visual {
    min-height: 440px;
  }
}

/* Mobile: cap hero height so H1 + primary CTA land in the first viewport.
   Tighten type/spacing and shrink the tire so the visual doesn't push the
   CTA below the fold (390x844 reference). */
@media (max-width: 640px) {
  .hero {
    padding-block: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1.75rem, 4vh, 2.75rem);
  }
  .hero__grid {
    gap: 1.5rem;
  }
  .hero__eyebrow {
    margin-bottom: 0.85rem;
  }
  .hero__title {
    font-size: clamp(2rem, 8.4vw, 2.55rem);
    margin-bottom: 0.8rem;
  }
  .hero__sub {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }
  .hero__cta {
    margin-bottom: 1.1rem;
  }
  .hero__visual {
    min-height: 0;
  }
  .hero__tire-pad {
    width: min(72%, 290px);
  }
}

/* ---------- SIZE MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 1rem;
  overflow: hidden;
}
.marquee__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 auto 0.85rem;
  width: min(var(--wrap-max), 100% - 2.5rem);
}
.marquee__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee__viewport:hover .marquee__track,
.marquee__track:focus-within {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  flex: none;
}
.marquee__item {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
}
.marquee__item::after {
  content: "/";
  color: rgba(246, 143, 71, 0.5);
  margin-left: 1.4rem;
}
a.marquee__item:hover {
  color: var(--accent);
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee__group[aria-hidden="true"] {
    display: none;
  }
  .marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- CATEGORY TILES ---------- */
.cats__group + .cats__group {
  margin-top: 1.25rem;
}
.tile {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 143, 71, 0.45);
  box-shadow: var(--shadow-1);
  color: var(--text);
}
.tile__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  padding: 10px;
}
.tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tile__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  line-height: 1.1;
}
.tile__meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.tile__arrow {
  margin-left: auto;
  color: var(--accent);
  flex: none;
  transition: transform 0.18s ease;
}
.tile:hover .tile__arrow {
  transform: translateX(4px);
}

/* de-emphasized „по заявка" link-card */
.cats__request {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
}
.cats__request a {
  font-weight: 700;
}

/* ---------- JOURNEY (пътят на гумата — 3 стъпки, винаги видими) ----------
   Static illustrated steps linked by a dashed route. The tire is the only
   orange element in each scene: port → shelf → truck. No scroll scripting. */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3.5rem;
}
.journey__step {
  position: relative;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
/* dashed route connector + chevron in the gap between steps */
.journey__step + .journey__step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3.05rem;
  height: 2.2rem;
  border-left: 2px dashed rgba(246, 143, 71, 0.55);
  margin-left: -1px;
}
.journey__step + .journey__step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.15rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-5.5px) rotate(45deg);
}
.journey__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 2rem 1.5rem 1.6rem;
  background:
    radial-gradient(
      120% 130% at 30% 18%,
      rgba(246, 143, 71, 0.12),
      rgba(246, 143, 71, 0) 62%
    ),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}
.journey__art svg {
  width: min(100%, 330px);
  height: auto;
  transition: transform 0.45s ease;
}
.journey__step:hover .journey__art svg {
  transform: translateY(-5px);
}
.journey__ghost {
  position: absolute;
  top: 0.1rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  line-height: 1;
  color: rgba(246, 143, 71, 0.11);
  user-select: none;
}
/* line-art palette for the step illustrations */
.journey__art .jl {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey__art .jl--soft {
  opacity: 0.5;
}
.journey__art .ja {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey__art .jd {
  stroke-dasharray: 2 7;
}
.journey__body {
  padding: 1.6rem 1.75rem 1.9rem;
}
.journey__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.journey__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}
.journey__body h3 {
  margin: 0 0 0.5rem;
}
.journey__body p:last-child {
  margin: 0;
  color: var(--muted);
}
/* desktop: illustration beside text, zigzag rhythm */
@media (min-width: 860px) {
  .journey__step {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    align-items: stretch;
  }
  .journey__art {
    min-height: 270px;
    padding: 2.25rem 2rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    border-radius: calc(var(--radius-card) - 1px) 0 0 calc(var(--radius-card) - 1px);
  }
  .journey__body {
    align-self: center;
    padding: 2.25rem 2.5rem;
  }
  .journey__step:nth-child(even) .journey__art {
    order: 2;
    border-right: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0;
  }
}

/* ---------- BENEFIT CARDS (защо от вносителя) ---------- */
.benefit h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6rem;
}
.benefit p {
  margin: 0;
  color: var(--muted);
}
.benefit__ic {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- BRANDS ---------- */
.brands__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .brands__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.brand-card__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 10px;
  align-self: flex-start;
}
.brand-card__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
}
.brand-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: center;
}
@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1;
  color: var(--accent);
}
.stat__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--bg-2), var(--accent-2) 165%);
  border: 1px solid rgba(246, 143, 71, 0.35);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band__text {
  display: grid;
  gap: 0.7rem;
  max-width: 42ch;
}
.cta-band h2 {
  margin: 0;
  max-width: 24ch;
}
.cta-band__note {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- GALLERY TEASER ---------- */
.gallery-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
@media (min-width: 760px) {
  .gallery-teaser__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-teaser__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-teaser__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-teaser__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 19, 17, 0.55),
    rgba(20, 19, 17, 0) 55%
  );
}
.gallery-teaser__item:hover img {
  transform: scale(1.05);
}

/* ---------- shared: dark section over gallery backdrop ---------- */
.section--backdrop {
  position: relative;
  isolation: isolate;
}
.section--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(20, 19, 17, 0.86),
      rgba(20, 19, 17, 0.92)
    ),
    var(--backdrop-img, none);
  background-size: cover;
  background-position: center;
}

/* small add-button confirm state (used by main.js flashAdded) */
.btn.is-added {
  background: var(--ok);
  color: var(--ink);
  border-color: var(--ok);
}
