/* ==========================================================
   Knowledge article — электронная подпись для водителя (ПЭП / КЭП).
   Все селекторы ограничены .knowledge-article, чтобы не ломать лендинг.
   ========================================================== */

.knowledge-article .pep-page {
    overflow-x: hidden;
    color: #1d2433;
    background: #ffffff;
}

.knowledge-article .pep-page section {
    position: relative;
    padding: 72px 0;
}

.knowledge-article .pep-page .container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.knowledge-article .knowledge-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #697488;
    text-decoration: none;
    transition: color 0.25s;
}

.knowledge-article .knowledge-back:hover {
    color: #0d4fd7;
}

.knowledge-article .pep-badge,
.knowledge-article .pep-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d4fd7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.knowledge-article .pep-section__head {
    max-width: 740px;
    margin: 0 auto 40px;
    text-align: center;
}

.knowledge-article .pep-section__head h2 {
    margin: 14px 0 12px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #1d2433;
}

.knowledge-article .pep-section__head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #697488;
}

.knowledge-article .pep-section__head b {
    color: #1d2433;
}

.knowledge-article .pep-section__head p + p {
    margin-top: 12px;
}

.knowledge-article .pep-section--alt {
    background: #f5f8fd;
}

/* ---------- Hero ---------- */
.knowledge-article .pep-hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(ellipse 70% 50% at 90% 0%, rgba(0, 179, 126, 0.12), transparent 55%),
        radial-gradient(ellipse 40% 40% at 0% 100%, rgba(13, 79, 215, 0.1), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
    border-bottom: 1px solid #e4e9f2;
}

.knowledge-article .pep-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 48px;
    align-items: center;
}

.knowledge-article .pep-hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.knowledge-article .pep-hero__lead {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #10213f;
}

.knowledge-article .pep-hero__sub {
    margin: 0;
    max-width: 540px;
    font-size: 17px;
    line-height: 1.7;
    color: #44556e;
}

.knowledge-article .pep-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.knowledge-article .pep-phone {
    width: 196px;
    height: 380px;
    padding: 12px;
    border-radius: 34px;
    background: #1d2433;
    box-shadow: 0 28px 60px rgba(16, 43, 93, 0.22);
    z-index: 1;
}

.knowledge-article .pep-phone__notch {
    width: 72px;
    height: 8px;
    margin: 4px auto 10px;
    border-radius: 999px;
    background: #3a4558;
}

.knowledge-article .pep-phone__screen {
    height: calc(100% - 22px);
    padding: 28px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #eafaf5 100%);
    text-align: center;
}

.knowledge-article .pep-phone__app {
    display: inline-block;
    margin-bottom: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #00b37e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.knowledge-article .pep-phone__screen p {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1d2433;
}

.knowledge-article .pep-phone__code {
    margin: 0 auto 28px;
    letter-spacing: 0.28em;
    font-size: 28px;
    font-weight: 800;
    color: #0d4fd7;
}

.knowledge-article .pep-phone__btn {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 12px;
    background: #0d4fd7;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.knowledge-article .pep-sms {
    position: absolute;
    right: 2%;
    top: 14%;
    display: flex;
    flex-direction: column;
    width: 128px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    box-shadow: 0 16px 36px rgba(16, 43, 93, 0.12);
    z-index: 2;
}

.knowledge-article .pep-sms small {
    color: #697488;
    font-size: 11px;
    font-weight: 600;
}

.knowledge-article .pep-sms strong {
    margin: 6px 0 2px;
    font-size: 26px;
    letter-spacing: 0.12em;
    color: #0d4fd7;
}

.knowledge-article .pep-sms span {
    font-size: 12px;
    color: #697488;
}

/* ---------- Flow ---------- */
.knowledge-article .pep-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
}

.knowledge-article .pep-flow li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(16, 43, 93, 0.05);
}

.knowledge-article .pep-flow li:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d4fd7;
    font-weight: 700;
    z-index: 1;
}

.knowledge-article .pep-flow__icon {
    font-size: 24px;
}

.knowledge-article .pep-flow li strong {
    font-size: 13px;
    line-height: 1.35;
    color: #10213f;
}

