/* Печать на текстиле: мокап, форма и порядок работы.
   Цвета и типографика — из общей темы сайта. */
.tx-ad-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.tx-ad-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.tx-ad-side h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
.tx-ad-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.65;
}
.tx-ad-note {
  color: #4a4a44;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.tx-ctor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 2rem;
  align-items: start;
}
.tx-mockup {
  display: grid;
  gap: 0.8rem;
}
.tx-shirt {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2ee;
  border: 1px solid rgba(0, 0, 0, 0.07);
  aspect-ratio: 1 / 1;
}
.tx-shirt-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Принт поверх изделия: положение зависит от выбранного места печати */
.tx-print {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.tx-print img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tx-print span {
  color: #9a9a92;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  padding: 0 0.3rem;
}
.tx-print.at-chest {
  top: 25%;
  left: 36%;
  width: 28%;
  height: 32%;
}
.tx-print.at-back {
  top: 19.7%;
  left: 25.8%;
  width: 48.4%;
  height: 30.1%;
}
.tx-print.at-sleeve {
  top: 30.3%;
  left: 6.3%;
  width: 13%;
  height: 8.9%;
}
.tx-view-toggle {
  display: inline-flex;
  gap: 0.4rem;
}
.tx-view {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.tx-view.is-active {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.tx-form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
.tx-field {
  display: grid;
  gap: 0.35rem;
}
.tx-field label {
  font-weight: 700;
  font-size: 0.88rem;
}
.tx-field select,
.tx-field input[type="number"],
.tx-field textarea,
.tx-field input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: inherit;
}
.tx-field input[type="file"] {
  padding: 0.5rem;
}
.tx-field textarea {
  resize: vertical;
  min-height: 72px;
}
.tx-field select:focus,
.tx-field input:focus,
.tx-field textarea:focus {
  outline: 2px solid #ffcc00;
  outline-offset: 1px;
}
.tx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.tx-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #6b6b63;
}
.tx-hint.is-err {
  color: #b4342a;
  font-weight: 600;
}
.tx-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}
.tx-total-label {
  display: block;
  font-size: 0.8rem;
  color: #6b6b63;
}
.tx-total strong {
  font-size: 1.35rem;
}

.tx-steps-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.7;
  max-width: 70ch;
}
.tx-steps h2 {
  font-size: 1.5rem;
  margin: 0;
}

@media (max-width: 960px) {
  .tx-ad-grid,
  .tx-ctor {
    grid-template-columns: 1fr;
  }
  .tx-mockup {
    order: -1;
  }
}
@media (max-width: 520px) {
  .tx-row {
    grid-template-columns: 1fr;
  }
}
