/* =========================================================================
   license.css — сторінка «Ліцензії на програму»
   Версія: 2.0 (консолідована, без шарів перевизначень)
   Область дії: torgsoft.ua/price/liczenzii-na-programmu/
   Неймспейси: .ts-lic (контент сторінки), .ts-lic-page (site-wide компоненти)
   Підключається ПІСЛЯ main.css
   -------------------------------------------------------------------------
   1 Токени · 2 Скидання · 3 Типографіка · 4 Секції · 5 Кнопки ·
   6 Перемикач оплати · 7 Картки · 8 Ціна й селектор · 9 Аддон ·
   10 Пакет впровадження · 11 Онлайн · 12 Таблиця · 13 Міграція ·
   14 Оплата · 15 Юридичний блок · 16 FAQ · 17 Доступність · 18 Адаптив
   ========================================================================= */

/* ---- 1. Токени ---------------------------------------------------------- */
.ts-lic {
  --tsl-yellow: #FAC739;
  --tsl-yellow-mid: #FFF7D1;
  --tsl-graphite: #28282B;
  --tsl-white: #FFFFFF;

  --tsl-terracotta: #D43911;
  --tsl-terracotta-dark: #B9310F;
  --tsl-text: #111827;
  --tsl-link: #1377BD;
  --tsl-link-hover: #0F5E97;

  --tsl-gray-soft: #F8F8F8;
  --tsl-border: #E7E7E7;
  --tsl-border-strong: #D6D6D6;
  --tsl-muted: #5B6270;

  --tsl-radius: 12px;
  --tsl-radius-sm: 8px;
  --tsl-radius-pill: 999px;

  --tsl-gap: 20px;
  --tsl-section-gap: 60px;
  --tsl-btn-h: 46px;

  --tsl-font: "Rubik", "Segoe UI", Arial, sans-serif;

  width: 100%;
  clear: both;
  font-family: var(--tsl-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tsl-text);
  -webkit-font-smoothing: antialiased;
}

.ts-lic, .ts-lic *, .ts-lic *::before, .ts-lic *::after { box-sizing: border-box; }

/* ---- 2. Скидання шкоди від main.css -------------------------------------
   :where() тримає специфічність на рівні 0-1-0. Без нього ці правила
   перебивали б власні компонентні класи й обнуляли їм margin.
   Не прибирати :where().
   ------------------------------------------------------------------------ */
.ts-lic :where(div, ul, ol, li, section, figure, details, summary) {
  width: auto; float: none; clear: none; margin: 0;
  font-family: var(--tsl-font);
  font-size: inherit; line-height: inherit; color: inherit;
}
.ts-lic :where(p) {
  width: auto; float: none; clear: none; margin: 0 0 16px;
  font-family: var(--tsl-font);
  font-size: 17px; line-height: 1.58; font-weight: 400; color: var(--tsl-text);
}
.ts-lic :where(p):last-child { margin-bottom: 0; }
.ts-lic :where(span) { width: auto; float: none; font: inherit; color: inherit; }
.ts-lic :where(img) { max-width: 100%; height: auto; float: none; display: block; }

/* ---- 3. Типографіка ----------------------------------------------------- */
.ts-lic :where(h2) {
  margin: 0 0 10px;
  font-size: 30px; line-height: 1.22; font-weight: 700; color: var(--tsl-graphite);
}
.ts-lic :where(h3) {
  margin: 0 0 12px;
  font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--tsl-graphite);
}
.ts-lic :where(h2) sup, .ts-lic :where(h3) sup {
  font-size: .46em; font-weight: 500;
  vertical-align: super; line-height: 0; margin-left: 2px;
}
.ts-lic :where(a) {
  color: var(--tsl-link); font: inherit; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 119, 189, .3);
  transition: color .2s, border-color .2s;
}
.ts-lic :where(a):hover { color: var(--tsl-link-hover); border-bottom-color: currentColor; }
.ts-lic :where(strong, b) { font-weight: 600; color: inherit; }


