/* Route Planner Teams — страница для компаний (/teams/, scripts/build-teams-page.js).
   Поверх how-to.css: оттуда токены (:root), шапка, подвал, контейнер, рамка телефона .phone-3d.
   Hero, секции, кнопки, FAQ — по образцу главной (public/index.html: .hero, .section-title, .btn-download, .faq). */

.tp-body {
  --accent-light: #6366F1;
  --success: #22C55E;
  --shot-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.32), 0 10px 28px -14px rgba(99, 102, 241, 0.22);
}
html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons — как .btn-download главной */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 52px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tp-btn:hover { background: var(--accent-light); box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45); }
.tp-btn:active { transform: scale(0.98); }
.tp-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.tp-btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.tp-btn--ghost:hover { background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.tp-btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(106, 111, 230, 0.35); }
.tp-btn--block { width: 100%; }
.tp-lang { min-width: 0; }
/* «Guides» в шапке — ссылка на гайды диспетчера (/teams/guides/); на телефоне — только в FAQ и подвале. */
.tp-head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 10px;
}
.tp-head-link:hover { color: var(--accent); }
.tp-head-link:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
/* 660, не 640: на 641–655 px шапка de («Anleitungen» + «Zugang anfragen») уходила во вторую строку. */
@media (max-width: 660px) {
  .tp-head-link { display: none; }
}
/* 580, не 560 (30.10.2026, «Sign in» кнопкой): на 561–574 px шапка fr («Se connecter» + «Demander l’accès») уходила во вторую строку. */
@media (max-width: 580px) {
  .tp-header-cta { display: none; }
}
/* «Sign in» (24.10.2026) — ведёт на вход сайта, как и «Request access» (форма заявки — внутри, после входа). Видна на любой
   ширине. 30.10.2026 (владелец со скрина /teams/ на телефоне: «Sign in в виде кнопки хочу») — контурная кнопка фирменного
   цвета: рядом с залитой «Request access» — второе действие, на телефоне (одна в шапке) — явно кнопка и не спорит с
   «Request access» первого экрана. Не светлая (24.10: светлая — «не в нашем стиле»). Размер и скругление — как .tp-btn--sm. */
.tp-head-link--signin {
  color: var(--accent);
  white-space: nowrap;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  font-size: 0.9rem;
}
.tp-head-link--signin:hover { color: var(--accent); background: rgba(106, 111, 230, 0.08); }
@media (max-width: 660px) {
  .tp-head-link.tp-head-link--signin { display: inline-flex; }
}
/* Шапка с парой «Sign in» + «Request access» (/teams/, статьи): до 767 px выбор языка — списком в подвале, иначе de / fr /
   es / cs уходили во вторую строку. */
/* 779, не 767 (30.10.2026, «Sign in» кнопкой): на 768–769 px шапка de переносилась. */
@media (max-width: 779px) {
  .tp-head-pair .tp-lang { display: none; }
}
/* Телефон (≤ 560 px): «Sign in» справа, «Request access» — на первом экране; выбор языка — списком в подвале (рядом не
   помещается: 360 px, «Se connecter»). */
@media (max-width: 560px) {
  .tp-body .howto-header-actions .tp-lang { display: none; }
}
@media (max-width: 420px) {
  .tp-body .howto-header-inner { flex-wrap: nowrap; gap: 10px; }
  .tp-body .howto-logo { gap: 8px; font-size: 0.98rem; min-width: 0; }
  .tp-body .howto-logo img { width: 34px; height: 34px; }
  .tp-lang { padding: 6px 8px; font-size: 0.82rem; max-width: 118px; }
}

