/* ======================================================
   MocneOpony.pl – Design System v2
   Automotive-Tech · Light Premium · High Clarity
   ====================================================== */


/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #FFFFFF;
  --surface:     #F8FAFC;
  --surface-2:   #F1F5F9;
  --border:      #E2E8F0;
  --border-2:    #CBD5E1;

  --ink:         #0F172A;
  --ink-2:       #334155;
  --ink-3:       #475569;    /* was #64748B – raised to 7:1 on white */
  --ink-4:       #64748B;    /* was #94A3B8 – raised to 4.5:1 on white */

  --blue:        #2563EB;
  --blue-d:      #1D4ED8;
  --blue-dd:     #1E40AF;
  --blue-l:      #EFF6FF;
  --blue-m:      #DBEAFE;

  --orange:      #F97316;
  --orange-d:    #EA580C;
  --orange-l:    #FFF7ED;

  --green:       #22C55E;
  --green-d:     #16A34A;

  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 2px 8px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 6px 24px rgba(15,23,42,.09), 0 2px 6px rgba(15,23,42,.05);
  --sh-lg: 0 16px 48px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.05);

  --w: 1180px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'Inter', ui-monospace, monospace;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --t: .2s var(--ease);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Page shell ─────────────────────────────────────── */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page {
  width: min(calc(100% - 48px), var(--w));
  margin: 0 auto;
  padding: 0 0 80px;
  flex: 1;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 0 0;
  height: 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.4px;
  flex-shrink: 0;
}

.brand img { height: 38px; width: auto; }

.brand-name { display: flex; align-items: baseline; gap: 1px; }
.brand-pl {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  padding-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-xs);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background var(--t), color var(--t);
}

.nav-link:hover { background: var(--surface-2); color: var(--ink); }

.nav-link-cta {
  background: var(--blue-l);
  color: var(--blue);
  border: 1px solid var(--blue-m);
}

.nav-link-cta:hover { background: var(--blue-m); color: var(--blue-d); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t);
}
.back-link:hover { border-color: var(--border-2); color: var(--ink); background: var(--surface-2); }

/* ── Hero (2-column) ────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  min-height: 480px;
  padding: 40px 0 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.8px;
  color: var(--ink);
  margin-bottom: 20px;
}

h1 em { font-style: normal; color: var(--blue); }

.hero-lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }
.stat-n {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
}
.stat span:last-child {
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: .5px;
  margin-top: 3px;
  font-weight: 500;
}
.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Hero visual ────────────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tire-wrap {
  position: relative;
  display: inline-flex;
}

.tire-svg {
  width: 340px;
  height: 340px;
  filter: drop-shadow(0 20px 48px rgba(37,99,235,.14)) drop-shadow(0 4px 12px rgba(15,23,42,.08));
  animation: tireRotate 28s linear infinite;
}

@keyframes tireRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.tire-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-4);
  text-transform: uppercase;
  white-space: nowrap;
}

.tire-label-top    { top: 0;   left: 50%; transform: translate(-50%, -28px); }
.tire-label-right  { right: 0; top: 50%; transform: translate(28px, -50%); writing-mode: vertical-lr; }

/* ── Buttons ────────────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: .1px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.30); }
.btn-primary:hover { background: var(--blue-d); box-shadow: 0 6px 22px rgba(37,99,235,.38); }

.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,.28); }
.btn-accent:hover { background: var(--orange-d); box-shadow: 0 6px 22px rgba(249,115,22,.36); }

.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-2); background: var(--surface); color: var(--ink); }

.btn-outline { background: var(--blue-l); color: var(--blue); border: 1.5px solid var(--blue-m); }
.btn-outline:hover { background: var(--blue-m); border-color: rgba(37,99,235,.3); }

.btn-wa { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(34,197,94,.25); }
.btn-wa:hover { background: var(--green-d); }

/* ── Section chrome ─────────────────────────────────── */
.section-pre {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-4);
}

.section-pre::before {
  content: attr(data-n);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

p {
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}
p:last-child { margin-bottom: 0; }

/* ── Divider ────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 56px 0; }

/* ── Card grid ──────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--t);
}

.card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
  transform: translateY(-3px);
}

.card:hover::after { background: var(--blue); }

.card-orange:hover::after { background: var(--orange); }

/* Card icon container */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-l);
  color: var(--blue);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 17px; margin-bottom: 8px; }
.card h2 { font-size: 18px; margin-bottom: 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--blue); }
.card p { font-size: 14px; color: var(--ink-3); }
.card ul { padding-left: 16px; margin-top: 8px; }
.card li { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 3px; }