/* ---- 3.1 Вступна плашка -------------------------------------------------
   Лежить усередині .container, тобто по ширині лендінгу, а не вікна.
   ------------------------------------------------------------------------ */
.ts-lic-intro {
  margin-bottom: 40px;
  padding: 26px 30px;
  border: 1px solid var(--tsl-border);
  border-left: 4px solid var(--tsl-yellow);
  border-radius: 0 var(--tsl-radius) var(--tsl-radius) 0;
  background: var(--tsl-gray-soft);
}
.ts-lic-intro__text {
  margin: 0;
  font-size: 18px; line-height: 1.68;
  color: var(--tsl-text);
}

/* ---- 4. Секції та ритм -------------------------------------------------- */
.ts-lic__section { margin-bottom: var(--tsl-section-gap); scroll-margin-top: 90px; }
.ts-lic__section:last-child { margin-bottom: 0; }
.ts-lic__section-head { margin-bottom: 24px; text-align: left; }
.ts-lic__section-head p {
  max-width: 760px; margin: 0;
  font-size: 16px; color: var(--tsl-muted);
}

/* ---- 5. Кнопки й посилання-дії ------------------------------------------
   Ієрархія: primary (купівля) → outline (демоверсія) → soft (консультація)
   → текстове посилання (Детальніше).

   УВАГА: .ts-lic :where(a) додає посиланням border-bottom як підкреслення.
   Гасити його у кнопок через border-bottom: 0 НЕ можна — це зрізає нижню
   грань у контурних кнопок. Тому кнопкам задаємо повний border на
   специфічності 0-2-0, яка перебиває :where(a).
   ------------------------------------------------------------------------ */
.ts-lic__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tsl-btn-h); padding: 11px 32px;
  border-radius: var(--tsl-radius-pill);
  font-family: var(--tsl-font); font-size: 16px; font-weight: 500; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ts-lic a.ts-lic__btn { border: 1px solid transparent; }

.ts-lic a.ts-lic__btn--primary,
.ts-lic a.ts-lic__btn--primary:visited {
  background: var(--tsl-terracotta); border-color: var(--tsl-terracotta);
  color: var(--tsl-white);
}
.ts-lic a.ts-lic__btn--primary:hover {
  background: var(--tsl-terracotta-dark); border-color: var(--tsl-terracotta-dark);
  color: var(--tsl-white);
}

.ts-lic a.ts-lic__btn--outline,
.ts-lic a.ts-lic__btn--outline:visited {
  background: transparent; border-color: var(--tsl-terracotta);
  color: var(--tsl-terracotta);
}
.ts-lic a.ts-lic__btn--outline:hover {
  background: var(--tsl-terracotta); border-color: var(--tsl-terracotta);
  color: var(--tsl-white);
}

.ts-lic a.ts-lic__btn--soft,
.ts-lic a.ts-lic__btn--soft:visited {
  background: var(--tsl-white); border-color: var(--tsl-border-strong);
  color: var(--tsl-text);
}
.ts-lic a.ts-lic__btn--soft:hover {
  background: var(--tsl-gray-soft); border-color: var(--tsl-graphite);
  color: var(--tsl-text);
}

.ts-lic__link-action { display: inline-block; font-size: 15px; font-weight: 500; }

/* ---- 6. Перемикач моделі оплати ----------------------------------------- */
.ts-lic__pay-input { position: absolute; opacity: 0; pointer-events: none; }

.ts-lic__toggle {
  display: inline-flex; padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--tsl-border); border-radius: var(--tsl-radius-pill);
  background: var(--tsl-gray-soft);
}
.ts-lic__toggle-btn {
  padding: 9px 22px; border-radius: var(--tsl-radius-pill);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--tsl-muted); cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s;
}
.ts-lic__toggle-btn:hover { color: var(--tsl-text); }
#ts-lic-pay-perm:checked ~ .ts-lic__toggle .ts-lic__toggle-btn[for="ts-lic-pay-perm"],
#ts-lic-pay-rent:checked ~ .ts-lic__toggle .ts-lic__toggle-btn[for="ts-lic-pay-rent"] {
  background: var(--tsl-white); color: var(--tsl-text);
  box-shadow: 0 1px 3px rgba(40, 40, 43, .1);
}
.ts-lic__pay-input:focus-visible ~ .ts-lic__toggle {
  outline: 2px solid var(--tsl-link); outline-offset: 2px;
}

