/* =====================================================================
   Проба новой главной, /testmain/. Стили ограничены классами .tm-*,
   на остальной сайт не влияют.

   Приёмы из демо Codrops (github.com/codrops, MIT):
   ColumnScroll / ElasticGridScroll — колонки фотографий едут с разной
   скоростью; RapidImageHoverMenu — модели выезжают из-под основной пары;
   MarqueeMenu — лента кадров под пунктом; MagneticButtons — кнопка тянется
   к курсору. Бегущая строка — Smashing Magazine, «Infinite-Scrolling Logos
   In Flat HTML And Pure CSS». Кривые — open-props (MIT).

   Правило: страница обязана быть читаемой без единого скрипта.
   Стартовые состояния анимаций живут ТОЛЬКО под .tm-motion, который
   ставит скрипт после успешной загрузки GSAP.
   ===================================================================== */

.tm {
  --tm-ink:      #14130e;
  --tm-ink-2:    #6b6760;   /* контраст 5.1 на белом */
  --tm-ink-3:    #8d877c;
  --tm-line:     #e7e5e0;
  --tm-surface:  #f4f3f0;
  --tm-surface-2:#efede8;
  --tm-soft:     #fff1eb;
  --tm-accent:   #f15a29;
  --tm-on-dark:  #c3bdb2;

  --ease-3: cubic-bezier(.25, 0, .3, 1);
  --ease-spring-2: linear(
    0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962,
    1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%,
    0.999 61.6%, 0.995 71.2%, 1);
  --dur-hover:  80ms;
  --dur-press: 120ms;
  --dur-move:  320ms;

  /* Поле страницы. Секции тянутся во всю ширину, содержимое держит колонку. */
  --tm-gut: max(20px, calc((100% - 1160px) / 2));

  --tm-page:     #faf7f4;   /* тёплая основа: чистый белый читался плоско */

  position: relative;
  overflow-x: clip;
  padding: 0 0 96px;   /* запас под мобильную панель навигации темы */
  /* тёплая основа + едва различимая точечная сетка: чистая заливка читалась плоско */
  background-color: var(--tm-page);
  background-image: radial-gradient(rgba(20, 19, 14, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--tm-ink);
  -webkit-font-smoothing: antialiased;
}

.tm a { color: var(--tm-ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
        transition: transform var(--dur-press) var(--ease-3),
                    background-color var(--dur-hover) var(--ease-3),
                    border-color var(--dur-hover) var(--ease-3),
                    color var(--dur-hover) var(--ease-3); }
.tm a.tm-help, .tm a.tm-btn--primary { color: #fff; }
.tm a:active { transform: scale(.985); }
.tm a:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 3px; border-radius: 12px; }
.tm img { animation: none !important; }  /* тема вешает своё проявление на каждую картинку */

/* Фирменная подсветка. Только градиент: круг под overflow: hidden давал
   бесформенное пятно с прямым срезом. */
.tm-glow { position: absolute; z-index: 0; pointer-events: none;
           inset: -12% -18% auto -18%; height: 82%;
           background: radial-gradient(30% 34% at 74% 16%, rgba(241, 90, 41, .22), transparent 70%),
                       radial-gradient(46% 50% at 14% 6%, rgba(241, 90, 41, .10), transparent 72%); }
.tm-glow--soft { inset: -20% -10% auto -10%; height: 120%;
                 background: radial-gradient(42% 46% at 82% 12%, rgba(241, 90, 41, .12), transparent 70%); }
.tm-glow--low { inset: auto -20% -10% -20%; height: 60%;
                background: radial-gradient(38% 44% at 18% 84%, rgba(241, 90, 41, .16), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .tm-glow { animation: tm-drift 16s var(--ease-3) infinite alternate; }
}
@keyframes tm-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5%, 3%, 0) scale(1.14); } }

