/* ==========================================================================
   Gate — полноэкранная заглушка для закрытых материалов
   ========================================================================== */

/* ── 1. Переменные ── */
: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: 12px; /* Исправлено на более логичное значение, если 4px было ошибкой, иначе верните 4px */
    --lk-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* ── 2. Анимации ── */
@keyframes lk-gate__fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 3. Утилиты ── */
.lk-truncated-text {
    position: relative;
}

.lk-truncated-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

/* ── 4. Основной контейнер Gate ── */
.lk-gate__content {
    border-radius: 16px;
}

.lk-gate__login {
    text-align: center;
}

.lk-gate__login-btn {
    display: inline-flex;
    align-items: center;
    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;
    gap: 8px;
}

.lk-gate__login-btn:hover {
    text-decoration: none;
    background-color: var(--lk-primary);
    color: #fff;
}

.lk-gate__login-btn path{
    transition: all 0.2s;
}

.lk-gate__login-btn:hover path{
    stroke:white;
}

/* ── 5. Шапка (Header) ── */
.lk-gate__header-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--lk-text);
    text-align: center;
    margin: 0 0 22px;
}

.lk-gate__header-subtitle {
    font-size: 16px;
    color: var(--lk-text-secondary);
    text-align: center;
    margin: 0 auto 30px;
    max-width: 520px;
    overflow: auto;
}

/* Общие стили для вторичного текста */
.lk-gate__header-subtitle,
.lk-gate__billing-text,
.lk-feature-card__desc,
.lk-gate__faq-answer {
    color: #666;
}

/* ── 6. Секция тарифов и подписок (Plans & Billing) ── */
.lk-plans {
    background: var(--lk-bg);
    padding: 40px;
    margin: 48px auto;
    max-width: 880px;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: auto;
}

.lk-sub-current {
    background: #f8f9fa;
    padding: 24px;
    margin-bottom: 40px;
    border-radius: var(--lk-radius);
}

.lk-sub-current h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.lk-section-title--large {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--lk-text);
    text-align: center;
    margin: 40px 0 20px;
}

.lk-plans__section-description {
    font-size: 16px;
    color: var(--lk-text-secondary);
    text-align: center;
    margin: 0 0 40px;
}

.lk-plans__description {
    font-size: 14px;
    color: var(--lk-text-secondary);
    margin: -12px 0 20px;
}

/* Сетка тарифов */
.lk-plans__grid,
.lk-plans__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 34px;
    margin: 24px 0;
}

/* Карточка тарифа */
.lk-plan-card {
    position: relative;
    width: calc(50% - 20px);
    padding: 28px 28px 98px;
    background: var(--lk-bg-card);
    border: 1px solid var(--lk-border-light);
    border-radius: var(--lk-radius-lg);
    text-align: center;
    box-sizing: border-box;
}

.lk-plan-card:hover{
    border-color: var(--lk-primary);
}

.lk-plan-card--highlighted {
    border: 2px solid var(--lk-primary);
}

/* Бейдж "Популярный" и т.д. */
.lk-plan-card__badge,
.lk-billing-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__title {
    color: var(--lk-text) !important;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
}