.ts-lic__price-slot--rent { display: none; }
#ts-lic-pay-rent:checked ~ .ts-lic__cards .ts-lic__price-slot--perm,
#ts-lic-pay-rent:checked ~ .ts-lic__addon .ts-lic__price-slot--perm { display: none; }
#ts-lic-pay-rent:checked ~ .ts-lic__cards .ts-lic__price-slot--rent,
#ts-lic-pay-rent:checked ~ .ts-lic__addon .ts-lic__price-slot--rent { display: block; }

/* ---- 7. Картки ліцензій -------------------------------------------------
   Однакова структура в усіх трьох: назва → кому підходить → обмеження →
   ціна → дії. Додаткове підключення винесено окремим блоком, тому
   компенсувати різницю висот через min-height більше не потрібно.
   ------------------------------------------------------------------------ */
.ts-lic__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tsl-gap); list-style: none; padding: 0; align-items: stretch;
}
.ts-lic__card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--tsl-border); border-radius: var(--tsl-radius);
  background: var(--tsl-white);
}
.ts-lic__card--featured {
  border: 2px solid var(--tsl-yellow); padding: 23px 21px;
  box-shadow: 0 10px 30px rgba(40, 40, 43, .10);
}
.ts-lic__card-badge {
  position: absolute; top: -12px; left: 21px;
  padding: 4px 12px; border-radius: var(--tsl-radius-pill);
  background: var(--tsl-yellow); color: var(--tsl-graphite);
  font-size: 13px; font-weight: 500; line-height: 1.3;
}
.ts-lic__card-head {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; margin-bottom: 14px;
}
.ts-lic__card-icon { flex: 0 0 48px; width: 48px; }
.ts-lic__card-name {
  margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600;
  color: var(--tsl-graphite); text-wrap: balance;
}
.ts-lic__card-fit { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.ts-lic__card-nofit {
  margin: 0 0 18px; padding-top: 14px;
  border-top: 1px dashed var(--tsl-border);
  font-size: 13px; line-height: 1.5; color: var(--tsl-muted);
}
.ts-lic__nofit-label { font-weight: 500; color: var(--tsl-text); }
.ts-lic__card-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 20px;
}
.ts-lic__card-actions .ts-lic__btn { width: 100%; }

.ts-lic__cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  margin-top: 26px;
}
.ts-lic__cta-row .ts-lic__btn { min-width: 248px; }

/* ---- 8. Ціна та селектор робочих місць ---------------------------------- */
.ts-lic__price { padding-top: 16px; border-top: 1px solid var(--tsl-border); }
.ts-lic__price-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.ts-lic .pp, .ts-lic .ph { text-align: left; }
.ts-lic .pp {
  font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--tsl-graphite);
}
.ts-lic .pp.active { animation: none; }
.ts-lic .ph { display: none; }

.ts-lic__seats-label {
  display: block; margin-top: 14px;
  font-size: 13px; font-weight: 500; color: var(--tsl-text);
}
.ts-lic .s_select { margin-top: 6px; max-width: 100%; }
.ts-lic .selectric-wrapper { width: 100%; max-width: 100%; margin: 0; float: none; }
.ts-lic .selectric {
  border: 1px solid var(--tsl-border-strong); border-radius: var(--tsl-radius-sm);
  background: var(--tsl-white);
}
.ts-lic .selectric .label {
  margin-left: 12px; height: 34px; line-height: 34px;
  font-size: 14px; color: var(--tsl-text);
}

