/* ==========================================================================
   CNews Личный кабинет — Стили
   Подключается на страницах /lk/* и на страницах с закрытым контентом
   ========================================================================== */

/* ── Переменные ── */
:root {
    --lk-primary: #0164a7;
    --lk-primary-hover: #015085;
    --lk-secondary: #f0f0f0;
    --lk-secondary-hover: #e0e0e0;
    --lk-text: #212121;
    --lk-text-secondary: #666;
    --lk-text-muted: #999;
    --lk-border: #ddd;
    --lk-border-light: #e0e0e0;
    --lk-bg: #f8f8f8;
    --lk-bg-card: #fff;
    --lk-error: #e53935;
    --lk-success: #43a047;
    --lk-radius: 6px;
    --lk-radius-lg: 4px;
    --lk-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

[data-scheme=dark] {
    --lk-primary: #0083db;
    --lk-primary-hover: #0093fa;
    --lk-secondary: #1c1c1c;
    --lk-secondary-hover: #2b2b2b;
    --lk-text: #f0f0f0;
    --lk-text-secondary: #adadad;
    --lk-text-muted: #999;
    --lk-border: #3b3b3b;
    --lk-border-light: #5a5a5a;
    --lk-bg: #6b6b6b;
    --lk-bg-card: #212121;
    --lk-shadow: 0 2px 8px rgba(255, 255, 255, .08);
}

@media (prefers-color-scheme: dark) {
    [data-scheme=auto] {
        --lk-primary: #0083db;
        --lk-primary-hover: #0093fa;
        --lk-secondary: #1c1c1c;
        --lk-secondary-hover: #2b2b2b;
        --lk-text: #f0f0f0;
        --lk-text-secondary: #adadad;
        --lk-text-muted: #999;
        --lk-border: #3b3b3b;
        --lk-border-light: #5a5a5a;
        --lk-bg: #6b6b6b;
        --lk-bg-card: #212121;
        --lk-shadow: 0 2px 8px rgba(255, 255, 255, .08);
    }
}

/* ── Авторизация: минималистичный layout ── */
.lk-auth__body,
.lk-auth__body * {
    box-sizing: border-box;
}

.lk-auth__body {
    background-color: #f7f7f7;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
}

.lk-auth__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.lk-auth__logo-container {
    height: 40px;
    display: flex;
    align-items: center;
}

.lk-auth__logo-container a{
    font-size: 0;
}

.lk-auth__logo-img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.lk-auth__container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px;
    width: 100%;
}

.lk-auth__card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lk-auth__screen {
    width: 100%;
}

.lk-auth__title {
    font-size: 24px;
    font-weight: bold;
    margin:0 0 30px;
    text-align: center;
}

.lk-auth__subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.lk-auth__attention {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin-top: 16px;
}

.lk-auth__attention a {
    color: #333;
    transition: all .2s ease;
    text-decoration: none;
}

.lk-auth__attention a:hover {
    color: #666;
}

.lk-error-code {
    color: #d32f2f;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.lk-error-code--visible {
    display: block;
}

.lk-auth__input-group {
    width: 100%;
    position: relative;
    margin:20px 0;
}

