#festek-tablazat {
  margin: 60px auto;
  width: min(1000px, 94vw);
}
@media (max-width: 768px) {
  #festek-tablazat {
    margin: -20px auto 20px;
    width: min(1000px, 94vw);
  }
}

#festek-tablazat h2 {
  color: var(--h1colour, #2e4053);
  text-align: center;
  margin-bottom: 1rem;
}

.table-intro {
  text-align: center;
  color: black;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #4a7549;
  font-size: 0.95rem;
}

.spec-table thead {
  background-color: var(--buttoncolor, --buttoncolor);
  color: #fff;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table td {
  color: black;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.spec-table tbody tr:hover {
  background-color: rgba(212, 163, 115, 0.1);
}

@media (max-width: 768px) {
  .spec-table th,
  .spec-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  #festek-tablazat h2 {
    font-size: 1.3rem;
  }
}

.inline-img {
  height: 300px;
  contain: strict;
}

.kerites-img {
  height: 300px;
  contain: strict;
  border-radius: 15px;
}

/* ————— Model szekció (izolált osztályok) ————— */
.model-section {
  margin: 28px auto 40px;
  width: min(900px, 92vw);
}

.model-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px clamp(16px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 880px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}

.model-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--h1colour, #2e4053);
}

.model-sub {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.model-intro {
  max-width: 400px; /* <<< kompakt, könnyen olvasható */
}

.model-intro p {
  line-height: 1.55;

  margin: 0.8rem 0 0.8rem;
  color: var(--text, #333);
}

/* Specs */
.model-specs-title {
  text-align: center;
  margin-top: 0;
}

.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 8px 0 0;
}

.spec {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}
.spec dt {
  font-weight: 600;
  color: var(--text, #333);
}
.spec dd {
  margin: 0;
  color: var(--text, #333);
}

/* Figure (kép kártyában) */
.model-figure {
  grid-column: 1 / -1;
  margin: 8px auto 0;
  background: #fff;
  border: 1px solid #e8e2da;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  max-width: 420px; /* <<< EZ KORLÁTOZZA A SZÉLESSÉGET */
  text-align: center; /* középre igazítja */
}
.model-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}
.model-figure figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text, #333);
  opacity: 0.9;
  margin-top: 8px;
}

/* Dísz elválasztó (szolid, nem cirkusz) */
.model-divider {
  margin: 20px auto 0;
  border: 0;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    rgba(241, 240, 240, 0.675) 0 8px,
    rgba(206, 203, 203, 0.109) 8px 16px
  );
  opacity: 0.6;
}

.important {
  background-color: rgb(255, 82, 82);
  border: 3px solid rgb(214, 71, 71);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 10px 20px;
  color: white;
  font-size: large;
  text-transform: uppercase;
  margin: 20px 0px;
}

.trapezlemez-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.trapezlemez-art img {
  min-height: 260px;
  border-radius: 15px;
  max-width: 300px;
}

.model-intro-center {
  grid-column: 1 / -1; /* ez kiterjed az egész grid szélességére */
  justify-self: center;
}
