:root {
  --blue: #03a9f4;
  --blue-dark: #026e9f;
  --yellow: #fbc02d;
  --yellow-dark: #a67f1e;
  --ink: #1d232b;
  --text: #4a525c;
  --muted: #7a828c;
  --line: #e6e9ee;
  --soft: #f4f7fa;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 30, 50, .10);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(1170px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: 90px 0; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .6em; }
.title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.lead.center { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-decoration: none; padding: 14px 30px; border-radius: 40px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f5b000; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-solid, .site-header.scrolled { background: rgba(20, 26, 34, .96); box-shadow: 0 2px 20px rgba(0, 0, 0, .2); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-head); font-size: 18px; }
.brand strong { color: var(--yellow); font-weight: 800; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 20px; fill: #fff; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn), .sub-toggle { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 10px 14px; background: none; border: 0; cursor: pointer; }
.main-nav > ul > li > a:not(.btn):hover, .sub-toggle:hover { color: var(--yellow); }
.main-nav .btn { color: var(--ink); margin-left: 8px; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; list-style: none; margin: 0; padding: 10px 0; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 20px; }
.main-nav .sub a:hover { color: var(--blue); background: var(--soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 880px); min-height: min(100svh, 880px); display: flex; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(10, 14, 20, .88) 0%, rgba(10, 14, 20, .55) 60%, rgba(10, 14, 20, .35) 100%), url("../img/hero-motor.jpg") center / cover no-repeat; }
.hero-inner { padding: 140px 0 120px; }
.hero h1 { overflow-wrap: anywhere; color: #fff; font-size: clamp(34px, 6vw, 64px); font-weight: 500; line-height: 1.15; max-width: 900px; }
.hero h1 strong { font-weight: 800; }
.yellow { color: var(--yellow); }
.typed { color: var(--yellow); font-weight: 700; border-right: 3px solid var(--yellow); padding-right: 4px; animation: caret 1s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Features */
.features { position: relative; z-index: 2; margin-top: -90px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 26px; display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.feature h2 { font-size: 20px; }
.feature p { font-size: 15px; flex: 1; }
.feature .btn { align-self: flex-start; }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(3, 169, 244, .12); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 28px; fill: var(--blue); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about-gallery img:first-child { grid-row: span 2; height: 100%; }

/* Split blocks */
.split-section { background: var(--soft); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 80px; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split.reverse img { order: 2; }

/* Testimonials */
.testimonials { background: linear-gradient(rgba(20, 26, 34, .92), rgba(20, 26, 34, .92)), url("../img/hero-motor.jpg") center / cover fixed; color: #cfd6de; }
.testimonials .title { color: #fff; }
.testimonials .lead { color: #aab3bd; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.quote { margin: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.stars { color: var(--yellow); letter-spacing: 3px; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 24px; font-size: 17px; font-style: italic; color: #fff; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--yellow); }
.quote figcaption strong { display: block; color: #fff; font-family: var(--font-head); }
.quote figcaption span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }

/* CTA */
.cta-band { background: linear-gradient(rgba(2, 110, 159, .88), rgba(3, 169, 244, .85)), url("../img/poleas.jpg") center / cover; color: #fff; padding: 70px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3.5vw, 36px); margin: 0; }
.cta-phone { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 52px); color: var(--yellow); text-decoration: none; white-space: nowrap; }

/* Tyres */
.tyres { background: linear-gradient(90deg, rgba(12, 15, 20, .94) 0%, rgba(12, 15, 20, .75) 55%, rgba(12, 15, 20, .3) 100%), url("../img/llantas.jpg") center / cover; color: #d5dbe1; }
.tyres-inner { max-width: 1170px; }
.tyres .title { color: #fff; max-width: 760px; }
.tyres em { font-family: "Playfair Display", serif; color: var(--yellow); font-weight: 400; }
.tyres .lead { color: #c3cbd3; }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 30px; margin-top: 40px; }
.counters div { border-left: 3px solid var(--yellow); padding-left: 18px; }
.counter { display: block; font-family: var(--font-head); font-weight: 800; font-size: 46px; color: #fff; line-height: 1.1; }
.counters span:last-child { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* News */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .25s; }
.post:hover { transform: translateY(-6px); }
.post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-body { padding: 24px; }
.post h3 { font-size: 20px; }
.more { color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 14px; }

/* Contact */
.contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.contact-list span { color: var(--blue); font-size: 18px; width: 20px; }
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.contact-list .mail { display: grid; }
.contact-list small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); line-height: 1.4; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.contact-form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.contact-form button { justify-self: start; }
.form-note { margin: 0; font-size: 14px; color: var(--blue-dark); }

/* Inner pages */
.page-hero { padding: 170px 0 80px; color: #fff; background: linear-gradient(rgba(12, 16, 22, .82), rgba(12, 16, 22, .82)), var(--bg) center / cover; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin: 0; }
.page-hero .eyebrow { color: var(--yellow); }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.prose { font-size: 17px; }
.prose h2, .prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose h4, .prose h5 { font-size: 17px; margin-top: 1.2em; }
.article-img { border-radius: var(--radius); margin-bottom: 30px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.legal { font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.pager a { text-decoration: none; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.side-card { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.side-card h2 { font-size: 19px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px; }
.side-list a:hover, .side-list a[aria-current] { color: var(--blue); font-weight: 600; }
.side-cta { background: var(--ink); color: #c8d0d8; }
.side-cta h2 { color: #fff; }
.side-cta .btn { display: block; text-align: center; margin-top: 10px; }

/* Footer */
.site-footer { background: #141a22; color: #9aa4ae; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-head); font-size: 20px; color: #fff; }
.footer-brand strong { color: var(--yellow); }
.footer-title { font-family: var(--font-head); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.site-footer a { color: #cfd6de; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.funding { background: #fff; border-radius: var(--radius); padding: 14px 20px; margin-top: 40px; }
.funding img { margin-inline: auto; }
.copyright { padding: 24px 0; text-align: center; font-size: 13px; }
.call-fab { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); display: none; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); z-index: 40; }
.call-fab svg { width: 26px; fill: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .typed { animation: none; border: 0; }
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #141a22; overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 20px 16px; gap: 0; }
  .main-nav a:not(.btn), .sub-toggle { display: block; width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 0 0 0 14px; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { opacity: 1; }
  .main-nav .sub a { color: #cfd6de; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav .sub a:hover { color: var(--yellow); background: none; }
  .main-nav .btn { display: block; margin: 20px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .call-fab { display: grid; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .about-grid, .split, .contact-grid, .article-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse img { order: 0; }
  .quote-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .testimonials { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .features { margin-top: -50px; }
  .counters { grid-template-columns: 1fr; gap: 20px; }
  .brand-text { font-size: 15px; }
  .contact-form { padding: 24px; }
  .hero-inner { padding: 120px 0 100px; }
}