/* ---- 9. Додаткове клієнтське підключення -------------------------------- */
.ts-lic__addon {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 20px;
  margin-top: 22px; padding: 18px 22px;
  border: 1px solid var(--tsl-border); border-radius: var(--tsl-radius);
  background: var(--tsl-gray-soft);
}
.ts-lic__addon-icon { display: flex; align-items: center; }
.ts-lic__addon-icon img { width: 100%; height: auto; }
.ts-lic__addon-body { min-width: 0; }
.ts-lic__addon-title {
  display: block; margin-bottom: 4px;
  font-size: 16px; font-weight: 600; color: var(--tsl-graphite);
}
.ts-lic__addon-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tsl-muted); }
.ts-lic__addon-side { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.ts-lic__addon-side .pp { font-size: 20px; }

/* ---- 10. Пакет впровадження --------------------------------------------- */
.ts-lic__pack-info {
  margin-top: 24px; padding: 20px 24px;
  border-left: 3px solid var(--tsl-yellow);
  border-radius: 0 var(--tsl-radius) var(--tsl-radius) 0;
  background: var(--tsl-gray-soft);
}
.ts-lic__pack-info h3 { margin-bottom: 8px; font-size: 17px; }
.ts-lic__pack-info p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---- 11. Блок Торгсофт-Онлайн ------------------------------------------- */
.ts-lic__online {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center; gap: 22px; padding: 22px 24px;
  border: 1px solid var(--tsl-yellow); border-radius: var(--tsl-radius);
  background: var(--tsl-yellow-mid);
}
.ts-lic__online-icon img { width: 100%; height: auto; }
.ts-lic__online-body { min-width: 0; }
.ts-lic__online-name { margin: 0 0 6px; font-size: 18px; }
.ts-lic__online-text {
  margin: 0; max-width: 640px; font-size: 15px; line-height: 1.5; color: var(--tsl-text);
}
.ts-lic__online-more { display: inline-block; margin-top: 10px; font-size: 15px; }
.ts-lic__online-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ts-lic__online-price { display: flex; align-items: baseline; gap: 7px; }
.ts-lic__online-price .ts-lic__price-from { font-size: 15px; color: var(--tsl-graphite); }
.ts-lic__online-side .pp { font-size: 24px; }
.ts-lic__online-side .ts-lic__btn { min-width: 168px; }

/* ---- 12. Таблиця порівняння --------------------------------------------- */
.ts-lic__compare-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ts-lic__compare {
  width: 100%; min-width: 720px;
  border-collapse: collapse; table-layout: fixed; font-size: 15px;
}
.ts-lic__compare th, .ts-lic__compare td {
  padding: 13px 14px; border-bottom: 1px solid var(--tsl-border);
  text-align: center; vertical-align: middle; line-height: 1.4;
}
.ts-lic__compare thead th {
  border-bottom: 2px solid var(--tsl-border-strong);
  font-size: 15px; font-weight: 600; color: var(--tsl-graphite);
  white-space: nowrap;
}
.ts-lic__compare th[scope="row"], .ts-lic__compare thead th:first-child {
  width: 38%; text-align: left; font-weight: 400; color: var(--tsl-text);
  white-space: normal;
}
.ts-lic__compare tbody tr:nth-child(odd) { background: var(--tsl-gray-soft); }
.ts-lic__compare .is-yes { font-weight: 600; color: var(--tsl-text); }
.ts-lic__compare .is-no { color: var(--tsl-muted); }
.ts-lic__compare-link { margin-top: 16px; font-size: 15px; }

/* ---- 13. Зміна типу ліцензії -------------------------------------------- */
.ts-lic__migrate {
  list-style: none; padding: 0;
  border: 1px solid var(--tsl-border); border-radius: var(--tsl-radius);
  /* НЕ ставити overflow: hidden — обрізає випадний список selectric
     у рядку з вибором робочих місць. Кути скруглюємо на крайніх li. */
}
.ts-lic__migrate > li:first-child { border-radius: var(--tsl-radius) var(--tsl-radius) 0 0; }
.ts-lic__migrate > li:last-child { border-radius: 0 0 var(--tsl-radius) var(--tsl-radius); }
.ts-lic__migrate > li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) 200px;
  align-items: center; gap: 20px; padding: 18px 22px;
  border-bottom: 1px solid var(--tsl-border);
}
.ts-lic__migrate > li:last-child { border-bottom: 0; }
.ts-lic__migrate-icons { display: flex; align-items: center; gap: 10px; }
.ts-lic__migrate-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
.ts-lic__migrate-icon img { max-width: 100%; max-height: 44px; width: auto; }
.ts-lic__migrate-arrow { flex: 0 0 16px; }
.ts-lic__migrate-arrow img { width: 16px; }
.ts-lic__migrate-text { margin: 0; font-size: 15px; line-height: 1.45; }
.ts-lic__migrate-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ts-lic__migrate-side .pp { font-size: 19px; text-align: right; }
.ts-lic__migrate-side .s_select { margin-top: 0; width: 100%; }
.ts-lic .selectric-wrapper.selectric-open { position: relative; z-index: 20; }
.ts-lic .selectric-items { z-index: 21; }
.ts-lic__migrate-side .ts-lic__btn { width: 100%; }