/* Hero */
.tp-hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.tp-hero::before {
  content: '';
  position: absolute;
  top: -35%;
  left: 22%;
  transform: translateX(-40%);
  width: 140%;
  height: 85%;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(93, 95, 239, 0.14) 0%, transparent 58%);
  pointer-events: none;
}
.tp-hero__layout {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .tp-hero__layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); }
}
.tp-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(93, 95, 239, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.tp-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
  text-wrap: balance;
}
.tp-hero__sub {
  font-size: clamp(1.05rem, 2.1vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 26px;
  font-weight: 500;
  max-width: 36rem;
}
.tp-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tp-ctas--center { justify-content: center; }
.tp-hero__note { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

/* Screenshot frames */
.tp-shot {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shot-shadow);
}
.tp-browser {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shot-shadow);
}
.tp-browser img { display: block; width: 100%; height: auto; }
.tp-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tp-browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; flex-shrink: 0; }
.tp-browser__bar em {
  margin-inline-start: 10px;
  padding: 3px 12px;
  border-radius: 8px;
  background: #fff;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Two overlapping screenshots: both in one grid cell; % margins follow the cell width. */
.tp-stack { display: grid; }
.tp-stack > * { grid-area: 1 / 1; align-self: start; min-width: 0; }
.tp-stack--hero .tp-stack__back { margin-inline-start: 12%; width: 88%; }
.tp-stack--hero .tp-stack__front { width: 52%; margin-top: 46%; }
.tp-stack--upload .tp-stack__back { width: 92%; }
.tp-stack--upload .tp-stack__front { width: 70%; margin-inline-start: 30%; margin-top: 30%; }
.tp-single { max-width: 100%; }
.tp-single--narrow { max-width: 500px; margin: 0 auto; }
.tp-single--builder { max-width: 680px; margin: 0 auto; }
/* Шаг 3: окно «кто поедет» и подробности стопа (подтверждение доставки) — оба кадра портретные. */
.tp-stack--assign .tp-stack__back { width: 62%; }
.tp-stack--assign .tp-stack__front { width: 54%; margin-inline-start: 46%; margin-top: 20%; }

/* Sections */
.tp-section { padding: 80px 0; }
.tp-section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tp-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  text-wrap: balance;
}
.tp-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 52px;
  text-wrap: balance;
}

/* How it works */
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 88px; }
.tp-step { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .tp-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .tp-step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tp-step:nth-child(even) .tp-step__copy { order: 2; }
  /* Wide step: text on top, the full-width screenshot below. */
  .tp-step.tp-step--wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tp-step.tp-step--wide .tp-step__copy { order: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 64px; align-items: end; }
  .tp-step--wide .tp-step__copy > :not(.tp-points) { grid-column: 1; }
  .tp-step--wide .tp-points { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
}
.tp-step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(93, 95, 239, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.tp-step h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
}
.tp-step p { margin: 0; color: var(--text-muted); font-size: 1.03rem; line-height: 1.62; }
.tp-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tp-points li {
  position: relative;
  padding-inline-start: 30px;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.98rem;
}
.tp-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(93, 95, 239, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%236A6FE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
/* Шаг → гайд диспетчера (21.10.2026): ссылка под пунктами шага. */
.tp-step .tp-step__guide { margin: 18px 0 0; font-size: 0.98rem; line-height: 1.5; }
.tp-step__guide a { color: var(--accent); font-weight: 700; text-decoration: none; }
.tp-step__guide a::after { content: '\00a0→'; }
.tp-step__guide a:hover { text-decoration: underline; }
.tp-step__guide a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: 4px; }

/* «Who it's for» (21.10.2026, scripts/build-teams-page.js WHO): отрасль — строка (название и одна фраза); две колонки на
   компьютере, одна — на телефоне. Название станет ссылкой на отраслевую страницу (WHO_PAGES) — стиль ссылки уже здесь. */
.tp-section.tp-who { padding: 64px 0; }
.tp-who .tp-sub { margin-bottom: 36px; }
.tp-who__list { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; gap: 0 40px; }
@media (min-width: 760px) {
  .tp-who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tp-who__item { padding: 16px 0; border-top: 1px solid var(--border); }
.tp-who__name { margin: 0 0 4px; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); }
.tp-who__name a { color: inherit; text-decoration: none; }
.tp-who__name a:hover { color: var(--accent); }
.tp-who__item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) {
  .tp-section.tp-who { padding: 48px 0; }
  .tp-who .tp-sub { margin-bottom: 24px; }
  .tp-who__item { padding: 14px 0; }
}

