:root{
  --p:#1b3a57;
  --a:#f6b100;

  --bg:#0b1220;
  --bg2:#070b14;
  --card:#111a2e;

  --txt:#e7edf7;
  --mut:#a9b6cc;

  --border:#1c2944;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--txt);
  background:#0b1220;
}

/* JemnÃ© zrno proti pruhovÃ¡nÃ­ (banding) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJz4KPGZpbHRlciBpZD0nbic+PGZlVHVyYnVsZW5jZSB0eXBlPSdmcmFjdGFsTm9pc2UnIGJhc2VGcmVxdWVuY3k9Jy44JyBudW1PY3RhdmVzPSc0JyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+CjxyZWN0IHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJyBmaWx0ZXI9J3VybCgjbiknIG9wYWNpdHk9Jy40Jy8+Cjwvc3ZnPg==");
  opacity:.06;
  mix-blend-mode:overlay;
}


.wrap{max-width:1080px;margin:0 auto;padding:0 18px}

/* Header / Footer */
.site-header{
  border-bottom:1px solid var(--border);
  background:rgba(14,23,48,.92);
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(8px);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:16px}

.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.brand-mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,var(--a),#ffd36a)}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-name{font-weight:900}
.brand-sub{font-size:12px;color:var(--mut)}

.nav{display:flex;align-items:center;gap:16px}
.nav-list{list-style:none;display:flex;gap:14px;margin:0;padding:0}
.nav-list a{text-decoration:none;color:var(--mut);font-weight:600}
.nav-list a:hover{color:var(--txt)}
.nav-contact{display:flex;flex-direction:column;gap:2px;font-size:12px}
.nav-contact a{color:var(--mut);text-decoration:none}
.nav-contact a:hover{color:var(--txt)}

.site-main{padding:22px 0}

/* Hero */
.hero{
  background:
    radial-gradient(900px 300px at 30% 0%, rgba(246,177,0,.16), transparent),
    linear-gradient(180deg, rgba(14,23,48,.65), rgba(11,18,32,.35));
  border-bottom:1px solid rgba(28,41,68,.25);
}
.hero-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch;padding:26px 0}
.hero h1{margin:0 0 10px;font-size:40px;line-height:1.05}
.hero p{margin:0 0 14px;color:var(--mut)}

.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  background:var(--a);
  color:#1a1600;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  text-decoration:none;
  display:inline-block
}
.btn-out{
  background:transparent;
  border:1px solid rgba(255,255,255,.18);
  color:var(--txt)
}
.btn-out:hover{border-color:rgba(246,177,0,.35)}

.hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.tag{
  display:inline-block;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(246,177,0,.12);
  border:1px solid rgba(246,177,0,.25);
  color:#ffd36a;
  font-weight:700
}

/* Form box */
.hero-form{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:rgba(17,26,46,.92);
}
.hero-form-title{font-weight:900;margin-bottom:6px}
.muted{color:var(--mut)}

.hero-form input,
.hero-form select,
.hero-form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(11,18,32,.65);
  color:var(--txt);
  outline:none;
}
.hero-form input::placeholder,
.hero-form textarea::placeholder{color:rgba(169,182,204,.75)}
.hero-form label{display:block;color:var(--mut);font-size:12px;margin:10px 0 6px}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus{
  border-color:rgba(246,177,0,.45);
  box-shadow:0 0 0 3px rgba(246,177,0,.12);
}

.hero-form .wpcf7-submit,
.hero-form button,
.hero-form .btn{
  width:100%;
  border:0;
  cursor:pointer;
}

.cf7-placeholder{
  padding:10px;
  border-radius:12px;
  background:rgba(11,18,32,.6);
  border:1px dashed rgba(255,255,255,.18);
  color:var(--mut);
}

/* Sections */
.section{padding:22px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}
.section h2{margin:0 0 6px}

/* Cards / Grid */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}

/* Vozidla: jednotnÃ© karty (bez "flagship") */
.grid.grid-vehicles{grid-template-columns:repeat(3,1fr)}
@media (max-width: 1100px){
  .grid.grid-vehicles{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  .grid.grid-vehicles{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:rgba(17,26,46,.92);
}
/* Card is a link, but should not look like a link (no purple, no underline, no focus ring) */
.card-link,
.card-link:link,
.card-link:visited,
.card-link:hover,
.card-link:active,
.card-link:focus{
  display:block;
  color:inherit;
  text-decoration:none !important;
  outline:none !important;
}
/* Pointer cursor is OK, but keep link styling invisible */
.card-link{cursor:pointer}
.card{transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}
/* Hover zvýraznění jen pro klikatelné karty (vozidla) */
.card.card-link:hover{
  transform:translateY(-2px);
  border-color:rgba(246,177,0,.75);
  box-shadow:
    0 10px 26px rgba(0,0,0,.25),
    0 0 0 2px rgba(246,177,0,.22) inset;
}

/* NÃ¡hled fotky vozidla (ruÄnÃ­ vÃ½Åez pÅes object-position) */
.vehicle-media{
  height:150px;
  overflow:hidden;
  background:linear-gradient(135deg,#233354,var(--bg));
}
.vehicle-media--empty{background:linear-gradient(135deg,#233354,var(--bg))}
.vehicle-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:var(--img-pos, 50% 50%);
}
.card .c{padding:12px}
.card .title{font-weight:900}
.card .meta{color:var(--mut);font-size:12px;margin-top:2px}
.card .row{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.price{font-weight:900}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:rgba(14,23,48,.92)}
.footer-inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 0;color:var(--mut);font-size:13px}

.content .post-title{margin-top:0}

@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
  .grid:not(.grid-vehicles){grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 520px){
  .nav-contact{display:none}
  .grid:not(.grid-vehicles){grid-template-columns:1fr}
}


/* FIX mobile vehicle image size */
.vehicle-media,
.card-image{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
}

.vehicle-media img,
.card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--img-pos,50% 50%);
  display:block;
}

@media (max-width:600px){
  .vehicle-media,
  .card-image{
    aspect-ratio:4/3;
  }
}

/* remove ios link underline inside vehicle grid */
.grid-vehicles a{
  color:inherit;
  text-decoration:none;
}

