/* ===== DESIGN SYSTEM & VARIABLES ===== */
:root {
  --bg-darker: #090c10;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2129;
  --bg-input: #21262d;
  --border-color: #30363d;
  --border-glow: rgba(255, 85, 0, 0.3);
  
  --accent-orange: #ff5500;
  --accent-orange-hover: #ff6b1a;
  --accent-blue: #0088ff;
  --accent-blue-hover: #2f9eff;
  --accent-green: #00e676;
  
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-orange: 0 0 20px rgba(255, 85, 0, 0.35);
  --shadow-blue: 0 0 20px rgba(0, 136, 255, 0.35);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 84px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-orange);
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.text-accent {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 85, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 85, 0, 0.05);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 7rem 0 5rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(22, 27, 34, 0.8), var(--bg-darker));
  border-bottom: 0;
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--bg-darker));
  pointer-events: none;
}

.calculator-section {
  padding-top: 4rem;
  background: linear-gradient(to bottom, var(--bg-darker) 0, rgba(13, 17, 23, 0.82) 120px, transparent 260px);
}

.hero-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
}

.hero-glow-orange {
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: var(--accent-orange);
}

.hero-glow-blue {
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  background: var(--accent-blue);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-orange);
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px; height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.1rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 0.5rem 1rem;
  text-align: center;
}

.giveaway-banner {
  position: sticky;
  top: 76px;
  z-index: 900;
  background: linear-gradient(90deg, rgba(124, 28, 170, .96), rgba(222, 35, 86, .96), rgba(255, 88, 16, .96));
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #fff;
  transition: background .25s ease, box-shadow .25s ease;
}
.giveaway-banner[hidden] { display: none; }
.giveaway-banner-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.giveaway-copy { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.giveaway-label {
  flex: 0 0 auto;
  padding: .28rem .52rem;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.giveaway-copy strong { font-size: .9rem; }
.giveaway-deadline { color: rgba(255,255,255,.82); font-size: .78rem; }
.giveaway-cta {
  flex: 0 0 auto;
  padding: .52rem .78rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.giveaway-cta:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.giveaway-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.giveaway-banner.is-compact {
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  cursor: pointer;
}
.giveaway-banner.is-compact .giveaway-banner-inner { min-height: 38px; padding-top: .25rem; padding-bottom: .25rem; }
.giveaway-banner.is-compact .giveaway-copy strong,
.giveaway-banner.is-compact .giveaway-deadline { display: none; }
.giveaway-banner.is-compact .giveaway-label::after { content: " · Otvori"; letter-spacing: .04em; }
.giveaway-banner.is-compact .giveaway-cta { padding-top: .3rem; padding-bottom: .3rem; }
.giveaway-banner.is-compact .giveaway-close { width: 28px; height: 28px; }

.hero-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  margin: 1.15rem 0 0;
  color: var(--text-muted);
  font-size: .86rem;
}

.header-phone {
  color: #dce7f4;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: #ff5a1f; }

.recent-searches {
  max-width: 1040px;
  margin: 1.25rem auto 0;
  padding: 1rem;
  border: 1px solid rgba(117, 141, 170, .22);
  border-radius: 18px;
  background: rgba(9, 15, 23, .68);
  text-align: left;
}
.recent-searches[hidden] { display: none; }
.recent-searches-heading { display: flex; align-items: center; gap: .55rem; }
.recent-searches-heading h3 { margin: 0; color: #f7f9fc; font-size: 1rem; }
.recent-searches > p { margin: .35rem 0 .8rem; color: #91a1b5; font-size: .84rem; }
.recent-live-dot {
  width: .58rem; height: .58rem; border-radius: 50%; background: #21d07a;
  box-shadow: 0 0 0 5px rgba(33, 208, 122, .1), 0 0 14px rgba(33, 208, 122, .55);
}
.recent-searches-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.recent-search-item {
  min-width: 0; display: flex; flex-direction: column; gap: .35rem; padding: .78rem .82rem;
  border: 1px solid rgba(117, 141, 170, .18); border-radius: 12px; background: rgba(18, 27, 39, .82);
  color: #f5f7fb; text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.recent-search-item:hover { transform: translateY(-2px); border-color: rgba(255, 84, 23, .62); background: rgba(25, 35, 49, .96); }
.recent-search-item strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .79rem; line-height: 1.35; }
.recent-search-item span { color: #ff6a32; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.hero-proofline strong { color: var(--white); }
.hero-proofline span::before { content: "✓"; color: #ff6a24; margin-right: .38rem; font-weight: 800; }

.google-review-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-value {
  font-size: clamp(1.7rem, 2.25vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-value small {
  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero-stat-value-text {
  max-width: 11rem;
  font-size: clamp(0.92rem, 1.25vw, 1.12rem);
  line-height: 1.2;
  letter-spacing: 0.045em;
  white-space: normal;
}

/* ===== AUTOSERVIS & AUTOELEKTRIKA ===== */
.autoservice-section {
  position: relative;
  padding-top: 6rem;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 75, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #0b1016 0%, #0d1219 100%);
  overflow: hidden;
}

.autoservice-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 610px;
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background: rgba(18, 23, 30, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.autoservice-photo-wrap {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.autoservice-main-photo {
  width: 100%;
  height: 100%;
  min-height: 610px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(.2,.75,.25,1);
}

.autoservice-showcase:hover .autoservice-main-photo {
  transform: scale(1.025);
}

.autoservice-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 12, 0.9) 100%);
  pointer-events: none;
}

.autoservice-photo-badge {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.autoservice-photo-badge span {
  color: var(--accent-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.autoservice-photo-badge strong {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.15;
}

.autoservice-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.autoservice-copy .section-badge {
  align-self: flex-start;
  margin-bottom: 1.15rem;
}

.autoservice-copy > h2 {
  max-width: 660px;
  margin: 0 0 1rem;
  color: var(--text-primary);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.autoservice-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.autoservice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.autoservice-card {
  position: relative;
  min-height: 142px;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 12, 17, 0.62);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.autoservice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 82, 0, 0.42);
  background: rgba(20, 25, 32, 0.95);
}

.autoservice-card-num {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-orange);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.autoservice-card h3 {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.autoservice-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.autoservice-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.6rem;
}

.autoservice-phone {
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
}

.autoservice-phone:hover {
  color: var(--accent-orange);
}

.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 0.85rem;
  margin-top: 1rem;
}

.workshop-gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
}

.workshop-gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.workshop-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.75,.25,1), filter 250ms ease;
}

.workshop-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(4, 7, 10, 0.92) 100%);
  pointer-events: none;
}

.workshop-gallery-item:hover img {
  transform: scale(1.035);
  filter: contrast(1.04) saturate(1.05);
}

.workshop-gallery-item figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.workshop-gallery-item figcaption strong {
  color: #fff;
  font-size: 0.95rem;
}

.workshop-gallery-item figcaption span {
  color: #aeb7c3;
  font-size: 0.74rem;
}

/* ===== TUNING CALCULATOR SECTION ===== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.calc-selectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  background: var(--bg-input);
  color: var(--accent-orange);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-secondary);
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

select, input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  font-size: 0.95rem;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-image-link {
  width: 285px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 5px;
}

.site-logo-image {
  display: block;
  width: 285px;
  height: auto;
  transform: translateY(-4px);
}

.footer-logo-link {
  width: 300px;
  height: 84px;
  margin-bottom: 0.8rem;
}

.footer-logo-link .site-logo-image {
  width: 300px;
  transform: translateY(-15px);
}

.logo-mark {
  background: linear-gradient(135deg, var(--accent-orange), #ff8800);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: -0.5px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.logo-text small {
  font-size: 0.7rem;
  color: var(--accent-orange);
}

/* Stage Selector Tabs */
.stage-selector-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.stage-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.stage-tabs {
  display: flex;
  gap: 0.5rem;
}

.stage-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stage-tab:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.stage-tab.active {
  background-color: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-orange);
}

/* Calc Results Display */
.calc-results {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.vehicle-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.engine-code-badge {
  font-size: 0.8rem;
  font-family: monospace;
  background: var(--bg-input);
  color: var(--accent-blue);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 136, 255, 0.3);
}

.price-tag-wrapper {
  text-align: right;
}

.price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-green);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.comp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.comp-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.gain-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.hp-gain-badge {
  background: rgba(255, 85, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.nm-gain-badge {
  background: rgba(0, 136, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 136, 255, 0.4);
}

.comp-values {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 1.25rem;
}

.comp-val-box {
  text-align: center;
}

.comp-val-box .val-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.comp-val-box .val-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.comp-val-box.tuned .val-num {
  color: var(--text-primary);
}

.comp-val-divider {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.bar-container {
  height: 10px;
  background: var(--bg-input);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.bar-fill {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-stock {
  background: var(--text-muted);
}

.bar-tuned {
  background: linear-gradient(90deg, var(--accent-orange), #ff8800);
}

.bar-tuned.bar-blue {
  background: linear-gradient(90deg, var(--accent-blue), #2f9eff);
}

.calc-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.detail-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.detail-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hardware-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hardware-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hardware-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
}

.calc-action {
  text-align: center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #aeb5bf;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 85, 0, 0.09);
  border-color: rgba(255, 85, 0, 0.24);
}

section[id] {
  scroll-margin-top: 0;
}

@media (max-width: 1180px) {
  .logo-text small {
    display: none;
  }

  .main-nav {
    gap: 0.1rem;
  }

  .nav-link {
    padding-inline: 0.5rem;
    font-size: 0.86rem;
  }

  .header-actions .btn {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 980px) {
  .header-inner .logo-image-link {
    width: 220px;
    height: 58px;
  }

  .header-inner .site-logo-image {
    width: 245px;
    transform: translate(-8px, -2px);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-remap-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}


/* ===== SERVICES SECTION ===== */
.services-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-orange);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-icon-box {
  width: 50px; height: 50px;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent-orange);
}

.service-card.category-custom .service-icon-box {
  background: rgba(0, 136, 255, 0.1);
  border-color: rgba(0, 136, 255, 0.25);
  color: var(--accent-blue);
}

.service-card.category-emissions .service-icon-box {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.25);
  color: var(--accent-green);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.service-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.6rem;
}

.result-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 360px;
  min-height: 48px;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.11);
  color: #6be498;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.result-whatsapp-btn:hover { transform: translateY(-2px); background: rgba(37, 211, 102, 0.17); }
.result-whatsapp-btn[hidden] { display: none; }
.result-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.result-contact-actions .result-whatsapp-bottom { margin: 0; }
.result-viber-btn { border-color: rgba(115, 96, 242, 0.48); background: rgba(115, 96, 242, 0.14); color: #b8adff; }
.result-viber-btn:hover { background: rgba(115, 96, 242, 0.24); }

/* ===== REMAP PROCESS & ATV PROGRAM ===== */
.process-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 45%, rgba(0, 110, 255, 0.1), transparent 30%),
    radial-gradient(circle at 88% 55%, rgba(255, 75, 20, 0.09), transparent 28%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  position: relative;
  min-height: 245px;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(24, 29, 36, 0.98), rgba(13, 17, 22, 0.98));
}

.process-number {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  color: rgba(255, 255, 255, 0.1);
  font-size: 2.2rem;
  font-weight: 900;
}

.process-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 82, 20, 0.35);
  border-radius: 11px;
  background: rgba(255, 82, 20, 0.1);
  color: var(--accent-orange);
  font-size: 1.25rem;
  font-weight: 800;
}

.process-card h3 { margin-bottom: 0.7rem; color: var(--text-primary); font-size: 1.05rem; }
.process-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

.atv-program-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 82, 20, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(48, 25, 20, 0.94), rgba(16, 20, 26, 0.98) 52%, rgba(12, 28, 43, 0.96));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

.atv-program-label { color: var(--accent-orange); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.16em; }
.atv-program-copy h3 { max-width: 760px; margin: 0.65rem 0 0.8rem; color: var(--text-primary); font-size: clamp(1.4rem, 2.5vw, 2.15rem); line-height: 1.15; }
.atv-program-copy p { max-width: 820px; color: var(--text-secondary); line-height: 1.65; }
.atv-program-points { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin-top: 1.2rem; color: var(--text-primary); font-size: 0.86rem; }
.atv-program-points li::before { content: "✓"; margin-right: 0.45rem; color: var(--accent-green); font-weight: 900; }
.atv-program-action { display: grid; justify-items: center; gap: 1.25rem; }
.atv-program-mark { color: rgba(255, 255, 255, 0.08); font-size: clamp(4rem, 8vw, 7rem); font-weight: 950; font-style: italic; line-height: 0.8; }

.stage-comparison {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 21, 0.82);
}

.stage-comparison-head h3, .faq-heading h3 {
  margin: 0.75rem 0 0.55rem;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.stage-comparison-head p { color: var(--text-secondary); line-height: 1.6; }
.stage-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.stage-compare-card { padding: 1.25rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card); }
.stage-compare-card.recommended { border-color: rgba(255, 82, 20, 0.38); background: linear-gradient(145deg, rgba(52, 25, 19, 0.7), var(--bg-card)); }
.stage-compare-tag { color: var(--accent-orange); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.11em; }
.stage-compare-card h4 { margin: 0.55rem 0 0.8rem; color: var(--text-primary); font-size: 1.35rem; }
.stage-compare-card li { position: relative; margin-top: 0.55rem; padding-left: 1.1rem; color: var(--text-secondary); font-size: 0.84rem; line-height: 1.45; }
.stage-compare-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-green); font-weight: 900; }