.lk-auth__select{
    width: 100%;
    padding: 16px 30px 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-0.000185057 1.0058C-0.000945944 0.874191 0.0242786 0.743729 0.0740432 0.621891C0.123808 0.500054 0.197135 0.389238 0.289816 0.295798C0.382779 0.202069 0.493379 0.127675 0.615238 0.0769064C0.737097 0.0261377 0.867803 -7.49043e-07 0.999815 -7.43272e-07C1.13183 -7.37502e-07 1.26253 0.0261377 1.38439 0.0769064C1.50625 0.127675 1.61685 0.202069 1.70981 0.295798L8.99981 7.5958L16.2898 0.295798C16.4781 0.107495 16.7335 0.00170702 16.9998 0.00170703C17.1317 0.00170704 17.2622 0.027678 17.3841 0.0781383C17.5059 0.128599 17.6166 0.20256 17.7098 0.295798C17.8031 0.389037 17.877 0.499727 17.9275 0.621549C17.9779 0.743371 18.0039 0.873939 18.0039 1.0058C18.0039 1.2721 17.8981 1.52749 17.7098 1.7158L9.70981 9.7158C9.61685 9.80953 9.50625 9.88392 9.38439 9.93469C9.26253 9.98546 9.13183 10.0116 8.99981 10.0116C8.8678 10.0116 8.7371 9.98546 8.61524 9.93469C8.49338 9.88392 8.38278 9.80953 8.28982 9.7158L0.289816 1.7158C0.197134 1.62236 0.123808 1.51154 0.0740432 1.3897C0.0242786 1.26787 -0.000945956 1.1374 -0.000185057 1.0058Z' fill='%23808080'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: calc(100% - 13px) 50%;
    border: 1px solid #e9e9e9;
    border-radius: 3px;
    font-size: 16px;
    color: var(--lk-text);
    transition: border-color .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lk-auth__input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.lk-auth__input:focus {
    outline: none;
    border-color: #0164a7;
}

.lk-error-msg {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.lk-error-msg--visible {
    display: block;
}

/* Кнопки auth-страниц: единый блок .lk-button определен ниже (секция
   «Кнопки»); размерный вариант для auth — .lk-button--xl */

.lk-otp__grid {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

.lk-otp__input {
    width: 50px;
    height: 54px;
    text-align: center;
    font-size: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.lk-otp__input:focus {
    border-color: #0164a7;
    box-shadow: 0 0 0 2px rgba(1, 100, 167, 0.2);
}

.lk-otp__timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    justify-content: center;
}

.lk-otp__timer {
    line-height: 1;
}

.lk-auth__divider {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.lk-auth__divider-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.lk-auth__divider-text {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.lk-auth__title + .lk-auth__link-wrap{
    margin: -15px 0 40px;
}

.lk-auth__title + .lk-auth__subtitle{
    margin: -15px 0 40px;
}

.lk-auth__link-wrap {
    text-align: center;
    display: flex;
    gap:8px;
    justify-content: center;
}

.lk-auth__link {
    color: var(--lk-primary);
    text-decoration: none;
    margin-bottom:0;
    display: inline-block;
    transition: color 0.2s;
}

.lk-auth__link:hover {
    color: var(--lk-primary);
    text-decoration: none;
}

.lk-auth__footer {
    background-color: #ffffff;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e0e0e0;
    gap: 20px;
}

.lk-auth__footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.lk-auth__footer a:hover {
    color: #666;
}

.lk-password {
    position: relative;
}

/* auth-вариант: поле с парой SVG-иконок глаза */
.lk-password--icons {
    width: 100%;
    margin-bottom: 5px;
}

.lk-password__input {
    width: 100%;
    padding: 16px 45px 16px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.lk-password__input:focus {
    outline: none;
    border-color: #0164a7;
}

.lk-auth__forgot-link {
    display: inline-block;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.lk-auth__forgot-link:hover {
    color: #666;
}

.lk-password__toggle {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
}

/* auth: пара SVG-иконок, вертикальное центрирование */
.lk-password__toggle--icons {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-password__toggle--icons.is-active .lk-password__icon-on {
    display: none;
}

.lk-password__toggle--icons.is-active .lk-password__icon-off {
    display: block;
}

.lk-password__toggle--icons:hover {
    color: #666;
}

.lk-password__icon-off {
    display: none;
}

/* ── Формы ── */
.lk-form {
    margin-bottom: 16px;
}

.lk-field {
    margin-bottom: 16px;
}

.lk-field--no-offset {
    margin-bottom: 0;
}

.lk-field__hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--lk-text-muted);
}

.lk-tariff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.lk-tariff__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 16px 20px 26px;
  border: 1px solid #d9d9d9;
  background: var(--lk-bg-card);
  border-radius: 8px;
  margin-bottom: 0!important;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.lk-tariff__original{
    font-size: 14px;
    color: var(--lk-text-muted);
    margin-bottom: 8px;
    display: block;
}

.lk-tariff__discount{
    color: var(--lk-error);
    font-weight: 500;
    margin-left: 8px;  
    font-size: 14px;
    display: inline-block;
}

.lk-tariff__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lk-tariff__title {
  font-size: 14px;
  color: var(--lk-text-secondary);
  display: block;
}

.lk-tariff__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--lk-text);
  display: block;
}

.lk-tariff__card:has(.lk-tariff__input:checked) {
  border-color: var(--lk-primary);
  box-shadow: 0 0 0 2px rgba(11, 94, 215, .2);
}

.lk-tariff__card:has(.lk-tariff__input:checked)::before {
  border-color: var(--lk-primary);
}

.lk-tariff__card:has(.lk-tariff__input:checked)::after {
  transform: translateY(-50%) scale(1);
}

.lk-tariff__card:has(.lk-tariff__input:focus-visible) {
  outline: 2px solid var(--lk-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .lk-tariff {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .lk-tariff {
    grid-template-columns: 1fr;
  }
}

.lk-select{
    width: 100%;
    padding: 12px 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-0.000185057 1.0058C-0.000945944 0.874191 0.0242786 0.743729 0.0740432 0.621891C0.123808 0.500054 0.197135 0.389238 0.289816 0.295798C0.382779 0.202069 0.493379 0.127675 0.615238 0.0769064C0.737097 0.0261377 0.867803 -7.49043e-07 0.999815 -7.43272e-07C1.13183 -7.37502e-07 1.26253 0.0261377 1.38439 0.0769064C1.50625 0.127675 1.61685 0.202069 1.70981 0.295798L8.99981 7.5958L16.2898 0.295798C16.4781 0.107495 16.7335 0.00170702 16.9998 0.00170703C17.1317 0.00170704 17.2622 0.027678 17.3841 0.0781383C17.5059 0.128599 17.6166 0.20256 17.7098 0.295798C17.8031 0.389037 17.877 0.499727 17.9275 0.621549C17.9779 0.743371 18.0039 0.873939 18.0039 1.0058C18.0039 1.2721 17.8981 1.52749 17.7098 1.7158L9.70981 9.7158C9.61685 9.80953 9.50625 9.88392 9.38439 9.93469C9.26253 9.98546 9.13183 10.0116 8.99981 10.0116C8.8678 10.0116 8.7371 9.98546 8.61524 9.93469C8.49338 9.88392 8.38278 9.80953 8.28982 9.7158L0.289816 1.7158C0.197134 1.62236 0.123808 1.51154 0.0740432 1.3897C0.0242786 1.26787 -0.000945956 1.1374 -0.000185057 1.0058Z' fill='%23808080'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: calc(100% - 13px) 50%;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    font-size: 15px;
    color: var(--lk-text);
    transition: border-color .2s;
    box-sizing: border-box;
    height: 43px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lk-field label {
    display: block;
    font-size: 13px;
    color: var(--lk-text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.lk-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    font-size: 15px;
    color: var(--lk-text);
    background: var(--lk-bg-card);
    transition: border-color .2s;
    box-sizing: border-box;
}

.lk-input:focus {
    outline: none;
    border-color: var(--lk-primary);
    box-shadow: 0 0 0 3px rgba(1, 100, 167, .1);
}

.lk-input::placeholder {
    color: var(--lk-text-muted);
}


/* ── Ссылки ── */
.lk-simplelink{
    display: inline-block;
    border-bottom: 1px dashed var(--lk-text-secondary);
    transition: border-color .2s;
    font-size: 13px;
    color: var(--lk-text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.lk-simplelink:hover{
    border-bottom: 1px dashed transparent;
}


/* ── Кнопки ── */
.lk-button {
    display: inline-block;
    padding: 12px 24px;
    box-sizing: border-box;
    border-radius: var(--lk-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, opacity .2s;
}

.lk-button--primary {
    background: var(--lk-primary);
    color: #fff;
    border-color: var(--lk-primary);
}

.lk-button--primary:hover {
    background: var(--lk-primary-hover);
    border-color: var(--lk-primary-hover);
}

.lk-button--secondary {
    background: #f8f9fa;
    color: var(--lk-text);
    border-color: #e9e9e9;
}

.lk-button--secondary:hover {
    background: var(--lk-secondary-hover);
}


.lk-button[disabled],
.lk-button--disabled {
    background: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
    border-color: #e0e0e0;
    opacity: .6;
}

.lk-button[disabled]:hover {
    background: #e0e0e0;
}

/* ── Соглашение ── */
.lk-agreement {
    text-align: center;
    font-size: 12px;
    color: var(--lk-text-muted);
    margin-top: 16px;
    line-height: 1.5;
}

.lk-agreement a {
    color: var(--lk-primary);
    text-decoration: none;
}

/* ── Ошибки ── */
.lk-alert {
    padding: 12px 16px;
    border-radius: var(--lk-radius);
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.lk-alert--error {
    background: #ffebee;
    color: var(--lk-error);
    border-color: #ffcdd2;
}

/* ── OTP: 5 раздельных полей ── */
.lk-otp__inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.lk-otp__digit {
    width: 52px;
    height: 52px;
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius);
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--lk-text);
    background: var(--lk-bg-card);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.lk-otp__digit:focus {
    outline: none;
    border-color: var(--lk-primary);
    box-shadow: 0 0 0 3px rgba(1, 100, 167, .1);
}

.lk-otp__digit.active {
    border-color: var(--lk-primary);
}

.lk-otp__digit.filled {
    border-color: var(--lk-primary);
    background: #f0f7fc;
}

.lk-otp__timer-block {
    text-align: center;
    color: var(--lk-text-muted);
    font-size: 13px;
    margin: 16px 0;
}

/* ── Поле пароля с глазом ── */
/* кабинет: иконка-глаз (img), правый нижний угол поля */
.lk-password__toggle--eye {
    right: 12px;
    bottom: 8px;
    padding: 4px;
    color: var(--lk-text-muted);
    line-height: 0;
}

.lk-password__toggle--eye img {
    width: 20px;
    height: 20px;
    opacity: .5;
    transition: opacity .2s;
}

.lk-password__toggle--eye:hover img,
.lk-password__toggle--eye.active img {
    opacity: 1;
}

/* ── Чекбокс согласия ── */
.lk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.lk-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--lk-primary);
}

.lk-checkbox__text {
    font-size: 13px;
    color: var(--lk-text-secondary);
    line-height: 1.4;
}

.lk-checkbox__text a {
    color: var(--lk-primary);
    text-decoration: none;
}


/* ── Закрытый материал: fade-эффект ── */
.article-text--truncated {
    position: relative;
}

.article-text--truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

/* ── Subscription gate ── */
.lk-gate {
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
    border-top: 1px solid var(--lk-border-light);
}

.lk-gate__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--lk-text);
}

.lk-gate__subtitle {
    color: var(--lk-text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.5;
}


/* ── Бейдж подписки ── */
.lk-badge {
    display: inline-block;
}

.lk-badge img {
    width: 20px;
    height: 20px;
}

/* ── Карточки тарифов ── */
.lk-plans__list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.lk-plan-card {
    position: relative;
    width: 40%;
    padding: 28px;
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    background: var(--lk-bg-card);
    text-align: center;
    box-sizing: border-box;
    transition: .2s;
}

.lk-plan-card:hover{
    border-color: var(--lk-primary);
}


.lk-plan-card__badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: var(--lk-primary);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.lk-plan-card__old-price {
    color: var(--lk-text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.lk-plan-card__price {
    font-size: 28px;
    font-weight: bold;
    margin: 4px 0 8px;
    color: var(--lk-text);
}

.lk-plan-card__per-month {
    color: var(--lk-text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ── Корпоративный баннер ── */
.corporate__banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f5f7fa;
    border-radius: var(--lk-radius-lg);
    padding: 24px 28px;
    margin: 32px 0;
    text-align: left;
}

.corporate__banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corporate__banner-icon img {
    width: 32px;
    height: 32px;
}

.corporate__banner-content {
    flex: 1;
}

.corporate__banner-content h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--lk-text);
}

.corporate__banner-content p {
    margin: 0;
    font-size: 14px;
    color: var(--lk-text-secondary);
    line-height: 1.4;
}

/* ── Кабинет: карточки статуса подписки ── */
.lk-sub-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-radius: 10px;
    background: #f8f9fb;
    border-left: 4px solid;
    margin-bottom: 16px;
}

.lk-sub-card--expired {
    border-left-color: var(--lk-error);
}

.lk-sub-card--active {
    border-left-color: #1e88e5;
}

.lk-sub-card--new {
    border-left-color: var(--lk-success);
}

.lk-sub-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--lk-text);
}

.lk-sub-card__badge {
    font-size: 13px;
    font-weight: 500;
}

.lk-sub-card__badge--expired {
    color: var(--lk-error);
}

.lk-sub-card__badge--active {
    color: #1e88e5;
}

.lk-sub-card__badge--active::before {
    content: '● ';
}

.lk-sub-card__description {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--lk-text-secondary);
}

.lk-sub-card__date {
    color: var(--lk-text-muted);
    font-size: 13px;
    text-align: right;
    line-height: 1.4;
}

/* ── Формы кабинета ── */
.lk-form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.lk-form__row .lk-field{
    margin: 0;
}

.lk-field--in-row {
    flex: 1;
}

/* ── FAQ ── */
.subscription-faq__item {
    border-bottom: 1px solid var(--lk-border-light);
}

.subscription-faq__question {
    width: 100%;
    text-align: left;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--lk-text);
}

.subscription-faq__question:hover{
    color:#0164a7;
}
.subscription-faq__question:hover:after{
    color:#0164a7;
}

.subscription-faq__question::after {
    content: '+';
    font-size: 20px;
    color: var(--lk-text-muted);
    transition: transform .2s;
}

.subscription-faq__question.active::after {
    content: '−';
}

.subscription-faq__question.active + .subscription-faq__answer{
    display: block;
}

.subscription-faq__answer {
    display: none;
    padding: 0 0 16px;
    color: var(--lk-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ── OAuth кнопки ── */
.lk-oauth__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.lk-button--oauth {
    display: flex!important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    box-sizing: border-box;
    border-radius: var(--lk-radius);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--lk-border-light);
    background: #fff;
    color: var(--lk-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lk-button--oauth:hover {
    background: #f8f9fa;
    border-color: var(--lk-text-muted);
    box-shadow: var(--lk-shadow);
}

.lk-button--oauth img {
    width: 24px;
    height: 24px;
}


/* ── Связанные аккаунты ── */

.lk-oauth-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
}


/* ── Адаптивность ── */
@media (max-width: 768px) {
    .lk-field label br {
        display: none;
    }

    .lk-auth__card {
        padding:34px 24px;
        margin: 0 16px;
    }

    .lk-plans__list {
        flex-direction: column;
        align-items: center;
    }

    .lk-plan-card {
        width: 100%;
        max-width: 320px;
    }

    .lk-form__row {
        flex-direction: column;
        /*gap: 0;*/
    }

    .corporate__banner {
        flex-direction: column;
        text-align: center;
    }

    .lk-sub-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .lk-sub-card--summary {
        text-align: left;
    }

    .lk-sub-card__date {
        text-align: center;
    }

    .lk-otp__digit {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Личный кабинет — layout и навигация
   ========================================================================== */

.lk-cabinet {
    width: 800px;
    max-width: 800px;
    margin: 40px auto;
}

.lk-cabinet__title {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--lk-text);
}

.lk-cabinet__description {
    color: var(--lk-text);
}

.lk-cabinet__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--lk-border-light);
    margin-bottom: 32px;
}

.lk-cabinet__nav-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lk-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    margin-bottom: -1px;
}

.lk-cabinet__nav-item:hover {
    color: var(--lk-text);
}

.lk-cabinet__nav-item--active {
    color: var(--lk-primary);
    border-bottom-color: var(--lk-primary);
}

.lk-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--lk-text);
}

.lk-section-title:not(:first-child) {
    margin-top: 32px;
}

.lk-subsection-title {
    font-size: 14px;
    font-weight: 600;
    margin: 34px 0 12px;
    color: var(--lk-text);
}

.lk-form__actions {
    margin-top: 20px;
}

.lk-alert--success {
    background: #e8f5e9;
    color: var(--lk-success);
    border-color: #c8e6c9;
}

.lk-text-muted {
    color: var(--lk-text-muted);
    font-size: 14px;
}

/* Сессии */
.lk-sessions {
    margin-bottom: 16px;
}

.lk-sessions__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--lk-border-light);
}

