/* ==========================================================================
   Trade & Partnership
   ========================================================================== */

/* ---------- Hero ---------- */
.tr-hero { position: relative; height: 640px; overflow: hidden; }
.tr-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, .18) 30%, rgba(20, 16, 12, .62) 100%);
}
.tr-hero__body { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 56px; color: var(--cream); }
.tr-hero__kicker { font-size: 12px; letter-spacing: .26em; font-weight: 600; opacity: .9; margin-bottom: 16px; }
.tr-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.1;
  max-width: 820px;
  text-wrap: pretty;
}
.tr-hero__lede { margin-top: 18px; font-size: 16px; line-height: 1.7; opacity: .92; max-width: 620px; }
.tr-hero__actions { margin-top: 32px; }

/* ---------- Trust strip ---------- */
.tr-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-top: none;
}
.tr-trust__cell {
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 600;
}
.tr-trust__cell:last-child { border-right: none; }
.tr-trust__cell .gl-swatch { width: 9px; height: 9px; }

/* ---------- Audience cards ---------- */
.tr-audiences { gap: 32px; }
.tr-aud { border: 1px solid var(--rule); display: flex; flex-direction: column; }
.tr-aud__body { padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tr-aud__tier { font-size: 10.5px; letter-spacing: .22em; color: var(--terra); font-weight: 600; }
.tr-aud__title { font-family: var(--serif); font-weight: 400; font-size: 25px; }
.tr-aud__text { font-size: 13.5px; line-height: 1.75; color: var(--muted-dark); }
.tr-aud__list { font-size: 12.5px; color: var(--muted); line-height: 2; }
.tr-aud__spacer { flex: 1; min-height: 8px; }

/* ---------- Why partner ---------- */
.tr-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(245, 242, 234, .25);
}
.tr-why > * { border-right: 1px solid rgba(245, 242, 234, .25); border-bottom: 1px solid rgba(245, 242, 234, .25); }
.tr-why > *:nth-child(3n) { border-right: none; }
.tr-why > *:nth-last-child(-n+3) { border-bottom: none; }

.tr-why__img { margin: 0; position: relative; overflow: hidden; min-height: 200px; }
.tr-why__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-why__img figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(20, 16, 12, .7);
}
.tr-why__cell { padding: 34px 30px; display: flex; flex-direction: column; gap: 20px; }
.tr-why__title { font-size: 15.5px; font-weight: 600; }
.tr-why__text { font-size: 12.5px; color: var(--sand); margin-top: 7px; line-height: 1.7; }

/* Small abstract marks, rebuilt from the design's inline boxes */
.tr-icon { display: flex; height: 26px; }
.tr-icon--bars { align-items: flex-end; gap: 5px; }
.tr-icon--bars span { width: 9px; background: var(--terra-pale); }
.tr-icon--bars span:nth-child(1) { height: 10px; opacity: .45; }
.tr-icon--bars span:nth-child(2) { height: 17px; opacity: .7; }
.tr-icon--bars span:nth-child(3) { height: 26px; }

.tr-icon--frames { position: relative; width: 28px; }
.tr-icon--frames span { position: absolute; box-sizing: border-box; }
.tr-icon--frames span:nth-child(1) { left: 0; top: 0; width: 19px; height: 19px; border: 1.5px solid var(--terra-pale); }
.tr-icon--frames span:nth-child(2) { right: 0; bottom: 0; width: 15px; height: 15px; background: var(--terra-pale); }

.tr-icon--shapes { align-items: center; gap: 6px; }
.tr-icon--shapes span { width: 13px; height: 13px; box-sizing: border-box; }
.tr-icon--shapes span:nth-child(1) { background: var(--terra-pale); }
.tr-icon--shapes span:nth-child(2) { background: var(--terra-pale); transform: rotate(45deg); }
.tr-icon--shapes span:nth-child(3) { border: 1.5px solid var(--terra-pale); }

.tr-icon--grid { display: grid; grid-template-columns: repeat(3, 8px); gap: 5px; height: auto; }
.tr-icon--grid span { width: 8px; height: 8px; background: var(--terra-pale); }

.tr-icon--link { position: relative; width: 34px; }
.tr-icon--link span { position: absolute; top: 5px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--terra-pale); box-sizing: border-box; }
.tr-icon--link span:nth-child(1) { left: 0; }
.tr-icon--link span:nth-child(2) { left: 11px; }

/* ---------- Cooperation models + pricing ---------- */
.tr-coop { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }

