body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  /* background: #f5f5f5; */
  background: #f7f7f9;
  color: #222;
}

header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #111827;
}

.logo {
  width: 400px;
  height: auto;
}

.header-text {
  margin-left: auto; /* GURA BLOK SKROZ DESNO */
  text-align: right; /* TEKST UZ DESNU IVICU */
  color: #f9fafb;
}

.header-text h1 {
  margin: 0 0 6px 0;
  font-size: 2rem;
}

.header-text span {
  display: block;
  font-size: 0.95rem;
  /* color: #666; */
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

h2 {
  text-align: center;
  padding: 25px 0;
}
p {
  font-size: 1.2rem;
}
/* header span {
      font-size: 0.85rem;
      opacity: 0.8;
    } */
.container {
  max-width: 1100px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filters select {
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid #d1d5db;
  background: #fff;
  min-width: 140px;
}
.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
td {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3d3d3d;
}
tr:last-child td {
  border-bottom: none;
}
.fuel-prices td:nth-child(even):after {
  content: "rsd";
  padding-left: 2px;
  font-size: 1rem;
  color: #0faa45;
}
.fuel-prices.tng td:nth-child(even):after {
  /* color: #2f7fff; */
  color: #315da2;
}
.fuel-prices.dizel td:nth-child(even):after {
  color: #1b1b1b;
}
.fuel-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px auto;
  max-width: 1100px;
}

.fuel-type a.btn,
.fuel-type button {
  padding: 14px 12px;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3d3d3d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #fff;
  /* efekat nalik "oznaci goriva" */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-transform: uppercase;
  text-decoration: none;
}

/* Hover efekat */
.fuel-type a.btn:hover,
.fuel-type button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.fuel-type .btn.active,
.fuel-type button.active {
  font-weight: bold;
  color: #fff;
}

.btn.benzin.active,
button.benzin.active {
  background: #0faa45; /* jaka zelena */
}

/* DIZEL – crna */
.btn.dizel.active,
button.dizel.active {
  background: #1b1b1b;
}

/* TNG – plava */
.btn.tng.active {
  background: #315da2;
}
 

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #e5e7eb;
}
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 1rem 0 1.5rem;
}

.faq {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  padding: 24px;
  border-radius: 14px;
  background: #f7f7f9;
}

.faq h2 {
  margin: 0 0 14px 0;
  font-size: 1.4rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 12px;
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  margin-top: 10px;
  color: #444;
  line-height: 1.45;
}

/* Mobile */
/* @media (max-width: 768px) {
  header {
    padding: 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
} */


@media (max-width: 768px) {
  a, button {
    min-height: 44px; /* thumb-friendly */
  }

  .container, .fuel-type, .faq {
    max-width: 95% !important;
    width: 95%;
    margin: 0 auto;
    padding: 0;
  }

  /* Reduce “wall of text” feel */
  p, li {
    font-size: 1.1rem;
    line-height: 1.5rem;
  }

  header {
    padding: 5px;
    display: block;
    text-align: center;
  }

  .header-text {
    text-align: center;
  }

  .logo {
    width: 250px;
  }

  .header-text h1 {
  font-size: 1.2rem;
  line-height: 1.2;
}
h2 {
  font-size: clamp(18px, 4vw, 26px);
}

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

table, tbody, tr {
  display: block;
}

th, td {
  max-width: 100%;
  display: inline-block;
}

  .fuel-type {
    grid-template-columns: repeat(2, 2fr);
    margin-top: 10px;
  }

  .fuel-type a.btn {
    text-align: center;
  }

  caption {
    display: block;
    font-weight: 500;
  }

  .faq h2 {
  margin: 0 0 10px 0;
  padding: 0;
  font-size: 1.3rem;
}
}