.lk-sessions__item:last-child {
    border-bottom: none;
}

.lk-sessions__device {
    font-size: 14px;
    color: var(--lk-text);
    margin-bottom: 4px;
}

.lk-sessions__device-type {
    color: var(--lk-text-muted);
    font-size: 12px;
}

.lk-sessions__meta {
    font-size: 12px;
    color: var(--lk-text-muted);
}

.lk-sessions__action {
    flex-shrink: 0;
    margin-left: 16px;
}

.lk-button--small {
    padding: 6px 12px;
    font-size: 13px;
}

.lk-button--danger {
    width: 100%;
    background: #fff;
    color: var(--lk-error);
    border: 1px solid var(--lk-error)!important;
}

.lk-button--danger:hover {
    background: #ffebee;
}

/* Таблицы */
.lk-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}

.lk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lk-table th,
.lk-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--lk-border-light);
    color: var(--lk-text);
}

.lk-table th {
    font-weight: 500;
    color: var(--lk-text-secondary);
    font-size: 13px;
    white-space: nowrap;
    border-top:none;
}

.lk-table--details th {
    width: 30%;
}

.lk-table--details td {
    width: 70%;
}

.lk-table__refund-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lk-table__refund-form input,
.lk-table__refund-form button {
    min-width: 120px;
    padding: 12px 6px;
}

