:root {
    --bg: #050607;
    --surface: #0b0d10;
    --surface-2: #111419;
    --line: #242a32;
    --text: #f7f8fa;
    --muted: #a8afb9;
    --blue: #0969da;
    --blue-light: #2588ff;
    --max-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,6,7,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .78rem; border-bottom: 1px solid #16191e; }
.topbar__left, .topbar__right { display: flex; gap: 22px; align-items: center; }
.topbar a:hover { color: var(--text); }
.navbar { min-height: 82px; display: grid; grid-template-columns: auto 1fr minmax(250px, 330px); align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand__mark { width: 50px; height: 50px; display: grid; place-items: center; border: 2px solid var(--blue-light); border-radius: 50%; font-size: 1.05rem; font-weight: 800; color: var(--blue-light); }
.brand__text { display: grid; gap: 2px; }
.brand__text strong { letter-spacing: .05em; }
.brand__text small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; }
.navbar__menu { display: flex; justify-content: center; gap: 26px; text-transform: uppercase; font-size: .78rem; font-weight: 600; }
.navbar__menu a { position: relative; padding: 31px 0; color: #d8dbe0; }
.navbar__menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--blue-light); transform: scaleX(0); transition: .2s ease; }
.navbar__menu a:hover::after, .navbar__menu a.active::after { transform: scaleX(1); }
.header-search { height: 44px; display: flex; border: 1px solid var(--line); background: var(--surface-2); }
.header-search input { min-width: 0; flex: 1; border: 0; outline: none; padding: 0 14px; background: transparent; color: var(--text); }
.header-search button { width: 46px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 1.4rem; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font-size: 1.8rem; }