.faq-block { margin-top: 1.25rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: rgba(13, 17, 22, 0.9); }
.faq-heading { margin-bottom: 1.2rem; text-align: center; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
.faq-grid details { border: 1px solid var(--border-color); border-radius: 11px; background: rgba(255, 255, 255, 0.025); }
.faq-grid summary { position: relative; padding: 1rem 2.8rem 1rem 1rem; color: var(--text-primary); font-size: 0.9rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); color: var(--accent-orange); font-size: 1.2rem; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { padding: 0 1rem 1rem; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; }

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 1.4rem;
}

.contact-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 750;
}

.contact-quick-link:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.contact-quick-link.whatsapp { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.1); color: #65df91; }
.contact-quick-link.viber { border-color: rgba(115, 96, 242, 0.42); background: rgba(115, 96, 242, 0.12); color: #b8adff; }

@media (max-width: 980px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-comparison { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .process-grid, .atv-program-banner, .stage-compare-grid, .faq-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; }
  .atv-program-action { justify-items: start; }
  .atv-program-mark { display: none; }
}

/* ===== 3D MAP SECTION ===== */
.map3d-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.map3d-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.map3d-control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.map3d-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.map3d-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-orange);
}

.map3d-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-blue);
}

.map3d-info-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.glow-indicator {
  width: 8px; height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.plotly-container {
  width: 100%;
  height: 520px;
  background: var(--bg-darker);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map3d-demo-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 92, 26, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 74, 18, 0.1), rgba(255, 74, 18, 0.025));
}

.map3d-demo-banner[hidden] {
  display: none;
}

.map3d-demo-banner strong,
.map3d-demo-banner span {
  display: block;
}

.map3d-demo-banner strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 0.12rem;
}

.map3d-demo-banner span {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.map3d-demo-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 14px rgba(255, 82, 20, 0.75);
}

.map3d-wrapper.is-demo .glow-indicator {
  background-color: #69737e;
  box-shadow: none;
}

.map3d-wrapper.is-demo .plotly-container {
  filter: saturate(0.55);
}

.map3d-info-badge strong {
  color: var(--text-primary);
}

.map-metric-controls {
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.metric-btn.active {
  background: linear-gradient(135deg, #ff3434, #c51313);
  border-color: #ff3434;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 43, 43, 0.18);
}

@media (max-width: 900px) {
  .map3d-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-metric-controls {
    padding-left: 0;
    border-left: 0;
  }
}

.stage-tab:disabled,
.map3d-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(1);
}

.map3d-disclaimer {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.remap-risk-notice {
  margin-top: 1.25rem;
  padding: 1.05rem 1.15rem;
  color: var(--text-secondary);
  background: rgba(255, 164, 28, 0.055);
  border: 1px solid rgba(255, 164, 28, 0.24);
  border-radius: var(--radius-md);
}

.map3d-vehicle-title {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.map3d-axis-key {
  display: none;
}

.remap-risk-notice summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.remap-risk-notice summary::-webkit-details-marker { display: none; }

.risk-notice-toggle {
  color: #f4a62a;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.remap-risk-notice[open] .risk-notice-toggle { transform: rotate(45deg); }

.risk-notice-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #16100a;
  background: #f4a62a;
  border-radius: 50%;
  font-weight: 900;
}

.remap-risk-notice strong {
  display: block;
  margin: 0;
  color: #f1f3f5;
  font-size: 0.9rem;
}

.remap-risk-notice p {
  margin: 1rem 0 0 46px;
  font-size: 0.8rem;
  line-height: 1.65;
}

.risk-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  color: var(--text-secondary);
  background: rgba(255, 164, 28, 0.045);
  border: 1px solid rgba(255, 164, 28, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  line-height: 1.55;
  cursor: pointer;
}

.risk-consent input {
  width: 17px;
  height: 17px;
  margin-top: 0.1rem;
  accent-color: var(--accent-orange);
}

/* ===== WORKSHOP SECTION ===== */
.workshop-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.workshop-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.autotuner-assurance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: -0.35rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 85, 0, 0.1), rgba(255, 85, 0, 0.025));
}

.autotuner-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-orange), #c92d00);
  border-radius: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 24px rgba(255, 85, 0, 0.2);
}