.lk-table__refund-form input::placeholder {
    font-size: 9px;
}

.lk-table__refund-form button {
    font-size: 12px;
}

/* Статусы */
.lk-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.lk-status--active {
    background: #e8f5e9;
    color: var(--lk-success);
}

.lk-status--expired,
.lk-status--failed,
.lk-status--cancelled {
    background: #ffebee;
    color: var(--lk-error);
}

.lk-status--pending {
    background: #fff3e0;
    color: #e65100;
}

.lk-status--paid {
    background: #e8f5e9;
    color: var(--lk-success);
}

.lk-status--refunded {
    background: #f3e5f5;
    color: #7b1fa2;
}

@media (max-width: 991px) {
    .lk-table--mob-cards td:nth-child(2) {
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .corporate {
        margin: 20px auto;
    }

    .corporate__nav {
        flex-wrap: wrap;
    }

    .corporate__nav-item {
        padding: 10px 14px;
        font-size: 13px;
    }

.invoice__card {
    border-color: #e9e9e9;
    border-radius: 12px;
}

.lk-table th,
    .lk-table td {
        padding: 8px;
        font-size: 13px;
    }

    .lk-table--mob-cards td:nth-child(2) {
        word-break: unset;
    }
}

@media (max-width: 575px) {
    .lk-table--details th,
    .lk-table--details td {
        width: 50%;
        white-space: normal;
        word-break: break-word;
    }
}

/* ==========================================================================
   Страницы подписок
   ========================================================================== */

.subscription__title,
.checkout__title,
.payment-result__title,
.invoice__title {
    font-size: 2.25rem;
    margin: 0 auto 1.875rem;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    margin: 0 0 30px;
    color: var(--lk-text);
    text-align: center;
}



.lk-sub-current {
    background: #f8f9fa;
    border-radius: var(--lk-radius);
    padding: 24px;
    margin-bottom: 40px;
}

.lk-sub-current h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.lk-section-title--large {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin: 40px 0 30px;
    color: var(--lk-text);
}
.lk-plans__section-description {
    text-align: center;
    font-size: 16px;
    margin: 0 0 40px;
    color: var(--lk-text-secondary);
}
.lk-plans__description {
    font-size: 14px;
    color: var(--lk-text-secondary);
    margin: -12px 0 20px;
}

.lk-plans__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px;
}

