/* Trade marketing landing (/products/trade-marketing/).
   Layout follows the Tilda page project8331060.tilda.ws/trade-marketing:
   desktop measured at 1440px (1rem = 10px there), mobile at 390px. */
.tt { --tt-red: #f00; --tt-ink: #333; --tt-text: #494949; --tt-soft: #ededed; --tt-line: #d7d7d7;
  color: var(--tt-ink); font-family: var(--ff-tt-firs-text, "TTFirstTextFont"), system-ui, sans-serif; }
/* one-class specificity: beats the site's global p/ul margins, loses to the block classes declared below */
.tt :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.tt :where(ul, ol) { padding: 0; list-style: none; }
.tt :focus-visible { outline: 2px solid var(--tt-red); outline-offset: 3px; }
.tt-center { text-align: center; }
.tt-h2 { font-size: 5.8rem; line-height: 1.25; font-weight: 500; text-transform: uppercase; color: var(--tt-ink); }
.tt-tag { font-size: 1.5rem; line-height: 2.3rem; font-weight: 500; text-transform: uppercase; text-align: center; color: var(--tt-red); }

/* 1. hero */
.tt-hero { padding-bottom: 2rem; }
.tt-hero__title { font-size: 8rem; line-height: 8.8rem; font-weight: 500; text-align: center; text-transform: uppercase; color: var(--tt-ink); }
.tt-hero__media { margin-top: 5rem; height: 64.8rem; border-radius: 3rem; overflow: hidden; background: var(--tt-soft); }
.tt-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 2. sales are not a lottery */
.tt-lottery { padding-block: 4rem 2rem; }
.tt-lottery__grid { display: grid; grid-template-columns: 41.7rem minmax(0, 62.1rem) 1fr; column-gap: 2.3rem; align-items: start; }
.tt-lottery__title { font-size: 5.8rem; line-height: 7rem; text-align: left; }
.tt-lottery__lead { margin-top: 2.4rem; max-width: 41.7rem; font-size: 2rem; line-height: 2.4rem; color: var(--tt-text); }
.tt-lottery__maze { display: block; width: 100%; height: auto; }
.tt-lottery__question { align-self: end; max-width: 24.3rem; font-size: 2rem; line-height: 2.4rem; font-weight: 500; color: var(--tt-text); }

/* 3. pains */
.tt-pains { padding-block: 4.1rem 3.7rem; }
.tt-pains__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem; }
.tt-pain { min-height: 15.5rem; padding: 2rem; border-radius: 1.6rem; background: var(--tt-soft);
  font-size: 1.7rem; line-height: 2.2rem; font-weight: 500; color: var(--tt-ink); }
.tt-pain img { display: block; width: 3.5rem; height: 3.5rem; margin-bottom: 1.6rem; object-fit: contain; }
.tt-pain span { display: block; max-width: 16.6rem; }
.tt-pains__sum { margin-top: 1.5rem; padding: 1rem; border-radius: 1.6rem; background: var(--tt-red);
  font-size: 2.4rem; line-height: 3.7rem; font-weight: 500; text-align: center; color: #fff; }

/* 4. industries */
.tt-ind { padding-block: 4rem; }
.tt-ind .tt-h2 { line-height: 7.5rem; }
.tt-ind__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 4rem; }
.tt-ind__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 23.8rem;
  padding: 3rem; border-radius: 1.5rem; background: #f6f9ff center / cover no-repeat; color: #fff; text-decoration: none; overflow: hidden; }
.tt-ind__name { font-size: 2rem; line-height: 2.6rem; font-weight: 500; }
.tt-ind__btn { display: flex; align-items: center; justify-content: space-between; height: 5.2rem; padding: 0 1rem 0 2rem;
  border: 1px solid #fff; border-radius: 5rem; background: rgba(0, 0, 0, .15); font-size: 1.5rem; line-height: 2rem; font-weight: 500;
  transition: background-color .2s; }