.autotuner-assurance strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.autotuner-assurance p {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.turnaround-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.turnaround-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.turnaround-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.workshop-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.workshop-features li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workshop-features li::before {
  content: "⚡";
  font-size: 0.85rem;
}

.workshop-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecu-hardware-graphic {
  width: 100%;
  max-width: 320px;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-orange);
  position: relative;
}

.ecu-chip {
  position: relative;
}

.chip-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.chip-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.pulse-green {
  width: 6px; height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3, .contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.25rem;
  background: var(--bg-input);
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.info-item p, .info-item a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.info-item a:hover {
  color: var(--accent-orange);
}

.calc-results.is-empty {
  display: none;
}

/* ===== GOOGLE REVIEWS ===== */
.google-reviews-strip {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(90deg, rgba(66, 133, 244, 0.06), rgba(234, 67, 53, 0.05), rgba(251, 188, 5, 0.05));
  border-block: 1px solid var(--border-color);
}

.google-reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.google-reviews-heading h2 {
  margin: .2rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.review-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.review-cards::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  padding: 1.35rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(13, 17, 23, .72);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.review-card-top span {
  color: #fbbc04;
  letter-spacing: .05em;
}

.review-card p {
  margin: .8rem 0;
  color: var(--text-primary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.review-card.is-expanded p {
  display: block;
  overflow: visible;
}

.review-expand {
  display: inline-flex;
  margin: 0 0 .75rem;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--accent-orange);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.review-card small {
  color: var(--text-muted);
}

.google-reviews-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.google-reviews-brand,
.google-reviews-score,
.google-reviews-copy {
  display: flex;
  align-items: center;
}

.google-reviews-brand {
  gap: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.google-g {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-size: 1.45rem;
  font-weight: 900;
}

.google-reviews-score {
  gap: 0.6rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
  white-space: nowrap;
}

.google-reviews-score strong {
  font-size: 1.7rem;
}

.google-stars {
  color: #fbbc04;
  letter-spacing: 0.08em;
}

.google-reviews-score > span:last-child,
.google-reviews-copy span {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.google-reviews-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.google-reviews-copy strong {
  font-size: 0.95rem;
}

.google-reviews-link {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-phone { display: none; }
  .recent-searches-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .google-reviews-inner {
    grid-template-columns: 1fr auto;
  }

  .google-reviews-copy {
    display: none;
  }
}

@media (max-width: 520px) {
  .recent-searches { margin-top: 1rem; padding: .85rem; border-radius: 15px; }
  .recent-searches-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
  .recent-search-item { flex: 0 0 78%; scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .google-reviews-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .review-cards {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .review-card {
    flex-basis: min(86vw, 340px);
    padding: 1rem;
  }

  .google-reviews-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }

  .google-reviews-brand,
  .google-reviews-score {
    justify-content: center;
  }

  .google-reviews-score {
    flex-wrap: wrap;
    padding: 0;
    border: 0;
  }

  .google-reviews-score > span:last-child {
    flex-basis: 100%;
  }

  .google-reviews-link {
    width: 100%;
  }
}

.instagram-icon {
  color: #fff;
  font-size: 1.65rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
  border-color: transparent;
}

.contact-quick-link.instagram,
.service-instagram-link {
  color: #fff;
  border-color: rgba(225, 48, 108, 0.5);
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.18), rgba(225, 48, 108, 0.18));
}

.contact-quick-link.instagram:hover,
.service-instagram-link:hover {
  border-color: #e1306c;
  color: #fff;
}

.service-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(225, 48, 108, 0.5);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.working-hours {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.working-hours h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.working-hours ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.working-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.working-hours li span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.map-embed-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-consent {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0,136,255,.08), rgba(255,85,0,.07)), var(--bg-darker);
}

.map-consent-copy {
  max-width: 430px;
  display: grid;
  justify-items: start;
  gap: .7rem;
}

.map-consent-copy span { color: var(--text-secondary); font-size: .9rem; }
.map-load-error { min-height: 300px; display: grid; place-items: center; color: var(--text-secondary); text-align: center; }
.services-legal-note { max-width: 850px; margin: 1.5rem auto 0; color: var(--text-muted); font-size: .82rem; text-align: center; }
.services-legal-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-alert.hidden {
  display: none;
}

.form-alert.success {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent-green);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(360px, 1.45fr) minmax(190px, .7fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-bottom: 3rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1.25rem;
}

.footer-links-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .3rem 0;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.1rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(255, 85, 0, .28);
  border-radius: 999px;
  color: var(--text-primary);
  background: rgba(255, 85, 0, .06);
  font-size: .86rem;
  font-weight: 700;
}

.footer-location span { color: var(--accent-orange); font-size: 1rem; }
.footer-location:hover { border-color: var(--accent-orange); color: #fff; }

.footer-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-page .site-footer {
  padding-top: 3rem;
}

.service-page .footer-inner {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {

  .hero-proofline { display: grid; gap: .5rem; text-align: left; }
  .google-review-actions { width: 100%; }
  .google-review-actions .btn { flex: 1 1 100%; text-align: center; }
  .service-page .site-footer {
    padding: 2.25rem 0 5.5rem;
  }

  .service-page .footer-inner {
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .service-page .footer-col h4 {
    margin-bottom: .75rem;
  }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .calc-selectors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .calc-details-grid {
    grid-template-columns: 1fr;
  }
  .workshop-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-card);
  }
  .main-nav.open {
    display: flex;
  }
  .burger {
    display: flex;
  }

  .header-inner .logo-image-link {
    width: 118px;
    height: 58px;
  }

  .header-inner .site-logo-image {
    width: 300px;
    max-width: none;
    transform: translate(-1px, -8px);
  }

  .footer-logo-link {
    max-width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0;
  }
  .hero-stat:nth-child(odd) {
    border-left: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 0.75rem;
  }

  .calculator-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .calc-results {
    padding: 1rem;
  }

  .result-summary,
  .result-intro,
  .engine-data-card {
    min-width: 0;
    max-width: 100%;
  }

  .vehicle-heading,
  .result-gain-copy {
    overflow-wrap: anywhere;
  }

  .header-actions .btn {
    display: none;
  }

  .price-tag-wrapper {
    display: inline-grid;
    gap: 0.35rem;
    align-items: start;
  }

  .price-label,
  .price-amount {
    white-space: nowrap;
  }
}

.form-submit-options { display: grid; gap: .75rem; }

/* ===== FINAL RESPONSIVE POLISH ===== */
.service-feature-photo,
.workshop-gallery-item {
  background: #0a0f15;
}

.service-feature-photo img {
  width: 100%;
  height: auto;
  min-height: 0 !important;
  max-height: 580px;
  object-fit: contain;
  object-position: center;
}

.workshop-gallery-item img {
  object-fit: contain;
  object-position: center;
}

.result-whatsapp-bottom {
  width: fit-content;
  margin: 1rem auto 0;
}

.partner-cta-btn {
  width: auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.35rem;
    padding-bottom: 2.5rem;
  }

  .hero .eyebrow {
    margin-bottom: 1rem;
  }

  .hero .hero-subtitle {
    margin-bottom: 1.65rem;
  }

  .hero .hero-cta {
    margin-bottom: 2rem;
  }

  .hero .hero-stat {
    min-height: 92px;
    padding: .35rem .55rem;
  }

  .service-hero-content {
    padding-top: 3rem;
  }

  .partner-hero {
    padding-top: 3rem;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-cta .btn,
  .service-hero-actions .btn,
  .service-contact-actions .btn,
  .workshop-cta .btn {
    width: auto;
    min-width: 0;
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
  }

  .hero-cta .btn {
    flex: 0 1 168px;
  }

  .map3d-wrapper {
    padding: 0.8rem;
  }

  .map3d-controls,
  .map3d-control-group {
    gap: 0.45rem;
  }

  .map3d-btn {
    min-height: 40px;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
  }

  .plotly-container {
    height: 350px;
    min-height: 350px;
  }

  .map3d-vehicle-title {
    display: block;
    padding: 0 0.15rem;
    font-size: 0.82rem;
  }

  .map3d-axis-key {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
  }

  .map3d-axis-key span::before {
    content: '•';
    margin-right: 0.3rem;
    color: var(--accent-blue);
  }

  .map3d-control-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .map3d-info-badge {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .result-whatsapp-bottom {
    width: 100%;
    margin-top: 1rem;
    padding: 0.78rem 0.9rem;
    font-size: 0.88rem;
    text-align: center;
  }

  .result-contact-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }

  .service-feature-photo,
  .service-feature-photo img {
    min-height: 0 !important;
  }

  .service-feature-photo img {
    max-height: 440px;
  }

  .workshop-gallery {
    grid-auto-rows: auto;
  }

  .workshop-gallery-item,
  .workshop-gallery-featured {
    min-height: 0;
    aspect-ratio: auto;
  }

  .workshop-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 440px;
  }

  .mobile-action-bar {
    min-height: 58px;
    padding: 0.45rem 0.55rem;
  }

  .mobile-action-bar a {
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ===== PARTNER LANDING PAGE ===== */
.partner-page { background: var(--bg-dark); }
.partner-main { overflow: hidden; }
.partner-hero { position: relative; padding: 10rem 0 6rem; text-align: center; }
.partner-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, rgba(0,136,255,.15), transparent 38%), radial-gradient(circle at 80% 30%, rgba(255,74,0,.16), transparent 34%); pointer-events: none; }
.partner-hero .container { position: relative; }
.partner-hero h1 { max-width: 920px; margin: 1rem auto; font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: .98; letter-spacing: -.05em; }
.partner-hero p { max-width: 720px; margin: 0 auto 2rem; color: var(--text-secondary); font-size: 1.1rem; }
.partner-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.partner-card, .partner-step, .partner-form-card { padding: 1.6rem; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); }
.partner-card span { color: var(--accent-orange); font-weight: 800; font-size: .78rem; letter-spacing: .12em; }
.partner-card h3 { margin: .65rem 0; }
.partner-card p, .partner-step p { color: var(--text-secondary); }
.partner-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: partnerstep; }
.partner-step::before { counter-increment: partnerstep; content: '0' counter(partnerstep); display: block; margin-bottom: 1rem; color: var(--accent-orange); font-size: 1.4rem; font-weight: 900; }
.partner-form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.partner-form-copy p { color: var(--text-secondary); }
.partner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.partner-form .form-group-full { grid-column: 1 / -1; }
.partner-form input, .partner-form select, .partner-form textarea { width: 100%; min-height: 50px; padding: .85rem 1rem; color: var(--text-primary); background: #0b1016; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.partner-form textarea { min-height: 130px; resize: vertical; }
.partner-form label { display: block; margin-bottom: .45rem; color: var(--text-secondary); font-size: .84rem; font-weight: 700; }
.partner-note { margin-top: 1rem; color: var(--text-muted); font-size: .82rem; }
@media (max-width: 900px) { .partner-grid, .partner-process { grid-template-columns: 1fr 1fr; } .partner-form-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .partner-hero { padding: 8rem 0 4rem; } .partner-grid, .partner-process, .partner-form { grid-template-columns: 1fr; } .partner-form .form-group-full { grid-column: auto; } .partner-actions .btn { width: auto; min-height: 46px; padding: .75rem 1rem; font-size: .9rem; } }

/* ===== MS CALCULATOR RESULT V2 ===== */
.stage2-inquiry[hidden] {
  display: none;
}

.stage2-inquiry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(255, 43, 43, 0.16), transparent 24rem), #11151a;
  border: 1px solid rgba(255, 57, 57, 0.28);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.stage2-inquiry-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: linear-gradient(145deg, #ff3939, #a90000);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(255, 43, 43, 0.25);
}

.stage2-inquiry h3 {
  margin: 0.55rem 0 0.8rem;
  color: #f5f6f8;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}

.stage2-inquiry p {
  max-width: 900px;
  color: #aeb4bd;
  line-height: 1.7;
}

.stage2-inquiry ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
  margin: 1.35rem 0 1.6rem;
}

.stage2-inquiry li {
  position: relative;
  padding-left: 1.3rem;
  color: #d5d8dd;
  font-size: 0.88rem;
  line-height: 1.55;
}

.stage2-inquiry li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff4444;
  font-weight: 900;
}