/* ── Типографика ─────────────────────────────────────────────────── */
.tm-h1 { position: relative; z-index: 1; margin: 0; font-size: 46px; font-weight: 800;
         line-height: .94; letter-spacing: -.032em; text-transform: uppercase; }
.tm-split-line { overflow: hidden; padding-top: .16em; margin-top: -.16em;  /* иначе срезает точки у Ё */
                 text-align: inherit !important; }  /* SplitText пишет строкам text-align: start */
.tm-h2 { position: relative; margin: 0; font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -.022em; }
.tm-lead { margin: 18px 0 0; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--tm-ink-2); }
/* Подпись под мозаикой каталога. */
.tm-hero__note { position: relative; z-index: 1; margin: 14px 0 0; text-align: center;
                 font-size: 16px; font-weight: 600; color: var(--tm-ink-2); }

/* ── Кнопки ──────────────────────────────────────────────────────── */
.tm-btn { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px;
          border-radius: 999px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.tm-btn--primary { background: var(--tm-accent); color: #fff; }
.tm-btn--line    { border: 1.5px solid #dedbd4; color: var(--tm-ink); }
.tm-btn--light   { background: #fff; color: var(--tm-ink); }
@media (hover: hover) {
  .tm-btn--primary:hover { background: #d94b1e; }
  .tm-btn--line:hover    { border-color: var(--tm-ink); }
}

/* ── Первый экран ────────────────────────────────────────────────── */
.tm-hero { position: relative; padding: 28px var(--tm-gut) 0; }
.tm-hero__copy { position: relative; z-index: 1; text-align: center; }
.tm-hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

/* Росчерк под заголовком: единственная рисованная деталь на экране. */
.tm-hero__stroke { display: block; width: 62%; max-width: 300px; height: 16px; margin: 8px auto 0;
                   color: var(--tm-accent); }
.tm-hero__stroke path { stroke-dasharray: 340; stroke-dashoffset: 0; }

/* Стена каталога. Колонки двигает скрипт; без него это просто сетка фото. */
.tm-wall { position: relative; z-index: 1; margin: 26px calc(-1 * var(--tm-gut)) 0; height: 300px; overflow: hidden;
           display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: start;
           -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
           mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%); }
.tm-wall__col { display: flex; flex-direction: column; gap: 8px; will-change: transform; }
.tm-wall__col:nth-child(2) { margin-top: -34px; }
.tm-wall__cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
                 border-radius: 14px; background: #fff; overflow: hidden; }
.tm-wall__cell img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }

/* Три довода строкой, без плиток. */
/* Условия — первое, что читают после заголовка: три строки, ничего лишнего,
   по центру экрана. */
/* Блок стоит по центру, но строки внутри выключены влево — иначе иконки
   пляшут, а длинная строка переносится и ломает ряд. */
.tm-trust { position: relative; z-index: 1; list-style: none; margin: 26px auto 0; padding: 0;
            display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: fit-content; }
.tm-trust li { display: flex; align-items: center; gap: 11px; }
.tm-trust svg { flex: none; color: var(--tm-accent); }
.tm-trust b { font-size: 17px; font-weight: 800; color: var(--tm-ink); letter-spacing: -.02em;
              line-height: 1.2; white-space: nowrap; }

/* ── Бегущая строка ──────────────────────────────────────────────── */
.tm-ticker { position: relative; z-index: 1; margin-top: 32px; overflow: hidden; background: var(--tm-page);
             border-block: 1px solid var(--tm-line);
             -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
             mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-ticker__track { display: flex; width: max-content; }
.tm-ticker__list { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 14px 20px 14px 0; }
.tm-ticker__list li { position: relative; padding-left: 40px; font-size: 15px; font-weight: 700;
                      letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tm-ticker__list li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px;
                              margin-top: -3px; border-radius: 50%; background: var(--tm-accent); }
@media (prefers-reduced-motion: no-preference) {
  .tm-ticker__track { animation: tm-marquee 34s linear infinite; }
  .tm-ticker:hover .tm-ticker__track { animation-play-state: paused; }
}
/* Дорожка — две одинаковые копии, поэтому сдвиг ровно на половину бесшовный. */
@keyframes tm-marquee { to { transform: translateX(-50%); } }

.tm-ticker--logos { border: 0; margin-top: 16px; background: none; }
.tm-ticker--logos .tm-ticker__list { gap: 0; padding: 0; }
.tm-ticker--logos li { padding: 0; }
.tm-ticker--logos li::before { content: none; }
.tm-ticker--logos a { display: flex; align-items: center; justify-content: center; width: 148px; height: 78px; }
.tm-ticker--logos img { max-width: 92px; max-height: 30px; width: auto; height: auto;
                        filter: grayscale(1); opacity: .45;
                        transition: opacity var(--dur-move) var(--ease-3), filter var(--dur-move) var(--ease-3); }
@media (hover: hover) { .tm-ticker--logos a:hover img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .tm-ticker--logos .tm-ticker__track { animation-duration: 40s; } }

/* ── Два входа одной полосой ─────────────────────────────────────── */
.tm-split { display: flex; flex-direction: column; gap: 10px; padding: 32px var(--tm-gut) 0;
            max-width: calc(1160px + 40px); margin: 0 auto; }
.tm-split__half { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
                  min-height: 250px; padding: 18px; border-radius: 22px; background: #fff; overflow: hidden;
                  /* flex-grow пересчитывает раскладку на каждом кадре, поэтому
                     ход делаем маленьким и очень долгим — иначе читается рывком */
                  transition: flex-grow 1200ms cubic-bezier(.16, .84, .24, 1),
                              background-color 420ms var(--ease-3); }
.tm-split__half--b { background: var(--tm-surface); }

/* Счётчик работает графикой: крупная контурная цифра на фоне. */
.tm-split__num { position: absolute; left: 14px; top: 6px; font-size: 76px; font-weight: 800;
                 letter-spacing: -.05em; line-height: 1; color: transparent;
                 -webkit-text-stroke: 1.5px rgba(20, 19, 14, .11); white-space: nowrap; }
/* Пара стоит сбоку под наклоном и частью уходит за край плитки —
   обрезку даёт overflow: hidden на половине.
   ВАЖНО: на обёртке не должно быть ни transform, ни will-change — любой из них
   создаёт слой, и mix-blend-mode перестаёт доставать до фона плитки
   (фото с белой подложкой превращается в белый прямоугольник).
   Поэтому наведение анимирует саму картинку через GSAP. */
.tm-split__shoe { position: absolute; right: -27%; top: 3%; width: 92%; height: 84%; }
.tm-split__shoe .tm-gate__hero { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
                                 object-fit: contain; mix-blend-mode: multiply;
                                 transform: rotate(-12deg) scale(1.12); }
.tm-split__body { position: relative; z-index: 2; display: flex; align-items: flex-end;
                  justify-content: space-between; gap: 12px; }
.tm-split__label { display: flex; flex-direction: column; gap: 2px; }
.tm-split__label b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.05; }
.tm-split__label span { font-size: 14px; font-weight: 500; color: var(--tm-ink-2); }
.tm-split__go { flex: none; display: flex; align-items: center; justify-content: center;
                width: 40px; height: 40px; border-radius: 50%; background: var(--tm-accent); color: #fff;
                transition: transform var(--dur-move) var(--ease-3); }

@media (hover: hover) {
  .tm-split__half:hover { background: var(--tm-soft); }
  .tm-split__half:hover .tm-split__go { transform: translateX(4px); }
}

/* ── Витрина товара ──────────────────────────────────────────────── */
.tm-showcase { padding: 48px 0 0 var(--tm-gut); max-width: calc(1160px + 40px); margin: 0 auto; }
.tm-head { display: flex; align-items: baseline; justify-content: space-between; padding-right: 20px; margin-bottom: 16px; }
.tm-more { font-size: 16px; font-weight: 700; padding: 12px 4px; margin: -12px -4px; }
.tm-rail { display: flex; gap: 12px; overflow-x: auto; padding-right: 20px;
           scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tm-rail::-webkit-scrollbar { display: none; }
.tm-card { flex: none; width: 172px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.tm-card__ph { position: relative; height: 152px; border-radius: 16px; background: #fff; overflow: hidden;
               transition: background-color var(--dur-hover) var(--ease-3); }
/* Оба кадра лежат друг на друге: наведение перекладывает прозрачность. */
/* Поля минимальные: белого фона в карточке было больше, чем товара. */
.tm-card__img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px);
                object-fit: contain; mix-blend-mode: multiply;
                transition: opacity var(--dur-move) var(--ease-3), transform var(--dur-move) var(--ease-3); }
.tm-card__img--alt { opacity: 0; }
/* Место под две строки резервируется всегда, иначе длинное название
   («Adidas Adizero Adios Pro 4») занимает вторую строку и уводит цену вниз
   относительно соседей — карточки читаются как разные по высоте.
   min-height в em, а не в px: на десктопе шрифт крупнее, и фиксированные
   42px переставали покрывать две строки (17px × 1.3 × 2 = 44.2px). */
.tm-card__name { font-size: 16px; font-weight: 600; line-height: 1.3;
                 min-height: calc(1.3em * 2);
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Цена прижата к низу карточки — выравнивается по всему ряду. */
.tm-card__price { font-size: 16px; font-weight: 700; margin-top: auto; }
@media (hover: hover) {
  .tm-card:hover .tm-card__ph { background: var(--tm-soft); }
  .tm-card:hover .tm-card__img { opacity: 0; transform: scale(1.04); }
  .tm-card:hover .tm-card__img--alt { opacity: 1; }
}

/* ── Подбор размера ──────────────────────────────────────────────── */
.tm-size { position: relative; padding: 56px var(--tm-gut) 0; max-width: calc(1160px + 40px); margin: 0 auto; }
.tm-size__lead { margin: 12px 0 0; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--tm-ink-2); }
.tm-size__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.tm-size__actions .tm-btn { flex: 0 1 auto; min-width: 0; }

.tm-chat { position: relative; overflow: hidden; margin-top: 28px; padding: 20px 18px;
           border: 1px solid var(--tm-line); border-radius: 26px; background: #fff;
           box-shadow: 0 18px 40px -28px rgba(60, 45, 35, .5);
           display: flex; flex-direction: column; gap: 14px; }
.tm-chat > * { position: relative; z-index: 1; }
.tm-chat__msg { display: flex; align-items: flex-end; gap: 10px; }
.tm-chat__out { flex-direction: row-reverse; }
.tm-chat__ava { flex: none; display: flex; align-items: center; justify-content: center;
                width: 38px; height: 38px; border-radius: 50%; background: var(--tm-surface); color: var(--tm-ink-3); }
.tm-chat__ava--us { background: var(--tm-ink); }
.tm-chat__ava--us img { width: 20px; height: auto; filter: brightness(0) invert(1); }
.tm-chat__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tm-chat__out .tm-chat__body { align-items: flex-end; }
.tm-chat__who { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-ink-3); }
.tm-chat__bubble { max-width: 240px; padding: 12px 15px; border-radius: 18px 18px 18px 4px;
                   background: var(--tm-surface); font-size: 15px; font-weight: 500; line-height: 1.4; }
.tm-chat__bubble--us { max-width: 260px; border-radius: 18px 18px 4px 18px;
                       background: var(--tm-accent); color: #fff; font-weight: 600;
                       /* размер стоит отдельной строкой: обводка вокруг цифры
                          иначе перечёркивает строку над ней */
                       display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
/* Индикатор набора: без скрипта он бессмыслен, поэтому по умолчанию скрыт. */
.tm-chat__dots { display: none; gap: 5px; align-items: center; padding-left: 48px; }
.tm-chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9c4ba; }

/* Найденный размер: цифра крупнее строки, вокруг обводка. */
.tm-chat__size { position: relative; display: inline-block; margin: 2px 0 4px; padding: 0 4px;
                 font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tm-chat__ring { position: absolute; left: -10px; right: -10px; top: -8px; bottom: -7px;
                 border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.tm-chat__take { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.tm-chat__why { font-size: 14px; font-weight: 500; line-height: 1.35; opacity: .92; }

.tm-chat__note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding-left: 48px;
                 font-size: 13px; font-weight: 600; color: var(--tm-ink-3); }
.tm-chat__note svg { flex: none; }

/* ── Под задачу: плитки ──────────────────────────────────────────── */
.tm-cats { position: relative; padding: 56px var(--tm-gut) 0; max-width: calc(1160px + 40px); margin: 0 auto; }
.tm-cats__head { position: relative; z-index: 1; display: flex; align-items: baseline;
                 justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tm-cats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tm-cat { position: relative; display: flex; flex-direction: column; justify-content: space-between;
          aspect-ratio: 1 / 1.08; padding: 14px; border-radius: 20px; background: #fff; overflow: hidden; }
.tm-cat__top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.tm-cat__top b { font-size: 17px; font-weight: 800; letter-spacing: -.016em; text-transform: uppercase; line-height: 1.08; }
.tm-cat__top span { font-size: 13px; font-weight: 600; color: var(--tm-ink-2); }
/* Без z-index и без прозрачности на обёртке: любой из них создаёт слой,
   и mix-blend-mode перестаёт доставать до фона плитки — фото получает
   белый прямоугольник. Анимируем саму картинку. */
.tm-cat__ph { position: absolute; right: -16%; bottom: -8%; width: 116%; height: 74%;
              display: flex; align-items: flex-end; justify-content: center; }
.tm-cat__ph img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right;
                  mix-blend-mode: multiply;
                  transition: transform var(--dur-move) var(--ease-3); }
.tm-cat__go { position: relative; z-index: 2; align-self: flex-start; display: flex; align-items: center;
              justify-content: center; width: 32px; height: 32px; border-radius: 50%;
              background: var(--tm-accent); color: #fff;
              transition: transform var(--dur-move) var(--ease-3); }
.tm-cat__go svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .tm-cat:hover .tm-cat__ph img { transform: scale(1.08) rotate(-5deg); }
  .tm-cat:hover .tm-cat__go { transform: translateX(4px); }
}

/* ── Шаги ────────────────────────────────────────────────────────── */
.tm-steps { padding: 56px var(--tm-gut) 0; max-width: calc(1160px + 40px); margin: 0 auto; }
.tm-steps ol { counter-reset: s; list-style: none; margin: 12px 0 0; padding: 0; }
.tm-steps li { counter-increment: s; position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--tm-line);
               font-size: 16px; font-weight: 500; line-height: 1.4; }
.tm-steps li:last-child { border-bottom: 1px solid var(--tm-line); }
.tm-steps li::before { content: counter(s); position: absolute; left: 0; top: 16px;
                       font-size: 16px; font-weight: 800; color: var(--tm-accent); }
.tm-steps li b { font-weight: 700; }
.tm-steps li span { color: var(--tm-ink-2); }

/* ── Бренды ──────────────────────────────────────────────────────── */
.tm-brands { padding: 56px 0 0; }
.tm-brands .tm-h2 { padding: 0 var(--tm-gut); max-width: calc(1160px + 40px); margin: 0 auto; }

/* ── Помощь ──────────────────────────────────────────────────────── */
.tm-help { display: flex; align-items: center; justify-content: space-between; gap: 16px;
           max-width: 1160px; margin: 48px auto 0; margin-inline: var(--tm-gut);
           padding: 20px; border-radius: 20px; background: var(--tm-ink); color: #fff; }
.tm-help__text { display: flex; flex-direction: column; gap: 3px; }
.tm-help__text b { font-size: 18px; font-weight: 800; letter-spacing: -.014em; }
.tm-help__text span { font-size: 16px; font-weight: 500; color: var(--tm-on-dark); }
.tm-help svg { flex: none; color: var(--tm-accent); transition: transform var(--dur-move) var(--ease-3); }
@media (hover: hover) { .tm-help:hover svg { transform: translateX(4px); } }

/* ── Стартовые состояния анимаций ────────────────────────────────
   Только под .tm-motion: класс ставит скрипт после загрузки GSAP.
   Без скрипта или при prefers-reduced-motion страница видна целиком. */
.tm-motion .tm-hero__after { opacity: 0; transform: translateY(14px); }
.tm-motion .tm-hero__stroke path { stroke-dashoffset: 340; }
.tm-motion .tm-chat__in,
.tm-motion .tm-chat__out { opacity: 0; transform: translateY(16px); }
.tm-motion .tm-chat__dots { display: flex; opacity: 0; }
.tm-motion .tm-chat__dots i { animation: tm-dot 1.1s var(--ease-3) infinite; }
.tm-motion .tm-chat__dots i:nth-child(2) { animation-delay: .15s; }
.tm-motion .tm-chat__dots i:nth-child(3) { animation-delay: .3s; }
.tm-motion .tm-chat__take,
.tm-motion .tm-chat__why { opacity: 0; }
.tm-motion .tm-gate__hero { opacity: 0; }
.tm-motion .tm-chat__ring { opacity: 0; transform: scale(.6); }
.tm-motion .tm-cat { opacity: 0; transform: translateY(20px); }
.tm-motion .tm-cat__ph img { opacity: 0; transform: translateX(26px); }
@keyframes tm-dot { 0%, 100% { transform: none; opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Появление секций — на CSS, без скрипта, с видимым состоянием по умолчанию. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tm-rise { animation: tm-rise linear both; animation-timeline: view();
               animation-range: entry 0% entry 22%; }
  }
}
@keyframes tm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Планшет ─────────────────────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 899px) {
  .tm-hero__cta { flex-direction: row; justify-content: center; }
  .tm-size__actions { flex-direction: row; }
  .tm-wall { grid-template-columns: repeat(4, 1fr); height: 360px; }
}

/* ── Десктоп ─────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .tm { --tm-gut: max(32px, calc((100% - 1160px) / 2)); padding-bottom: 64px; }

  /* Обещание слева, живая стена каталога справа до самого края экрана. */
  .tm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
             column-gap: 56px; align-items: center; padding: 64px 0 64px var(--tm-gut); }
  .tm-hero__copy { grid-column: 1; text-align: left; }
  .tm-hero__stroke { margin: 10px 0 0; width: 300px; }
  .tm-trust { margin: 36px 0 0; gap: 16px; align-items: flex-start; }
  .tm-trust b { font-size: 22px; }
  .tm-hero__note { grid-column: 2; margin-top: 16px; text-align: center; font-size: 17px; }
  .tm-wall { grid-column: 2; grid-row: 1; margin: 0; height: 560px;
             grid-template-columns: repeat(3, 1fr); gap: 12px;
             -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
             mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 86%, transparent 100%); }
  .tm-wall__col:nth-child(2) { margin-top: -60px; }
  .tm-h1 { font-size: 82px; line-height: .92; letter-spacing: -.034em; }
  .tm-lead { font-size: 20px; max-width: 470px; }
  .tm-hero__cta { flex-direction: row; margin-top: 32px; }

  .tm-ticker { margin-top: 8px; }
  .tm-ticker__list { gap: 56px; padding: 18px 28px 18px 0; }
  .tm-ticker__list li { padding-left: 56px; font-size: 16px; }
  .tm-ticker__list li::before { left: 22px; }

  /* Полоса входов: половины делят ширину, активная расширяется */
  .tm-split { flex-direction: row; gap: 20px; padding-top: 56px; max-width: calc(1160px + 64px); }
  .tm-split__half { flex: 1 1 0; min-height: 380px; padding: 28px; border-radius: 26px; }
  .tm-split__half:hover { flex-grow: 1.09; }  /* 1.45 и 1.18 читались рывком */
  .tm-split__num { left: 26px; top: 14px; font-size: 132px; -webkit-text-stroke-width: 2px; }
  .tm-split__shoe { right: -20%; top: 6%; width: 86%; height: 82%; }
  .tm-split__label b { font-size: 30px; }
  .tm-split__label span { font-size: 16px; }
  .tm-split__go { width: 52px; height: 52px; }
  .tm-split__go svg { width: 26px; height: 26px; }

  .tm-showcase { padding: 72px var(--tm-gut) 0; max-width: calc(1160px + 64px); }
  .tm-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
             overflow: visible; padding-right: 0; }
  .tm-card { width: auto; }
  .tm-card:nth-child(n+5) { display: none; }
  .tm-card__ph { height: 224px; }
  .tm-card__img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .tm-card__name { font-size: 17px; }

  /* Подбор размера: слово слева, сцена справа */
  .tm-size { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
             align-items: center; column-gap: 72px; padding: 88px var(--tm-gut) 0;
             max-width: calc(1160px + 64px); }
  .tm-size__copy { grid-column: 1; }
  .tm-size__lead { font-size: 18px; max-width: 480px; }
  /* две кнопки не влезали в левую колонку и заезжали под карточку чата */
  .tm-size__actions { flex-direction: row; flex-wrap: wrap; margin-top: 32px; }
  .tm-size__actions .tm-btn { padding: 0 24px; }
  .tm-chat { grid-column: 2; margin: 0; padding: 26px; border-radius: 28px; gap: 16px; }
  .tm-chat__ava { width: 44px; height: 44px; }
  .tm-chat__ava--us img { width: 24px; }
  .tm-chat__bubble { max-width: 330px; padding: 14px 18px; font-size: 16px; }
  .tm-chat__bubble--us { max-width: 360px; }
  .tm-chat__size { font-size: 36px; }
  .tm-chat__dots, .tm-chat__note { padding-left: 56px; }
  .tm-chat__note { font-size: 14px; }

  /* Под задачу: крупные плитки в три колонки */
  .tm-cats { padding: 88px var(--tm-gut) 0; max-width: calc(1160px + 64px); }
  .tm-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .tm-cat { aspect-ratio: 1 / 0.92; padding: 24px; border-radius: 24px; }
  .tm-cat__top b { font-size: 26px; letter-spacing: -.024em; }
  .tm-cat__top span { font-size: 15px; }
  .tm-cat__ph { right: -12%; bottom: -6%; width: 108%; height: 78%; }
  .tm-cat__go { width: 44px; height: 44px; }
  .tm-cat__go svg { width: 22px; height: 22px; }

  .tm-steps { padding: 88px var(--tm-gut) 0; max-width: calc(1160px + 64px); }
  .tm-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .tm-steps li { padding: 16px 0 0 0; border-top: 2px solid var(--tm-ink); border-bottom: 0 !important; }
  .tm-steps li::before { position: static; display: block; margin-bottom: 6px; }

  .tm-brands { padding-top: 88px; }
  .tm-ticker--logos a { width: 200px; height: 104px; }
  .tm-ticker--logos img { max-width: 116px; max-height: 38px; }

  .tm-help { margin-top: 88px; padding: 28px 32px; }
  .tm-help__text b { font-size: 22px; }
  .tm-help__text span { font-size: 17px; }
}

@media (min-width: 900px) and (max-width: 1140px) {
  .tm-h1 { font-size: 62px; }
  .tm-hero { column-gap: 36px; }
}
