/* ЛК: доступ к закрытым разделам — TSK25 / ОФЗ */
.sk-access-lk {
    --c25-brand: #497952;
    --c25-brand-dark: #127023;
    --c25-brand-soft: #e8efe6;
    --c25-muted: #8a9a86;
    --c25-line: #e2ddd4;
    --c25-ink: #1f2a1c;
    max-width: 720px;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Встраивание формы купона в шапку разделов /sovmestniki|/master-klassy|/platnye-opisaniya */
.sk-access-lk--embed {
    max-width: none;
    margin: 0 0 20px;
}

.sk-access-lk__lead {
    margin: 0 0 18px;
    color: var(--c25-muted);
    font-size: 14px;
    line-height: 1.45;
}

.sk-access-lk__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sk-access-lk__card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--c25-line);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.sk-access-lk__card:hover {
    border-color: #c8d8c4;
    background: linear-gradient(135deg, var(--c25-brand-soft) 0%, #fff 55%);
}

.sk-access-lk__card-main {
    min-width: 0;
    flex: 1 1 220px;
}

.sk-access-lk__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--c25-brand-dark);
    line-height: 1.3;
}

.sk-access-lk__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sk-access-lk__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--c25-brand-soft);
    color: var(--c25-brand-dark);
}

.sk-access-lk__badge--masterclass,
.sk-access-lk__badge--paid_description,
.sk-access-lk__badge--gift_description,
.sk-access-lk__badge--gift_coupon {
    background: #eef5ee;
    color: var(--c25-brand);
}

.sk-access-lk__badge--admin,
.sk-access-lk__badge--live,
.sk-access-lk__badge--calendar,
.sk-access-lk__badge--mailings {
    background: var(--c25-brand);
    color: #fff;
}

/* Скрытый mount ЗНП: карточка «Заметки» открывает drawer через data-sk-notes-open */
.sk-access-lk__notes-boot {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.sk-access-lk__status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f0eeea;
    color: var(--c25-muted);
}

.sk-access-lk__status.is-open {
    background: var(--c25-brand-soft);
    color: var(--c25-brand-dark);
}

.sk-access-lk__arrow {
    flex: 0 0 auto;
    align-self: center;
    font-size: 18px;
    color: var(--c25-brand);
    line-height: 1;
}

.sk-access-lk__card:hover .sk-access-lk__arrow {
    color: var(--c25-brand-dark);
}

.sk-access-lk__empty {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--c25-brand-soft);
    color: var(--c25-brand-dark);
    font-size: 14px;
}

/* Форма купона */
.sk-access-lk__redeem {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--c25-line);
    background: linear-gradient(135deg, var(--c25-brand-soft) 0%, #fff 60%);
}

.sk-access-lk__redeem-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--c25-brand-dark);
}

.sk-access-lk__redeem-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.sk-access-lk__redeem-input {
    flex: 1 1 180px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--c25-line);
    border-radius: 10px;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    color: var(--c25-ink);
    background: #fff;
    box-sizing: border-box;
}

.sk-access-lk__redeem-input:focus {
    outline: none;
    border-color: var(--c25-brand);
    box-shadow: 0 0 0 3px rgba(73, 121, 82, 0.15);
}

.sk-access-lk__redeem-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: var(--c25-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sk-access-lk__redeem-btn:hover {
    background: var(--c25-brand-dark);
}

.sk-access-lk__redeem-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.sk-access-lk__redeem-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--c25-muted);
}

.sk-access-lk__redeem-msg {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.sk-access-lk__redeem-msg.is-error {
    background: #fdecea;
    color: #8a1f1f;
}

.sk-access-lk__redeem-msg.is-ok {
    background: var(--c25-brand-soft);
    color: var(--c25-brand-dark);
}