.lk-plan-card__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--lk-text);
}

.lk-plan-card__price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--lk-text);
}

.lk-plan-card__price-currency {
    font-size: 20px;
    font-weight: 500;
    color: var(--lk-text-secondary);
    margin-left: 4px;
}

.lk-plan-card__price-original {
    font-size: 14px;
    color: var(--lk-text-muted);
    margin-bottom: 8px;
}

.lk-plan-card__price-original s {
    margin-right: 8px;
}

.lk-plan-card__discount {
    color: var(--lk-error);
    font-weight: 500;
}

.lk-plan-card__price-month {
    font-size: 14px;
    color: var(--lk-text-secondary);
    margin-bottom: 20px;
}

.lk-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.lk-plan-card__features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    color: var(--lk-text);
}

.lk-plan-card__features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lk-success);
    font-weight: 700;
}

.lk-button--block {
    display: block;
    max-width: 100%;
}

/* Checkout */
.checkout__summary {
    background: #f8f9fa;
    border-radius: var(--lk-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.checkout__summary h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.lk-sub-card--active .lk-plan-card__price {
    margin-top: 0;
}

.lk-sub-card--summary .lk-plan-card__price {
    margin-top: -7px;
}

.lk-sub-card--summary .lk-plan-card__price-month,
.lk-sub-card--active .lk-plan-card__price-month {
    margin-bottom: 0;
}

.lk-sub-card--summary .lk-plan-card__price-amount,
.lk-sub-card--active .lk-plan-card__price-amount {
    font-weight: 600;
}

.lk-sub-card--summary .lk-plan-card__price-amount {
    font-size: 20px;
}

.lk-sub-card--summary .lk-plan-card__price-currency {
    font-size: 16px;
}

.checkout__plan {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.checkout__plan h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.checkout__type {
    font-size: 13px;
    line-height: 1.4;
    color: var(--lk-text-secondary);
}

.checkout__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--lk-text);
}

.checkout__price-month {
    font-size: 14px;
    color: var(--lk-text-secondary);
    margin-top: 4px;
}

.checkout__section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
}

.checkout__payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.checkout__payment-method {
    display: block;
    cursor: pointer;
}

.checkout__payment-method input[type="radio"] {
    display: none;
}

.checkout__payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid #e9e9e9;
    border-radius: 8px;
    transition: border-color .2s;
}


.checkout__payment-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout__payment-method-icon img {
    max-width: 100%;
    max-height: 100%;
}

.checkout__payment-method-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--lk-text);
    margin-bottom: 4px;
}

.checkout__payment-method-desc {
    font-size: 13px;
    color: var(--lk-text-secondary);
}

.checkout__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.checkout__info {
    font-size: 13px;
    color: var(--lk-text-muted);
    line-height: 1.6;
}

.checkout__info a {
    color: var(--lk-primary);
    text-decoration: underline;
}

.lk-button--large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Result pages */
.payment-result {
    text-align: center;
}

.payment-result__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
}

.payment-result__icon img {
    width: 100%;
    height: 100%;
}

.payment-result__text {
    font-size: 16px;
    color: var(--lk-text-secondary);
    margin: 0 auto 32px;
    line-height: 1.6;
    max-width: 520px;
}

.payment-result__card {
    background: #f8f9fa;
    border-radius: var(--lk-radius);
    padding: 24px;
    margin: 32px auto;
    max-width: 500px;
    text-align: left;
}

.payment-result__card h3 {
    font-size: 18px;
    margin: 0 0 16px;
}

.payment-result__card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--lk-border-light);
}

.payment-result__card-row:last-child {
    border-bottom: none;
}

.payment-result__card-row span:first-child {
    color: var(--lk-text-secondary);
}

.payment-result__card-row span:last-child {
    font-weight: 500;
    color: var(--lk-text);
}

.payment-result__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.payment-result__info {
    font-size: 14px;
    color: var(--lk-text-muted);
    line-height: 1.6;
    margin-top: 24px;
}

.payment-result__info a {
    color: var(--lk-primary);
}

/* Invoice */
.invoice__card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.invoice__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--lk-border-light);
    margin-bottom: 24px;
}

.invoice__logo img {
    height: 40px;
}

.invoice__number {
    font-size: 14px;
    color: var(--lk-text-secondary);
}

.invoice__details h2,
.invoice__payment-info h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.invoice__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.invoice__table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--lk-border-light);
}

.invoice__table td:first-child {
    color: var(--lk-text-secondary);
    width: 40%;
}

.invoice__table td:last-child {
    font-weight: 500;
}

.invoice__amount {
    font-size: 20px;
    color: var(--lk-primary);
}

