/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #05668D;   /* primary teal */
  --blue-dk: #044f6c;   /* darker teal */
  --blue-lt: #EBF2FA;   /* light bg */
  --blue-mid:#427AA1;   /* medium blue */
  --green:   #3dd330;   /* accent red-orange */
  --lime:    #A5BE00;   /* lime highlight */
  --red:     #e53e3e;
  --gray-50: #f7fafe;
  --gray-100:#EBF2FA;
  --gray-200:#d4e3f0;
  --gray-400:#8fa8be;
  --gray-600:#4a6278;
  --gray-800:#0d2233;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(5,102,141,.10);
  --shadow-lg:0 12px 40px rgba(5,102,141,.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Nav ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem; font-weight: 800; color: var(--blue);
  letter-spacing: -.5px;
}
.logo span { color: var(--gray-800); }
.nav-links { display: flex; gap: 2rem; font-size: .9rem; color: var(--gray-600); }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff;
  padding: .5rem 1.25rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  transition: background .15s;
}
.nav-cta:hover { background: var(--blue-dk); }

/* ===== Hero ===== */
.hero {
  background: var(--gray-50);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-lt);
  border: 1px solid var(--gray-200);
  color: var(--blue); font-size: .8rem; font-weight: 600;
  padding: .35rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem; letter-spacing: .5px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--gray-800);
  line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-600);
  max-width: 600px; margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ===== VIN Search Box ===== */
.search-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 2.5rem;
  max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.search-label {
  font-size: .85rem; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: .75rem;
  text-align: left;
}
.search-row {
  display: flex; gap: .75rem; align-items: stretch;
}
.vin-input {
  flex: 1;
  font-size: 1.5rem; font-weight: 700;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--gray-50);
  width: 100%;
}
.vin-input::placeholder {
  color: var(--gray-400); letter-spacing: 2px; font-weight: 500;
}
.vin-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(5,102,141,.12);
  background: #fff;
}
.vin-input.error { border-color: var(--red); }
.vin-input.valid { border-color: var(--green); }

.search-btn {
  flex-shrink: 0;
  background: var(--green); color: #fff;
  border: none; border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  display: flex; align-items: center; gap: .6rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(61,211,48,.35);
}
.search-btn:hover { background: #2db525; box-shadow: 0 6px 20px rgba(61,211,48,.45); }
.search-btn:active { transform: scale(.98); }
.search-btn:disabled { opacity: .6; cursor: not-allowed; }

.vin-counter {
  font-size: .78rem; color: var(--gray-400);
  text-align: right; margin-top: .4rem;
}
.vin-counter.ready { color: var(--green); font-weight: 600; }
.vin-counter.error  { color: var(--red); }

.error-msg {
  background: #fff5f5; border: 1px solid #fed7d7;
  color: var(--red); border-radius: 8px;
  padding: .6rem 1rem; margin-top: .75rem;
  font-size: .88rem; font-weight: 500;
  display: none;
}
.error-msg.visible { display: block; }

.search-footer {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.trust-badge {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--gray-600);
}
.trust-badge svg { flex-shrink: 0; }

/* ===== Stats strip ===== */
.stats {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 1.5rem;
}
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--blue-mid); }
.stat-label { font-size: .85rem; color: var(--gray-600); margin-top: .25rem; }

/* ===== Section shared ===== */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--blue-lt); color: var(--blue);
  font-size: .78rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: .3rem .85rem;
  border-radius: 100px; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; letter-spacing: -.5px;
  margin-bottom: .75rem; line-height: 1.2;
}
.section-sub {
  color: var(--gray-600); font-size: 1.05rem;
  max-width: 560px; line-height: 1.6;
}

/* ===== How it works ===== */
.steps-section { background: var(--gray-50); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-num {
  width: 52px; height: 52px;
  background: var(--blue-mid); color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
  margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.step p  { font-size: .9rem; color: var(--gray-600); line-height: 1.5; }

/* ===== What we check ===== */
.checks-section { background: var(--gray-50); }
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.check-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: box-shadow .2s;
}
.check-card:hover { box-shadow: var(--shadow); }
.check-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.check-icon svg {
  width: 100%; height: 100%;
}
.check-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.check-card p  { font-size: .84rem; color: var(--gray-600); line-height: 1.45; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, #033a50, #05668D);
  color: #fff; text-align: center;
}
.cta-section .section-title { color: #fff; }
.cta-section .section-sub   { color: rgba(255,255,255,.75); max-width: 100%; }
.cta-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #3dd330; color: #fff;
  padding: 1rem 2.5rem; border-radius: 12px;
  font-size: 1.1rem; font-weight: 800;
  margin-top: 2rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  cursor: pointer; border: none;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.25); }