.tt-ind__btn img { width: 3rem; height: 3rem; flex: none; transition: transform .2s; }
.tt-ind__card:hover .tt-ind__btn { background: rgba(0, 0, 0, .35); }
.tt-ind__card:hover .tt-ind__btn img { transform: translateX(.3rem); }

/* 5. cases slider */
.tt-cases { scroll-margin-top: 8rem; padding-block: 7rem 7.6rem; background: var(--tt-soft); }
.tt-cases__title { line-height: 8.1rem; }
.tt-slider { position: relative; margin-top: 4rem; }
.tt-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.tt-slider__track::-webkit-scrollbar { display: none; }
.tt-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-margin-top: 12rem; }
.tt-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1328 / 531; object-fit: cover; }
.tt-slider__arrow { position: absolute; top: 26.55rem; z-index: 1; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-top: -2.25rem;
  padding: 0; border: 0; border-radius: 50%; background: rgba(237, 237, 237, .7); color: var(--tt-red); cursor: pointer; transition: opacity .2s; }
.tt-slider__arrow svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tt-slider__arrow_prev { left: 1.5rem; }
.tt-slider__arrow_next { right: 1.5rem; }
.tt-slider__arrow[hidden] { display: none; }
.tt-slider__dots { display: flex; justify-content: center; margin-top: 1rem; }
.tt-slider__dots button { padding: 1rem .75rem; border: 0; background: none; cursor: pointer; }
.tt-slider__dots button::before { content: ""; display: block; width: 1rem; height: 1rem; border-radius: 50%; background: #d7d7d7; transition: background-color .2s; }
.tt-slider__dots button[aria-current="true"]::before { background: var(--tt-red); }

/* 6. how we work */
.tt-how { padding-block: 7rem; }
.tt-how__title { margin-top: 1.6rem; line-height: 7.3rem; }
.tt-how__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; margin-top: 4rem; }
.tt-how__item { display: flex; flex-direction: column; min-height: 41.6rem; padding-left: 2.6rem; border-left: 1px solid var(--tt-line); }
.tt-how__num { font-size: 6.5rem; line-height: 6.5rem; font-weight: 400; color: var(--tt-line); }
.tt-how__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.6rem; margin-top: auto; }
.tt-how__name { font-size: 2.4rem; line-height: 3.2rem; font-weight: 500; color: #000; }
.tt-how__desc { margin-top: .8rem; min-height: 7.5rem; font-size: 1.6rem; line-height: 2.5rem; color: var(--tt-ink); }
.tt-how__res { margin-top: .8rem; min-height: 6.6rem; padding: 1.2rem 1rem; border-radius: .8rem; background: var(--tt-red);
  font-size: 1.6rem; line-height: 2.1rem; font-weight: 500; color: #fff; }

/* tooltip "+" */
.tt-tip { position: relative; flex: none; }
.tt-tip__btn { display: block; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--tt-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  transition: transform .2s; }
.tt-tip__pop { position: absolute; right: 0; bottom: calc(100% + 1.2rem); z-index: 5; width: 28rem; padding: 1.5rem; border-radius: .8rem; background: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, .3); font-size: 1.5rem; line-height: 1.95rem; color: var(--tt-ink);
  opacity: 0; visibility: hidden; transform: translateY(.6rem); transition: opacity .2s, transform .2s, visibility .2s; }
.tt-tip__pop li::before { content: "• "; }
.tt-tip:hover .tt-tip__pop, .tt-tip.is-open .tt-tip__pop, .tt-tip__btn:focus-visible + .tt-tip__pop { opacity: 1; visibility: visible; transform: none; }
.tt-tip.is-open .tt-tip__btn { transform: rotate(45deg); }

/* 7. how we start */
.tt-steps { padding-block: 7rem; background: var(--tt-soft); }
.tt-steps__title { line-height: 5.8rem; }
.tt-steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6.6rem 3rem; margin-top: 4rem; }
.tt-step { position: relative; min-height: 19.2rem; padding: 2.1rem; border-radius: 1.6rem; background: #fff; }
.tt-step__head { display: flex; align-items: center; gap: 2rem; }
.tt-step__head img { width: 5rem; height: 5rem; flex: none; border-radius: .8rem; }
.tt-step h3 { font-size: 2.4rem; line-height: 3.1rem; font-weight: 500; color: var(--tt-ink); }
.tt-step p { margin-top: 1.2rem; max-width: 38.1rem; font-size: 1.7rem; line-height: 2.2rem; color: var(--tt-ink); }
/* arrows between steps: → inside a row, ↩ from the end of row 1 to the start of row 2 */
.tt-step:not(:nth-child(3n))::after { content: ""; position: absolute; top: 8.8rem; right: -3rem; width: 3rem; height: 1.6rem;
  background: url("../img/trade-marketing/tilda/arrow-right.svg") center / contain no-repeat; }
.tt-step:nth-child(3)::before { content: ""; position: absolute; top: 100%; right: 4.6rem; width: 119.5rem; height: 6.6rem;
  background: url("../img/trade-marketing/tilda/arrow-turn.svg") right top / 100% 100% no-repeat; }

/* 8. FAQ */
.tt-faq { padding-block: 7.5rem; }
.tt-faq__title { padding-top: .8rem; line-height: 7.1rem; }
.tt-faq__list { display: grid; gap: .2rem; max-width: 116rem; margin: 4.8rem auto 0; }
.tt-faq__item { border-radius: 2rem; background: var(--tt-soft); }
.tt-faq__item summary { position: relative; display: block; padding: 2.5rem 8.4rem 2.5rem 3rem; cursor: pointer; list-style: none;
  font-size: 1.7rem; line-height: 2.3rem; font-weight: 500; color: var(--tt-ink); }
.tt-faq__item summary::-webkit-details-marker { display: none; }
.tt-faq__item summary::after { content: ""; position: absolute; top: 50%; right: 3rem; width: 2.4rem; height: 2.4rem; margin-top: -1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 12h22M12 1v22' stroke='%23f00' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s; }
.tt-faq__item[open] summary::after { transform: rotate(45deg); }
.tt-faq__a { padding: 0 3rem 3rem; font-size: 1.7rem; line-height: 2.635rem; color: var(--tt-ink); }
.tt-faq__a ul { margin: 0; padding-left: 2.4rem; list-style: disc; }
.tt-faq__a li { margin: .4rem 0; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tt-h2 { font-size: 4.8rem; line-height: 1.2; }
  .tt-hero__title { font-size: 6.4rem; line-height: 7.2rem; }
  .tt-hero__media { height: auto; aspect-ratio: 1328 / 648; }
  .tt-lottery__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); row-gap: 2.4rem; }
  .tt-lottery__question { grid-column: 2; justify-self: end; text-align: right; }
  .tt-pains__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-ind__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-how__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 5.6rem; }
  .tt-how__item { min-height: 0; }
  .tt-how__num { margin-bottom: 4rem; }
  .tt-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .tt-step::after, .tt-step::before { display: none; }
  .tt-faq__list { margin-top: 4rem; }
}

