/*
 * Компоненты редизайна pvzbutik на чистом CSS — для Blade-шаблонов.
 * Форма (размеры, скругления, отступы, поведение) переписана с исходников turbosmena.ru (Vue + Tailwind).
 * Цвета — только фирменные pvzbutik, через переменные из pvz-tokens.css. Новых цветов здесь не заводить.
 * Где на ТурбоСмене аналога нет, правило собрано из токенов и помечено «нет на ТС».
 * Подключать после pvz-tokens.css.
 */

/* =====================================================================
 * 1. КНОПКИ   (источник: app/components/ui/Button.vue)
 * Все кнопки: скругление 12, рамка 1px цвета фона, шрифт 16/500, межбуквенный 0.4px,
 * переход 300ms на всё. Внутри — flex по центру, промежуток 4px.
 * ===================================================================== */
.ts-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 12px 32px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 500 16px/1 var(--ts-font);
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all 300ms var(--transition-timing-function);
}
.ts-btn:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }
.ts-btn--full { width: 100%; }

/* Красная — ГЛАВНОЕ действие, одна на блок («Разместить объявление», «Продолжить», «Отправить на публикацию») */
.ts-btn--red { background: var(--ts-red); border-color: var(--ts-red); color: #fff; height: 44px; }
.ts-btn--red:hover { background: var(--ts-red-hover); border-color: var(--ts-red-hover); }
.ts-btn--red-lg { background: var(--ts-red); border-color: var(--ts-red); color: #fff; min-height: 56px; }
.ts-btn--red-lg:hover { background: var(--ts-red-hover); border-color: var(--ts-red-hover); }
.ts-btn--red-sm { background: var(--ts-red); border-color: var(--ts-red); color: #fff; min-height: 36px; height: 36px; padding: 0 16px; font-size: 14px; }
.ts-btn--red-sm:hover { background: var(--ts-red-hover); border-color: var(--ts-red-hover); }
/* Красная 44 / 14 px — «Разместить объявление» в шапке (размер как у синей кнопки шапки ТС) */
.ts-btn--red-s { background: var(--ts-red); border-color: var(--ts-red); color: #fff; min-height: 44px; padding: 12px 16px; font-size: 14px; }
.ts-btn--red-s:hover { background: var(--ts-red-hover); border-color: var(--ts-red-hover); }

/* Синяя — второе действие («Применить» в фильтрах, «Подтвердить», «На главную») */
.ts-btn--blue { background: var(--ts-blue); border-color: var(--ts-blue); color: #fff; min-height: 48px; padding: 12px 16px; }
.ts-btn--blue-s { background: var(--ts-blue); border-color: var(--ts-blue); color: #fff; min-height: 44px; padding: 12px 16px; font-size: 14px; }
.ts-btn--blue-lg { background: var(--ts-blue); border-color: var(--ts-blue); color: #fff; min-height: 56px; }
.ts-btn--blue-sm { background: var(--ts-blue); border-color: var(--ts-blue); color: #fff; min-height: 36px; height: 36px; padding: 0 16px; font-size: 14px; }
.ts-btn--blue:hover, .ts-btn--blue-s:hover, .ts-btn--blue-lg:hover, .ts-btn--blue-sm:hover { background: var(--ts-blue-hover); border-color: var(--ts-blue-hover); }

/* Синяя рамка */
.ts-btn--outline-blue { background: transparent; border-color: var(--ts-blue); color: var(--ts-blue); min-height: 48px; padding: 12px 16px; }
.ts-btn--outline-blue:hover { background: var(--ts-blue); color: #fff; }

/* Серая «тихая» — второстепенное («Кабинет продавца», «Помощь в подборе», «Подробнее», «Сбросить все») */
.ts-btn--gray { background: var(--ts-bg-disabled); border-color: var(--ts-bg-disabled); color: var(--ts-black); min-height: 44px; padding: 8px 16px; font-size: 14px; letter-spacing: 0.2px; }
.ts-btn--gray:hover { color: var(--ts-blue); }
.ts-btn--gray-lg { background: var(--ts-bg-disabled); border-color: var(--ts-bg-disabled); color: var(--ts-black); min-height: 48px; padding: 12px 16px; font-weight: 600; letter-spacing: 0.2px; }
.ts-btn--gray-lg:hover { background: var(--ts-black); border-color: var(--ts-black); color: #fff; }

/* Тёмная */
.ts-btn--black { background: var(--ts-black); border-color: var(--ts-black); color: #fff; }
.ts-btn--black:hover { background: var(--ts-blue); border-color: var(--ts-blue); }

/* Зелёная («Показать телефон») */
.ts-btn--green { background: var(--ts-green); border-color: var(--ts-green); color: #fff; }
.ts-btn--green-lg { background: var(--ts-green); border-color: var(--ts-green); color: #fff; min-height: 56px; }
.ts-btn--green:hover, .ts-btn--green-lg:hover { background: var(--ts-green-hover); border-color: var(--ts-green-hover); }

/* Белые с рамкой */
.ts-btn--outline { background: #fff; border-color: var(--ts-line); color: var(--ts-black); padding: 12px 24px; box-shadow: var(--ts-shadow-xs); }
.ts-btn--outline:hover { background: var(--ts-bg-muted); border-color: var(--ts-bg-muted); }
.ts-btn--outline-black { background: #fff; border-color: var(--ts-black); color: var(--ts-black); padding: 12px 24px; font-weight: 600; letter-spacing: 0; }
.ts-btn--outline-black:hover { border-color: var(--ts-blue); color: var(--ts-blue); }

/* Мессенджеры — градиенты как сейчас на pvzbutik (.btn--telegram, .btn--max); размеры — как в меню ТС.
 * Наведение — затемнение градиента на 12 %. */
.ts-btn--telegram, .ts-btn--max { border: none; color: #fff; min-height: 56px; padding: 12px 16px; font-size: 18px; line-height: 24px; letter-spacing: 0; overflow: hidden; }
.ts-btn--telegram { background: var(--ts-telegram); }
.ts-btn--max { background: var(--ts-max); }
.ts-btn--telegram::before, .ts-btn--max::before { content: ''; position: absolute; inset: 0; background: #0000001F; opacity: 0; transition: opacity 300ms; }
.ts-btn--telegram:hover::before, .ts-btn--max:hover::before { opacity: 1; }
.ts-btn--telegram > *, .ts-btn--max > * { position: relative; z-index: 1; }
.ts-btn--telegram.ts-btn--sm, .ts-btn--max.ts-btn--sm { min-height: 44px; font-size: 16px; line-height: 16px; padding: 4px 8px; }

/* Текстовые */
.ts-btn--text { min-height: 24px; padding: 0; border: none; background: transparent; color: var(--ts-blue); }
.ts-btn--text:hover { color: var(--ts-blue-hover); }

/* Состояния */
.ts-btn[disabled], .ts-btn.is-disabled {
  cursor: not-allowed;
  color: var(--ts-light-gray);
  background: var(--ts-bg-disabled);
  border-color: var(--ts-line-cool);
  box-shadow: none;
}
.ts-btn.is-loading { cursor: wait; color: transparent; }
.ts-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ts-spin 1s linear infinite;
}
.ts-btn--gray.is-loading::after, .ts-btn--outline.is-loading::after, .ts-btn--outline-black.is-loading::after { border-color: #6D758866; border-top-color: var(--ts-gray); }
@keyframes ts-spin { to { transform: rotate(360deg); } }

/* =====================================================================
 * 2. ПОЛЯ ФОРМ   (ui/base/Input.vue, InputWrap.vue, Select.vue, Checkbox.vue,
 *                  RadioButton.vue, Switch.vue)
 * ===================================================================== */
.ts-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.ts-label { font: 600 16px/1.25 var(--ts-font); color: var(--ts-black); }
.ts-label .ts-req { color: var(--ts-red); margin-left: 2px; }
.ts-hint { font-size: 12px; line-height: 16px; color: var(--ts-gray); }
.ts-error { font-size: 12px; line-height: 16px; color: var(--ts-red); }

.ts-input, .ts-select, .ts-textarea {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
  font: 400 16px/24px var(--ts-font);
  color: var(--ts-black);
  outline: none;
  appearance: none;
  transition: border-color 300ms, background-color 300ms, box-shadow 200ms 75ms;
}
.ts-input--lg { height: 56px; }
.ts-input::placeholder, .ts-textarea::placeholder { color: var(--ts-light-gray); }
.ts-input:focus, .ts-select:focus, .ts-textarea:focus { border-color: var(--ts-blue); box-shadow: var(--ts-ring); }
.ts-input.is-invalid, .ts-select.is-invalid, .ts-textarea.is-invalid { border-color: var(--ts-red); color: var(--ts-red); }
.ts-input.is-invalid:focus { box-shadow: var(--ts-ring-error); }
.ts-input:disabled, .ts-select:disabled { background: var(--ts-bg-muted); border-color: var(--ts-bg-muted); color: var(--ts-gray); }
.ts-textarea { height: auto; min-height: 96px; line-height: 1.375; resize: vertical; }

/* Поле с иконкой/единицей внутри («₽», «шт», «от», «до», лупа) */
.ts-input-wrap { position: relative; display: flex; align-items: center; }
.ts-input-wrap .ts-input { padding-right: 40px; }
.ts-input-wrap__affix { position: absolute; right: 16px; color: var(--ts-light-gray); font-size: 16px; pointer-events: none; }
.ts-input-wrap__prefix { position: absolute; left: 16px; color: var(--ts-light-gray); font-size: 16px; pointer-events: none; }
.ts-input-wrap--prefix .ts-input { padding-left: 44px; }

/* Выпадающий список: стрелка 20px серая (--ts-gray) справа */
.ts-select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236D7588' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
/* Панель своего списка (меню сортировки, мультивыбор): */
.ts-dropdown { background: #fff; border: 1px solid var(--ts-line); border-radius: 10px; padding: 8px 4px; box-shadow: 0 1px 3px #0000001A; max-height: 216px; overflow-y: auto; }
.ts-dropdown__item { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 6px 12px; border-radius: 10px; font-size: 14px; color: var(--ts-black); cursor: pointer; }
.ts-dropdown__item:hover, .ts-dropdown__item.is-focused { background: var(--ts-bg-muted); }

/* Меню действий (сортировка, кабинет): пункты 48px, наведение — синий текст */
.ts-menu { background: #fff; border: 1px solid var(--ts-line-cool); border-radius: 12px; overflow: hidden; }
.ts-menu__item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px; font-size: 14px; color: var(--ts-black); transition: color 300ms; cursor: pointer; }
.ts-menu__item:hover, .ts-menu__item.is-active { color: var(--ts-blue); }

/* Флажок: зона 24, квадрат 20, рамка 2px светло-серая, скругление 6 */
.ts-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ts-black); cursor: pointer; }
.ts-check input {
  flex: none;
  appearance: none;
  width: 20px; height: 20px; margin: 2px;
  border: 2px solid var(--ts-light-gray);
  border-radius: 6px;
  background: #fff center / 10px 8px no-repeat;
  transition: all 200ms;
  cursor: pointer;
}
.ts-check input:hover { border-color: var(--ts-blue); }
.ts-check input:checked {
  background-color: var(--ts-blue);
  border-color: var(--ts-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' viewBox='0 0 10 8'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M1 4.2 3.6 6.6 9 1.4'/%3E%3C/svg%3E");
}
.ts-check input:disabled { border-color: var(--ts-bg-disabled); }
.ts-check input:disabled + span { color: var(--ts-light-gray); }
.ts-check.is-invalid input { border-color: var(--ts-red); }
.ts-check input:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }

/* Переключатель-кружок: 20px, серый → синий, белая точка 16 → 8 */
.ts-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ts-black); cursor: pointer; }
.ts-radio input {
  flex: none;
  appearance: none;
  width: 20px; height: 20px; margin: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ts-light-gray);   /* серое кольцо 2px, белое 16px внутри */
  transition: box-shadow 200ms;
  cursor: pointer;
}
.ts-radio input:hover { box-shadow: inset 0 0 0 2px var(--ts-blue); }
.ts-radio input:checked { box-shadow: inset 0 0 0 6px var(--ts-blue); }   /* белая точка 8px */
.ts-radio input:disabled { box-shadow: inset 0 0 0 2px var(--ts-bg-disabled); }
.ts-radio input:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }
.ts-radio-group { display: flex; flex-direction: column; gap: 12px; }

/* Тумблер 44×24 («Только с фото») */
.ts-switch { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1.25 var(--ts-font); cursor: pointer; }
.ts-switch input {
  flex: none;
  appearance: none;
  position: relative;
  width: 44px; height: 24px; margin: 0;
  border-radius: 999px;
  background: var(--ts-line-cool);
  transition: background-color 200ms;
  cursor: pointer;
}
.ts-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 200ms; }
.ts-switch input:checked { background: var(--ts-blue); }
.ts-switch input:checked::after { transform: translateX(20px); }
.ts-switch input:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: 2px; }
.ts-switch input:disabled { opacity: 0.5; }

/* =====================================================================
 * 3. МЕТКИ, ЗНАЧКИ, ПОДСКАЗКИ   (ui/Chip.vue, Badge.vue, Tooltip.vue)
 * ===================================================================== */
.ts-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; border-radius: 8px; background: var(--ts-bg-disabled); font: 500 16px/1 var(--ts-font); color: var(--ts-black); white-space: nowrap; }
.ts-chip--sm { min-height: 26px; font-size: 12px; }
@media (max-width: 639px) { .ts-chip { min-height: 24px; padding: 0 8px; font-size: 12px; line-height: 16px; } }
/* Метки маркетплейсов — бледные заливки фирменных цветов pvzbutik, текст чёрный */
.ts-chip--ozon { background: #0E61FF1F; }              /* синий 12 % */
.ts-chip--wb { background: var(--ts-pale-purple); }   /* фиолетовый 12 % */
.ts-chip--ym { background: var(--ts-pale-yellow); }   /* жёлтый 28 % */
.ts-chip--avito { background: #06A7651F; }             /* зелёный 12 % */
/* Скидка у старой цены («−31,8 %») — нет на ТС: красный текст на бледно-красном, как сейчас красная метка на pvzbutik */
.ts-chip--sale { background: var(--ts-pale-red); color: var(--ts-red); }
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ts-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; border: 2px solid #fff; background: var(--ts-red); color: #fff; font: 500 11px/12px var(--ts-font); display: flex; align-items: center; justify-content: center; transition: opacity 300ms; }

.ts-tooltip { position: absolute; z-index: 20; max-width: 180px; padding: 8px; background: #fff; border: 1px solid var(--ts-line-cool); border-radius: 8px; box-shadow: 0 3px 4px #0000000F; font-size: 14px; line-height: 18px; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.ts-has-tooltip:hover .ts-tooltip { opacity: 1; transition-delay: 700ms; }

/* Плашка-предупреждение (ui/AlertNote.vue) */
.ts-alert { display: flex; gap: 24px; align-items: flex-start; padding: 24px 32px; border-radius: 12px; background: #fff linear-gradient(var(--ts-pale-red), var(--ts-pale-red)); font-size: 14px; line-height: 1.625; }
/* бледная заливка поверх белого, а не прозрачная: плашка лежит на сером фоне страницы и иначе тускнеет */
/* Плашка-информация — нет на ТС, собрана из токенов: та же форма, синий 8 % */
.ts-alert--info { background-image: linear-gradient(var(--ts-pale-blue), var(--ts-pale-blue)); }
.ts-alert--success { background-image: linear-gradient(var(--ts-pale-green), var(--ts-pale-green)); }
@media (max-width: 767px) { .ts-alert { border-radius: 0; padding: 24px 3.5%; } }   /* как .ts-panel: на телефоне во всю ширину */

/* =====================================================================
 * 4. ССЫЛКИ   (ui/TextLink.vue) — пунктирное подчёркивание по умолчанию
 * ===================================================================== */
.ts-link { color: var(--ts-blue); text-decoration: none; transition: color 300ms; }
.ts-link:hover { color: var(--ts-blue-hover); }
.ts-link--gray { color: var(--ts-gray); }
.ts-link--black { color: var(--ts-black); }
.ts-link--white { color: #fff; letter-spacing: 0.5px; }
.ts-link--gray:hover, .ts-link--black:hover { color: var(--ts-blue); }
.ts-link--white:hover { color: var(--ts-red); }
.ts-link--line { text-decoration: underline; text-underline-offset: 3px; }
/* + класс .ts-dotted из tokens для пунктира */

/* =====================================================================
 * 5. КАРТОЧКИ И ПАНЕЛИ   (card/Shift.vue, page/lk/WhiteBlock.vue, FilterPanel.vue)
 * ===================================================================== */
/* Карточка ленты: на ≥640 белая, рамка --ts-line-cool, скругление 16, поля 20, БЕЗ тени */
.ts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ts-line-cool);
  border-radius: 16px;
  transition: background-color 500ms linear;
}
/* На телефоне — лента: без скругления, во всю ширину, только линии сверху */
@media (max-width: 639px) {
  .ts-card { border-radius: 0; border-width: 1px 0 0; padding: 16px 3.5%; }
  .ts-card:last-child { border-bottom-width: 1px; }
}
.ts-card__link { position: absolute; inset: 0; z-index: 1; } /* вся карточка — ссылка */
.ts-card__price { font: 700 24px/32px var(--ts-font); }
@media (max-width: 639px) { .ts-card__price { font-size: 20px; line-height: 26px; } }
.ts-card__aside { font-size: 14px; color: var(--ts-gray); }
.ts-card__row { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; }
.ts-card__row svg { flex: none; width: 18px; height: 18px; color: var(--ts-light-gray); }
.ts-card__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; position: relative; z-index: 2; }

/* Сетка ленты: 1 колонка → 2 с 640 → 3 с 1280, промежуток 24 */
.ts-feed { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .ts-feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ts-feed { grid-template-columns: repeat(3, 1fr); } }
/* на телефоне лента выходит под поля контейнера и встаёт во всю ширину экрана */
@media (max-width: 639px) { .ts-feed { gap: 0; margin-left: -3.5vw; margin-right: -3.5vw; } }

/* Белая панель (блоки страницы объекта, кабинет): рамка, 16, поля 24 */
.ts-panel { background: #fff; border: 1px solid var(--ts-line-cool); border-radius: 16px; padding: 24px; }
.ts-panel__title { font: 600 18px/24px var(--ts-font); margin-bottom: 16px; }
@media (min-width: 768px) { .ts-panel__title { font-size: 24px; line-height: 32px; } }
@media (max-width: 767px) { .ts-panel { border-radius: 0; border-width: 1px 0; padding: 24px 3.5%; } }

/* Панель фильтров слева (≥1024): 304px, тень 0 2px 3px, секции через линию */
.ts-filter-panel { width: 304px; background: #fff; border-radius: 16px; padding: 24px 20px; box-shadow: var(--ts-shadow-sm); }
.ts-filter-panel__section { padding: 24px 0; border-top: 1px solid var(--ts-line-cool); }
.ts-filter-panel__section:first-child { padding-top: 0; border-top: none; }
.ts-filter-panel__title { font: 600 20px/24px var(--ts-font); margin-bottom: 16px; }
.ts-filter-panel__subtitle { font: 600 16px/20px var(--ts-font); margin-bottom: 12px; }
.ts-filter-panel__footer { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; background: #fff; }

/* Строки «название — значение» (страница вакансии ТС) */
.ts-dl { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.ts-dl dt, .ts-dl dd { padding: 10px 0; border-bottom: 1px solid var(--ts-line-cool); font-size: 14px; line-height: 18px; }
.ts-dl dt { color: var(--ts-gray); padding-right: 32px; }
.ts-dl dd { font-weight: 500; margin: 0; }
.ts-dl dt:last-of-type, .ts-dl dd:last-of-type { border-bottom: none; }

/* Таблица (рейтинг регистраций на /auth) */
.ts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ts-table th { text-align: left; font-weight: 400; color: var(--ts-light-gray); padding: 12px 16px; vertical-align: bottom; }
.ts-table td { padding: 16px; border-top: 1px solid var(--ts-line-cool); }
.ts-table tr.is-total td { font-weight: 700; }

/* =====================================================================
 * 6. НАВИГАЦИЯ   (Breadcrumbs, NavigationSwitch, LinkTabs, ToIconButton, ListingPagination)
 * ===================================================================== */
.ts-crumbs { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; font-size: 14px; line-height: 18px; }
.ts-crumbs a { color: var(--ts-gray); text-decoration: none; transition: color 300ms; }
.ts-crumbs a:hover { color: var(--ts-blue); }
.ts-crumbs__sep { color: var(--ts-light-gray); }
.ts-crumbs__current { color: var(--ts-black); }

/* Сегмент «Замены / Вакансии» → «Пункты выдачи / Сети ПВЗ» */
.ts-segment { display: inline-flex; align-self: flex-start; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px 0 #0000000D; }
.ts-segment__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border: none; font: 500 16px/1 var(--ts-font); color: var(--ts-black); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 300ms; }
.ts-segment__btn svg { width: 24px; height: 24px; flex: none; }
.ts-segment__btn:hover, .ts-segment__btn.is-active { background: var(--ts-line-cool); }
@media (max-width: 1023px) { .ts-segment { display: flex; align-self: stretch; } .ts-segment__btn { flex: 1; justify-content: center; } }
/* на узком телефоне подпись не переносим: прячем иконку, на ≤400 уменьшаем шрифт */
@media (max-width: 479px) { .ts-segment__btn { padding: 12px 8px; } .ts-segment__btn svg { display: none; } }
@media (max-width: 400px) { .ts-segment__btn { font-size: 14px; } }

/* Вкладки-ссылки с рамкой */
.ts-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-tab { padding: 12px 24px; border: 1px solid var(--ts-line-cool); border-radius: 12px; background: #fff; font: 500 16px/1 var(--ts-font); color: var(--ts-black); text-decoration: none; transition: border-color 300ms, color 300ms; }
.ts-tab:hover { border-color: var(--ts-gray); }
.ts-tab.is-active { border-color: var(--ts-blue); color: var(--ts-blue); }

/* Белая кнопка-«плитка» с иконкой («По ставке за смену», «Показать на карте», «Фильтры») */
.ts-tool { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: #fff; border: none; border-radius: 12px; font: 400 16px/1 var(--ts-font); color: var(--ts-black); cursor: pointer; transition: color 300ms; position: relative; }
.ts-tool:hover { color: var(--ts-blue); }
.ts-tool svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 639px) { .ts-tool { padding: 0; background: transparent; } .ts-tool__label { display: none; } .ts-tool--keep-label .ts-tool__label { display: inline; } }

/* Пагинация: квадраты 40, скругление 8; текущая — бледно-синяя и 600 */
.ts-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-pagination a, .ts-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: #fff; font-size: 16px; color: var(--ts-black); text-decoration: none; transition: background-color 300ms; }
.ts-pagination a:hover, .ts-pagination .is-current { background: #E7EFFF; }   /* синий 10 % на белом, непрозрачный: лежит на сером фоне страницы */
.ts-pagination .is-current { font-weight: 600; }
.ts-pagination a:focus-visible { outline: 2px solid var(--ts-blue); }
.ts-pagination .is-gap { background: transparent; min-width: auto; padding: 0 4px; }

/* =====================================================================
 * 7. ШАПКА   (layout/Header.vue)
 * ===================================================================== */
.ts-header { position: relative; z-index: 100; background: #fff; box-shadow: var(--ts-shadow-header); }
.ts-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 1280px) { .ts-header__inner { height: 84px; padding-top: 20px; padding-bottom: 20px; } }
.ts-header__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.ts-header__right { display: flex; align-items: center; gap: 12px; }
.ts-header__logo img, .ts-header__logo svg { display: block; height: 32px; width: auto; }
@media (max-width: 767px) { .ts-header__logo img, .ts-header__logo svg { height: 28px; } .ts-header__left { gap: 8px; } }
/* Выбор города рядом с логотипом: контурная стрелка 20 + текст 14/500 с пунктиром; наведение — всё синее */
.ts-geo { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; padding: 0; font: 500 14px/1.2 var(--ts-font); color: var(--ts-black); background: none; border: none; cursor: pointer; transition: color 200ms; }
.ts-geo svg { width: 20px; height: 20px; flex: none; }
.ts-geo:hover { color: var(--ts-blue); }
/* Кнопки шапки видны с 1280; ниже — бургер */
.ts-header__desktop { display: none; }
@media (min-width: 1280px) { .ts-header__desktop { display: flex; gap: 12px; } .ts-burger { display: none; } }

/* Бургер 32×32: три полосы 22×2, шаг 8, превращается в крестик */
.ts-burger { width: 32px; height: 32px; position: relative; background: none; border: none; cursor: pointer; }
.ts-burger span { position: absolute; left: 5px; width: 22px; height: 2px; border-radius: 1px; background: var(--ts-black); transition: transform 200ms ease 150ms, opacity 200ms ease; }
.ts-burger span:nth-child(1) { top: 7px; } .ts-burger span:nth-child(2) { top: 15px; } .ts-burger span:nth-child(3) { top: 23px; }
.ts-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ts-burger.is-open span:nth-child(2) { opacity: 0; }
.ts-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Выпадающее меню: <540 на всю ширину, 540–1279 справа со скруглением снизу 12 */
.ts-mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 24px; padding: 24px 3.5%; background: #fff; box-shadow: var(--ts-shadow-header); opacity: 0; pointer-events: none; transition: opacity 300ms; }
.ts-mobile-menu.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 540px) { .ts-mobile-menu { left: auto; width: max-content; min-width: 320px; gap: 16px; border-radius: 0 0 12px 12px; } }
@media (max-width: 539px) { .ts-mobile-menu { height: calc(100dvh - 56px); } }

/* Зелёная полоса над шапкой (на ТС — «Техническая поддержка в Телеграм и Max») */
.ts-topline { background: var(--ts-green); color: #fff; font-size: 14px; line-height: 18px; text-align: center; padding: 8px 3.5%; }
.ts-topline a { color: #fff; text-decoration: underline; }
.ts-topline a:hover { text-decoration: none; }

/* Кнопка «наверх»: круг 40 (60 на ≥1024), серый фон, появляется плавно */
.ts-to-top { position: fixed; right: 3.5%; bottom: 72px; z-index: 90; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--ts-bg-disabled); box-shadow: var(--ts-shadow-xs); color: var(--ts-black); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: all 300ms; }
.ts-to-top.is-visible { opacity: 1; pointer-events: auto; }
.ts-to-top:hover { color: var(--ts-blue); }
@media (min-width: 1024px) { .ts-to-top { width: 60px; height: 60px; right: 3.5dvw; bottom: 3.5dvw; } }

/* =====================================================================
 * 8. ПОДВАЛ   (layout/Footer.vue)
 * ===================================================================== */
.ts-footer { background: var(--ts-black); color: var(--ts-gray); padding: 48px 0 32px; }
.ts-footer__inner { display: flex; flex-direction: column; gap: 48px; }
/* Левая половина — логотип и реквизиты; правая — ссылки и (у правого края) поддержка */
.ts-footer__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; }
.ts-footer__brand { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.ts-footer__links { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; }
.ts-footer__support { grid-column: span 2; justify-self: end; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
/* Два списка городов: левая и правая половины */
.ts-footer__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 32px; }
@media (max-width: 1023px) { .ts-footer__cols { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .ts-footer__brand { gap: 76px; } }
@media (max-width: 1023px) {
  .ts-footer__top { display: flex; flex-direction: column; }
  .ts-footer__links { order: 1; padding-bottom: 24px; border-bottom: 1px solid #6D75884D; }
  .ts-footer__support { order: 2; }
  .ts-footer__brand { order: 3; }
}
.ts-footer__logo { height: 40px; width: auto; }
.ts-footer__copy { font-size: 14px; font-weight: 300; letter-spacing: 0.5px; line-height: 1.3; }
.ts-footer__links a { color: #fff; font-size: 16px; line-height: 1; letter-spacing: 0.5px; max-width: 300px; text-decoration: none; transition: color 300ms; }
.ts-footer__links a:hover { color: var(--ts-red); }
.ts-footer__heading { color: #fff; font: 600 16px/1.25 var(--ts-font); margin-bottom: 12px; }
.ts-footer__cities { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; }
.ts-footer__cities a { color: #fff; font-size: 14px; letter-spacing: 0.5px; text-decoration: none; transition: color 300ms; }
.ts-footer__cities a:hover { color: var(--ts-red); }
.ts-footer__bottom { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; border-top: 1px solid #6D75884D; }
@media (min-width: 768px) { .ts-footer__bottom { flex-direction: row; justify-content: space-between; } }
.ts-footer__disclaimer { font-size: 12px; font-weight: 300; line-height: 1.35; max-width: 880px; }
.ts-footer__legal { display: grid; row-gap: 12px; min-width: 318px; align-content: start; }
.ts-footer__legal a { color: var(--ts-gray); font-size: 14px; text-decoration: none; transition: color 300ms; }
.ts-footer__legal a:hover { color: var(--ts-red); }
.ts-footer__legal a.is-studio { color: var(--ts-red); }
.ts-footer__legal a.is-studio:hover { color: #fff; }

/* =====================================================================
 * 9. МОДАЛЬНЫЕ ОКНА   (modal/View.client.vue, Confirm.vue)
 * ≥890: окно по центру сверху (отступ 96), скругление 20, затемнение чёрным 50 %.
 * <890: окно = белая страница во весь экран, крестик 32 вверху справа.
 * ===================================================================== */
.ts-modal { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; padding: 96px 16px; background: #16161780; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.ts-modal.is-open { opacity: 1; pointer-events: auto; }
.ts-modal__panel { position: relative; margin: 0 auto; max-width: 768px; padding: 32px 48px; background: #fff; border-radius: 20px; }
.ts-modal__panel--md { max-width: 640px; }
.ts-modal__panel--sm { max-width: 480px; }
.ts-modal__title { font: 700 24px/1.3 var(--ts-font); margin-bottom: 16px; }
.ts-modal__close { position: absolute; top: 0; right: -48px; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--ts-bg-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 889px) {
  .ts-modal { padding: 0; background: #fff; }
  .ts-modal__panel { max-width: none; min-height: 100%; padding: 16px 3.5% 77px; border-radius: 0; }
  .ts-modal__close { position: fixed; top: 18px; right: 3.5dvw; width: 32px; height: 32px; background: var(--ts-bg-page); }
  .ts-modal--compact { padding: 16px; background: #16161780; display: flex; align-items: center; }
  .ts-modal--compact .ts-modal__panel { min-height: 0; max-width: 90%; border-radius: 20px; padding: 24px 16px; }
}
/* Подтверждение: 320 / 480, заголовок по центру, две кнопки в ряд */
.ts-confirm { max-width: 480px; padding: 24px; border: 1px solid var(--ts-line-cool); border-radius: 20px; box-shadow: var(--ts-shadow-header); text-align: center; background: #fff; }
.ts-confirm__title { font: 600 24px/32px var(--ts-font); }
.ts-confirm__text { margin-top: 16px; font: 500 16px/1.4 var(--ts-font); }
.ts-confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
/* Боковая панель справа (фильтры на телефоне можно и так) */
.ts-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; width: 100%; background: #fff; transform: translateX(100%); transition: transform 300ms ease; display: flex; flex-direction: column; }
@media (min-width: 640px) { .ts-drawer { width: auto; min-width: 320px; max-width: 420px; border-left: 1px solid var(--ts-line-cool); } }
.ts-drawer.is-open { transform: translateX(0); }
.ts-drawer__head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--ts-line-cool); font: 600 18px/32px var(--ts-font); text-align: center; }
.ts-drawer__body { flex: 1; overflow-y: auto; padding: 16px 3.5% 58px; }

/* Плашка cookie — нет на ТС, собрана как окно подтверждения */
.ts-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 900; max-width: 360px; padding: 20px; background: #fff; border: 1px solid var(--ts-line-cool); border-radius: 16px; box-shadow: var(--ts-shadow-header); font-size: 14px; line-height: 20px; }
.ts-cookie__title { font: 600 16px/20px var(--ts-font); margin-bottom: 8px; }
.ts-cookie__actions { display: flex; gap: 8px; margin-top: 16px; }
@media (max-width: 639px) { .ts-cookie { left: 3.5%; right: 3.5%; max-width: none; } }

/* =====================================================================
 * 10. БАННЕРЫ   (banner/Geolocation.vue, ProPromo.vue)
 * ===================================================================== */
/* Светлый: бледно-синий → бледно-красный (цвета логотипа по 8 % на белом), заголовок h5/600, текст 14,
 * красная кнопка справа */
.ts-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-radius: 16px; background: linear-gradient(90deg, #ECF2FF, #FDEFF0); }
.ts-banner__title { font: 600 18px/28px var(--ts-font); }
.ts-banner__text { font-size: 14px; line-height: 18px; margin-top: 4px; }
@media (max-width: 639px) {
  .ts-banner { flex-direction: column; align-items: flex-start; border-radius: 0; padding: 16px 3.5%; }
  .ts-banner__title { font-size: 16px; line-height: 20px; }
}
/* Тёмный: тёмно-синий pvzbutik → фирменный синий, белый текст, белые кнопки с тенью
 * (было — сплошной тёмно-синий блок «Не пропустите выгодный вариант») */
.ts-banner--navy { background: linear-gradient(90deg, var(--ts-navy), var(--ts-blue)); color: #fff; padding: 12px 16px; }
@media (min-width: 640px) { .ts-banner--navy { padding: 16px 24px; } }
.ts-banner--navy .ts-banner__title { font: 600 16px/1.25 var(--ts-font); }
.ts-btn--white { background: #fff; border-color: #fff; color: var(--ts-black); box-shadow: var(--ts-shadow-sm); padding: 8px 12px; font-size: 14px; line-height: 22px; min-height: 0; }