.invoice__payment-info {
    background: #f8f9fa;
    border-radius: var(--lk-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.invoice__payment-info p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.invoice__payment-info p:last-child {
    margin-bottom: 0;
}

.invoice__payment-info a {
    color: var(--lk-primary);
}

.invoice__actions {
    display: flex;
    gap: 12px;
}

.invoice__note {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    border-radius: var(--lk-radius);
    font-size: 14px;
    line-height: 1.6;
}

.invoice__note strong {
    color: #e65100;
}

@media (max-width: 768px) {
    .subscription__title,
    .checkout__title,
    .payment-result__title,
    .invoice__title,
    .corporate-offer__title {
        font-size: 24px;
    }

    .lk-plan-card__price-amount {
        font-size: 28px;
    }

    .lk-plans__section-description{
        margin: 0 0 24px;
    }

    .checkout__actions,
    .payment-result__actions,
    .invoice__actions {
        flex-direction: column;
    }

    .invoice__header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .lk-section-title--large{
        font-size: 22px;
    }
}

/* ==========================================================================
   Корпоративные подписки
   ========================================================================== */


.corporate-offer__title {
    font-size: 2.25rem;
    margin: 0 auto 1.875rem;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    margin: 0 0 30px;
    color: var(--lk-text);
    text-align: center;
}

.corporate-offer__subtitle {
    font-size: 16px;
    color: var(--lk-text-secondary);
    text-align: center;
    margin: 0 auto 40px;
    max-width: 520px;
}

.corporate__benefits {
    display: flex;
    gap: 20px;
    margin: 32px auto;
    max-width: 800px;
    flex-wrap: wrap;
    justify-content: center;
}

.corporate__benefit {
    background: var(--lk-bg);
    border-radius: var(--lk-radius);
    padding: 12px 16px 12px 38px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    position: relative;
}

.corporate__benefit:before{
    content: "";
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
    top:0;
    bottom:0;
    margin:auto;
    left: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 9C18 13.9705 13.9705 18 9 18C4.02943 18 0 13.9705 0 9C0 4.02943 4.02943 0 9 0C13.9705 0 18 4.02943 18 9ZM12.6273 6.2727C12.8909 6.5363 12.8909 6.9637 12.6273 7.22727L8.12727 11.7273C7.86366 11.9909 7.43634 11.9909 7.1727 11.7273L5.3727 9.92727C5.1091 9.66366 5.1091 9.23634 5.3727 8.97273C5.6363 8.70912 6.0637 8.70912 6.3273 8.97273L7.65 10.2954L9.66132 8.28405L11.6727 6.2727C11.9363 6.0091 12.3637 6.0091 12.6273 6.2727Z' fill='%2300A7B3'/%3E%3C/svg%3E%0A");
}
.corporate__stats {
    display: flex;
    gap: 24px;
    margin: 20px 0;
}

.corporate__stat {
    display: flex;
    flex-direction: column;
}

.corporate__stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--lk-primary);
}

.corporate__stat-label {
    font-size: 13px;
    color: var(--lk-text-muted);
}

.corporate__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.corporate__company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.corporate__company-header h2 {
    font-size: 20px;
    margin: 0;
}

.lk-form--inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.lk-field--grow {
    flex: 1;
}

.lk-form__description {
    font-size: 14px;
    color: var(--lk-text-secondary);
    line-height: 1.6;
    margin: 0 auto 34px;
    text-align: center;
    max-width: 600px;
}

@media (max-width: 768px) {
    .corporate__benefits {
        grid-template-columns: 1fr;
    }

    .corporate__actions {
        flex-direction: column;
    }

    .lk-form--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .corporate__company-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   OAuth кнопки
   ========================================================================== */

.lk-button--yandex {
    background: white;
    color: black;
    border-color: var(--lk-border-light)!important;
    font-weight: 600!important;
}

.lk-button--yandex:hover {
    background: white;
    border-color: var(--lk-border-light);
}

.lk-button--sber {
    background: #21a038;
    color: #fff;
    border-color: #21a038;
}

.lk-button--sber:hover {
    background: #28b844;
    border-color: #28b844;
}

.lk-oauth__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lk-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.lk-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lk-border-light);
}

.lk-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    color: var(--lk-text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .lk-oauth__buttons {
        gap: 10px;
    }
    
    .lk-button--oauth {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   OAuth привязка аккаунтов (в разделе безопасности)
   ========================================================================== */

.lk-oauth__link-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.lk-oauth__link-button {
    max-width: 300px;
}


.lk-oauth__accounts {
    margin-top: 16px;
}

.lk-oauth-account:last-child {
    border-bottom: none;
}

.lk-oauth-account__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lk-oauth-account__info img {
    width: 24px;
    height: 24px;
}

.lk-oauth-account__provider {
    font-weight: 500;
    color: var(--lk-text);
}

.lk-oauth-account__email {
    color: var(--lk-text-secondary);
    font-size: 14px;
}

.lk-oauth-account__date {
    color: var(--lk-text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .lk-oauth__link-button {
        max-width: 100%;
    }
    
    .lk-oauth-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .lk-oauth-account__info {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Gate: Subscription blocks (inline в материале)
   ========================================================================== */

/* Header Landing */
.lk-gate__header {
    text-align: center;
    margin-bottom: 48px;
}

.lk-gate__header-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--lk-text);
}

.lk-gate__header-subtitle {
    font-size: 18px;
    color: var(--lk-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits (пилюли с галочками) */
.lk-gate__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
    list-style: none;
    padding: 0;
}

.lk-gate__benefit {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--lk-text);
}

.lk-gate__benefit::before {
    content: '✓';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #00a7b3;
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
}

/* Billing (тарифные карточки) */
.lk-gate__billing {
    margin-bottom: 30px;
    background-color: #fafafa;
    padding: 40px;
    border-radius: 16px;
}

.lk-gate__billing-header {
    text-align: center;
    margin-bottom: 34px;
}

.lk-gate__billing-text {
    color: var(--lk-text-secondary);
    font-size: 16px;
}

.lk-gate__billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lk-billing-card {
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 32px 24px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lk-billing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.lk-billing-card--featured {
    border-color: #0164a7;
    box-shadow: 0 4px 12px rgba(1, 100, 167, 0.1);
}

.lk-billing-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #0164a7;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
}

.lk-billing-card__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--lk-text-secondary);
    margin-bottom: 16px;
}

.lk-billing-card__price-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 24px;
}

.lk-billing-card__total-price {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--lk-text);
}

.lk-billing-card__old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.lk-billing-card__period-price {
    display: block;
    font-size: 14px;
    color: var(--lk-text-secondary);
    margin-top: 4px;
}

.lk-billing-card__btn {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.lk-billing-card__btn--standard {
    background-color: #e9e9e9;
    color: #333333;
}

.lk-billing-card__btn--standard:hover {
    background-color: #dcdcdc;
}

.lk-billing-card__btn--featured {
    background-color: #0164a7;
    color: white;
    box-shadow: 0 4px 6px rgba(1, 100, 167, 0.3);
}

.lk-billing-card__btn--featured:hover {
    background-color: #004d80;
}

/* Corp-promo (корпоративный баннер) */
.lk-gate__corp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.lk-gate__corp-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.lk-gate__corp-icon {
    width: 40px;
    height: 40px;
    color: #0164a7;
    flex-shrink: 0;
}

.lk-gate__corp-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--lk-text);
}

.lk-gate__corp-text p {
    font-size: 15px;
    margin: 0;
    color: var(--lk-text-secondary);
}