.hero { min-height: 570px; position: relative; display: grid; align-items: center; overflow: hidden; background: linear-gradient(90deg, #020304 0%, rgba(2,3,4,.94) 38%, rgba(2,3,4,.35) 72%), url('../img/hero-bmw.jpg') center right / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }
.hero__content { position: relative; z-index: 2; padding-block: 90px; }
.eyebrow { margin: 0 0 14px; color: #d7dbe1; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.eyebrow::before { content: ''; display: inline-block; width: 34px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--blue-light); }
.hero h1 { margin: 0; font-size: clamp(4rem, 8vw, 7.7rem); line-height: .82; letter-spacing: -.06em; }
.hero h1 span { font-size: 1.22em; }
.hero__description { max-width: 560px; margin: 30px 0; color: #c7ccd3; font-size: 1.05rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; cursor: pointer; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .03em; transition: .2s ease; }
.btn--primary { background: var(--blue); color: white; }
.btn--primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn--ghost, .btn--outline { border-color: #38414c; background: rgba(9,11,14,.65); color: white; }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--blue-light); }
.btn--block { width: 100%; }

.benefits { border-block: 1px solid var(--line); background: #070809; }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits article { min-height: 132px; display: flex; align-items: center; gap: 18px; padding: 24px; border-right: 1px solid var(--line); }
.benefits article:last-child { border-right: 0; }
.benefits__icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #5d6672; border-radius: 50%; font-size: 1.4rem; }
.benefits h3 { margin: 0 0 7px; font-size: .82rem; text-transform: uppercase; }
.benefits p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.section { padding-block: 78px; }
.section--dark { background: #080a0d; border-block: 1px solid #15191e; }
.section-heading { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.section-heading .eyebrow::before { display: none; }
.section-heading h2, .compatibility h2, .cta h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-heading p { color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card { min-height: 238px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; border: 1px solid var(--line); background: linear-gradient(145deg, #141820, #08090b); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .35s ease, opacity .35s ease; }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.9)); }
.category-card span { position: relative; z-index: 2; padding: 18px 10px; text-transform: uppercase; font-size: .85rem; }
.category-card:hover img { transform: scale(1.05); opacity: .9; }
.image-missing { opacity: 0 !important; }
.section-action { margin-top: 24px; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.product-card { min-width: 0; border: 1px solid var(--line); background: #0c0f13; transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #354354; }
.product-card__image { position: relative; display: block; aspect-ratio: 1 / 1; background: linear-gradient(145deg,#151a21,#07090c); overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.stock-badge { position: absolute; top: 10px; right: 10px; padding: 6px 8px; border: 1px solid #246d45; background: rgba(12,55,34,.78); color: #77e5a2; font-size: .62rem; text-transform: uppercase; }
.product-card__body { padding: 14px; }
.product-card__oem { margin: 0 0 8px; color: var(--blue-light); font-size: .66rem; }
.product-card h3 { min-height: 54px; margin: 0; font-size: .84rem; line-height: 1.45; }
.product-card__compatibility { min-height: 34px; margin: 8px 0; color: var(--muted); font-size: .7rem; }
.product-card__price { display: block; margin: 12px 0 14px; font-size: 1.2rem; }
.product-card .btn { padding-inline: 8px; font-size: .65rem; }

.compatibility { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: center; padding-block: 78px; }
.compatibility > div > p:last-child { max-width: 650px; color: var(--muted); line-height: 1.7; }
.compatibility__form { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.compatibility__form label { display: block; margin-bottom: 12px; font-weight: 700; }
.compatibility__form > div { display: flex; }
.compatibility__form input { min-width: 0; flex: 1; height: 48px; border: 1px solid #303640; border-right: 0; padding: 0 14px; outline: none; background: #080a0d; color: white; }

.cta { border-block: 1px solid var(--line); background: #0b0e12; }
.cta__content { min-height: 150px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta p { margin: 0; color: var(--muted); }

.footer { background: #030405; }
.footer__grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1fr; gap: 50px; padding-block: 52px; }
.footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer h3 { margin: 0 0 8px; text-transform: uppercase; font-size: .8rem; }
.footer p, .footer a, .footer span { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.footer a:hover { color: white; }
.footer__bottom { padding: 20px 0; border-top: 1px solid #15191e; color: #717985; font-size: .72rem; text-align: center; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #24c56a; color: #041b0d; font-weight: 800; box-shadow: 0 12px 35px rgba(0,0,0,.45); }

@media (max-width: 1100px) {
    .navbar { grid-template-columns: auto 1fr; }
    .header-search { grid-column: 1 / -1; margin-bottom: 14px; }
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--max-width)); }
    .topbar { display: none; }
    .navbar { min-height: 72px; grid-template-columns: 1fr auto; gap: 12px; }
    .brand__mark { width: 43px; height: 43px; }
    .menu-toggle { display: block; }
    .navbar__menu { display: none; grid-column: 1 / -1; flex-direction: column; gap: 0; padding-bottom: 12px; }
    .navbar__menu.is-open { display: flex; }
    .navbar__menu a { padding: 12px 0; }
    .navbar__menu a::after { bottom: 6px; right: auto; width: 34px; }
    .header-search { display: none; }
    .hero { min-height: 560px; background-position: 62% center; }
    .hero__content { padding-block: 100px 70px; }
    .hero h1 { font-size: clamp(3.6rem, 18vw, 5.7rem); }
    .hero__description { max-width: 90%; }
    .hero__actions .btn { width: 100%; }
    .benefits__grid { grid-template-columns: 1fr; }
    .benefits article { border-right: 0; border-bottom: 1px solid var(--line); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { min-height: 190px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .compatibility { grid-template-columns: 1fr; gap: 28px; }
    .compatibility__form > div { flex-direction: column; gap: 10px; }
    .compatibility__form input { border-right: 1px solid #303640; }
    .cta__content { padding-block: 34px; align-items: flex-start; flex-direction: column; }
    .footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 460px) {
    .category-grid, .product-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 220px; }
    .product-card h3, .product-card__compatibility { min-height: auto; }
}
