/* ==========================================================================
   tabs.css — вкладки. Показ панелей управляется js/tabs.js
   ========================================================================== */

.tabs-container-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  position: relative;
  width: 100%;
  align-items: start;
  margin-top: 30px;
  margin-bottom: 0;
}

.tab-click-radio { display: none; }

.tabs-sidebar {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #c9bca2;
  background-color: #fff9e6;
  display: flex;
  flex-direction: column;
  z-index: 10;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 240px;
}

.tab-li-node {
  position: static;
  display: block;
}

.tab-li-node:not(:last-child) {
  border-bottom: 1px solid #c9bca2;
}

.tab-li-node label {
  display: block;
  padding: 14px 18px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tab-li-node:hover > label {
  background-color: #dfcd9d;
  color: #3b0a60;
  font-weight: bold;
}

.tab-li-node.is-active > label {
  background-color: #ebdcb2;
  color: #3b0a60;
  font-weight: bold;
}

.tabs-content-container {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: start;
}

.tab-content-panel {
  display: none;
  box-sizing: border-box;
  padding-left: 40px;
  padding-bottom: 0;
  width: 100%;
  container-type: inline-size;
}

.tab-content-panel.is-visible {
  display: block;
}

.content-flow {
  overflow: hidden;
}

.content-flow::after {
  content: "";
  display: table;
  clear: both;
}

.image-placeholder-box {
  float: left;
  width: 300px;
  height: 200px;
  margin: 0 30px 15px 0;
  background-color: #ebdcb2;
  border: 1px dashed #3b0a60;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b0a60;
  font-size: 14px;
  font-weight: bold;
  box-sizing: border-box;
}

@container (max-width: 620px) {
  .image-placeholder-box {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 0 15px 0;
  }
}

.tab-content-panel h1 {
  font-size: 18px;
  font-weight: bold;
  color: #3b0a60;
  margin: 0 0 15px 0;
}

.tab-content-panel p {
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  text-align: justify;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #c9bca2;
  margin-top: 20px;
  margin-bottom: 10px;
}

.registry-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background-color: #fff9e6;
  font-size: 14px;
  border: none;
}

.registry-table th {
  background-color: #3b0a60;
  color: #fff9e6;
  font-weight: bold;
  padding: 12px;
  text-align: left;
  border: 1px solid #c9bca2;
}

.registry-table td {
  padding: 11px 12px;
  border: 1px solid #c9bca2;
  color: #1a1a1a;
}

.registry-table tr:nth-child(even) {
  background-color: #ebdcb2;
}

.registry-table tr:hover {
  background-color: #dfcd9d;
}