.stage2-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calculator-card {
  overflow: hidden;
}

.calc-results {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 43, 43, 0.09), transparent 28rem),
    linear-gradient(135deg, #171b21 0%, #101318 55%, #0c0f13 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.calc-results::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: -230px;
  border: 70px solid rgba(255, 52, 52, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.result-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.result-intro {
  position: relative;
  padding: 1rem 0;
}

.result-brand-mark {
  position: relative;
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  overflow: visible;
}

.result-brand-mark[hidden] { display: none; }
.result-brand-mark img { display: none; width: auto; height: auto; max-width: 58px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 0 0.7px rgba(255, 255, 255, 0.85)); }
.result-brand-mark.has-logo img { display: block; }
.result-brand-mark.has-logo span { display: none; }
.result-brand-mark span { color: #d8dde5; font-size: 1rem; font-weight: 900; letter-spacing: -0.06em; }

.result-kicker,
.spec-label {
  display: block;
  color: #ff3838;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vehicle-heading {
  max-width: 720px;
  margin: 0.75rem 0 1.25rem;
  color: #f6f7f9;
  font-size: clamp(1.7rem, 3.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.result-gain-copy {
  margin: 0;
  color: #f0f2f5;
  font-size: clamp(1.45rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.result-gain-copy strong {
  color: #ff3434;
  font-size: inherit;
  font-weight: 800;
}

.price-tag-wrapper {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.price-amount {
  color: #fff;
  font-size: 1.35rem;
}

.engine-data-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(9, 11, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.engine-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.engine-card-header h4 {
  margin: 0.55rem 0 0;
  color: #f4f5f7;
  font-size: 1.15rem;
  line-height: 1.35;
}

.fuel-badge {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  color: #c9cdd4;
  background: #20242a;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.performance-box {
  padding: 1.05rem;
  background: #181c21;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 12px;
}

.performance-box .spec-label,
.engine-spec-grid .spec-label {
  color: #858b95;
  letter-spacing: 0.1em;
}

.performance-box p {
  margin: 0.65rem 0 0.85rem;
  color: #f4f5f7;
  font-size: 0.95rem;
}

.performance-box p span {
  color: #747b85;
  font-size: 0.78rem;
}

.performance-box .bar-container {
  height: 7px;
  background: #2a2e35;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.performance-box .bar-stock {
  background: linear-gradient(90deg, #536274, #6686aa);
  border-radius: 999px 0 0 999px;
}

.performance-box .bar-tuned {
  background: linear-gradient(90deg, #ff7a18, #ff3038);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 12px rgba(255, 79, 30, 0.42);
}

.bar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.48rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bar-legend span {
  color: #8293a8;
}

.bar-legend strong {
  color: #ff6747;
  font-size: 0.74rem;
}

.engine-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
}

.engine-spec-grid strong {
  display: block;
  margin-top: 0.42rem;
  color: #eef0f3;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.calc-details-grid {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

.calc-results.is-empty .result-gain-copy,
.calc-results.is-empty .price-tag-wrapper,
.calc-results.is-empty .calc-details-grid {
  opacity: 0.4;
}

.stage-tab:disabled,
.map3d-btn:disabled {
  opacity: 0.35;
}

@media (max-width: 1024px) {
  .result-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .stage2-inquiry {
    grid-template-columns: 1fr;
  }

  .stage2-inquiry ul {
    grid-template-columns: 1fr;
  }

  .stage-selector-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .stage-tabs,
  .stage-tab {
    width: 100%;
  }

  .performance-grid,
  .engine-spec-grid {
    grid-template-columns: 1fr;
  }

  .engine-card-header {
    flex-direction: column;
  }
}



/* ===== CUSTOM BRAND DROPDOWN WITH REAL LOGOS ===== */
.custom-brand-select {
  position: relative;
  width: 100%;
}

.custom-brand-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-align: left;
  font-family: inherit;
  min-width: 0;
  white-space: nowrap;
}

.custom-brand-trigger > span:not(.brand-logo-plate):not(.custom-brand-arrow) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-brand-trigger:hover {
  border-color: var(--accent-orange);
}

.custom-brand-arrow {
  margin-left: auto;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.custom-brand-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: none;
}

.custom-brand-dropdown-list.open {
  display: block;
}

.custom-brand-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 22, 28, 0.98);
}

.custom-brand-search {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
}

.custom-brand-search:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(255, 82, 20, 0.1); }
.custom-brand-option[hidden] { display: none; }

.custom-brand-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text-primary);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
}

.custom-brand-option:hover,
.custom-brand-option:focus-visible {
  background-color: var(--bg-card-hover);
  color: var(--accent-orange);
  outline: none;
}

.brand-logo-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  overflow: visible;
}

.brand-logo-plate img { display: none; width: auto; height: auto; max-width: 28px; max-height: 28px; object-fit: contain; filter: drop-shadow(0 0 0.65px rgba(255, 255, 255, 0.9)); opacity: 1; }
.brand-logo-plate.has-logo img { display: block; }
.brand-logo-plate.has-logo .brand-logo-fallback { display: none; }
.brand-logo-fallback { color: #cfd5dd; font-size: 0.68rem; font-weight: 900; letter-spacing: -0.04em; }

@media (max-width: 640px) {
  .result-brand-mark { width: 54px; height: 54px; }
  .result-brand-mark img { max-width: 48px; max-height: 48px; }
}

/* ===== AUTOSERVIS GATEWAY + DEDICATED LANDING PAGE ===== */
.autoservice-gateway {
  padding-bottom: 6rem;
}

.autoservice-gateway .autoservice-showcase {
  min-height: 540px;
  background: #12171e;
}

.autoservice-main-photo-full {
  object-position: center 52%;
}

.autoservice-gateway .autoservice-photo-wrap,
.autoservice-gateway .autoservice-copy {
  background: #12171e;
}

.autoservice-gateway .autoservice-photo-shade {
  background: none;
}

.autoservice-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0.2rem;
}

.autoservice-quick-list span {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 75, 0, 0.28);
  border-radius: 999px;
  color: #d7dde5;
  background: rgba(255, 75, 0, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-page {
  background: #090e14;
}

.service-page .site-header {
  background: rgba(9, 14, 20, 0.94);
  backdrop-filter: blur(18px);
}

.service-page section[id] {
  scroll-margin-top: 88px;
}

.service-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.service-hero-media,
.service-hero-overlay {
  position: absolute;
  inset: 0;
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.76) contrast(1.08) brightness(0.62);
}

.service-hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.97) 0%, rgba(5, 9, 14, 0.82) 42%, rgba(5, 9, 14, 0.18) 76%),
    linear-gradient(180deg, rgba(5, 9, 14, 0.08) 55%, #090e14 100%);
}

.service-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.service-hero h1 {
  max-width: 850px;
  margin: 1.4rem 0 1.25rem;
  color: #f6f7f9;
  font-size: clamp(3rem, 6.4vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.service-hero-content > p {
  max-width: 650px;
  color: #b7c0cc;
  font-size: 1.08rem;
  line-height: 1.75;
}

.service-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
}

.service-hero-points span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #d4dae2;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.service-hero-points span:first-child {
  padding-left: 0;
  border-left: 0;
}

.service-detail-section {
  padding: 7rem 0;
  background: #090e14;
}

.service-detail-alt {
  background:
    radial-gradient(circle at 12% 54%, rgba(22, 89, 142, 0.14), transparent 34%),
    #0c1219;
}

.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}

