/* css/trebovaniya.css */

/* ─── СЕКЦИЯ С ТРЕМЯ TAB-КАРТОЧКАМИ ─── */
.tr-tabs-section { padding: 40px 0 0; }

.tr-tabs-section__title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 32px;
}

.tr-tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.tr-tab-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  padding: 28px 16px 24px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .18s;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tr-tab-card:hover:not(.is-active) {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.tr-tab-card.is-active { border-color: var(--red); }

.tr-tab-card__icon {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  transition: background .18s;
}

.tr-tab-card:hover .tr-tab-card__icon,
.tr-tab-card.is-active .tr-tab-card__icon { background: #ffe5e5; }

.tr-tab-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.tr-tab-card.is-active .tr-tab-card__name { color: var(--red); }

/* ─── ПАНЕЛИ КОНТЕНТА ─── */
.tr-panels-section { padding: 8px 0 0; }

.tr-panel-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tr-tab__pane { display: none; padding: 40px 48px; }
.tr-tab__pane.is-active { display: block; }

/* ─── СЕТКА ВНУТРИ ПАНЕЛИ (кардпаки, полиграфия) ─── */
.tr-pane-grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 48px;
  align-items: start;
}

/* ─── LAYOUT ВКЛАДКИ КАРТЫ ─── */
.tr-cards-imgrow {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}

.tr-cards-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-bottom: 4px;
}

.tr-reqs-group__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ─── ИЗОБРАЖЕНИЕ ─── */
.tr-pane-img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

/* ─── PLACEHOLDER ─── */
.tr-img-placeholder {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3/2;
  background: var(--surface);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  border: 2px dashed var(--border);
  text-align: center;
  line-height: 1.5;
  padding: 24px;
  box-sizing: border-box;
}

.tr-img-placeholder svg { opacity: 0.3; }

/* ─── ЛЕГЕНДА ЛИНИЙ ─── */
.tr-line-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tr-line-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tr-line-legend__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}

.tr-line-legend__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.tr-line-sample {
  width: 44px;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Цвета точно как на изображении */
.tr-line-sample--magenta {
  height: 3px;
  background: #ff00cc;
  border-radius: 2px;
}

.tr-line-sample--yellow {
  height: 3px;
  background: #ffde00;
  border-radius: 2px;
}

.tr-line-sample--gray-dash {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #888 0px, #888 5px,
    transparent 5px, transparent 9px
  );
}

/* ─── СПИСОК ТРЕБОВАНИЙ ─── */
.tr-reqlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tr-reqitem {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tr-reqitem__icon {
  width: 32px;
  height: 32px;
  background: var(--red-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.tr-reqitem__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}

.tr-reqitem__val {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tr-reqitem--alert .tr-reqitem__label { color: var(--red); }
.tr-reqitem--alert .tr-reqitem__icon  { background: #fff0f0; }

/* ─── ПРИМЕЧАНИЕ ─── */
.tr-note {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
  margin-top: 16px;
}

/* ─── СКАЧАТЬ ШАБЛОНЫ ─── */
.tr-downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tr-downloads__label {
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.tr-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.tr-download:hover { background: #ffe5e5; color: var(--red); }
.tr-download svg   { color: var(--red); flex-shrink: 0; }

/* ─── IMAGE TABS (переключатель кардпаков) ─── */
.tr-imgcol { display: flex; flex-direction: column; }

.tr-img-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tr-img-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}

.tr-img-tab:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.tr-img-tab.is-active {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-dim);
}

/* ─── АДАПТИВ ─── */
@media (max-width: 1060px) {
  .tr-pane-grid    { grid-template-columns: 1fr 1fr; }
  .tr-cards-imgrow { grid-template-columns: 1fr 1fr; }
  .tr-pane-img  { max-width: 100%; }
  .tr-img-placeholder { max-width: 100%; }
}

@media (max-width: 900px) {
  .tr-tab__pane    { padding: 32px; }
  .tr-pane-grid    { grid-template-columns: 1fr; gap: 28px; }
  .tr-cards-imgrow { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .tr-cards-reqs   { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .tr-tab-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tr-tab-card  { padding: 20px 24px; }
  .tr-tab__pane { padding: 24px; }
}
