:root {
  --bsauto-blue: #00b0f5;
  --bsauto-blue-strong: #0a90cc;
  --bsauto-red: #ff0022;
  --bsauto-text: #111;
  --bsauto-muted: #556;
  --bsauto-border: rgba(0, 0, 0, 0.12);
  --bsauto-card-bg: #f7f7f7;
  --neo-bg: #eef1f6;
  --neo-shadow-dark: rgba(163, 177, 198, 0.55);
  --neo-shadow-light: #ffffff;
}

@font-face {
  font-family: "Nunito Regular";
  src: url('/assets/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Light";
  src: url('/assets/fonts/Nunito-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito SemiBold";
  src: url('/assets/fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Black";
  src: url('/assets/fonts/Nunito-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

h1, .footer { 
  font-family: "Nunito Light", Arial, sans-serif;
  font-size:1.6rem;
}

h2, h3, h4, h5 {      
  font-family: "Nunito SemiBold", Arial, sans-serif;
  font-size:1.2rem;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--bsauto-text);
  font-family: "Nunito Regular", Arial, sans-serif;
}

* { box-sizing: border-box; }

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

img { max-width: 100%; }

body { min-height: 100vh; }

main { display: block; }

.container, .container-fluid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.col-12, .col-xl-2, .col-xl-4, .col-xl-8, .col-lg-2, .col-lg-3, .col-lg-6, .col-lg-9, .col-md-12, .col-md-4, .col-md-6, .col-sm-4, .col-6, .col-4 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-xl-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-xl-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}

.site-header {
  background: #fff;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.25rem;
  align-items: end;
  padding: 3rem 0 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.5rem;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.navbar-nav .nav-item {
  margin-right: 0.5rem;
}

.navbar-nav .nav-link {
  text-transform: uppercase;
  color: #111;
  font-family: "Nunito Regular", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

.navbar-brand {
  min-width: 200px;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
}

.navbar-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.navbar-toggler {
  display: none;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  padding: 0.5rem 0.7rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.navbar-toggler-icon {
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
}

.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after { top: 6px; }

@media (max-width: 991px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }

  .header-brand {
    padding-left: 0;
  }

  .navbar-brand {
    min-width: 200px;
    max-width: 280px;
  }

  .navbar-toggler {
    display: inline-block;
  }

  .collapse {
    display: none;
    width: 100%;
  }

  .collapse.is-open {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1rem;
}

.hero-picks {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
}

.hero-pick {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 4px;
  background: #f8f8f8;
}

.hero-pick a {
  display: block;
  height: 100%;
}

.hero-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-pick-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-pick-caption h1 {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.hero-pick-caption p {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 0.25rem;
  background: #00b0f5;
  color: #fff !important;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 1rem;
  height: 100%;
}

.brand-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  border-radius: 4px;
}

.brand-card .logo-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brand-card .logo-box::before {
  content: "";
  width: 110px;
  height: 110px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

.brand-card.opel .logo-box { background: linear-gradient(135deg, #f3cf52, #d6a337); }
.brand-card.opel .logo-box::before { background-image: url('/assets/images/logo_opel.png'); }
.brand-card.toyota .logo-box { background: linear-gradient(135deg, #ff5a61, #e51d31); }
.brand-card.toyota .logo-box::before { background-image: url('/assets/images/logo_toyota.png'); }
.brand-card.citroen .logo-box { background: linear-gradient(135deg, #b5d2eb, #6e95b5); }
.brand-card.citroen .logo-box::before { background-image: url('/assets/images/logo_citroen.png'); }
.brand-card.leapmotor .logo-box { background: linear-gradient(135deg, #c7c7c7, #0f500f); }
.brand-card.leapmotor .logo-box::before { background-image: url('/assets/images/logo_leapmotor.png'); }
.brand-card.ds .logo-box { background: linear-gradient(135deg, #2b2b2b, #111); }
.brand-card.ds .logo-box::before { background-image: url('/assets/images/logo_ds.png'); }
.brand-card.usedcars .logo-box { background: linear-gradient(135deg, #cfd8dc, #90a4ae); }
.brand-card.usedcars .logo-box::before { background-image: url('/assets/images/logo_usedcars-b.png'); }

.brand-card .submenu {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.92);
}

.brand-card:hover .submenu,
.brand-card:focus-within .submenu {
  opacity: 1;
  transform: translateY(0);
}

.brand-card .submenu a {
  font-size: 0.8rem;
  text-transform: none;
  color: #111;
  font-weight: 700;
}

.row.filter {
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.row.filter.white {
  background-color: #fff;
}

.row.filter.vertical-center {
  align-items: center;
}

.row.filter.row-eq-height > .col-12 {
  display: flex;
  flex-direction: column;
}

.stockcars-section {
  margin-top: 2.5rem;
}

.stockcars-section h2 {
  color: #111;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.stockcars-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border: none;
  background: var(--neo-bg);
  color: #333;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--neo-shadow-dark), -4px -4px 8px var(--neo-shadow-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  color: var(--bsauto-blue-strong);
}

.filter-btn:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px var(--neo-shadow-dark), inset -3px -3px 6px var(--neo-shadow-light);
}

.filter-btn.is-active {
  background: var(--bsauto-blue);
  color: #fff;
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2), inset -3px -3px 6px rgba(255, 255, 255, 0.25);
}

.stockcars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stockcars-status {
  grid-column: 1 / -1;
  color: var(--bsauto-muted);
  padding: 2rem 0;
  text-align: center;
}

.stockcars-status.is-error {
  color: #8a1d1d;
}

.stockcar-card {
  border: 1px solid var(--bsauto-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.stockcar-card a {
  display: block;
}

.stockcar-card img,
.stockcar-noimage {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.stockcar-body {
  padding: 1rem 1.1rem 1.25rem;
}

.stockcar-state {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bsauto-blue-strong);
  margin-bottom: 0.4rem;
}

.stockcar-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.stockcar-version {
  margin: 0 0 0.6rem;
  color: var(--bsauto-muted);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.stockcar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--bsauto-muted);
  margin-bottom: 0.75rem;
}

.stockcar-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.price-old {
  text-decoration: line-through;
  color: var(--bsauto-muted);
  font-size: 0.85rem;
}

.price-new {
  font-weight: 800;
  font-size: 1.1rem;
  color: #111;
}

.stockcars-more {
  text-align: center;
  margin-top: 1.75rem;
}

.about-company {
  margin-top: 2.5rem;
  background: #fafafa;
  border: 1px solid var(--bsauto-border);
  border-radius: 6px;
  padding: 1.5rem 2rem 2rem;
}

.about-company h2 {
  color: #111;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.about-company p {
  line-height: 1.6;
}

.about-company .timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.about-company .timeline li {
  border-left: 3px solid var(--bsauto-blue);
  padding: 0.2rem 0 0.2rem 0.9rem;
}

.quicklinks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--neo-bg);
  border-radius: 24px;
  padding: 0.5rem 2rem;
  box-shadow: 10px 10px 24px var(--neo-shadow-dark), -10px -10px 24px var(--neo-shadow-light);
}

.new-filter {
  margin: 1rem 0 2rem 0;
}

.quicklinks-hero {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background-image: linear-gradient(135deg, #80cff1 0%, #009fe3 100%);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: none;
}

.quicklink-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 2rem;
}

.quicklink-col:first-child {
  padding-left: 0;
}

.quicklink-col:last-child {
  padding-right: 0;
}

.quicklink-col + .quicklink-col {
  border-left: 1px solid var(--bsauto-border);
}

.quicklink-col-title {
  margin: 0;
  color: #111;
  font-size: 1.2rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quicklink-col-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neo-bg);
  color: #333;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 4px 4px 8px var(--neo-shadow-dark), -4px -4px 8px var(--neo-shadow-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.neo-btn:hover {
  color: var(--bsauto-blue-strong);
  transform: translateY(-1px);
}

.neo-btn:active {
  transform: translateY(1px);
  box-shadow: inset 3px 3px 6px var(--neo-shadow-dark), inset -3px -3px 6px var(--neo-shadow-light);
}

.quicklinks-hero .neo-btn {
  box-shadow: 4px 4px 8px rgba(0, 42, 80, 0.45), -4px -4px 8px rgba(0, 159, 227, 0.35);
}

.quicklinks-hero .neo-btn:active {
  box-shadow: inset 3px 3px 6px rgba(0, 42, 80, 0.45), inset -3px -3px 6px rgba(0, 159, 227, 0.35);
}

@media (max-width: 767px) {
  .quicklinks-hero {
    flex-direction: column;
    gap: 1.5rem;
  }

  .quicklink-col {
    padding: 0;
  }

  .quicklink-col + .quicklink-col {
    border-left: none;
    border-top: 1px solid var(--bsauto-border);
    padding-top: 1.5rem;
  }
}

.quicklink-row {
  align-items: center;
  padding: 1rem 0;
}

.quicklink-row + .quicklink-row {
  border-top: 1px solid var(--neo-shadow-light);
  box-shadow: 0 -1px 0 var(--neo-shadow-dark);
}

.quicklink-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.75rem;
}

.quicklink-title img {
  flex: 0 0 auto;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  background: var(--neo-bg);
  box-shadow: 4px 4px 8px var(--neo-shadow-dark), -4px -4px 8px var(--neo-shadow-light);
}

.quicklink-title h2 {
  margin: 0;
  color: #111;
  font-size: 1.2rem !important;     
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-pair .ext-link {
  color: var(--bsauto-muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.filter-pair .ext-link:hover {
  color: var(--bsauto-blue-strong);
}

.quicklink-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--neo-shadow-light);
  box-shadow: -1px 0 0 var(--neo-shadow-dark);
}

.quicklink-brands a {
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quicklink-brands a:hover {
  color: var(--bsauto-blue-strong);
  background: var(--neo-bg);
  box-shadow: 3px 3px 6px var(--neo-shadow-dark), -3px -3px 6px var(--neo-shadow-light);
}

@media (max-width: 991px) {
  .quicklinks {
    padding: 0.5rem 1.25rem;
  }

  .quicklink-row {
    align-items: flex-start;
  }

  .quicklink-title {
    margin-bottom: 0.5rem;
  }

  .quicklink-brands {
    border-left: none;
    box-shadow: none;
    padding-left: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.page-shell {
  margin: 1rem auto 3rem;
  max-width: 1200px;
}

.page-shell h2 {
  color: #111;
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  text-transform: uppercase;
}

.page-title {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size:2rem;
  text-align: center;
}

.page-shell h3 {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
}

.page-shell h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 1.5rem 0 1rem;
}

.content-box, .content-card {
  background: #fafafa;
  border: 1px solid var(--bsauto-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.staff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.employee {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fafafa;
  border: 1px solid var(--bsauto-border);
  padding: 1rem;
  border-radius: 6px;
}

.employee img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.06);
}

.employee .pos {
  color: #666;
  display: block;
  margin-top: 0.35rem;
}

.telmail {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.telmail li + li { margin-top: 0.25rem; }

.telmail a {
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.form-wrap {
  margin-top: 2rem;
  padding: 1rem 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.15s ease;
}

.form-field:has(input:focus, textarea:focus, select:focus) label {
  color: var(--bsauto-blue);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 4px 4px 0 0;
  padding: 0.7rem 0.6rem 0.5rem;
  font: inherit;
  background: #f0f0f0;
  transition: border-color 0.15s ease, border-width 0.15s ease, padding-bottom 0.15s ease;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-bottom-color: rgba(0, 0, 0, 0.87);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom: 2px solid var(--bsauto-blue);
  padding-bottom: calc(0.5rem - 1px);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status.is-success {
  display: block;
  background: rgba(47, 146, 91, 0.12);
  border: 1px solid rgba(47, 146, 91, 0.35);
  color: #1d5e36;
}

.form-status.is-error {
  display: block;
  background: rgba(196, 48, 48, 0.09);
  border: 1px solid rgba(196, 48, 48, 0.35);
  color: #8a1d1d;
}

.form-submit {
  margin-top: 1rem;
}
.pobocka{

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

 

.branches {
  display: grid;
  gap: 1rem;
}

.branch-item {
  border: 1px solid var(--bsauto-border);
  background: #fafafa;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
}

.branch-item h3 { margin: 0 0 0.6rem; }

.branch-item .meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.branch-item address {
  font-style: normal;
  line-height: 1.5;
}

.dark-blue {
  /*background-color: #6eb6e1;*/
  background-image: linear-gradient(135deg, #80cff1 0%, #009fe3 100%); 
}

.footer, .footer a {
color: #000;
font-size: 1rem;
}

.separator-w {  }

@media (max-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .employee {
    flex-direction: column;
    align-items: flex-start;
  }
}