.service-split-reverse .service-split-copy {
  order: 2;
}

.service-split-reverse .service-feature-photo {
  order: 1;
}

.service-split-copy h2,
.service-contact-card h2 {
  margin: 1rem 0 1.15rem;
  color: #f6f7f9;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.service-split-copy > p,
.service-contact-card p {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.service-feature-grid article {
  min-height: 126px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #121820;
}

.service-feature-grid strong,
.service-feature-grid span {
  display: block;
}

.service-feature-grid strong {
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: 0.96rem;
}

.service-feature-grid span {
  color: #8f9aaa;
  font-size: 0.8rem;
  line-height: 1.55;
}

.service-feature-photo {
  position: relative;
  min-height: 570px;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
}

.service-feature-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 7, 10, 0.88));
}

.service-feature-photo img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  display: block;
  object-fit: cover;
}

.service-feature-photo-moto img {
  object-position: 52% center;
}

.service-feature-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.35rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-feature-photo figcaption span {
  display: block;
  margin-top: 0.35rem;
  color: #aeb8c5;
  font-weight: 500;
  letter-spacing: normal;
}

.service-check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.service-check-list li {
  position: relative;
  padding: 1rem 1.1rem 1rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #cbd2dc;
  background: rgba(19, 25, 33, 0.72);
  font-size: 0.88rem;
}

.service-check-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 0.87rem;
  color: #ff4b00;
  font-weight: 900;
}

.ecu-recovery-section {
  padding: 7rem 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 52, 52, 0.1), transparent 32%),
    #090d12;
}

.recovery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.recovery-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  background: #11171e;
}

.recovery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recovery-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 7, 10, 0.9));
}

.recovery-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  color: #edf1f5;
  font-size: 0.8rem;
  font-weight: 700;
}

.recovery-process {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #121820;
}

.recovery-kicker {
  color: #ff5030;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.recovery-process ol {
  counter-reset: recovery;
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
}

.recovery-process li {
  counter-increment: recovery;
  position: relative;
  min-height: 84px;
  padding: 0.1rem 0 1rem 3.1rem;
}

.recovery-process li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 35px;
  bottom: 0;
  width: 1px;
  background: #303944;
}

.recovery-process li::before {
  content: counter(recovery, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 75, 0, 0.46);
  border-radius: 50%;
  color: #ff5a23;
  background: #171d25;
  font-size: 0.68rem;
  font-weight: 800;
}

.recovery-process strong,
.recovery-process span {
  display: block;
}

.recovery-process strong {
  color: #fff;
  font-size: 0.9rem;
}

.recovery-process span {
  margin-top: 0.3rem;
  color: #8894a3;
  font-size: 0.76rem;
  line-height: 1.45;
}

.recovery-note {
  padding: 1rem;
  border-left: 2px solid #ff4b00;
  color: #9da7b4;
  background: rgba(255, 75, 0, 0.055);
  font-size: 0.76rem;
  line-height: 1.55;
}

.service-work-gallery {
  padding: 7rem 0;
  background: #0c1219;
}

.service-contact-section {
  padding: 6rem 0;
  background: #090e14;
}

.service-contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(255, 75, 0, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 75, 0, 0.14), transparent 34%),
    #121820;
}

.service-contact-actions {
  display: grid;
  gap: 0.75rem;
}

.service-contact-actions .btn {
  width: 100%;
}

.service-location-link {
  padding-top: 0.7rem;
  color: #9eabb9;
  font-size: 0.8rem;
  text-align: center;
}

.service-location-link:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .service-split {
    grid-template-columns: 1fr 0.86fr;
    gap: 2rem;
  }

  .recovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recovery-process {
    grid-column: 1 / -1;
  }
}

/* Autoservice header must collapse before links become cramped on phones,
   large mobile viewports and small tablets. */
@media (max-width: 900px) {
  .service-page .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 14, 20, .98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .32);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }

  .service-page .main-nav.open { display: flex; }
  .service-page .main-nav .nav-link { padding: .72rem .25rem; }
  .service-page .main-nav .language-switch { align-self: flex-start; margin-top: .55rem; }
  .service-page .burger { display: flex; }
  .service-page .header-actions > .btn { display: none; }

  .service-page .service-hero { min-height: 700px; }
  .service-page .service-hero-content {
    width: 100%;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .service-page .service-hero h1 {
    max-width: 760px;
    font-size: clamp(2.75rem, 9vw, 4.9rem);
  }
}

@media (max-width: 768px) {
  .autoservice-gateway {
    padding-bottom: 4rem;
  }

  .autoservice-gateway .autoservice-showcase {
    min-height: auto;
  }

  .service-page .service-hero {
    min-height: 640px;
    align-items: start;
  }

  .service-hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 9, 14, 0.94), rgba(5, 9, 14, 0.46)),
      linear-gradient(180deg, rgba(5, 9, 14, 0.15) 45%, #090e14 100%);
  }

  .service-page .service-hero-content {
    padding-top: 3.25rem;
    padding-bottom: 5.25rem;
  }

  .service-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.6rem);
  }

  .service-hero-points {
    display: grid;
    gap: 0.55rem;
  }

  .service-hero-points span,
  .service-hero-points span:first-child {
    min-height: auto;
    padding: 0 0 0 0.9rem;
    border-left: 2px solid rgba(255, 75, 0, 0.7);
  }

  .service-detail-section,
  .ecu-recovery-section,
  .service-work-gallery {
    padding: 5rem 0;
  }

  .service-split,
  .service-contact-card {
    grid-template-columns: 1fr;
  }

  .service-split-reverse .service-split-copy,
  .service-split-reverse .service-feature-photo {
    order: initial;
  }

  .service-split-reverse .service-split-copy {
    order: 1;
  }

  .service-split-reverse .service-feature-photo {
    order: 2;
  }

  .service-feature-photo,
  .service-feature-photo img {
    min-height: 430px;
  }

  .recovery-grid {
    grid-template-columns: 1fr;
  }

  .recovery-process {
    grid-column: auto;
  }

  .recovery-photo {
    min-height: 400px;
  }
}

@media (max-width: 520px) {
  .service-page .service-hero { min-height: 620px; }

  .service-page .service-hero-content {
    padding-top: 2.75rem;
    padding-bottom: 5rem;
  }

  .remap-risk-notice { padding: .9rem; }
  .remap-risk-notice summary { gap: .75rem; }
  .remap-risk-notice p { margin-left: 0; }

  .service-hero-media img {
    object-position: 58% 62%;
  }

  .service-hero-content > p {
    font-size: 0.95rem;
  }

  .service-feature-grid {
    grid-template-columns: 1fr;
  }

  .service-feature-grid article {
    min-height: auto;
  }

  .service-feature-photo,
  .service-feature-photo img,
  .recovery-photo {
    min-height: 330px;
  }

  .recovery-process,
  .service-contact-card {
    padding: 1.35rem;
  }
}

