/*
 * Shared layout for the About / Registry / Products pages.
 * Layout follows the supplied mockups; fonts, weights and colors follow
 * the site (style.min.css): body text 18px/30px in the default text color,
 * accent #1f8ceb,
 * pale bg #f6f9fc, card border rgba(25,31,40,.2), radius 12px / 6px.
 */

.dp p {
    margin: 0;
}

/* ---------- typography ---------- */

.dp h1 {
    font-size: 42px;
    line-height: 1.29;
    margin: 0 0 22px;
}

.dp h1 em {
    font-style: normal;
    color: #1f8ceb;
}

.dp h2 {
    font-size: 34px;
    line-height: 1.29;
    margin: 0 0 16px;
}

.dp h3 {
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 12px;
}

.dp-lead {
    font-size: 20px;
    line-height: 1.55;
    max-width: 610px;
}

.dp-text {
    font-size: 18px;
    line-height: 30px;
}

.dp-text + .dp-text {
    margin-top: 16px;
}

.dp .dp-intro {
    font-size: 18px;
    line-height: 30px;
    max-width: 700px;
    margin: 0 0 32px;
}

.dp-more {
    display: inline-flex;
    margin-top: 24px;
    text-decoration: none;
}

/* ---------- buttons (same look as header Registration / Login) ---------- */

.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 56px;
    padding: 0 26px;
    border-radius: 6px;
    border: 1px solid #1f8ceb;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.dp-btn.blue-btn {
    color: #fff;
}

.dp-btn_outline {
    background: #fff;
    color: #1f8ceb;
    transition: .3s ease-in-out;
}

.dp-btn_outline:hover {
    background: rgba(31, 140, 235, .1);
}

.dp-btn_white {
    background: #fff;
    border-color: #fff;
    color: #1f8ceb;
    transition: .3s ease-in-out;
}

.dp-btn_white:hover {
    background: #eef6ff;
}

/* ---------- sections ---------- */

.dp-section {
    padding: 80px 0;
}

.dp-section_pale {
    background: #f6f9fc;
}

.dp-grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.dp-grid-2_even {
    grid-template-columns: 1fr 1fr;
}

/* text + picture: picture slightly wider than the text */
.dp-grid-2:has(> .dp-visual) {
    grid-template-columns: 1fr 1.1fr;
}

.dp-visual {
    margin: 0;
    min-width: 0;
}

.dp-visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- cards ---------- */

.dp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.dp-card {
    border-radius: 12px;
    border: 1px solid rgba(25, 31, 40, .2);
    background: #fff;
    box-shadow: 0 2px 45px 0 rgba(110, 115, 157, .12);
    padding: 30px 27px;
}

.dp-card__num {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #1f8ceb;
    margin-bottom: 20px;
}

.dp-card p {
    font-size: 18px;
    line-height: 30px;
}

/* ---------- tags ---------- */

.dp-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dp-tags span {
    border: 1px solid rgba(25, 31, 40, .2);
    border-radius: 6px;
    background: #fff;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* ---------- call to action ---------- */

.dp-cta {
    background: #1f8ceb;
    color: #fff;
    padding: 48px 0;
}

.dp-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dp-cta h2 {
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 6px;
}

.dp-cta p {
    font-size: 18px;
    line-height: 30px;
}

/* ---------- product cards: icon, detail line, footnote ---------- */

.dp-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.dp-card__head h3 {
    margin: 0;
}

.dp-card__icon {
    flex-shrink: 0;
}

.dp-card__icon svg {
    width: 30px;
    height: 30px;
}

.dp-cards .dp-card:has(.dp-card__detail) {
    display: flex;
    flex-direction: column;
}

.dp .dp-card p:has(+ .dp-card__detail) {
    margin-bottom: 18px;
}

.dp-card__detail {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(25, 31, 40, .2);
    color: #1f8ceb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.dp .dp-footnote {
    margin-top: 24px;
    font-size: 16px;
    line-height: 26px;
}

/* ---------- DTS framework flow ---------- */

.dp-flow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.dp-flow-head h2 {
    margin: 0;
}

.dp-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.dp-step {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid rgba(25, 31, 40, .2);
    background: #fff;
    box-shadow: 0 2px 45px 0 rgba(110, 115, 157, .12);
    padding: 24px;
}

.dp-step:not(:last-child):after {
    content: '';
    position: absolute;
    right: -19px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #1f8ceb;
    border-right: 2px solid #1f8ceb;
    transform: translateY(-50%) rotate(45deg);
}

.dp-step__num {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1f8ceb;
}

.dp-step strong {
    font-size: 24px;
    line-height: 1.29;
    color: #1f8ceb;
    margin: 10px 0 12px;
}

.dp-step__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
}

.dp .dp-step p {
    font-size: 16px;
    line-height: 26px;
    margin-top: 4px;
}

.dp-step:last-child {
    background: #1f8ceb;
    border-color: #1f8ceb;
    color: #fff;
}

.dp-step:last-child strong, .dp-step:last-child .dp-step__num {
    color: #fff;
}

/* ---------- CTA with two buttons ---------- */

.dp-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-btn_ghost {
    background: transparent;
    border-color: #fff;
    color: #fff;
    transition: .3s ease-in-out;
}

.dp-btn_ghost:hover {
    background: rgba(255, 255, 255, .15);
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .dp h1 {
        font-size: 36px;
    }

    .dp h2 {
        font-size: 30px;
    }

    .dp-section {
        padding: 60px 0;
    }

    .dp-grid-2 {
        gap: 35px;
    }

    .dp-card {
        padding: 24px;
    }

    .dp-cards {
        grid-template-columns: 1fr 1fr;
    }

    .dp-flow {
        grid-template-columns: 1fr 1fr;
    }

    .dp-step:nth-child(2):after {
        content: none;
    }
}

@media (max-width: 767px) {
    /* headings sized like the DTS page on mobile */
    .dp h1, .dp h2 {
        font-size: 26px;
    }

    .dp h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .dp .proposition__title {
        font-size: 26px;
        line-height: 1.29;
    }

    .dp .proposition__top {
        margin-bottom: 30px;
    }

    .dp-card__num, .dp-step strong {
        font-size: 22px;
    }

    .dp-lead {
        font-size: 18px;
    }

    .dp-text, .dp-intro, .dp-card p, .dp-cta p {
        font-size: 16px;
        line-height: 26px;
    }

    .dp-section {
        padding: 45px 0;
    }

    .dp-grid-2, .dp-grid-2_even, .dp-grid-2:has(> .dp-visual) {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dp-section .dp-visual {
        max-width: 460px;
        width: 100%;
        margin: 0 auto;
    }

    .dp-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dp-tags {
        gap: 9px;
    }

    .dp-tags span {
        padding: 12px;
    }

    .dp-btn {
        width: 100%;
    }

    .dp-cta__inner {
        display: block;
    }

    .dp-cta .dp-btn {
        margin-top: 20px;
    }

    .dp-cta__btns {
        display: block;
    }

    .dp-flow-head {
        display: block;
    }

    .dp-flow-head .news_item_body_link {
        margin-top: 16px;
    }

    .dp-flow {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dp-step:after {
        content: none !important;
    }
}
