/* Дополнения к боевым lk.css/common.css: таблицы витрин, мелкие классы стенда.
   Боевой кабинет рисовал таблицы React-компонентами; у нас серверный Jinja2, поэтому
   таблицы стилизуем в тон (цвета/шрифты — переменные боевого lk.css). */

.lk-line { margin: 6px 0; }
.lk-ok { color: #37ea97; }
.lk-err { color: #ff5c5c; }
.lk-forms { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.lk-form { min-width: 220px; }
.lk-form input { margin-bottom: 6px; }
.lk-form textarea { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.lk-h3 { margin: 18px 0 6px; font-size: 14px; opacity: .75; }
.lk-muted { opacity: .6; }
.lk-balance { font-size: 28px; font-weight: 600; margin: 6px 0 14px; }
.lk-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.lk-table th, .lk-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(128,128,128,.25); }
.lk-table th { font-size: 12px; font-weight: 600; opacity: .7; }
.green { color: #37ea97; }
.red { color: #ff5c5c; }
.inline { display: inline; }
button.as-link, button.login { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; padding: 0; }
header nav .buttons form.inline button.login svg { display: block; }

/* Волна 6a: неактивные плашки услуг и строки баланса/профиля. */
.lk-balance-row { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.lk-balance-row > div { min-width: 180px; }
/* Балансовая плашка как в боевом кабинете: тёмная, шириной как верхний баннер
   (12 колонок боевой сетки), профиль и деньги в две строки, зелёная кнопка-пилюля. */
.lk-balance-plate {
  background: #22262d; color: #fff; border-radius: 16px;
  padding: 24px 32px; display: flex; flex-direction: column; gap: 20px;
  width: calc(12 * var(--column-width) + 11 * var(--gutter));
  margin-inline: auto; box-sizing: border-box;
}
@media (max-width: 1023px) {
  .lk-balance-plate { width: calc(8 * var(--column-width) + 7 * var(--gutter)); }
}
.lk-plate-row { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.lk-plate-row > div { min-width: 150px; }
.lk-plate-row p { color: #fff; opacity: .65; font-size: 13px; margin: 2px 0; }
.lk-plate-row b, .lk-plate-row span { color: #fff; }
.lk-bignum { font-size: 36px; font-weight: 600; }
.lk-balance-plate .green { color: #37ea97; }
.lk-balance-plate .red { color: #ff5c5c; }
.lk-plate-actions { margin-left: auto; display: flex; flex-direction: column; gap: 10px; }
.lk-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #37ea97; color: #22262d; border-radius: 999px;
  padding: 14px 30px; font-weight: 600;
}
.lk-pill::before { content: "+"; font-size: 20px; line-height: 1; }
.lk-plate-links { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
.lk-plate-links a { color: #fff; opacity: .85; }
/* зелёные кружки — внутри чёрной плашки, а не за её границей (волна 30) */
.lk-plate-links li { position: relative; }
.lk-plate-links li::before { translate: -24px calc(0.5em - 2px); }
/* Скорость крупными цифрами в плашке услуги, как в оригинале; цены не переносятся. */
.products-tiles .cost { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.products-tiles .cost > p { margin: 0; white-space: nowrap; }
.products-tiles .speed { display: flex; align-items: baseline; gap: 6px; }
.products-tiles .speed em { font-size: 40px; line-height: 1; color: #37ea97; font-weight: 600; }
.products-tiles .speed span { font-size: 14px; opacity: .7; }
/* Подвал: соцсети столбиком, зелёные, с подчёркиванием при наведении (как email/форма);
   логотип приподнят к строке копирайта. */
html > body > footer .social {
  display: flex; flex-direction: column; gap: 4px;
  margin: 6px 0 0; padding: 0; list-style: none;
}
html > body > footer .social a { color: #37ea97; font-size: 16px; line-height: 1.4; }
html > body > footer .social a:hover { text-decoration: underline; }
html > body > footer > span {
  width: 160px; height: 44px; aspect-ratio: auto;
  background-size: contain; background-position: left center;
  align-self: end; margin-bottom: 0;
}
/* ФИО и ID клиента в верхней плашке рядом с кнопкой выхода. */
.lk-header-id { display: flex; flex-direction: column; align-items: flex-end; color: #fff; margin-right: 12px; }
.lk-header-id b { font-size: 14px; }
.lk-header-id .lk-header-idnum { font-size: 12px; opacity: .85; }
/* Плитки услуг: кнопка «Сменить тариф» внутри плашки, скорость и цена в одну строку. */
html > body > main ul.products-tiles.lk > li { height: auto; }
html > body > main ul.products-tiles.lk > li > div.buy { grid-template-columns: 1fr; gap: 12px; }
html > body > main ul.products-tiles.lk > li > div.buy > div.cost {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: nowrap;
}
html > body > main ul.products-tiles.lk > li .change-tariff { position: static; }
.products-tiles li.inactive .cost em { visibility: hidden; }
/* Адаптив: плашки складываются в колонку на мобильных. */
@media (max-width: 768px) {
  .lk-balance-plate { padding: 18px; }
  .lk-plate-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lk-plate-actions { margin-left: 0; }
  .lk-bignum { font-size: 28px; }
  .products-tiles .speed em { font-size: 28px; }
}
/* Панель бургера выше стрелки «назад» шапки (z-index 1000 в common.css),
   иначе на мобильных стрелка перечёркивает первый пункт меню. */
html > body > header > div.burger { z-index: 1001; }
html > body > header > button.burger-close { z-index: 1002; }
/* Логотип tktel (short version, синий инвертирован в белый): в шапке 44px по высоте,
   в подвале — у строки копирайта, пропорции 918:649 учтены размером блока. */
header a.logo img.lk-logo { height: 44px; width: auto; display: block; }
html > body > footer > span {
  background-image: url("../img/logo.svg");
  background-repeat: no-repeat;
  width: 225px; height: 54px;
}
/* Заголовок главной по центру (владелец 2026-11-15). */
.lk-center { text-align: center; }
/* Названия услуг на плитках — ссылки с подчёркиванием при наведении. */
.lk-tile-title { color: inherit; }
.lk-tile-title:hover { text-decoration: underline; }
/* Формы добавления контактов — по левому краю списка, а не справа. */
.lk-contacts .phone-button { display: flex; gap: 12px; justify-content: flex-start; }
/* Неактивная услуга серая, но кнопка «Подключить» остаётся цветной (владелец 2026-11-15). */
.products-tiles li.inactive { opacity: 1; filter: none; }
.products-tiles li.inactive > .info,
.products-tiles li.inactive > .buy > .cost { opacity: .45; filter: grayscale(1); }
/* Контакты: два столбца — телефоны слева, email справа (владелец 2026-11-15). */
.lk-contacts-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .lk-contacts-cols { grid-template-columns: 1fr; } }
/* Загрузка сканов: нативный input невидим, видны подсказки зон как в оригинале. */
.document-update .upload-section label { position: relative; display: block; }
.document-update .upload-section input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
/* Логотип в подвале прижат к левому краю. */
html > body > footer > span { justify-self: start; margin-left: 0; }
/* Финальные переопределения боевого common.css (специфичность + !important):
   размеры логотипов, центрированный бар навигации внутренних страниц, формы контактов,
   зоны загрузки сканов, заголовки. Inline-стили в разметке оставлены как дубль. */
html > body > header > nav > a.logo {
  height: 44px !important; display: flex !important; align-items: center !important;
}
html > body > header > nav > a.logo > img {
  height: 40px !important; width: auto !important; display: block !important;
}
html > body > footer > span {
  width: 225px !important; height: 54px !important; background: none !important;
}
html > body > footer > span > img {
  width: 225px !important; height: 54px !important; display: block !important;
}
html > body > main section.lk-pagebar {
  width: calc(12 * var(--column-width) + 11 * var(--gutter)) !important;
  margin: 18px auto 6px !important;
}
html > body > main section.lk-pagebar > div {
  font-size: 14px !important; opacity: .7 !important; margin-bottom: 6px !important;
}
html > body > main section.lk-pagebar > div > a { color: inherit !important; text-decoration: none !important; }
html > body > main section.lk-pagebar > h1 {
  font-size: 32px !important; font-weight: 600 !important; margin: 0 !important;
}
html > body > main section.lk-home-title > h2 { text-align: center !important; }
/* Формы добавления контактов: кнопка ПОД полем ввода, слева (владелец 2026-11-15). */
html > body > main section.lk-component.lk-contacts > form.phone-button {
  display: flex !important; flex-direction: column !important;
  align-items: flex-start !important; justify-content: flex-start !important;
  gap: 12px !important; margin-left: 0 !important; width: 100% !important;
}
/* Чёрный список: кнопка «Добавить» рядом с полем номера, слева. */
html > body > main section.lk-component.lk-black-list > form.phone-button {
  display: flex !important; flex-direction: row !important;
  justify-content: flex-start !important; align-items: center !important;
  gap: 12px !important; margin-left: 0 !important;
}
/* Смена пароля: поля столбиком. */
html > body > main section.lk-component form.lk-password-form {
  display: flex !important; flex-direction: column !important;
  align-items: stretch !important; gap: 12px !important;
  max-width: 520px !important;
}
html > body > main section.lk-component form.lk-password-form > div {
  display: block !important;
}
/* Подменю страниц услуг: перенос по строкам, чтобы все ссылки были видны без скролла.
   Legacy держит строку 54px и горизонтальный скролл с маской по краям — последние
   пункты уезжали за экран; перебиваем всё до видимых строк. */
html > body > main section.header-h1 nav div.submenu {
  overflow: visible !important;
  mask-image: none !important;
}
html > body > main section.header-h1 nav div.submenu menu.main {
  flex-wrap: wrap !important;
  height: auto !important;
  min-height: 54px;
  gap: 8px 32px !important;
  justify-content: center !important;
}
/* Legacy на десктопе прячет пункты подменю с 5-го (под выпадашку «…») — нам нужны все. */
html > body > main div.submenu > menu.main > li {
  display: flex !important;
}
/* Оранжевая пилюля-кнопка как в боевых формах (не зависит от контекста). */
html > body > main button.lk-btn,
html > body > main a.lk-btn,
html > body > main section.lk-component form button.lk-btn {
  background: #ee774a !important; color: #fff !important;
  border: 0 !important; border-radius: 27px !important;
  height: 54px !important; padding: 0 32px !important;
  font-size: 16px !important; font-weight: 500 !important; cursor: pointer !important;
}
html > body > main a.lk-btn {
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; text-decoration: none !important;
}
/* Чёрный список: номера столбиком, кнопка «Убрать» рядом. */
html > body > main section.lk-black-list > ul {
  display: flex !important; flex-direction: column !important; gap: 10px !important;
  list-style: none !important; margin: 0 0 16px !important; padding: 0 !important;
}
html > body > main section.lk-black-list > ul > li {
  display: flex !important; gap: 12px !important; align-items: center !important;
}
/* Формы подтверждения кодов: поле и кнопки не слипаются. */
html > body > main section.lk-component.lk-contacts form.inline {
  display: flex !important; flex-wrap: wrap !important;
  gap: 8px 10px !important; align-items: center !important; margin-top: 8px !important;
}
html > body > main section.lk-component.lk-contacts form.inline input.white {
  margin: 0 !important;
}
/* Контакты: поле ввода умеренной ширины, кнопка под ним. */
html > body > main section.lk-component.lk-contacts > form.phone-button > input {
  flex: 0 0 auto !important; width: 100% !important; max-width: 420px !important;
}
/* Чёрный список: поле фиксированной ширины, кнопка рядом. */
html > body > main section.lk-component.lk-black-list > form.phone-button > input {
  flex: 0 0 320px !important; width: 320px !important;
}
/* Пополнение: строки «label value» с пробелом. */
html > body > main section.lk-pay p { margin: 8px 0 !important; font-size: 16px !important; }
html > body > main section.lk-pay p > span { margin-left: 10px !important; font-weight: 600 !important; }
html > body > main section.lk-component.document-update div.upload-section > label {
  position: relative !important; display: block !important;
}
html > body > main section.lk-component.document-update div.upload-section > label > input {
  position: absolute !important; inset: 0 !important; opacity: 0 !important;
  cursor: pointer !important; width: 100% !important; height: 100% !important;
}
html > body > main section.lk-tariffs-page h2 {
  font-size: 24px !important; margin: 10px 0 !important;
}

/* ═══ Страница «Мой профиль» — аккуратная вёрстка контактов ═══ */
/* Список контактов: без маркеров, с промежутками. */
.lk-contacts-list {
  list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.lk-contacts-list > li { margin: 0 0 16px !important; }

/* Строка контакта: название/номер → теги рядом. */
.lk-contact-main {
  display: flex !important; align-items: center !important; gap: 12px !important;
  flex-wrap: wrap !important; margin-bottom: 8px !important;
}
.lk-contact-value {
  font-size: 18px !important; font-weight: 600 !important;
}

/* Блок действий под контактом: формы/кнопки. */
.lk-contact-actions {
  display: flex !important; flex-direction: column !important; gap: 12px !important;
  margin-top: 4px !important;
}

/* Группа кнопок в строку. */
.lk-contact-buttons {
  display: flex !important; gap: 10px !important; flex-wrap: wrap !important;
}

/* Форма-контейнер для действий контакта. */
.lk-contact-form, .lk-contact-consents {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}

/* Чекбоксы согласий: группа. */
.lk-consent-checks {
  display: flex !important; gap: 16px !important; flex-wrap: wrap !important;
}

/* Чекбокс согласия: компактный. */
.lk-consent-cb {
  display: flex !important; align-items: center !important; gap: 6px !important;
  font-size: 14px !important; cursor: pointer !important;
}

/* Pending-блок (ожидает кода). */
.lk-contact-pending {
  background: #fffbe6 !important; border: 1px solid #ffe082 !important;
  border-radius: 12px !important; padding: 12px 16px !important; margin-top: 8px !important;
}

/* Добавление контакта: две кнопки выбора и раскрываемая форма. */
.lk-add-contact-links { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; }
.lk-add-contact-forms { margin-top: 12px !important; }
.lk-add-contact-form {
  display: flex !important; align-items: center !important; gap: 12px 16px !important;
  flex-wrap: wrap !important; padding: 14px 16px !important;
  border: 1px solid rgba(128,128,128,.28) !important; border-radius: 12px !important;
}
.lk-add-contact-label { display: flex !important; align-items: center !important; gap: 10px !important; }
.lk-add-contact-form[hidden] { display: none !important; }
.lk-add-contact-form > .orange-button { margin-left: 4px !important; }

/* Кнопки generic внутри контактов: аккуратный вид (не зелёные пилюли). */
html > body > main section.lk-component button.generic {
  background: #f0f0f0 !important; color: #333 !important;
  border: 1px solid #ccc !important; border-radius: 8px !important;
  height: 36px !important; padding: 0 18px !important;
  font-size: 14px !important; font-weight: 400 !important;
  cursor: pointer !important; white-space: nowrap !important;
}
html > body > main section.lk-component button.generic:not([disabled]):hover {
  background: #e8e8e8 !important;
}
html > body > main section.lk-component button.generic::before {
  display: none !important;
}

/* Оранжевая кнопка (orange-button) внутри контакта: наследуем стиль боевого кабинета. */
html > body > main section.lk-component .orange-button {
  background: #fe6e46 !important; color: #fff !important;
  border: 0 !important; border-radius: 27px !important;
  height: 54px !important; padding: 0 32px !important;
  font-size: 16px !important; font-weight: 500 !important;
  cursor: pointer !important; white-space: nowrap !important;
}
@media (max-width: 1023px) {
  html > body > main section.lk-component .orange-button {
    height: 44px !important; padding: 0 24px !important; font-size: 14px !important;
  }
}

/* Смена пароля: поля в строку/колонку, кнопка на отдельной строке. */
.lk-form-row {
  display: flex !important; flex-wrap: wrap !important; gap: 12px 16px !important;
  align-items: center !important;
}
.lk-form-row > button {
  margin-top: 4px !important;
}

/* Действия контакта — зелёные пилюли В СТРОКЕ рядом с номером/email/Макс, после плашки
   «Главный» (владелец 18.11). Геометрия один в один с ul.tags > li боевого common.css
   (radius 58px, padding 4px 12px, шрифт 14/20 и те же брейкпоинты), цвет — боевой
   зелёный #37ea97 с тёмным текстом, как у боевых зелёных кнопок. */
.lk-contact-row-actions {
  display: flex !important; gap: 8px !important; flex-wrap: wrap !important;
  align-items: center !important;
}
.lk-contact-row-actions form { display: inline !important; }
html > body > main section.lk-component button.lk-tag-action,
html > body > main section.lk-component a.lk-tag-action {
  background: #37ea97 !important; color: #24262d !important;
  border: 0 !important; border-radius: 58px !important;
  height: auto !important; padding: 4px 12px !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 20px !important;
  cursor: pointer !important; white-space: nowrap !important;
  display: inline-flex !important; align-items: center !important;
  text-decoration: none !important;
}
html > body > main section.lk-component button.lk-tag-action:not([disabled]):hover,
html > body > main section.lk-component a.lk-tag-action:hover {
  box-shadow: 0 4px 22.5px 0 rgba(0, 0, 0, .15) !important;
}
/* Галочки рассылок КОНКРЕТНОГО контакта — в строке справа от кнопок действий,
   рядом маленькая оранжевая пилюля «Сохранить» (владелец 18.11). */
.lk-consents-inline {
  display: flex !important; gap: 10px !important; flex-wrap: wrap !important;
  align-items: center !important; margin-left: 4px !important;
}
html > body > main section.lk-component button.lk-tag-save {
  background: #fe6e46 !important; color: #fff !important;
  border: 0 !important; border-radius: 58px !important;
  height: auto !important; padding: 2px 10px !important;
  font-size: 12px !important; font-weight: 500 !important; line-height: 16px !important;
  cursor: pointer !important; white-space: nowrap !important;
}
/* «+ Телефон / + Email / + Макс» и раскрываемые формы добавления — в списках контактов. */
.lk-add-row { margin: 8px 0 0 !important; }
@media (max-width: 1279px) {
  .lk-contact-row-actions { gap: 4px !important; }
  html > body > main section.lk-component button.lk-tag-action,
  html > body > main section.lk-component a.lk-tag-action {
    padding: 2px 8px !important; font-size: 12px !important; line-height: 18px !important;
  }
}
@media (max-width: 1023px) {
  html > body > main section.lk-component button.lk-tag-action,
  html > body > main section.lk-component a.lk-tag-action {
    font-size: 10px !important; line-height: 10px !important;
  }
}
/* Зелёная пилюля входа: кнопка «Войти» и ссылка «Войти через Макс» (владелец 18.11 —
   кнопка входа не должна быть обычной серой generic). */
html > body > main section.lk-component .lk-green-pill {
  background: #37ea97 !important; color: #22262d !important;
  border: 0 !important; border-radius: 27px !important;
  height: 54px !important; padding: 0 32px !important;
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important; font-weight: 500 !important;
  cursor: pointer !important; text-decoration: none !important;
}
@media (max-width: 1023px) {
  html > body > main section.lk-component .lk-green-pill {
    height: 44px !important; padding: 0 24px !important; font-size: 14px !important;
  }
}
/* Зелёные кружки боевого ul > li::before (absolute, translate -32px) убираем со всех
   строк наших списков; у самого контакта — кружок ВНУТРИ строки перед значением,
   не левее общей сетки (владелец 18.11). */
html > body > main section.lk-component ul.lk-contacts-list > li::before {
  content: none !important; display: none !important;
}
.lk-contact-main::before {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  background: #37ea97; border-radius: 50%;
}
/* Строки «Способы входа»: метод → значение → пилюля удаления; у логина —
   inline-смена пароля маленькой оранжевой пилюлей (владелец 18.11). */
.lk-method-row {
  display: flex !important; gap: 12px !important; flex-wrap: wrap !important;
  align-items: center !important;
}
.lk-method-name { font-size: 14px !important; opacity: .6; min-width: 64px; }
.lk-pwd-inline {
  display: flex !important; gap: 8px !important; flex-wrap: wrap !important;
  align-items: center !important;
}
html > body > main section.lk-component .lk-pwd-inline input.white {
  width: 150px !important; height: 36px !important; margin: 0 !important;
  padding: 0 12px !important; font-size: 14px !important; line-height: 36px !important;
  border-radius: 8px !important;
}
/* Модальные окна: предупреждение о платной SMS-услуге и текст рекламного
   согласия (владелец 18.11). */
#sms-warn, #sms-off-warn, #promo-dialog {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
#sms-warn[hidden], #sms-off-warn[hidden], #promo-dialog[hidden] { display: none !important; }
/* Диалоги документов на главной (ПЭП/реклама/третьи лица) — модальный overlay. */
#doc-pep, #doc-third, #doc-promo {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
#doc-pep[hidden], #doc-third[hidden], #doc-promo[hidden] { display: none !important; }
.sms-warn-box {
  background: #fff; color: #24262d; max-width: 800px; margin: 16px;
  padding: 24px; border-radius: 16px; font-size: 15px; line-height: 1.5;
  max-height: 85vh; overflow: auto;
}
/* Окна согласий/соглашений пошире (владелец, волна 22); предупреждение о SMS — компактное. */
#sms-warn .sms-warn-box { max-width: 560px; }
/* Проблемные контакты: номер не российский мобильный / иностранный email (волна 23). */
.lk-bad-contact { color: #d64545 !important; }
/* Полный текст согласия до подписания (ПДн третьим лицам и рекламное окно). */
.lk-consent-text {
  white-space: pre-wrap; overflow-wrap: break-word; font: 13px/1.55 inherit; color: #24262d;
  background: #f7f8fa; border: 1px solid rgba(128, 128, 128, .25);
  border-radius: 12px; padding: 16px; margin: 12px 0;
  max-height: 40vh; overflow: auto;
}
.lk-consent-text label { display: inline-flex; align-items: center; gap: 6px; }
/* Строки рекламного согласия: галочка + контакт + отметка в одну строку. */
.lk-consent-lines { white-space: normal; }
.lk-consent-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0;
}
.lk-consent-line label { display: inline-flex; align-items: center; gap: 6px; }
/* Баннеры обновления согласий на главной. */
.lk-pdn-notice { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lk-pdn-notice p { margin: 0; color: #24262d; }
/* Онбординг нового абонента: индикатор шагов и прокрутка документов (владелец 19.11). */
.lk-onboard-steps {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0;
}
.lk-onboard-steps li {
  padding: 6px 12px; border-radius: 58px; background: #eef1f4; color: #6b7280; font-size: 13px;
}
.lk-onboard-steps li.active { background: #37ea97; color: #10131a; font-weight: 600; }
.lk-onboard-steps li.done { background: #d9f7e8; color: #1d7a4f; }
.lk-scroll { max-height: 45vh; overflow: auto; }
.lk-consent-lines .lk-consent-cb { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; }
/* Оранжевая пилюля «Сохранить/Отправить» в формах (владелец 19.11): геометрия
   зелёных пилюль действий, но оранжевая. */
html > body > main section.lk-component button.lk-save-pill {
  background: #fe6e46 !important; color: #fff !important;
  border: 0 !important; border-radius: 58px !important;
  height: auto !important; padding: 4px 12px !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 20px !important;
  cursor: pointer !important; white-space: nowrap !important;
  display: inline-flex !important; align-items: center !important;
}
html > body > main section.lk-component button.lk-save-pill:not([disabled]):hover {
  box-shadow: 0 4px 22.5px 0 rgba(0, 0, 0, .15) !important;
}
/* Ссылки поддержки внизу HELPDESK: при наведении подчёркивает зелёным (владелец 19.11). */
.lk-support-links a {
  color: inherit !important; text-decoration: none !important;
}
.lk-support-links a:hover {
  color: #1d7a4f !important;
  text-decoration: underline !important;
  text-decoration-color: #37ea97 !important;
  text-underline-offset: 3px;
}
/* Заглавие «ВАЖНО» в баннерах главной — шрифт как у заголовков (владелец 19.11). */
html > body > main section.lk-component h2.lk-important {
  margin: 0 0 8px !important; font-size: 24px !important; font-weight: 700 !important;
  color: #24262d !important;
}
/* Область прикрепления файла в обратной связи — как в «Обновить данные» (19.11). */
html > body > main section.lk-component .lk-upload > label {
  position: relative; display: block; padding: 24px 16px; text-align: center;
  border: 2px dashed rgba(128, 128, 128, .4); border-radius: 12px;
  background: #f7f8fa; cursor: pointer;
}
html > body > main section.lk-component .lk-upload > label > p {
  margin: 0; color: #24262d; font-size: 15px;
}
html > body > main section.lk-component .lk-upload > label > span {
  color: #6b7280; font-size: 13px;
}
html > body > main section.lk-component .lk-upload > label:hover {
  border-color: #37ea97;
}
/* Выпадающие списки в общем стиле белых полей форм (владелец 19.11). */
html > body > main select.white {
  background: #fff !important; color: #24262d !important;
  border: 1px solid rgba(128, 128, 128, .35) !important;
  border-radius: 12px !important; padding: 12px !important;
  font: inherit !important; min-height: 46px !important;
}
/* ФИО в шапке — гиперссылка на «Мой профиль» (владелец 19.11). */
html > body > header a.lk-header-id {
  color: #fff !important; text-decoration: none !important;
  display: flex !important; flex-direction: column !important;
}
html > body > header a.lk-header-id:hover b:first-child {
  text-decoration: underline !important;
  text-decoration-color: #37ea97 !important;
  text-underline-offset: 3px;
}
/* Мобильная адаптация (владелец, волна 30): истории тарифов/звонков без
   горизонтального скролла; логотип меньше, чтобы ФИО не сжималось в 3 строки. */
@media (max-width: 1023px) {
  html > body > main section.lk-table {
    overflow-x: hidden !important; max-width: 100%;
  }
  html > body > main section.lk-table > div { overflow-x: hidden !important; }
  /* боевой common.css держит table-layout:auto !important и min-width:100vw
     у обёртки — перебиваем той же специфичностью (волна 30) */
  html > body > main section.lk-table.table div:has(table) {
    min-width: 0 !important;
  }
  html > body > main section.lk-table.table table {
    width: 100% !important; min-width: 0 !important;
    table-layout: fixed !important;
  }
  html > body > main section.lk-table td p,
  html > body > main section.lk-table th p {
    white-space: normal !important; overflow-wrap: break-word !important;
  }
  html > body > main section.lk-table th p,
  html > body > main section.lk-table table tr:first-child p {
    font-size: 12px !important;
  }
  /* ширины колонок: заголовки целиком, дата и цена помещаются */
  html > body > main section.lk-table table tr:first-child td:nth-child(1),
  html > body > main section.lk-table table tr:first-child th:nth-child(1) {
    width: 24% !important;
  }
  html > body > main section.lk-table table tr:first-child td:nth-child(2),
  html > body > main section.lk-table table tr:first-child th:nth-child(2) {
    width: 22% !important;
  }
  html > body > main section.lk-table table tr:first-child td:nth-child(3),
  html > body > main section.lk-table table tr:first-child th:nth-child(3) {
    width: 29% !important;
  }
}
@media (max-width: 639px) {
  /* логотип слева рядом с бургером, ФИО справа в одну строку (волна 31) */
  html > body > header > nav {
    grid-template-columns: auto 1fr auto !important;
  }
  html > body > header > nav > a.logo {
    height: 30px !important; grid-column: 2 !important; grid-row: 1 !important;
    justify-self: start !important; margin-left: 8px;
  }
  html > body > header > nav > a.logo > img { height: 26px !important; }
  html > body > header a.lk-header-id {
    margin-right: 6px !important; align-self: center !important;
  }
  html > body > header a.lk-header-id b { font-size: 12px !important; }
  /* правый блок (ФИО+выход) по центру плашки, а не прижат к верху (волна 33):
     боевой body.lk-селектор держит display:block !important и height:100% —
     берём ту же специфичность и центрируем содержимое flex-колонкой */
  html > body.lk > header > nav > div.buttons:not(:has(.burger-open)) {
    align-self: center !important; height: auto !important;
    display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: flex-end !important;
    gap: 4px !important;
  }
  html > body > header .buttons form.inline button.login {
    height: 30px !important; width: 30px !important; padding: 0 !important;
  }
  html > body > header .buttons form.inline button.login svg {
    width: 30px !important; height: 30px !important;
  }
}
/* оранжевые пилюли действий: прижатый disabled — полупрозрачный (волна 31) */
html > body > main section.lk-component button.lk-save-pill[disabled] {
  opacity: .5 !important; cursor: not-allowed !important;
}
/* «Проверить» на Тарифах МГ/МН видима на любой ширине (волна 30). */
html > body > main section.checker form button.lk-btn {
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important;
}
/* волна 42: декоративный зелёный круг в шапке (burger > aside) раздражает — скрываем */
html > body > header > div.burger > aside {
  display: none !important;
}
/* волна 51: зелёный круг-фон форм входа/оплаты (.form-lk, images/form/circle.svg) — убираем */
html > body > main .form-lk {
  background-image: none !important;
}
/* волна 54: «зелёный шарик» на всех страницах — свечение ::before кнопок Подключить
   (radial-gradient). Из-за position:static (выше) containing block уезжает к предку,
   и градиент рисуется поверх страницы, а на hover «бегает» за мышью. Убираем совсем. */
html > body > main ul.products-tiles > li .change-tariff::before {
  content: none !important;
}
/* волна 60: на «Платежах и расходах» все пилюли по умолчанию оранжевые —
   активный период не отличался. Неактивные делаем светлыми, активный — оранжевым.
   Специфичность не ниже form button.lk-btn выше по файлу. */
html > body > main section.lk-component form button[name="period"] {
  background: #eef1f6 !important; color: #24262d !important;
}
html > body > main section.lk-component form button[name="period"].lk-save-pill {
  background: #fe6e46 !important; color: #fff !important;
}
/* волна 58: ошибки форм входа/служебного входа — видимым цветом и не наезжают
   на заголовок (common.css делает label.error absolute и наследует чёрный) */
html > body > main section.lk-component.login > div[data-state] label.error {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  color: #ff8a7a !important;
  font-weight: 600;
  margin: 6px 0;
}
/* волна 52: ссылки в тексте новостей/уведомлений должны быть видны и кликабельны */
html > body > main .lk-news p a {
  color: #2ea86f !important; text-decoration: underline !important;
  cursor: pointer !important;
}
/* волна 42: контейнер таблицы не обрезаем по высоте, иначе строки «выпадают» и
   нижняя пагинация наезжает на данные (интернет-сессии) */
html > body > main section.lk-table.table > div {
  max-height: none !important; height: auto !important;
  overflow: visible !important;
}
/* волна 105: кнопки действий онбординга («Приступить» и все далее на всех шагах,
   включая шаг паспорта и модальные окна) — крупнее обычных пилюль (владелец 26.11).
   Специфичность выше правил lk-tag-action/lk-tag-save/lk-btn выше по файлу. */
html > body > main .lk-onboard section.lk-component button.lk-tag-action,
html > body > main .lk-onboard section.lk-component a.lk-tag-action,
html > body > main .lk-onboard section.lk-component button.lk-tag-save,
html > body > main .lk-onboard section.lk-component button.lk-save-pill,
html > body > main .lk-onboard section.lk-component form button.lk-btn,
html > body > main .lk-onboard dialog form button.lk-btn,
html > body > main .lk-onboard dialog button.lk-btn {
  padding: 12px 32px !important;
  font-size: 18px !important; line-height: 24px !important;
  font-weight: 500 !important;
}
@media (max-width: 600px) {
  html > body > main .lk-onboard section.lk-component button.lk-tag-action,
  html > body > main .lk-onboard section.lk-component a.lk-tag-action {
    padding: 10px 22px !important; font-size: 16px !important; line-height: 20px !important;
  }
}
/* волна 106: заметные подсказки шагов онбординга вместо серых пояснений (владелец 26.11) */
html > body > main .lk-hint {
  background: #eafff5 !important;
  border: 2px solid #37ea97 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin: 10px 0 !important;
  font-size: 17px !important; line-height: 24px !important;
  font-weight: 500 !important; color: #24262d !important;
}
html > body > main a.lk-policy-link {
  font-size: 17px !important; line-height: 24px !important;
  font-weight: 600 !important; color: #2ea86f !important;
  text-decoration: underline !important; cursor: pointer !important;
}