@media (max-width: 1024px) {
  .autoservice-showcase {
    grid-template-columns: 1fr;
  }

  .autoservice-photo-wrap,
  .autoservice-main-photo {
    min-height: 480px;
  }

  .workshop-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .autoservice-section {
    padding-top: 4rem;
  }

  .autoservice-showcase {
    border-radius: 18px;
  }

  .autoservice-photo-wrap,
  .autoservice-main-photo {
    min-height: 360px;
  }

  .autoservice-photo-badge {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .autoservice-copy {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .autoservice-copy > h2 {
    font-size: 2rem;
  }

  .autoservice-grid {
    grid-template-columns: 1fr;
  }

  .autoservice-card {
    min-height: 0;
  }

  .autoservice-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .autoservice-phone {
    text-align: center;
  }

  .workshop-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .workshop-gallery-featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ===== DIJAGNOSTIKA, KODIRANJE & TERENSKI RAD ===== */
.service-one-place {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  background: #0d131a;
}

.service-one-place-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-one-place-inner > div {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem 2rem;
  border-left: 1px solid var(--border-color);
}

.service-one-place-inner > div:last-child {
  border-right: 1px solid var(--border-color);
}

.service-one-place-inner strong,
.service-one-place-inner span {
  display: block;
}

.service-one-place-inner strong {
  color: #f5f7fa;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.service-one-place-inner span {
  margin-top: 0.38rem;
  color: #818d9c;
  font-size: 0.75rem;
}

.diagnostics-coding-section {
  padding: 7rem 0;
  background:
    radial-gradient(circle at 84% 15%, rgba(16, 112, 190, 0.14), transparent 33%),
    linear-gradient(180deg, #0b1118, #090e14);
}

.diagnostics-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 2.75rem;
}

.diagnostics-intro h2 {
  max-width: 780px;
  margin: 1rem 0 0;
  color: #f5f7f9;
  font-size: clamp(2.35rem, 4.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.diagnostics-intro > p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.78;
}

.diagnostics-visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 285px);
  gap: 0.9rem;
}

.diagnostics-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  background: #111820;
}

.diagnostics-photo-wide {
  grid-row: 1 / span 2;
}

.diagnostics-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .75, .25, 1);
}

.diagnostics-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 6, 10, 0.93));
  pointer-events: none;
}

.diagnostics-photo:hover img {
  transform: scale(1.025);
}

.diagnostics-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.05rem;
}

.diagnostics-photo figcaption strong,
.diagnostics-photo figcaption span {
  display: block;
}

.diagnostics-photo figcaption strong {
  color: #fff;
  font-size: 0.95rem;
}

.diagnostics-photo figcaption span {
  margin-top: 0.28rem;
  color: #9ea9b7;
  font-size: 0.74rem;
}

.coding-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  margin-top: 1rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 75, 0, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 75, 0, 0.1), transparent 36%),
    #121820;
}

.coding-panel-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
}

.coding-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 75, 0, 0.55);
  border-radius: 50%;
  color: #ff5b22;
  font-size: 0.72rem;
  font-weight: 800;
}

.coding-kicker {
  color: #ff5a24;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.coding-panel h3 {
  margin: 0.55rem 0 0.7rem;
  color: #f7f8fa;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.coding-panel-heading p,
.coding-disclaimer {
  color: #929daa;
  font-size: 0.79rem;
  line-height: 1.62;
}

.coding-options {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.coding-options span {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.75rem 0.72rem 2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #c8d0da;
  background: rgba(8, 13, 18, 0.58);
  font-size: 0.75rem;
  font-weight: 600;
}

.coding-options span::before {
  content: '✓';
  position: absolute;
  left: 0.72rem;
  color: #ff5420;
  font-weight: 900;
}

.coding-disclaimer {
  grid-column: 2;
  margin-top: -1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.diagnostics-service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.diagnostics-service-cards article {
  min-height: 185px;
  padding: 1.35rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #11171e;
}

.diagnostics-service-cards article > span {
  color: #ff5822;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.diagnostics-service-cards h3 {
  margin: 1.6rem 0 0.55rem;
  color: #fff;
  font-size: 0.98rem;
}

.diagnostics-service-cards p {
  color: #8995a4;
  font-size: 0.77rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .service-one-place-inner,
  .diagnostics-service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-one-place-inner > div:nth-child(3) {
    border-top: 1px solid var(--border-color);
  }

  .service-one-place-inner > div:nth-child(4) {
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }

  .diagnostics-intro,
  .coding-panel {
    grid-template-columns: 1fr;
  }

  .coding-disclaimer {
    grid-column: 1;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .diagnostics-coding-section {
    padding: 5rem 0;
  }

  .service-one-place-inner > div {
    min-height: 96px;
    padding: 1rem;
  }

  .diagnostics-intro {
    gap: 1.25rem;
  }

  .diagnostics-visual-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 250px 250px;
  }

  .diagnostics-photo-wide {
    grid-row: auto;
  }

  .coding-options,
  .diagnostics-service-cards {
    grid-template-columns: 1fr;
  }

  .diagnostics-service-cards article {
    min-height: auto;
  }

  .diagnostics-service-cards h3 {
    margin-top: 1rem;
  }
}

@media (max-width: 420px) {
  .service-one-place-inner {
    grid-template-columns: 1fr;
  }

  .service-one-place-inner > div,
  .service-one-place-inner > div:nth-child(2) {
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
  }

  .service-one-place-inner > div:first-child {
    border-top: 0;
  }

  .diagnostics-visual-grid {
    grid-template-rows: 300px 220px 220px;
  }

  .coding-panel-heading {
    grid-template-columns: 1fr;
  }
}

/* ===== FINAL UX & ACCESSIBILITY POLISH ===== */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 85, 0, 0.55);
  outline-offset: 3px;
}

.burger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.filter-btn {
  min-height: 44px;
}

.service-link {
  min-height: 44px;
  width: 100%;
}

.risk-consent[hidden] {
  display: none;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .section {
    padding-block: 4.25rem;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 13, 18, 0.96);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .mobile-action-viber { background: #7360f2; border-color: #7360f2 !important; }

  .mobile-action-whatsapp {
    border-color: #18a957 !important;
    background: #128c4a;
    box-shadow: 0 0 18px rgba(18, 140, 74, 0.25);
  }

  .mobile-action-call {
    background: #171d25;
  }

  .main-nav.open .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .services-filter {
    gap: 0.55rem;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 136, 255, 0.14), transparent 34%),
    radial-gradient(circle at 78% 35%, rgba(255, 74, 0, 0.13), transparent 32%),
    var(--bg-dark);
}

.error-page-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  text-align: center;
  overflow: hidden;
}

.error-page-main::before {
  content: '';
  position: absolute;
  width: min(900px, 92vw);
  height: min(650px, 84vh);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(30,43,58,.88), rgba(27,22,28,.9));
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.error-page-logo {
  width: min(290px, 72vw);
  margin-bottom: 2.5rem;
}

.error-page-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.error-code-mark {
  position: absolute;
  z-index: 0;
  font-size: clamp(12rem, 34vw, 34rem);
  line-height: 0.8;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  user-select: none;
}

.error-page-main > *:not(.error-code-mark) {
  position: relative;
  z-index: 1;
}

.error-page-main h1 {
  margin: 1.25rem 0 0.8rem;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
}