.knowledge-article .pep-done {
    margin: 0 auto 16px;
    max-width: 640px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    color: #00b37e;
}

.knowledge-article .pep-info {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: #44556e;
}

.knowledge-article .pep-info--center {
    margin: 28px auto;
    text-align: center;
}

.knowledge-article .pep-info b {
    color: #1d2433;
}

/* ---------- Moments / split ---------- */
.knowledge-article .pep-moments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.knowledge-article .pep-moment {
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(16, 43, 93, 0.06);
}

.knowledge-article .pep-moment--out {
    background: #eafaf5;
    border-color: #c6efe0;
}

.knowledge-article .pep-moment__tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d4fd7;
    font-size: 12px;
    font-weight: 700;
}

.knowledge-article .pep-moment--out .pep-moment__tag {
    background: #d9f6ec;
    color: #087a56;
}

.knowledge-article .pep-bubble {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px 12px 12px 4px;
    background: #f5f8fd;
    color: #10213f;
    font-weight: 700;
    line-height: 1.5;
}

.knowledge-article .pep-moment p:last-child {
    margin: 0;
    color: #44556e;
    line-height: 1.65;
}

.knowledge-article .pep-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.knowledge-article .pep-split--tight {
    margin-top: 18px;
    max-width: none;
}

.knowledge-article .pep-split__card {
    padding: 24px 22px;
    background: #eafaf5;
    border: 1px solid #c6efe0;
    border-radius: 18px;
    text-align: center;
}

.knowledge-article .pep-split__card--kep {
    background: #eaf3ff;
    border-color: #c9ddff;
}

.knowledge-article .pep-split__card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #10213f;
}

.knowledge-article .pep-split__card p {
    margin: 0 0 12px;
    color: #44556e;
    line-height: 1.5;
}

.knowledge-article .pep-split__card strong {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #00b37e;
    font-size: 14px;
}

.knowledge-article .pep-split__card--kep strong {
    color: #0d4fd7;
}

.knowledge-article .pep-quote {
    margin: 0 0 16px;
    padding: 16px 18px 16px 20px;
    border-left: 4px solid #0d4fd7;
    border-radius: 0 14px 14px 0;
    background: #f5f8fd;
    color: #44556e;
    font-size: 15px;
    font-style: italic;
    line-height: 1.65;
}

.knowledge-article .pep-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 16px;
}

.knowledge-article .pep-dual article {
    padding: 18px 16px;
    background: #f5f8fd;
    border-radius: 16px;
}

.knowledge-article .pep-dual span {
    font-size: 22px;
}

.knowledge-article .pep-dual h3 {
    margin: 8px 0 6px;
    font-size: 17px;
}

.knowledge-article .pep-dual p {
    margin: 0;
    color: #44556e;
    font-size: 14px;
    line-height: 1.5;
}

.knowledge-article .pep-case .pep-highlight {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eaf3ff;
    color: #0a3a9e;
    font-weight: 700;
    line-height: 1.5;
}

.knowledge-article .pep-remember {
    max-width: 900px;
    margin: 28px auto 0;
    padding: 28px;
    background: #eafaf5;
    border: 1px solid #c6efe0;
    border-radius: 24px;
}

.knowledge-article .pep-remember h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: #10213f;
}

.knowledge-article .pep-remember ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.knowledge-article .pep-remember li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 16px;
}

.knowledge-article .pep-remember b {
    color: #10213f;
}

.knowledge-article .pep-remember span {
    color: #44556e;
    line-height: 1.55;
}

/* ---------- Cases ---------- */
.knowledge-article .pep-case {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(16, 43, 93, 0.06);
}

.knowledge-article .pep-case:last-of-type {
    margin-bottom: 0;
}

.knowledge-article .pep-case__num {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #0d4fd7;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.knowledge-article .pep-case h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #10213f;
}

.knowledge-article .pep-case > div > p {
    margin: 0 0 16px;
    color: #44556e;
    line-height: 1.7;
}

.knowledge-article .pep-eq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 16px;
}

.knowledge-article .pep-eq__item {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f8fd;
    color: #44556e;
    font-size: 15px;
}

.knowledge-article .pep-eq__item b {
    color: #10213f;
}