.tr-models { margin-top: 36px; display: flex; flex-direction: column; }
.tr-model {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.tr-model:last-child { border-bottom: 1px solid var(--rule); }
.tr-model img { width: 64px; height: 64px; object-fit: cover; display: block; flex-shrink: 0; }
.tr-model__title { font-size: 15px; font-weight: 600; }
.tr-model__text { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.7; }

.tr-prices { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.tr-price {
  display: grid;
  grid-template-columns: 150px 24px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--rule);
  padding: 24px 26px;
  background: var(--cream);
  transition: border-color .2s ease;
}
.tr-price:hover { border-color: var(--brown); }
.tr-price__who { font-size: 10.5px; letter-spacing: .2em; color: var(--muted); font-weight: 600; line-height: 1.9; }
.tr-price__who span { color: var(--ink); font-size: 13px; letter-spacing: .02em; }
.tr-price__arrow { font-family: var(--serif); font-size: 20px; color: var(--terra); }
.tr-price__name { font-family: var(--serif); font-size: 23px; color: var(--brown); }
.tr-price__note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tr-prices__note { margin-top: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* ---------- How it works ---------- */
.tr-how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule);
  /* No background: the design lets the section band show through the cells. */
}
.tr-how__cell { padding: 30px 26px; border-right: 1px solid var(--rule); }
.tr-how__cell:last-child { border-right: none; }
.tr-how__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tr-how__mark { width: 11px; height: 11px; border-radius: 50%; background: var(--terra); display: block; }
.tr-how__n { font-family: var(--serif); font-size: 17px; color: #c2b49c; }
.tr-how__title { font-size: 14.5px; font-weight: 600; margin-top: 16px; }
.tr-how__text { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* ---------- Cases ---------- */
.tr-case__tier { font-size: 10.5px; letter-spacing: .2em; color: var(--terra); font-weight: 600; }
.tr-case__title { font-family: var(--serif); font-size: 21px; margin-top: -6px; }
.tr-case__text { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: -6px; }

/* ---------- Application ---------- */
.tr-apply { display: grid; grid-template-columns: 5fr 7fr; }

.tr-apply__aside { background: var(--brown); color: var(--cream); display: flex; flex-direction: column; }
.tr-apply__aside-top { padding: 52px 48px 36px; }
.tr-apply__img { flex: 1; min-height: 260px; overflow: hidden; }
.tr-apply__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tr-promises { margin-top: 32px; display: flex; flex-direction: column; }
.tr-promise {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid rgba(245, 242, 234, .2);
  font-size: 13.5px;
  line-height: 1.6;
}
.tr-promise:last-child { border-bottom: 1px solid rgba(245, 242, 234, .2); }
.tr-promise__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra-pale); flex-shrink: 0; }
.tr-apply__mail { font-size: 12px; color: var(--sand); margin-top: 24px; }
.tr-apply__mail a { color: var(--cream); border-bottom: 1px solid rgba(245, 242, 234, .5); padding-bottom: 2px; }

.tr-apply__form { background: #FAF7F0; padding: 52px 52px 48px; }

.tr-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tr-step-head--gap { margin-top: 38px; }
.tr-step-head__n { font-family: var(--serif); font-size: 22px; color: var(--terra); }
.tr-step-head__label { font-size: 12px; letter-spacing: .22em; color: var(--ink); font-weight: 600; }
.tr-step-head__rule { flex: 1; height: 1px; background: rgba(29, 28, 25, .12); }

.tr-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tr-role {
  font-size: 13px;
  font-weight: 600;
  padding: 14px 12px;
  border: 1px solid rgba(29, 28, 25, .25);
  border-radius: 2px;
  color: var(--ink);
  text-align: left;
  transition: all .2s ease;
}
.tr-role:hover { border-color: var(--brown); }
.tr-role[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }

.tr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.tr-field input {
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  width: 100%;
  border-radius: 0;
}
.tr-field input:focus { outline: none; border-bottom-color: var(--terra); }
.tr-field input:user-invalid { border-bottom-color: #9c4a35; }

.tr-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin-top: 28px; }

.tr-submit { width: 100%; margin-top: 38px; padding: 18px 10px; }
.tr-submit__note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

.tr-done { text-align: center; padding: 80px 20px; }
.tr-done__text { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--muted-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .tr-hero { height: 540px; }
  .tr-coop { gap: 56px; }
  .tr-apply__aside-top { padding: 40px 34px 28px; }
  .tr-apply__form { padding: 40px 34px 36px; }
  .tr-how { grid-template-columns: repeat(3, 1fr); }
  .tr-how__cell:nth-child(3n) { border-right: none; }
  .tr-how__cell:nth-child(n+4) { border-top: 1px solid var(--rule); }
}

@media (max-width: 1023px) {
  .tr-hero { height: 460px; }
  .tr-trust { grid-template-columns: 1fr; }
  .tr-trust__cell { border-right: none; }
  .tr-trust__cell:not(:first-child) { border-top: 1px solid var(--rule); }

  .tr-why { grid-template-columns: repeat(2, 1fr); }
  .tr-why > *:nth-child(3n) { border-right: 1px solid rgba(245, 242, 234, .25); }
  .tr-why > *:nth-child(2n) { border-right: none; }
  .tr-why > *:nth-last-child(-n+3) { border-bottom: 1px solid rgba(245, 242, 234, .25); }
  .tr-why > *:last-child { border-bottom: none; }

  .tr-coop { grid-template-columns: 1fr; gap: 56px; }
  .tr-price { grid-template-columns: 130px 20px 1fr; gap: 14px; }
  .tr-apply { grid-template-columns: 1fr; }
  .tr-apply__img { min-height: 200px; }
}

@media (max-width: 767px) {
  .tr-hero { height: 380px; }
  .tr-hero__body { bottom: 28px; }
  .tr-hero__lede { font-size: 14.5px; margin-top: 14px; }

  .tr-why { grid-template-columns: 1fr; }
  .tr-why > * { border-right: none !important; border-bottom: 1px solid rgba(245, 242, 234, .25) !important; }
  .tr-why > *:last-child { border-bottom: none !important; }
  .tr-why__img { min-height: 180px; }
  .tr-why__cell { padding: 26px 22px; }

  .tr-how { grid-template-columns: 1fr; }
  .tr-how__cell { border-right: none; }
  .tr-how__cell:not(:first-child) { border-top: 1px solid var(--rule); }

  .tr-price { grid-template-columns: 1fr; gap: 10px; }
  .tr-price__arrow { display: none; }

  .tr-apply__aside-top { padding: 30px 22px 24px; }
  .tr-apply__form { padding: 30px 22px 28px; }
  .tr-roles { grid-template-columns: repeat(2, 1fr); }
  .tr-fields, .tr-choices { grid-template-columns: 1fr; gap: 20px; }
  .tr-upload { padding: 18px 16px; gap: 12px; }
  .tr-done { padding: 48px 12px; }
}