.error-page-main > p {
  max-width: 610px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.error-page-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.error-page-contact {
  margin-top: 2rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.error-page-contact a:hover {
  color: var(--accent-orange);
}

/* ===== LEGAL & LANGUAGE PAGES ===== */
.legal-page { background: linear-gradient(145deg, #101a25, #171217 58%, #0d1117); }
.legal-main { min-height: 100vh; padding: 9rem 0 5rem; }
.legal-card { max-width: 920px; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--border-color); border-radius: 24px; background: rgba(13,17,23,.9); box-shadow: var(--shadow-card); }
.legal-card h1 { margin: .5rem 0; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.legal-card h2 { margin: 2.1rem 0 .55rem; font-size: 1.35rem; }
.legal-card p { margin-bottom: 1rem; color: var(--text-secondary); }
.legal-card a:not(.btn) { color: #65b6ff; text-decoration: underline; text-underline-offset: 3px; }

/* SEO service landing pages: DPF, EGR and AdBlue/SCR */
.emission-page { background: var(--bg-dark); color: var(--text-primary); }
.emission-main { padding-top: var(--header-height); }
.emission-hero { padding: clamp(3rem, 7vw, 6.5rem) 0 3rem; }
.emission-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.emission-hero h1 { margin: 1rem 0 1.25rem; max-width: 780px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.055em; }
.emission-hero-copy > p { max-width: 720px; color: var(--text-secondary); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.emission-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.emission-hero-media { position: relative; overflow: hidden; min-height: 520px; border: 1px solid var(--border-color); border-radius: 28px; background: var(--bg-card); box-shadow: var(--shadow-card); }
.emission-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emission-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(4,8,13,.88)); pointer-events: none; }
.emission-photo-label { position: absolute; z-index: 1; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; margin: 0; color: #fff; font-weight: 750; }
.emission-trust { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.emission-trust span { padding: .55rem .8rem; border: 1px solid rgba(255,79,16,.35); border-radius: 999px; background: rgba(255,79,16,.07); color: var(--text-secondary); font-size: .88rem; font-weight: 650; }
.emission-content { padding: 3rem 0 clamp(4rem, 8vw, 7rem); }
.emission-section { max-width: 1120px; margin: 0 auto 4rem; }
.emission-section-head { max-width: 760px; margin-bottom: 1.75rem; }
.emission-section h2 { margin: .65rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.04em; }
.emission-section-head p, .emission-card p, .emission-copy p, .emission-faq p { color: var(--text-secondary); line-height: 1.72; }
.emission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.emission-card { padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card); }
.emission-card h3 { margin: 0 0 .65rem; font-size: 1.15rem; }
.emission-card p { margin: 0; }
.emission-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.emission-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.emission-gallery figure { min-width: 0; overflow: hidden; margin: 0; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card); }
.emission-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.emission-gallery figcaption { padding: .75rem 1rem; color: var(--text-secondary); font-size: .88rem; }
.emission-checklist { display: grid; gap: .75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.emission-checklist li { position: relative; padding-left: 1.7rem; color: var(--text-secondary); }
.emission-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-orange); font-weight: 800; }
.emission-faq { display: grid; gap: .75rem; }
.emission-faq details { padding: 1.1rem 1.25rem; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-card); }
.emission-faq summary { cursor: pointer; font-weight: 750; }
.emission-faq p { margin: .8rem 0 0; }
.emission-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.emission-related a { display: block; padding: 1.3rem; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-card); color: var(--text-primary); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.emission-related a:hover { transform: translateY(-2px); border-color: rgba(255,79,16,.6); }
.emission-related strong { display: block; margin-bottom: .3rem; }
.emission-related span { color: var(--text-secondary); font-size: .9rem; }
.emission-note { margin-top: 1.25rem; padding: 1rem 1.15rem; border-left: 3px solid var(--accent-orange); background: rgba(255,79,16,.06); color: var(--text-secondary); font-size: .92rem; line-height: 1.65; }
@media (max-width: 1100px) {
  .emission-hero-grid, .emission-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .emission-hero-media { min-height: 430px; }
  .emission-grid, .emission-related { grid-template-columns: 1fr; }
  .emission-gallery { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .emission-gallery img { width: 100%; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover; }
}
@media (max-width: 560px) {
  .emission-main { padding-top: 74px; }
  .emission-hero { padding: 2.35rem 0 1.75rem; }
  .emission-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .emission-hero-media { min-height: 360px; border-radius: 20px; }
  .emission-actions .btn { width: 100%; min-height: 50px; }
  .emission-content { padding-top: 2rem; }
}
.legal-updated { font-size: .85rem; }
.legal-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border-color); border-radius: 999px; background: rgba(255,255,255,.035); }
.language-option { min-width: 35px; padding: .3rem .55rem; border-radius: 999px; color: var(--text-secondary); font-size: .75rem; line-height: 1; font-weight: 800; text-align: center; }
.language-option:hover { color: var(--text-primary); }
.language-option.active { color: #fff; background: linear-gradient(135deg, var(--accent-orange), #e33b00); box-shadow: 0 4px 12px rgba(255,85,0,.25); }
.about-section { background: linear-gradient(180deg, rgba(0,136,255,.02), rgba(255,85,0,.035)); border-top: 1px solid var(--border-color); }
.parts-partner { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--border-color); background: #080d13; }
.parts-partner-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--border-color); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(0,136,255,.035)); box-shadow: var(--shadow-card); }
.parts-partner-copy h2 { margin: .7rem 0 .75rem; font-size: clamp(1.8rem, 3.3vw, 3rem); letter-spacing: -.035em; }
.parts-partner-copy p { max-width: 700px; margin: 0; color: var(--text-secondary); line-height: 1.7; }
.parts-partner-trust { display: inline-block; margin-top: 1rem; color: var(--text-primary); font-size: .84rem; font-weight: 750; letter-spacing: .025em; }
.parts-partner-logo { display: grid; place-items: center; min-height: 150px; padding: 1rem 1.25rem; border-radius: 18px; background: #f7f8fa; }
.parts-partner-logo img { display: block; width: min(100%, 360px); height: auto; }
@media (max-width: 760px) {
  .parts-partner-card { grid-template-columns: 1fr; text-align: center; }
  .parts-partner-copy p { margin-inline: auto; }
  .parts-partner-logo { min-height: 120px; }
  .parts-partner-logo img { width: min(82%, 320px); }
}
.about-layout { display: grid; grid-template-columns: minmax(120px, .32fr) minmax(0,1.68fr); gap: clamp(2rem,5vw,4.5rem); align-items: center; max-width: 1050px; }
.about-photo { overflow: hidden; min-height: 420px; border: 1px solid var(--border-color); border-radius: 24px; background: var(--bg-darker); }
.about-photo img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 64%; filter: saturate(.92) contrast(1.04) brightness(.88); }
.about-mark { width: clamp(116px, 14vw, 168px); aspect-ratio: 1; display: grid; place-content: center; gap: .15rem; border: 1px solid rgba(255,85,0,.3); border-radius: 28px; background: radial-gradient(circle at 38% 30%, rgba(255,85,0,.18), transparent 52%), #0d1218; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 20px 60px rgba(0,0,0,.25); transform: rotate(-3deg); }
.about-mark strong { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.09em; font-style: italic; color: #fff; }
.about-mark strong::first-letter { color: var(--accent-orange); }
.about-mark span { color: var(--accent-orange); font-size: .62rem; font-weight: 900; letter-spacing: .2em; text-align: center; }
.about-copy > p { margin-bottom: 1rem; color: var(--text-secondary); }
.about-points { display: grid; gap: .65rem; margin: 1.5rem 0; }
.about-points li { position: relative; padding-left: 1.45rem; color: var(--text-primary); font-weight: 650; }
.about-points li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-green); }
.english-hero { min-height: 680px; display: grid; align-items: center; }
.english-page .partner-form-card img { display: block; width: 100%; height: auto; margin-bottom: 1rem; border-radius: 12px; }

/* Balanced English landing spacing and calls to action. */
.english-page .english-hero {
  min-height: 610px;
  padding: 7rem 0 4.75rem;
}

.english-page .english-hero h1 { margin-top: .85rem; margin-bottom: 1.15rem; }
.english-page .english-hero p { margin-bottom: 1.65rem; }
.english-page .partner-actions { gap: .7rem; }
.english-page .partner-actions .btn-lg {
  min-height: 52px;
  padding: .85rem 1.45rem;
  font-size: .96rem;
}

.english-page .service-contact-actions .btn-lg {
  min-height: 50px;
  padding: .8rem 1.25rem;
  font-size: .94rem;
}

