/* === AktualM-style tabs design в зелено за /tseni/ === */
.gips-tseni-content {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2B2824;
  line-height: 1.65;
}

.gips-tseni-content .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.gips-tseni-content .tab {
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: url('/newsite/Gipsokarton/wp-content/uploads/btn-green-bg.jpg') center/cover no-repeat, #5d8b1e;
  color: #fff !important;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  user-select: none;
  font-family: inherit;
}

.gips-tseni-content .tab:hover {
  background: url('/newsite/Gipsokarton/wp-content/uploads/btn-green-bg.jpg') center/cover no-repeat, #3f6800;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.30);
  filter: brightness(1.08);
}

.gips-tseni-content .tab.on {
  background: url('/newsite/Gipsokarton/wp-content/uploads/btn-green-bg.jpg') center/cover no-repeat, #3f6800;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.gips-tseni-content .tp { display: none; }
.gips-tseni-content .tp.on { display: block; animation: gipsTabFade 0.25s ease; }

@keyframes gipsTabFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gips-tseni-content .pt {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E0DDD6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  font-family: inherit;
}

.gips-tseni-content .pt thead {
  background: #fff;
  color: #5d8b1e;
  border-bottom: 2px solid #5d8b1e;
  transition: background .2s, color .2s;
}

.gips-tseni-content .pt thead tr:hover {
  background: #5d8b1e;
  color: #fff;
}

.gips-tseni-content .pt th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.gips-tseni-content .pt th:last-child {
  text-align: right;
}

.gips-tseni-content .pt td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #F2F0EB;
  font-size: 1rem;
}

.gips-tseni-content .pt td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.05rem;
  color: #3f6800;
}

.gips-tseni-content .pt tr:hover td {
  background: rgba(93, 139, 30, 0.06);
}

.gips-tseni-content .pn {
  color: #A8A198;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .gips-tseni-content .tabs {
    flex-direction: column;
    gap: 0.55rem;
  }
  .gips-tseni-content .tab {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.1rem;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  .gips-tseni-content .pt th,
  .gips-tseni-content .pt td {
    padding: 0.6rem 0.7rem;
    font-size: 0.92rem;
  }
}

/* === Accordion behavior on mobile: panel injected inline under each tab === */
@media (max-width: 921px) {
  /* When a panel is moved inside .tabs container, full-width row */
  .gips-tseni-content .tabs .tp.on {
    display: block !important;
    width: 100%;
    flex-basis: 100%;
    margin: 0.2rem 0 0.8rem 0;
  }
  /* Add a subtle chevron indicator to active tab */
  .gips-tseni-content .tab.on {
    position: relative;
  }
  .gips-tseni-content .tab.on::after {
    content: '\\25BC';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
  }
}