/* Drivers */
.tp-drivers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.tp-driver { text-align: center; }
.tp-driver .tp-phone { max-width: 230px; margin: 0 auto 22px; }
.tp-driver h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.tp-driver p { margin: 0 auto; max-width: 260px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.tp-drivers__notes {
  max-width: 960px;
  margin: 48px auto 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .tp-drivers__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tp-drivers__notes p {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.55;
  color: var(--text-muted);
}
.tp-drivers__notes strong { color: var(--text); }
@media (max-width: 900px) {
  .tp-drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
}
@media (max-width: 480px) {
  .tp-drivers { gap: 32px 14px; }
  .tp-driver .tp-phone { max-width: 160px; padding: 7px; border-radius: 26px; margin-bottom: 16px; }
  .tp-driver .tp-phone .phone-3d__screen { border-radius: 19px; }
  .tp-driver .tp-phone .phone-3d__notch { width: 44px; height: 10px; top: 8px; }
  .tp-driver h3 { font-size: 1rem; }
  .tp-driver p { font-size: 0.9rem; }
}

/* Pricing (17.10.2026): в режиме пилота — карточка «Join the pilot», ниже скромнее «Standard plans · After the pilot»:
   с 22.10.2026 — три карточки пакетов вместо таблицы (на компьютере в ряд и одной высоты, на телефоне столбиком), под ними
   общие лимиты «In all packages», фраза о пределах и возможности всех пакетов. Блоки раздела — одной ширины (--tp-price-w):
   плитки «за водителя», карточка пилота и карточки пакетов стоят по одним краям. */
#pricing { --tp-price-w: 1040px; }
/* «One price for the whole team» (21.10.2026) — начало раздела цен: над заголовком метка «Pricing», цена за водителя у
   каждого пакета (плитки, data-price …Per) и что входит в цену. */
.tp-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.tp-sub.tp-sub--value { margin-bottom: 32px; }
.tp-value { max-width: var(--tp-price-w); margin: 0 auto 64px; }
/* Три пакета (Starter на 3 водителя, 21.10.2026): три плитки «за водителя» в ряд; на телефоне — одна под другой. */
.tp-value__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-value__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tp-value__amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-value__per { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); text-wrap: balance; }
.tp-value__team { margin-top: 6px; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }
.tp-value__price { font-weight: 700; color: var(--text); white-space: nowrap; }
.tp-value__points { margin: 28px 0 0; gap: 12px 36px; }
@media (min-width: 720px) {
  .tp-value__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tp-value { margin-bottom: 48px; }
  .tp-value__tiles { grid-template-columns: 1fr; gap: 10px; }
  .tp-value__tile { padding: 14px 12px; gap: 2px; }
  .tp-value__amount { font-size: 1.5rem; }
  .tp-value__per, .tp-value__team { font-size: 0.85rem; }
  .tp-value__team { margin-top: 2px; }
  .tp-value__points { margin-top: 22px; }
}

.tp-plan__name { margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.tp-plan__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.tp-plan__per { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.tp-plans__note { text-align: center; margin: 32px auto 0; max-width: 640px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

.tp-pilotcard {
  max-width: var(--tp-price-w);
  margin: 0 auto 64px;
  display: grid;
  gap: 22px 40px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 90% 140% at 0% 0%, rgba(28, 179, 134, 0.13) 0%, rgba(28, 179, 134, 0.03) 62%), var(--bg-card);
  border: 1px solid rgba(28, 179, 134, 0.36);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
@media (min-width: 760px) {
  .tp-pilotcard { grid-template-columns: minmax(0, 1fr) auto; }
}
.tp-pilotcard .tp-badge { margin-bottom: 14px; }
.tp-pilotcard__title { margin: 0 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.tp-pilotcard__body { margin: 0; color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; max-width: 36rem; }
.tp-pilotcard .tp-points { margin-top: 18px; }
@media (max-width: 759px) {
  .tp-pilotcard__cta .tp-btn { width: 100%; }
}

.tp-std { max-width: var(--tp-price-w); margin: 0 auto; }
.tp-std__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0 0 18px; }
.tp-std__title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.tp-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Карточки пакетов (22.10.2026, вместо таблицы tp-cmp). До 960 px — столбиком (не шире 520 px), с 960 px — три в ряд одной
   высоты; где есть subgrid, строки карточек (название / цена / «for the whole team» / кнопка / числа) ещё и на одной высоте
   у всех трёх — при переносе названия или цены в одной карточке остальные не «съезжают». Без subgrid — та же карточка
   столбцом, кнопка и числа по своему содержимому. Пакеты не выделяем (владелец 22.10.2026): три одинаковые карточки, у всех
   заполненная кнопка. */
.tp-pkgs {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 20px;
}
.tp-pkg {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
@media (min-width: 960px) {
  .tp-pkgs { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
}
/* Цены разной длины (PL: 359 / 599 / 1049 zł; класс ставят сборщик и скрипт страницы): пока карточки в ряд, но узкие, —
   «/ month» своей строкой у всех трёх, иначе переносится только у длинной. С 1200 px «PLN 1,049 / month» умещается в строку
   с запасом ≥ 45 px на всех 8 языках (замер 22.10.2026). */
@media (min-width: 960px) and (max-width: 1199px) {
  .tp-pkgs--stack .tp-pkg__price .tp-plan__per { flex-basis: 100%; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 960px) {
    .tp-pkg { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.tp-pkg__name { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.tp-pkg__price { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.tp-pkg .tp-plan__amount { font-size: 2.6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-pkg .tp-plan__per { font-size: 0.98rem; }
.tp-pkg__team { margin: 2px 0 0; font-size: 0.9rem; font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.tp-pkg__cta { margin-top: 20px; }
.tp-pkg__cta .tp-btn { min-height: 48px; padding: 10px 16px; font-size: 0.98rem; border-radius: 12px; text-align: center; }
.tp-unavailable .tp-pkg__cta { display: none; }
/* Числа пакета: галочка, подпись (переносится) и число справа; у числа одна ширина во всех карточках — подписи переносятся
   одинаково и строки трёх карточек на одной высоте. Деление на маршруты: есть — подпись цветом текста, нет — бледно и «—». */
.tp-pkg__list { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; align-content: start; }
.tp-pkg__row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline-start: 30px; font-size: 0.95rem; line-height: 1.45; }
.tp-pkg__row::before,
.tp-all__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(93, 95, 239, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%236A6FE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.tp-pkg__label { min-width: 0; color: var(--text-muted); }
.tp-pkg__val { flex: none; min-width: 6ch; text-align: end; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-pkg__row--feat .tp-pkg__label { color: var(--text); font-weight: 600; }
.tp-pkg__row--no .tp-pkg__label { color: #94A3B8; font-weight: 500; }
.tp-pkg__row--no::before {
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 10h7' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
/* «In all packages» под карточками: метка и общие лимиты с галочкой (подпись — над значением); с 960 px — одной строкой по
   центру: метка слева, две колонки. */
.tp-all {
  max-width: 520px;
  margin: 20px auto 0;
  padding: 18px 20px;
  display: grid;
  gap: 14px 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tp-all__title { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; color: var(--accent); }
.tp-all__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 28px; }
.tp-all__item { position: relative; display: flex; flex-direction: column; padding-inline-start: 30px; min-width: 0; }
.tp-all__label { font-size: 0.88rem; line-height: 1.4; color: var(--text-muted); }
.tp-all__val { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text); }
@media (min-width: 480px) {
  .tp-all__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .tp-all { max-width: none; grid-template-columns: auto auto; justify-content: center; column-gap: 56px; padding: 18px 28px; }
  .tp-all__list { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 56px; }
}
.tp-pkgs__note { max-width: 640px; margin: 16px auto 0; text-align: center; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.tp-features { margin: 48px 0 0; }
.tp-features__title { margin: 0 auto 20px; max-width: 760px; text-align: center; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.4; text-wrap: balance; }
.tp-features__list { margin: 0; gap: 12px 32px; }
@media (min-width: 640px) {
  .tp-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .tp-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tp-pkgs { gap: 16px; }
  .tp-pkg { padding: 24px 18px 20px; }
  .tp-pkg .tp-plan__amount { font-size: 2.3rem; }
  .tp-pkg__cta { margin-top: 16px; }
  .tp-pkg__list { margin-top: 18px; padding-top: 16px; gap: 10px; }
  .tp-pkg__row { font-size: 0.92rem; }
  .tp-all { padding: 16px 18px; }
  .tp-features { margin-top: 40px; }
  .tp-pilotcard { padding: 24px 20px; margin-bottom: 48px; }
}

/* FAQ — как .faq главной */
.tp-faq { max-width: 760px; margin: 0 auto; }
.tp-faq__item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.tp-faq__item:last-child { border-bottom: none; }
.tp-faq__item h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.tp-faq__item p { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
#faq .tp-title { margin-bottom: 28px; }
.tp-faq__more { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.tp-faq__more a { color: var(--accent); font-weight: 700; text-decoration: none; }
.tp-faq__more a:hover { text-decoration: underline; }

/* Final CTA */
.tp-final { text-align: center; }
.tp-final__panel {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 28px;
  border-radius: 28px;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(93, 95, 239, 0.16) 0%, rgba(93, 95, 239, 0.05) 70%), var(--bg-card);
  border: 1px solid rgba(106, 111, 230, 0.22);
}
.tp-final .tp-sub { margin-bottom: 28px; }

/* Country not available (teamAvailability → allowed: false) */
.tp-geo {
  margin-top: 22px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(106, 111, 230, 0.35);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius);
  text-align: start;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.tp-geo[hidden] { display: none; }
.tp-final .tp-geo { max-width: 640px; margin: 0 auto; }
.tp-geo p { margin: 0 0 10px; color: var(--text-muted); line-height: 1.55; font-size: 0.97rem; }
.tp-geo .tp-geo__title { color: var(--text); font-weight: 800; font-size: 1.08rem; }
.tp-geo .tp-geo__app { color: var(--text); font-weight: 600; margin-bottom: 14px; }
.tp-geo .howto-cta-stores .howto-store-btn img { height: 44px; }
.tp-unavailable [data-teams-cta],
.tp-unavailable [data-teams-note] { display: none !important; }

/* Footer language links */
.tp-langs {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.tp-langs a { color: var(--text-muted); font-weight: 400; }
.tp-langs a:hover { color: var(--accent); }
.tp-langs [aria-current] { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .tp-hero { padding: 32px 0 52px; }
  .tp-hero__layout { gap: 36px; }
  .tp-hero h1 { font-size: 2rem; }
  .tp-hero__sub { font-size: 1.02rem; margin-bottom: 22px; }
  .tp-ctas .tp-btn { flex: 1 1 auto; }
  .tp-section { padding: 56px 0; }
  .tp-sub { margin-bottom: 36px; font-size: 1.02rem; }
  .tp-steps { gap: 64px; }
  .tp-step { gap: 24px; }
  .tp-shot, .tp-browser { border-radius: 12px; }
  .tp-browser__bar { padding: 7px 10px; }
  .tp-browser__bar span { width: 8px; height: 8px; }
  .tp-final__panel { padding: 40px 18px; border-radius: 22px; }
}

/* Пилот по приглашению (16.10.2026, scripts/build-teams-page.js — шапка «ПИЛОТ»): по умолчанию <body class="tp-pilot"> —
   элементы [data-tp-open] (значок, «5-day free trial · Cancel anytime») спрятаны, [data-tp-pilot] (пометка, тексты пилота)
   видны; teamsOpen: true — скрипт снимает класс, и всё меняется местами без правки HTML. */
.tp-pilot [data-tp-open] { display: none !important; }
body:not(.tp-pilot) [data-tp-pilot] { display: none !important; }
.tp-badge--pilot { background: rgba(28, 179, 134, 0.14); color: #0F7A5C; }
.tp-hero__note--pilot { font-weight: 500; max-width: 36rem; }
/* Подсказка «пока недоступно» в финальной панели (форма заявки — внутри сайта с 24.10.2026). */
.tp-final .tp-geo { margin-top: 22px; }

/*
 * /ar/teams/ — справа налево (30.10.2026, <html dir="rtl"> ставит scripts/build-teams-page.js). Стороны выше — логическими
 * свойствами (padding-inline-start у галочек, border-inline-start у плашки, text-align: start / end): в LTR — те же left /
 * right, в RTL — зеркально. Кадры интерфейса (окно браузера, наложенные снимки, телефон) — слева направо, как сняты: их
 * раскладка (отступы 12 % / 30 % / 46 %, адресная строка) не зеркалится; сама колонка кадров — по другую сторону от текста.
 */
[dir='rtl'] :is(.tp-hero__visual, .tp-step__visual, .tp-phone) { direction: ltr; }
/* «Гайд →» — стрелка по ходу чтения. */
[dir='rtl'] .tp-step__guide a::after { content: '\00a0←'; }
/* Арабское письмо связное — межбуквенный интервал (заголовки −0,01…−0,03 em, «eyebrow» +0,06 em) рвёт соединения букв. */
:root:lang(ar) .tp-body, :root:lang(ar) .tp-body * { letter-spacing: 0; }
/* Адрес сайта в почте подвала и цены — латиница внутри арабской строки. */
[dir='rtl'] .tp-body a[href^='mailto:'] { direction: ltr; unicode-bidi: isolate; }