/* ── Panel ──────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 20px;
}

.panel h2 { font-size: 22px; }
.panel p { font-size: 15px; }
.panel ul { padding-left: 20px; margin-top: 12px; }
.panel li { color: var(--ink-2); line-height: 1.8; font-size: 15px; margin-bottom: 6px; }

/* ── FAQ ────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }

.faq-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--sh-xs);
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item:hover { border-color: var(--blue-m); box-shadow: var(--sh-sm); }
.faq-item h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.faq-item p  { font-size: 14px; color: var(--ink-3); }

/* ── CTA panel ──────────────────────────────────────── */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dd) 0%, var(--blue) 60%, #3B82F6 100%);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  margin-top: 56px;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.cta-panel::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.cta-panel h2 { color: #fff; font-size: 32px; position: relative; z-index: 1; margin-bottom: 10px; }
.cta-panel p  { color: rgba(255,255,255,.78); font-size: 16px; max-width: 520px; margin: 0 auto 30px; position: relative; z-index: 1; }
.cta-panel .btn-row { justify-content: center; position: relative; z-index: 1; }

/* ── Contact card ───────────────────────────────────── */
.contact-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  box-shadow: var(--sh-lg);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-icon { font-size: 44px; margin-bottom: 14px; }
.contact-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  margin: 10px 0 18px;
  letter-spacing: -1px;
}

/* ── Links list ─────────────────────────────────────── */
.links-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.links-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
}

.links-list a::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
  transition: width var(--t);
}

.links-list a:hover::before { width: 26px; }
.links-list a:hover { text-decoration: underline; }

/* ── Page header subpages ──────────────────────────── */
.page-header { padding: 48px 0 0; margin-bottom: 48px; }
.page-header h1 { font-size: clamp(32px, 5vw, 50px); }
.page-lead { font-size: 17px; color: var(--ink-2); max-width: 720px; line-height: 1.8; margin: 0 0 30px; }

/* ── Inline link ─────────────────────────────────────  */
a.inl { color: var(--blue); font-weight: 600; text-decoration: none; }
a.inl:hover { text-decoration: underline; }

/* ── Dot-grid background ─────────────────────────────── */
.dot-bg {
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-4);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--ink-4); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }

/* ── WhatsApp float ─────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(34,197,94,.40);
  z-index: 9999;
  text-decoration: none;
  animation: waPulse 2.6s infinite;
  transition: transform var(--t);
}
.wa-float:hover { transform: scale(1.1); }

.wa-tooltip {
  position: absolute;
  right: 68px;
  background: var(--ink);
  color: #fff;
  padding: 7px 13px;
  border-radius: var(--r-xs);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(6px);
  transition: all .18s ease;
  white-space: nowrap;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.42); }
  70%  { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Overflow guard ──────────────────────────────────── */
html, body { overflow-x: hidden; }

/* ── Responsive — tablet (≤960px) ───────────────────── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding: 32px 0 40px;
  }
  .hero-visual { display: none; }

  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }

  .panel         { padding: 24px 20px; }
  .cta-panel     { padding: 40px 24px; }
  .contact-card  { padding: 36px 24px; }

  .topbar { height: auto; min-height: 64px; margin-bottom: 40px; flex-wrap: wrap; padding: 12px 0; }

  .divider { margin: 40px 0; }
}

/* ── Responsive — mobile (≤640px) ───────────────────── */
@media (max-width: 640px) {
  /* Layout */
  .page { width: min(calc(100% - 28px), var(--w)); padding-bottom: 60px; }

  /* Topbar – keep brand + single CTA only */
  .topbar { gap: 10px; padding: 10px 0; margin-bottom: 28px; }
  .nav-links { gap: 4px; flex-wrap: wrap; }

  /* Hide secondary nav items, keep only CTA */
  .nav-link:not(.nav-link-cta) { display: none; }

  /* Typography */
  h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -.5px; margin-bottom: 14px; }
  h2 { font-size: clamp(20px, 5.5vw, 26px); }
  h3 { font-size: 16px; }
  .hero-lead  { font-size: 15px; margin-bottom: 24px; }
  .page-lead  { font-size: 15px; }

  /* Hero */
  .hero-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .hero-grid { padding: 24px 0 32px; gap: 20px; }

  /* Hero stats */
  .hero-stat-row {
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
  }
  .stat-n { font-size: 22px; }
  .stat span:last-child { font-size: 11px; }

  /* Page header */
  .page-header { padding-top: 20px; margin-bottom: 32px; }

  /* Buttons */
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .btn-row { gap: 8px; }

  /* Cards */
  .card { padding: 20px; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .card-icon svg { width: 22px; height: 22px; }

  /* Panel */
  .panel { padding: 20px 16px; }
  .panel h2 { font-size: 18px; }

  /* Divider */
  .divider { margin: 32px 0; }

  /* CTA panel */
  .cta-panel { padding: 32px 20px; margin-top: 40px; border-radius: var(--r-lg); }
  .cta-panel h2 { font-size: clamp(20px, 5.5vw, 28px); }
  .cta-panel p  { font-size: 14px; }
  .cta-panel .btn-row { flex-direction: column; align-items: stretch; }
  .cta-panel .btn    { width: 100%; justify-content: center; }

  /* Contact card */
  .contact-card { padding: 28px 20px; border-radius: var(--r-lg); }
  .contact-num  { font-size: 24px; }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { gap: 4px 14px; }

  /* FAQ */
  .faq-item { padding: 18px 16px; }

  /* Section pre */
  .section-pre { font-size: 10px; }

  /* Float button – smaller, move to avoid thumb zone */
  .wa-float  { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-tooltip { display: none; }
}