@media (max-width: 640px) {
  .legal-main { padding-top: 7rem; }
  .legal-card { border-radius: 0; border-left: 0; border-right: 0; }
  .error-page-actions { flex-direction: column; width: min(100%, 320px); }
  .error-page-actions .btn { width: 100%; }
  .error-page-main::before { height: 92vh; border-radius: 24px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-mark { width: 92px; border-radius: 20px; }
  .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .8rem; }
  .main-nav .language-switch { margin-top: .45rem; align-self: flex-start; }
  .english-page .english-hero {
    min-height: auto;
    padding: 3.8rem 0 3.25rem;
  }
  .english-page .english-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.75rem);
    line-height: 1.02;
    margin: .75rem auto 1rem;
  }
  .english-page .english-hero p {
    margin-bottom: 1.45rem;
    font-size: .98rem;
  }
  .english-page .partner-actions {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: .6rem;
  }
  .english-page .partner-actions .btn-lg {
    width: 100%;
    min-height: 46px;
    padding: .72rem .85rem;
    font-size: .84rem;
    line-height: 1.2;
  }
  .english-page .service-contact-actions {
    gap: .65rem;
  }
  .english-page .service-contact-actions .btn-lg {
    width: 100%;
    min-height: 46px;
    padding: .72rem 1rem;
    font-size: .88rem;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* Keep real workshop subjects fully visible after all legacy service rules. */
.service-feature-photo img,
.service-feature-photo-moto img {
  width: 100%;
  height: auto;
  min-height: 0 !important;
  max-height: 580px;
  object-fit: contain !important;
  object-position: center !important;
}

.workshop-gallery-item img {
  object-fit: cover !important;
  object-position: center !important;
}

.workshop-gallery-mechanics img {
  object-position: center 58% !important;
}

.workshop-gallery-finish img {
  object-position: center 52% !important;
}

@media (max-width: 640px) {
  .service-feature-photo,
  .service-feature-photo img,
  .service-feature-photo-moto img {
    min-height: 0 !important;
  }

  .service-feature-photo img,
  .service-feature-photo-moto img {
    max-height: 440px;
  }

  .workshop-gallery {
    grid-auto-rows: auto !important;
  }

  .workshop-gallery-item,
  .workshop-gallery-featured {
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .workshop-gallery-item img {
    width: 100%;
    height: 100% !important;
    max-height: none;
  }

  .workshop-gallery-item,
  .workshop-gallery-featured {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 520px) {
  .error-page-actions {
    width: 100%;
    flex-direction: column;
  }

  .error-page-actions .btn {
    width: 100%;
  }
}

/* Full, readable mobile brand lockup instead of cropping the wide desktop logo. */
@media (max-width: 768px) {
  .header-inner .logo-image-link {
    width: 180px !important;
    height: 68px !important;
    overflow: visible;
    display: flex;
    align-items: center;
  }

  .header-inner .site-logo-image {
    width: 180px !important;
    height: auto !important;
    max-width: 100%;
    transform: none !important;
    object-fit: contain;
  }

  .site-header,
  .header-inner {
    min-height: 76px;
  }
}

@media (max-width: 390px) {
  .header-inner .logo-image-link,
  .header-inner .site-logo-image {
    width: 168px !important;
  }
}

/* Sharper mechanics card: crop toward the engine instead of the underside of the hood. */
.service-feature-photo-mechanics {
  min-height: 520px;
  background: #080d13;
}

.service-feature-photo-mechanics img {
  width: 100%;
  height: 100% !important;
  min-height: 520px !important;
  max-height: none;
  object-fit: cover !important;
  object-position: center 58% !important;
  transform: none;
  filter: saturate(0.96) contrast(1.03) brightness(0.92);
}

.service-feature-photo-mechanics::after {
  background: linear-gradient(180deg, rgba(5, 9, 14, 0.04) 38%, rgba(4, 7, 10, 0.9) 100%);
}

.diagnostics-photo-autotuner img {
  object-position: center 55% !important;
  transform: none;
  transform-origin: center;
  filter: saturate(0.94) contrast(1.05) brightness(0.9);
}

@media (max-width: 640px) {
  .diagnostics-photo-autotuner img {
    object-position: center 55% !important;
    transform: none;
    transform-origin: center;
  }
}

@media (max-width: 640px) {
  .service-feature-photo-mechanics {
    min-height: 360px !important;
  }

  .service-feature-photo-mechanics img {
    height: 360px !important;
    min-height: 360px !important;
    object-position: center 58% !important;
    transform: none;
  }
}

/* Consistent first-screen spacing across all mobile landing pages. */
.service-hero-content .hero-cta {
  justify-content: flex-start;
  gap: 1rem;
  margin: 1.75rem 0 2.5rem;
}

.service-hero-content .hero-cta .btn {
  min-width: 182px;
  min-height: 54px;
  padding: 0.9rem 1.45rem;
}

@media (max-width: 640px) {
  .service-hero-content,
  .partner-hero {
    padding-top: 3rem;
  }

  .service-hero-content .hero-cta {
    margin-top: 1.5rem;
    margin-bottom: 2.25rem;
    gap: 0.8rem;
  }

  .service-hero-content .hero-cta .btn {
    flex: 1 1 145px;
    min-width: 0;
    min-height: 48px;
    padding: 0.72rem 0.85rem;
  }
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Keep the selected-vehicle result easier to scan on narrow phones. */
@media (max-width: 640px) {
  .result-intro { padding: .25rem 0; }
  .vehicle-heading {
    margin: .55rem 0 .7rem;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.08;
  }
  .result-gain-copy { font-size: clamp(1.2rem, 5.7vw, 1.6rem); }
  .price-tag-wrapper { margin-top: 1rem; }
  .engine-data-card { padding: 1rem; }
  .engine-card-header { gap: .35rem; margin-bottom: 1rem; }
  .performance-grid { gap: .65rem; margin-bottom: 1rem; }
  .performance-box { padding: .85rem; }
  .engine-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem .7rem;
  }
}
.result-share-btn{display:block;width:100%;margin-top:12px;padding:14px 18px;border:1px solid #4a5663;border-radius:12px;background:#202832;color:#e8edf2;font:inherit;font-weight:700;cursor:pointer}.result-share-btn:hover,.result-share-btn:focus-visible{border-color:#ff6a24;color:#fff}
.vehicle-pilot-links{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:16px auto 24px}.vehicle-pilot-links a{display:inline-block;padding:8px 12px;border:1px solid #39434e;border-radius:999px;background:#1b222a;color:#d9e2eb;text-decoration:none;font-size:.85rem}.vehicle-pilot-links a:hover,.vehicle-pilot-links a:focus-visible{border-color:#ff6a24;color:#fff}
@media (max-width: 640px){.vehicle-pilot-links{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;margin:14px -18px 22px;padding:0 18px 7px;scrollbar-width:none}.vehicle-pilot-links::-webkit-scrollbar{display:none}.vehicle-pilot-links a{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap}}
.calculator-discovery{margin-top:26px;display:grid;gap:18px}.calculator-discovery .recent-searches,.suggested-vehicles{margin:0;padding:20px;border:1px solid rgba(126,145,164,.24);border-radius:18px;background:rgba(16,22,29,.72)}.suggested-vehicles h3{margin:0 0 6px;color:#f3f6f9;font-size:1.05rem}.suggested-vehicles p{margin:0;color:#9eabb7;font-size:.9rem}.suggested-vehicles .vehicle-pilot-links{justify-content:flex-start;margin:15px 0 0}@media (min-width:900px){.calculator-discovery{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start}}@media (max-width:640px){.calculator-discovery{margin-top:18px}.calculator-discovery .recent-searches,.suggested-vehicles{padding:16px}.suggested-vehicles .vehicle-pilot-links{margin:12px -16px 0;padding-left:16px;padding-right:16px}}

.services-method-cta {
  justify-content: center;
  margin: 1.5rem 0 0;
}

.hero-copy-mobile { display: none; }

/* Mobile calculator flow: compact cards and remove the oversized gap before 3D preview. */
@media (max-width: 640px) {
  .giveaway-banner-inner { min-height: 64px; justify-content: flex-start; gap: .55rem; padding-right: 2.75rem; }
  .giveaway-copy { display: grid; grid-template-columns: auto 1fr; gap: .1rem .45rem; }
  .giveaway-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
  .giveaway-deadline { grid-column: 2; font-size: .7rem; }
  .giveaway-cta { padding: .45rem .58rem; font-size: .7rem; white-space: nowrap; }
  .giveaway-close { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); }
  .giveaway-banner.is-compact .giveaway-banner-inner { min-height: 38px; }
  .giveaway-banner.is-compact .giveaway-copy { display: flex; }
  .giveaway-banner.is-compact .giveaway-cta { margin-left: auto; }

  .hero-copy-desktop { display: none; }
  .hero-copy-mobile { display: inline; }

  .hero {
    padding-top: 1.8rem;
    padding-bottom: 2rem;
  }
  .hero .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto .8rem;
    padding: .58rem .78rem;
    font-size: .76rem;
    line-height: 1.25;
  }
  .hero .hero-title { margin-bottom: .85rem; }
  .hero .hero-subtitle {
    margin-bottom: 1.15rem;
    font-size: 1rem;
    line-height: 1.55;
  }
  .calculator-section {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
  }
  .calculator-discovery { gap: 14px; margin-top: 16px; }
  .calculator-discovery .recent-searches,
  .suggested-vehicles { padding: 14px; border-radius: 16px; }
  .recent-searches-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  .recent-search-item { min-width: 0; padding: 11px 12px; }
  .recent-search-item strong { -webkit-line-clamp: 2; font-size: .76rem; }
  .recent-search-item:nth-child(5):last-child { grid-column: 1 / -1; }
  .suggested-vehicles .vehicle-pilot-links {
    flex-wrap: wrap;
    overflow: visible;
    margin: 12px 0 0;
    padding: 0;
    gap: 8px;
  }
  .suggested-vehicles .vehicle-pilot-links a {
    white-space: normal;
    text-align: center;
  }
  .map3d-section { padding-top: 2.25rem; }
  .map3d-section .section-header { margin-bottom: 2rem; }

  .hero .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 1.2rem;
  }

  .hero .hero-cta .btn {
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
  }
  .hero .hero-cta .btn:nth-child(2) {
    order: -1;
    background: linear-gradient(135deg, #ff5712, #ff3d00);
    border-color: #ff5a18;
    color: #fff;
    box-shadow: 0 10px 28px rgba(255, 75, 8, .22);
  }
  .hero .hero-cta .btn:nth-child(1) {
    background: rgba(15, 22, 31, .62);
    border-color: rgba(141, 157, 176, .25);
  }
  .hero .hero-proofline {
    gap: .35rem;
    margin-top: 0;
    font-size: .84rem;
  }
  .hero .hero-proofline span { display: none; }
  .hero .hero-proofline span:first-of-type { display: inline; }

  .services-section { padding-bottom: 2rem; }
  .process-section { padding-top: 2.25rem; }
  .services-method-cta {
    display: flex;
    margin-top: 1.25rem;
    margin-bottom: 0;
  }
  .services-method-cta .btn {
    flex: 0 1 230px;
    min-height: 52px;
  }
}