/* ---------- mobile (Tilda 390px layout) ---------- */
@media (max-width: 700px) {
  .tt-h2 { font-size: 3rem; line-height: 3.8rem; }
  .tt-tag { font-size: 1.5rem; }
  .tt-br { display: none; }

  .tt-hero { padding: 2rem 0; }
  .tt-hero__title { padding-inline: 2rem; font-size: 3.4rem; line-height: 3.7rem; }
  .tt-hero__media { margin-top: 3rem; height: 28.1rem; aspect-ratio: auto; border-radius: 1.6rem; }

  .tt-lottery { padding-block: 3rem; }
  .tt-lottery__grid { grid-template-columns: 1fr; row-gap: 0; }
  .tt-lottery__title { font-size: 3rem; line-height: 3.6rem; }
  .tt-lottery__lead { margin-top: .8rem; max-width: none; font-size: 1.7rem; line-height: 2rem; }
  .tt-lottery__maze { margin-top: 2.3rem; }
  .tt-lottery__question { grid-column: auto; margin-top: 2.4rem; max-width: 22.6rem; font-size: 1.7rem; line-height: 2rem; }

  .tt-pains { padding-block: 3rem; }
  .tt-pains__list { grid-template-columns: 1fr; padding-inline: 1.5rem; }
  .tt-pain { display: flex; align-items: center; gap: 1.6rem; min-height: 7rem; padding: 1.3rem 2.1rem; }
  .tt-pain img { width: 3rem; height: 3rem; margin: 0; }
  .tt-pain span { max-width: 24rem; }
  .tt-pains__sum { margin-top: 1.6rem; font-size: 1.7rem; line-height: 2.2rem; }

  .tt-ind { padding-block: 3rem 3.5rem; }
  .tt-ind .tt-h2 { line-height: 3.9rem; }
  .tt-ind__grid { grid-template-columns: 1fr; margin-top: 3rem; }
  .tt-ind__card { height: 15.2rem; padding: 2rem; }
  .tt-ind__name { font-size: 1.5rem; line-height: 2rem; }
  .tt-ind__btn { padding-left: 2.1rem; font-size: 1.4rem; line-height: 1.8rem; }

  .tt-cases { padding-block: 4rem 5rem; }
  .tt-cases__title { line-height: 4.2rem; }
  .tt-slider { display: flex; flex-direction: column; margin: 2.4rem 1.1rem 0; }
  .tt-slider__track { order: 2; }
  .tt-slide img { aspect-ratio: 880 / 1480; object-fit: contain; }
  .tt-slider__arrow { position: static; order: 1; align-self: center; margin: 0 0 2rem; width: 4rem; height: 4rem; background: none; }
  .tt-slider__arrow_prev { display: none; }
  .tt-slider__arrow svg { width: 2.6rem; height: 2.6rem; }
  .tt-slider__dots { order: 3; margin-top: 1.6rem; }

  .tt-how { padding-block: 3rem; }
  .tt-how__title { margin-top: .8rem; }
  .tt-how__grid { grid-template-columns: 1fr; row-gap: 3rem; margin-top: 5.5rem; }
  .tt-how__item { padding-left: 0; border-left: 0; }
  .tt-how__num { margin-bottom: 2.9rem; }
  .tt-how__head { align-items: center; }
  .tt-how__name { font-size: 2rem; line-height: 2.7rem; }
  .tt-tip__btn { width: 3.5rem; height: 3.5rem; }
  .tt-tip__pop { width: min(28rem, calc(100vw - 3.2rem)); }
  .tt-how__desc { min-height: 0; }
  .tt-how__res { min-height: 0; }

  .tt-steps { padding-block: 5rem 6rem; }
  .tt-steps__title { line-height: 3rem; }
  .tt-steps__grid { grid-template-columns: 1fr; row-gap: 2.8rem; margin-top: 3rem; }
  .tt-step { min-height: 0; }
  .tt-step__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .tt-step__head img { width: 4rem; height: 4rem; }
  .tt-step h3 { font-size: 2rem; line-height: 2.6rem; }
  .tt-step p { margin-top: .8rem; font-size: 1.5rem; line-height: 2rem; }
  .tt-step:not(:last-child)::after { display: block; content: ""; position: absolute; top: calc(100% + .4rem); left: 50%; right: auto;
    width: 3rem; height: 2rem; margin-left: -1.5rem; background: url("../img/trade-marketing/tilda/arrow-down.svg") center / contain no-repeat;
    transform: rotate(90deg); }

  .tt-faq { padding-block: 6rem 5rem; }
  .tt-faq__title { line-height: 4rem; }
  .tt-faq__list { margin-top: 3.5rem; }
  .tt-faq__item summary { padding: 2.4rem 6rem 2.4rem 2.4rem; }
  .tt-faq__item summary::after { right: 2rem; }
  .tt-faq__a { padding: 0 2.4rem 2.4rem; font-size: 1.6rem; line-height: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-slider__track { scroll-behavior: auto; }
  .tt-tip__pop, .tt-tip__btn, .tt-faq__item summary::after, .tt-ind__btn, .tt-ind__btn img { transition: none; }
}