/* Цены */
.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__old-price {
    color: var(--lk-text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

.lk-plan-card__discount {
    color: var(--lk-error);
    font-weight: 500;
}

.lk-plan-card__price {
    font-size: 28px;
    font-weight: bold;
    margin: 4px 0;
    color: var(--lk-text);
}

.lk-plan-card__per-month,
.lk-plan-card__price-month {
    font-size: 13px; /* Унифицировал размер */
    color: var(--lk-text-muted);
    margin-bottom: 20px;
}

.lk-plan-card__price-currency {
    font-size: 20px;
    font-weight: 500;
    color: var(--lk-text-secondary);
    margin-left: 4px;
}

/* Кнопка внутри карточки тарифа */
.lk-plan-card__action {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    width: auto;
}

/* ── 7. Фичи и Преимущества (Features & Benefits) ── */
.lk-gate__features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lk-gate__benefit {
    background: #f8f9fa;
    color: #212121;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.lk-gate__benefit::before {
    background: #0164a7;
}

/* Общие стили для карточек фич и биллинга */
.lk-billing-card,
.lk-gate__corp,
.lk-feature-card {
    background: #fff;
    border-color: #e9e9e9;
    border-radius: 12px;
    box-shadow: none;
}

.lk-billing-card:hover,
.lk-feature-card:hover {
    box-shadow: none; /* Если нужна тень при наведении, добавьте здесь */
}

.lk-billing-card--featured {
    border: 2px solid #0164a7;
    box-shadow: none;
}

/* --- БЛОК: Премиум статьи --- */

.lk-premiumarticles {
    max-width: 880px;
    margin: 60px auto 50px;
}

.lk-premiumarticles__heading {
    margin: 30px 0 36px;
    font-size: 22px;
    text-align: center;
}

.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 {
    display: inline-block;
    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;
}

/* ── 8. Корпоративный блок / Промо ── */
.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-bottom: 60px;
    gap: 30px;
}

.lk-promo__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.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(--lk-text);
}

.lk-promo__text p {
    font-size: 15px;
    margin: 0;
    color: var(--lk-text-secondary);
}

/* Ссылка в промо-блоке */
.lk-promo__link,
.lk-gate__corp-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,
.lk-gate__corp-link:hover {
    background-color: var(--lk-primary);
    color: #fff;
    text-decoration: none;
}

/* ── 9. FAQ и Примечания ── */
.lk-gate__billing,
.lk-gate__faq {
    background: #f8f9fa;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
}

.lk-gate__note,
.lk-gate__faq-item {
    border-color: #e9e9e9;
}

.lk-gate__note {
    text-align: center;
    margin: 0 0 50px;
}

/* ── 10. Кнопки (Общие) ── */
.lk-button,
.lk-billing-card__btn--featured,
.lk-billing-card__btn--standard {
    display: inline-block;
    padding: 12px 14px;
    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;
}

.lk-button--block {
    display: block;
    max-width: 100%;
}

/* Primary Button */
.lk-button--primary,
.lk-billing-card__btn--featured {
    background: var(--lk-primary);
    color: #fff;
    border-color: var(--lk-primary);
}

.lk-button--primary:hover,
.lk-billing-card__btn--featured:hover {
    background: var(--lk-primary-hover);
    border-color: var(--lk-primary-hover);
    text-decoration: none;
}

/* Secondary/Standard Button */
.lk-button--secondary,
.lk-billing-card__btn--standard {
    background: #f8f9fa; /* Или var(--lk-secondary) */
    color: #212121;
    border: 1px solid #e9e9e9;
}

.lk-button--secondary:hover {
    background: var(--lk-secondary-hover);
    text-decoration: none;
}

/* Disabled State */
.lk-button[disabled],
.lk-button--disabled {
    background: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.lk-button[disabled]:hover {
    background: #e0e0e0;
}

/* ── 11. Адаптивность (Media Queries) ── */

@media (max-width: 960px) {
    .lk-plan-card {
        width: 100%;
        padding: 28px; /* Убираем нижний отступ для кнопки, так как она статична */
    }

    .lk-plan-card__action {
        position: static;
    }

    .lk-plan-card__price-month {
        margin: 0 0 18px;
    }
}

@media (max-width: 768px) {
    .lk-gate__billing,
    .lk-gate__faq {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .lk-promo {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin: 0 0 30px;
    }

    .lk-promo__content {
        flex-direction: column;
        align-items: center;
    }

    .lk-premiumarticles__item{
        padding: 10px;
        gap:14px;
    }

    .lk-premiumarticles__image {
        width: 90px;
        min-width: 0;
        border-radius: 0;
    }

    .lk-plans{
        margin: 30px 0;
        padding: 24px 24px 10px;
    }

    .lk-premiumarticles{
        margin: 40px 0 40px;
    }
}