/* ---- 14. Способи оплати ------------------------------------------------- */
.ts-lic__pay { padding: 20px 24px; border-radius: var(--tsl-radius); background: var(--tsl-gray-soft); }
.ts-lic__pay p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---- 15. Юридичний блок — нативний <details>, без обрізання градієнтом -- */
.ts-lic__legal {
  border: 1px solid var(--tsl-border); border-radius: var(--tsl-radius);
  background: var(--tsl-white);
}
.ts-lic__legal > summary:hover { background: var(--tsl-gray-soft); border-radius: var(--tsl-radius); }
.ts-lic__legal > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-size: 16px; font-weight: 600; color: var(--tsl-graphite);
  cursor: pointer; list-style: none;
}
.ts-lic__legal > summary::-webkit-details-marker { display: none; }
.ts-lic__legal > summary::after {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px;
  border-right: 2px solid var(--tsl-muted); border-bottom: 2px solid var(--tsl-muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.ts-lic__legal[open] > summary::after { transform: rotate(-135deg) translateY(2px); }
.ts-lic__legal[open] > summary { border-bottom: 1px solid var(--tsl-border); }
.ts-lic__legal-body { padding: 20px 22px 24px; font-size: 15px; }
.ts-lic__legal-body p { font-size: 15px; line-height: 1.6; }
.ts-lic__legal-body h3 { margin-top: 20px; font-size: 17px; }
.ts-lic__legal-body h3:first-child { margin-top: 0; }
.ts-lic__legal .is-collapse { display: none; }
.ts-lic__legal[open] .is-expand { display: none; }
.ts-lic__legal[open] .is-collapse { display: inline; }

/* ---- 16. FAQ — лише в межах .ts-lic-page, глобальний .m_faq не чіпаємо -- */
.ts-lic-page .m_faq { padding: 46px 0 60px; background: none; }

/* main.css робить цю стрілку жовтим колом 50x50 з position:absolute
   та right:-3px, через що вона вилазить за межі рядка. Перекриваємо
   тільки в межах .ts-lic-page. */
.ts-lic-page .m_faq__list > li > a i {
  position: static;
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border: 1px solid #E7E7E7; border-radius: 50%;
  background-color: #FFFFFF;
}
.ts-lic-page .m_faq__list > li > a i img { width: 11px; margin-top: 0; float: none; }
.ts-lic-page .m_faq__list > li > a:hover i { border-color: #FAC739; background-color: #FFF7D1; }
.ts-lic-page .m_faq .main_title {
  display: block; margin-bottom: 20px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 30px; font-weight: 700; line-height: 1.22;
  color: #28282B; text-align: left; text-transform: none;
}
.ts-lic-page .m_faq__list > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; margin-bottom: 10px;
  border: 1px solid #E7E7E7; border-radius: 12px; background: #FFFFFF;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px; font-weight: 500; color: #111827; text-transform: none;
}
.ts-lic-page .m_faq__list > li > a:hover { border-color: #FAC739; }
.ts-lic-page .m_faq__list_inside > li { margin-bottom: 8px; }
.ts-lic-page .m_faq__list_inside > li > a {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  border: 1px solid #E7E7E7; border-radius: 8px; background: #FFFFFF; color: #111827;
}
.ts-lic-page .m_faq__list_inside > li > a:hover { border-color: #FAC739; }
.ts-lic-page .m_faq__list_inside--left p {
  font-family: "Rubik", Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: #111827;
}
.ts-lic-page .m_faq__list_inside--right i {
  font-style: normal; font-size: 20px; font-weight: 500; color: #D43911;
}
.ts-lic-page .m_faq_last { padding: 4px 18px 16px; font-size: 15px; line-height: 1.6; color: #111827; }

/* ---- 17. Доступність ---------------------------------------------------- */
.ts-lic :focus-visible, .ts-lic-page .m_faq :focus-visible {
  outline: 2px solid #1377BD; outline-offset: 2px; border-radius: 3px;
}
.ts-lic__sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ts-lic *, .ts-lic *::before, .ts-lic *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

/* ---- 18. Адаптив --------------------------------------------------------
   1120 — щільніші відступи в картках
    860 — картки та міграція в одну колонку (щоб не було самотньої третьої)
    650 — мобільні розміри
   ------------------------------------------------------------------------ */
@media (max-width: 1120px) {
  .ts-lic { --tsl-gap: 16px; --tsl-section-gap: 52px; }
  .ts-lic__card { padding: 20px 18px; }
  .ts-lic__card--featured { padding: 19px 17px; }
  .ts-lic__card-name { font-size: 18px; }
}

@media (max-width: 860px) {
  .ts-lic { --tsl-section-gap: 44px; }
  .ts-lic :where(h2) { font-size: 26px; }
  .ts-lic-intro { margin-bottom: 32px; padding: 22px 24px; }
  .ts-lic-intro__text { font-size: 17px; line-height: 1.62; }

  .ts-lic__cards { grid-template-columns: minmax(0, 1fr); }
  .ts-lic__card-head { min-height: 0; }
  .ts-lic__card--featured { box-shadow: none; }

  .ts-lic__addon { grid-template-columns: 48px minmax(0, 1fr); }
  .ts-lic__addon-side { grid-column: 1 / -1; justify-content: space-between; }

  .ts-lic__online { grid-template-columns: 56px minmax(0, 1fr); }
  .ts-lic__online-side { grid-column: 1 / -1; align-items: flex-start; }

  .ts-lic__migrate > li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ts-lic__migrate-side { align-items: stretch; }
  .ts-lic__migrate-side .pp { text-align: left; }
}

@media (max-width: 650px) {
  .ts-lic { --tsl-section-gap: 36px; font-size: 16px; }
  .ts-lic :where(h2) { font-size: 23px; }
  .ts-lic :where(p) { font-size: 16px; }
  .ts-lic-intro { margin-bottom: 26px; padding: 18px 18px; }
  .ts-lic-intro__text { font-size: 16px; line-height: 1.6; }

  .ts-lic__toggle { display: flex; width: 100%; }
  .ts-lic__toggle-btn { flex: 1; padding: 10px 8px; text-align: center; font-size: 14px; }

  .ts-lic__cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .ts-lic__cta-row .ts-lic__btn { width: 100%; }
  .ts-lic__cta-row .ts-lic__link-action { text-align: center; }

  .ts-lic__addon { padding: 16px 18px; }
  .ts-lic__addon-side { flex-direction: column; align-items: stretch; gap: 10px; }
  .ts-lic__addon-side .ts-lic__btn { width: 100%; }

  .ts-lic__online { padding: 18px; }
  .ts-lic__online-side .ts-lic__btn { width: 100%; min-width: 0; }

  .ts-lic__pack-info, .ts-lic__pay { padding: 16px 18px; }
  .ts-lic__legal > summary, .ts-lic__legal-body { padding-left: 18px; padding-right: 18px; }

  .ts-lic-page .m_faq .main_title { font-size: 23px; }
}