/* ===== Footer ===== */
footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.55);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  line-height: 1.8;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .search-row { flex-direction: column; }
  .search-btn  { justify-content: center; }
  .nav-links   { display: none; }
  .hero        { padding: 3.5rem 1rem 5rem; }
  .search-card { padding: 1.5rem 1rem 2rem; }
  .vin-input   { font-size: 1.1rem; letter-spacing: 2px; }
}

/* ===== Spinner ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.searching .spinner { display: block; }
.searching .btn-icon { display: none; }

/* ===== Blog ===== */
.blog-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 4rem 1.5rem 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-meta {
  font-size: .78rem; font-weight: 600;
  color: var(--blue-mid); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: .75rem;
}

.blog-card-title {
  font-size: 1.05rem; font-weight: 800;
  color: var(--gray-800); line-height: 1.3;
  margin-bottom: .6rem;
}

.blog-card-perex {
  font-size: .88rem; color: var(--gray-600);
  line-height: 1.55; flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: .85rem; font-weight: 700;
  color: var(--blue); margin-top: auto;
}
.blog-card:hover .blog-card-link { color: var(--blue-dk); }

.blog-cta-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(135deg, #033a50, #05668D);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
}

.blog-cta-card-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 10px; padding: 10px;
  margin-bottom: 1rem; flex-shrink: 0;
}
.blog-cta-card-icon svg { width: 100%; height: 100%; stroke: #fff; }

.blog-cta-card h3 {
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: .6rem; line-height: 1.3;
}

.blog-cta-card p {
  font-size: .88rem; line-height: 1.55;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem; flex: 1;
}

.blog-cta-card-btn {
  display: inline-block;
  background: #3dd330; color: #fff;
  font-weight: 700; font-size: .9rem;
  padding: .65rem 1.4rem; border-radius: 8px;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 12px rgba(61,211,48,.35);
  margin-top: auto;
}
.blog-cta-card-btn:hover {
  background: #2db525;
  transform: translateY(-1px);
}

.blog-all-link {
  display: inline-block;
  color: var(--blue); font-weight: 700; font-size: .95rem;
}
.blog-all-link:hover { color: var(--blue-dk); }

.blog-cta-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

/* ===== Článek detail ===== */
.article-wrap {
  padding: 3rem 1.5rem 5rem;
}

.article-inner {
  max-width: 760px; margin: 0 auto;
}

.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--gray-400);
  margin-bottom: 2rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-dk); }

.article-header { margin-bottom: 2.5rem; }

.article-meta {
  display: flex; gap: .5rem; align-items: center;
  font-size: .82rem; color: var(--gray-400);
  margin-bottom: .75rem;
}

.article-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; letter-spacing: -.5px;
  line-height: 1.2; color: var(--gray-800);
  margin-bottom: 1rem;
}

.article-perex {
  font-size: 1.1rem; color: var(--gray-600);
  line-height: 1.65;
  border-left: 4px solid var(--blue);
  padding-left: 1rem;
}

.article-content {
  font-size: 1rem; line-height: 1.8;
  color: var(--gray-800);
}
.article-content h2 {
  font-size: 1.4rem; font-weight: 800;
  margin: 2.5rem 0 .75rem; color: var(--gray-800);
}
.article-content h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 2rem 0 .5rem; color: var(--gray-800);
}
.article-content p  { margin-bottom: 1.25rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.25rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content strong { font-weight: 700; }

.article-cta-inline {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: linear-gradient(135deg, #033a50, #05668D);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 8px 32px rgba(5,102,141,.25);
}

.article-cta-inline-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 12px; padding: 12px;
}
.article-cta-inline-icon svg { width: 100%; height: 100%; stroke: #fff; }

.article-cta-inline-body {
  display: flex; flex-direction: column; gap: .5rem;
}
.article-cta-inline-body strong {
  font-size: 1.15rem; font-weight: 900;
  color: #fff; line-height: 1.2;
}
.article-cta-inline-body span {
  font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.55;
}

.article-cta-inline-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #3dd330; color: #fff;
  font-weight: 800; font-size: .95rem;
  padding: .75rem 1.5rem; border-radius: 10px;
  margin-top: .75rem; align-self: flex-start;
  box-shadow: 0 4px 16px rgba(61,211,48,.4);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.article-cta-inline-btn:hover {
  background: #2db525;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,211,48,.5);
}

@media (max-width: 500px) {
  .article-cta-inline { flex-direction: column; }
}

.back-link {
  font-size: .9rem; font-weight: 600; color: var(--blue);
}
.back-link:hover { color: var(--blue-dk); }