.lk-gate__corp-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #0164a7;
    color: #0164a7;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lk-gate__corp-link:hover {
    background-color: #0164a7;
    color: #fff;
}

/* Features (карточки возможностей) */
.lk-gate__features {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.lk-gate__features-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.lk-gate__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lk-feature-card {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s;
    text-align: left;
}

.lk-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.lk-feature-card__icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--lk-text-secondary);
}

.lk-feature-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--lk-text);
    margin-top: 0;
}

.lk-feature-card__desc {
    font-size: 15px;
    color: var(--lk-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* FAQ (аккордеон на <details>) */
.lk-gate__faq {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fafafa;
    border-radius: 16px;
    margin-bottom: 40px;
}

.lk-gate__faq-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
}

.lk-gate__faq-item {
    border-bottom: 1px solid #e9e9e9;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lk-gate__faq-question {
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--lk-text);
    cursor: pointer;
}

.lk-gate__faq-question::-webkit-details-marker {
    display: none;
}

.lk-gate__faq-question::after {
    content: '+';
    font-size: 28px;
    font-weight: 300;
    color: var(--lk-text-secondary);
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

details[open] .lk-gate__faq-question::after {
    content: '+';
    transform: rotate(45deg);
    color: #00a7b3;
}

.lk-gate__faq-answer {
    margin-top: 16px;
    font-size: 16px;
    color: var(--lk-text-secondary);
    line-height: 1.6;
    padding-right: 20px;
}

/* Login button в gate */
.lk-gate__login {
    text-align: center;
    margin-bottom: 32px;
}

.lk-gate__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.lk-gate__login-btn:hover {
    background-color: #eeeeee;
}

/* Responsive для gate */
@media (max-width: 768px) {
    .lk-gate__billing-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-gate__corp {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .lk-gate__corp-content {
        flex-direction: column;
        align-items: center;
    }
    
    .lk-gate__features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .lk-gate__benefits {
        gap: 16px;
    }
    
    .lk-gate__benefit {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .lk-gate__header-title {
        font-size: 28px;
    }
    
    .lk-gate__header-subtitle {
        font-size: 16px;
    }
    
    .lk-gate__billing {
        padding: 24px;
    }
    
    .lk-gate__faq {
        padding: 24px;
    }
}

/* ===========================================================================
   Личный кабинет: финальный слой для страниц аккаунта, подписки и бизнеса
   ========================================================================== */

.corporate,
.subscription,
.checkout,
.payment-result,
.invoice {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px;
}

.corporate__header,
.subscription__hero,
.checkout__header,
.invoice__header-title {
    margin-bottom: 32px;
}

.corporate__description,
.lk-section-description,
.invoice__description {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.subscription__subtitle,
.checkout__description {
    margin: 0 auto 40px;
    color: var(--lk-text-secondary);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    max-width: 520px;
}

.corporate__nav {
    gap: 0;
    margin-bottom: 32px;
    border-bottom-color: #e9e9e9;
}

.corporate__nav-item {
    padding: 12px 16px;
}

.lk-cabinet__section {
    padding: 28px;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    background: var(--lk-bg-card);
}

.lk-cabinet__section + .lk-cabinet__section {
    margin-top: 24px;
}

.lk-section-heading {
    margin-bottom: 24px;
}

/* AJAX-отправка (lk_cabinet.js): кнопка заблокирована до ответа */
.lk-button--loading {
    opacity: .6;
    cursor: wait;
    pointer-events: none;
}

/* Крупная полноширинная кнопка auth-страниц (вход/регистрация/OTP).
   Определена после правил финального слоя, чтобы border-radius: 3px
   не перекрывался общим .lk-button { border-radius: 8px }. */
.lk-button--xl {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 20px;
}

.lk-sub-current,
.checkout__summary,
.payment-result__card,
.invoice__payment-info,
.corporate__benefit,
.subscription__corporate-cta,
.lk-empty-state {
    background: #f8f9fa;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
}

.lk-sub-current,
.checkout__summary,
.payment-result__card,
.invoice__payment-info,
.lk-empty-state {
    padding: 24px;
}

.lk-plans {
    padding: 40px;
    box-sizing: border-box;
    background: var(--lk-bg);
    border-radius: 12px;
    max-width: 880px;
    margin: 48px auto;
}

.subscription-faq {
    padding: 40px;
    box-sizing: border-box;
    background: var(--lk-bg);
    border-radius: 12px;
    max-width: 880px;
    margin: 92px auto;
}
.subscription-faq__title {
    margin-top: 0;
}

.lk-plan-card--highlighted {
    border: 2px solid #0164a7;
}

.subscription__features-grid{
    max-width: 880px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.subscription__feature,
.corporate__feature {
    padding: 24px;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.subscription__feature h3,
.corporate__feature h3 {
    margin: 0 0 8px;
    color: #212121;
    font-size: 17px;
}

.subscription__feature p,
.corporate__feature p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.corporate__features {
    max-width: 880px;
    margin: 92px auto;
}
.corporate__features-title{
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin: 40px 0 30px;
    color: var(--lk-text);
}

.corporate__features-wrap{
    display: flex;
    gap: 20px;
}

.corporate-request{
    background: var(--lk-bg);
    border-radius: var(--lk-radius);
    margin: 0 auto;
    max-width: 880px;
    padding: 50px 40px;
}

.corporate-request__actions {
    text-align: center;
}

.lk-form__title{
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin: 0 0 20px;
    color: var(--lk-text);
}

.subscription__corporate-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
}

.subscription__corporate-cta h3 {
    margin: 0 0 6px;
    color: #212121;
    font-size: 18px;
}

.subscription__corporate-cta p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.checkout__payment-method input[type="radio"]:checked + .checkout__payment-method-content {
    border-color: #0164a7;
    background: #f8f9fa;
}

.checkout__autorenew{
    margin: 0 0 15px;
}

.lk-table th,
.lk-table td,
.payment-result__card-row,
.lk-sessions__item,
.lk-oauth-account {
    border-bottom-color: #e9e9e9;
}

.lk-empty-state {
    text-align: center;
}

.lk-table__actions {
    display: flex;
    gap: 5px;
}

.lk-table--mob-cards .lk-table__actions form {
    flex: 1;
}

.lk-table--mob-cards .lk-table__actions form button {
    font-size: 12px;
    padding: 12px 8px;
}

.lk-table--mob-cards .lk-table__actions form:first-child button {
    min-width: 110px;
}

@media (max-width: 768px) {
    .corporate,
    .subscription,
    .checkout,
    .payment-result,
    .invoice {
        margin: 20px auto;
        padding: 0 12px;
    }

    .subscription-faq{
        margin: 50px 0;
    }
    .lk-plans{
        padding: 24px 24px;
        margin: 50px 0;
    }

    .lk-cabinet__section {
        padding: 20px;
        border-radius: 8px;
    }
    .corporate__features-wrap{
        flex-wrap: wrap;
    }
    .subscription__features-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .subscription__corporate-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .lk-table--mob-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .lk-table--mob-cards,
    .lk-table--mob-cards tbody,
    .lk-table--mob-cards tr,
    .lk-table--mob-cards td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .lk-table--mob-cards tr {
        margin-bottom: 15px;
        border: 1px solid var(--lk-border-light);
        border-radius: 8px;
        background-color: var(--lk-bg-card);
        box-shadow: 0 2px 4px var(--lk-shadow);
    }

    .lk-table--mob-cards td {
        position: relative;
        display: flex;
        padding: 8px 16px;
        border-bottom: 1px solid var(--lk-border-light);
    }

    .lk-table--mob-cards td:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lk-table--mob-cards td:last-child,
    .lk-table--mob-cards td:nth-last-child(2) {
        border-bottom: 0;
    }

    /* Убрать подпись у последней ячейки с кнопкой, а так же саму последнюю ячейку если она пустая */
    .lk-table--mob-cards td:last-child::before,
    .lk-table--mob-cards td[data-label="Удалить"]:not(:empty)::before,
    .lk-table--mob-cards td:last-child:not(:has(*)) {
        display: none;
    }

    .lk-table--mob-full td {
        border: 0;
    }

    .lk-table--mob-full td:last-child {
        flex-wrap: inherit;
        gap: 0;
    }

    .lk-table--mob-full td:last-child::before,
    .lk-table--mob-full td:last-child:not(:has(*)) {
        display: inherit;
    }

    .lk-table--mob-full td:last-child::before,
    .lk-table--mob-full td:last-child:not(:has(*)) {
        display: flex;
    }

    .lk-table--mob-cards td::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 130px;
        max-width: 130px;
        font-weight: 600;
        color: var(--lk-text);
    }
}

@media (max-width: 575px) {
    .corporate-request {
        padding: 50px 20px;
    }

    .lk-table--mob-cards td {
        word-break: break-word;
    }

    .lk-table--mob-cards td::before {
        min-width: 100px;
        max-width: 100px;
    }

    .lk-table--mob-cards td .lk-table__action {
        flex-grow: 1;
    }

    .lk-table--mob-cards td .lk-table__action .lk-button {
        width: 100%;
    }

    .lk-table--mob-full td::before {
        min-width: 110px;
        max-width: 110px;
    }

    .lk-sub-card--summary .checkout__plan {
        flex-direction: column;
    }
}

/* --- БЛОК: Премиум статьи --- */

.lk-premiumarticles {
    max-width: 880px;
    margin: 92px auto;
}

.lk-premiumarticles__heading {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin: 40px 0 30px;
    color: var(--lk-text);
}

.lk-premiumarticles__wrap,
.lk-premiumarticles__wrap .jscroll-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lk-premiumarticles__item {
    display: flex;
    align-items: center;
    min-height: 108px;
    min-width: 100%;
    gap: 22px;
    padding: 0 22px 0 0;
    border: 1px solid var(--lk-border-light);
    border-radius: 6px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    transition: all .2s linear;
}

.lk-premiumarticles__item:hover {
    opacity: .85;
    text-decoration: none;
}

.lk-premiumarticles__image {
    width: 160px;
    min-width: 160px;
    height: auto;
    flex-shrink: 0;
    border-radius: 6px 0 0 6px;
    object-fit: cover;
}

.lk-premiumarticles__title {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #212121;
}

.lk-premiumarticles__title .lk-badge {
    position: relative;
    top: 3px;
}

.lk-premiumarticles__btn {
    margin: 30px 0;
    text-align: center;
}

.lk-premiumarticles__btn.read_more_btn{
    font-family: "Open Sans", sans-serif;
    margin: 0;
}

.lk-premiumarticles__btn.read_more_btn:hover{
    text-decoration: none;
}

@media (max-width: 768px) {
    .lk-premiumarticles__item{
        padding: 10px;
        gap:14px;
    }
    .lk-premiumarticles{
        margin: 50px 0;
    }
    .lk-premiumarticles__image {
        width: 90px;
        min-width: 0;
        border-radius: 0;
    }
    .lk-premiumarticles__heading{
        font-size: 22px;
    }
}


/* --- БЛОК: Корпоративная плашка --- */
.lk-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid var(--lk-border-light);;
    padding: 24px 32px;
    border-radius: 12px;
    margin:92px 0;
    max-width: 800px;
}

@media (max-width: 768px) {
    .lk-promo { 
        flex-direction: column; 
        text-align: center; 
        gap: 16px;
        margin: 50px 0;
    }
}

.lk-promo__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

@media (max-width: 768px) {
     .lk-promo__content { 
        flex-direction: column; 
        align-items: center;
    }
}

.lk-promo__icon {
    width: 40px;
    height: 40px;
    color: var(--lk-primary); 
    flex-shrink: 0;
}

.lk-promo__text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--sub-color-text-main);
}

.lk-promo__text p {
    font-size: 15px;
    margin: 0;
    color: var(--sub-color-text-secondary);
}

.lk-promo__link {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid var(--lk-primary);
    color: var(--lk-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lk-promo__link:hover {
    background-color: var(--lk-primary);
    color: #fff;
}