.knowledge-article .pep-alert {
    margin: 0 0 16px;
    padding: 18px 20px;
    background: #fff7ed;
    border: 1px solid #f3d5b0;
    border-radius: 16px;
}

.knowledge-article .pep-alert p {
    margin: 0 0 10px;
    color: #5a4632;
    line-height: 1.7;
}

.knowledge-article .pep-alert p:last-child {
    margin-bottom: 0;
}

.knowledge-article .pep-case .pep-info {
    margin: 0;
    max-width: none;
}

/* ---------- Remember schemes ---------- */
.knowledge-article .pep-schemes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.knowledge-article .pep-scheme {
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(16, 43, 93, 0.06);
}

.knowledge-article .pep-scheme--accent {
    background: #eaf3ff;
    border-color: #c9ddff;
}

.knowledge-article .pep-scheme--warn {
    background: #fff7ed;
    border-color: #f3d5b0;
}

.knowledge-article .pep-scheme h3 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.35;
    color: #10213f;
}

.knowledge-article .pep-scheme ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge-article .pep-scheme li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #44556e;
    font-size: 14px;
    line-height: 1.5;
}

.knowledge-article .pep-scheme li + li {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #dce4f0;
}

.knowledge-article .pep-scheme li span {
    flex: 0 0 28px;
    font-size: 18px;
    line-height: 1.2;
}

/* ---------- Takeaways ---------- */
.knowledge-article .pep-takeaways {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.knowledge-article .pep-takeaways li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
    background: #f5f8fd;
    border-radius: 18px;
}

.knowledge-article .pep-takeaways b {
    font-size: 16px;
    color: #10213f;
}

.knowledge-article .pep-takeaways span {
    color: #44556e;
    line-height: 1.6;
    font-size: 15px;
}

/* ---------- CTA ---------- */
.knowledge-article .pep-cta {
    padding: 40px 0 96px;
}

.knowledge-article .pep-cta__box {
    padding: 48px 40px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 179, 126, 0.18), transparent 55%),
        linear-gradient(135deg, #0d4fd7 0%, #0a3fa8 100%);
    border-radius: 28px;
    color: #ffffff;
    text-align: center;
}

.knowledge-article .pep-cta__box .pep-label {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.knowledge-article .pep-cta__box h2 {
    margin: 16px 0 12px;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.knowledge-article .pep-cta__box p {
    max-width: 560px;
    margin: 0 auto 28px;
    opacity: 0.9;
    line-height: 1.7;
}

.knowledge-article .pep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    background: #ffffff;
    color: #0d4fd7;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-article .pep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    color: #0a3fa8;
}

@media (max-width: 980px) {
    .knowledge-article .pep-flow {
        grid-template-columns: 1fr 1fr;
    }

    .knowledge-article .pep-flow li:nth-child(2)::after,
    .knowledge-article .pep-flow li:nth-child(4)::after {
        content: none;
    }

    .knowledge-article .pep-schemes,
    .knowledge-article .pep-takeaways {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .knowledge-article .pep-hero__grid,
    .knowledge-article .pep-moments,
    .knowledge-article .pep-split,
    .knowledge-article .pep-eq,
    .knowledge-article .pep-dual,
    .knowledge-article .pep-remember ul {
        grid-template-columns: 1fr;
    }

    .knowledge-article .pep-hero__visual {
        min-height: 340px;
        order: -1;
    }
}

@media (max-width: 640px) {
    .knowledge-article .pep-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .knowledge-article .pep-page section {
        padding: 52px 0;
    }

    .knowledge-article .pep-hero {
        padding: 40px 0 36px;
    }

    .knowledge-article .pep-flow {
        grid-template-columns: 1fr;
    }

    .knowledge-article .pep-flow li:not(:last-child)::after {
        content: '↓';
        right: auto;
        left: 50%;
        top: auto;
        bottom: -16px;
        transform: translateX(-50%);
    }

    .knowledge-article .pep-case {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .knowledge-article .pep-cta__box {
        padding: 32px 20px;
    }

    .knowledge-article .pep-phone {
        width: 160px;
        height: 310px;
    }

    .knowledge-article .pep-sms {
        width: 110px;
        right: 0;
        padding: 12px;
    }
}
