.ds-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px;
}

.ds-page-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 56px 24px;
}

.ds-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.ds-card-soft {
    background: var(--color-bg);
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    padding: 20px;
}

.ds-section {
    margin-bottom: 64px;
}

.ds-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 18px;

    border: 0;
    border-radius: var(--radius-button);
    background: var(--color-primary-b);
    color: var(--color-back-0);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: .18s ease;
}

.ds-button-primary:hover {
    opacity: .92;
}

.ds-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 18px;

    border-radius: var(--radius-button);

    background: #f2f4f7;
    color: var(--color-text);

    font-size: 15px;
    font-weight: 600;
}

.ds-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;
}

.ds-badge-success {
    background: #ecfdf3;
    color: #067647;
}

.ds-badge-warning {
    background: #fff7ed;
    color: #c2410c;
}

.ds-badge-danger {
    background: #fef2f2;
    color: #b42318;
}

.ds-badge-muted {
    background: #f2f4f7;
    color: #475467;
}

.ds-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ds-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background: var(--card);
}

.cards,
.cards-grid,
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 0;
    list-style: none;
}

.cards .card,
.info-card,
.related-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fbfdff;
    font-size: 17px;
    line-height: 1.6;
}

/* Common blocks */




.summary-box,
.action-box {
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    background: var(--card);
}

.summary,
.summary-box {
    background: linear-gradient(135deg, #c7d9cf, #e4efe9);
    border: 0;
    border-radius: 20px;
    padding: 20px 30px;
}

.summary h2,
.summary-box strong {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text);
}

.summary p,
.summary p:last-child,
.summary-box p:last-child,
.action-box p:last-child { margin-bottom: 0; color: var(--color-text); }

.summary-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-left: auto;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.2;
    background: var(--accent-green);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.article-cta-button:hover {
    background: var(--accent-green-hover);
    color: #ffffff;
    text-decoration: none;
}



.cards .card {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 16px;
    line-height: 1.75;

}

.section-divider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 60px;
    margin-bottom: 40px;
    border-top: 1px solid #decfcf;
}

/* Norms */
.norms-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.norms-box div {
    padding: 18px;
    border-radius: 18px;
    background: var(--soft);
    border: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.norm-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.norms-list {
    margin: 18px 0 22px;
    padding-left: 22px;
}

.norms-list li {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
}

.norms-list strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
}

.norms-list span {
    font-size: 16px;
    font-weight: 400;
    color: #4f4942;
}

#norms .note {
    max-width: 680px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

/* Action / CTA */
.action,
.action-box {
    background: #f8fbff;
    border-color: #d8e7df;
}

.action {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 20px 90px;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 150, 140, 0.18), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(90, 120, 110, 0.12), transparent 60%),
        linear-gradient(135deg, #cfdad6, #e6ece9);
}

.cta-box {
    margin-top: 44px;
    padding: 28px;
    border-radius: 24px;
    background: #172033;
    color: white;
}

.cta-box strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.cta-box p { color: #d0d5dd; }

.cta-box button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: white;
    color: #172033;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.cta-box button:hover { opacity: 0.9; }

.hero-image {
    width: 100%;
    border-radius: 22px;
    margin-bottom: 32px;
}

/* FAQ */
.faq-section {
    position: relative;
    padding: 60px 0;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 20% 30%, rgba(122, 127, 121, 0.71), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(235, 239, 211, 0.12), transparent 60%),
        linear-gradient(135deg, #9eaaa0, #b5c2b6);
    z-index: -1;
}

.faq-item,
details {
    border: none;
    background: transparent;
    border-bottom: 1px solid #e3ddd4;
    padding: 18px 0;
}

.faq-item strong,
summary {
    display: block;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.45;
}

.faq-item p,
details p {
    margin: 12px 0 0;
    color: #344054;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--color-text);
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: var(--muted);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 130px;
    align-self: start;
    border-radius: 22px;
    padding-left: 12px;
}

.sidebar-inner {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 0 0 18px;
}

.sidebar-title {
    margin: 0;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.sidebar ul { padding-left: 0; list-style: none; }

.sidebar li {
    margin: 0;
    font-size: 15px;
    line-height: 1.05;
}

.sidebar a {
    display: block;
    padding: 8px 0;
    color: var(--muted);
    text-decoration: none;
}

.sidebar a:hover {
    color: #111827;
    text-decoration: none;
}

.sidebar a.active {
    color: #173f3d;
    font-weight: 600;
}

.sidebar-cta { margin-top: 0; }

.sidebar-cta-button {
    width: 65%;
    margin-left: 7px;
    padding: 14px 18px 14px 28px;
    justify-content: flex-start;
    text-align: center;
    color: #ffffff !important;
    background: linear-gradient(135deg, #1e5041 0%, #1f5139 48%, #225b43 100%);
    border-radius: 999px;
    font-size: 15px;
    border: none;
    box-shadow: none;
}

/* Rich marker blocks */
.marker-rich-block { margin-top: 56px; }

.takeaway-list,
.scenario-grid,
.check-together-list {
    display: grid;
    gap: 14px;
}

.takeaway-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #f8fafc;
}

.takeaway-item p {
    margin: 0;
    color: #172033;
    line-height: 1.6;
}

.takeaway-dot {
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 999px;
    background: #2563eb;
    flex: 0 0 auto;
}

.scenario-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.scenario-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #172033;
}

.scenario-card p {
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.next-step {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: 4px;
    color: #475467;
    line-height: 1.55;
}

.next-step strong {
    color: #172033;
    font-size: 14px;
}

.check-together-item {
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #fff;
    display: grid;
    gap: 6px;
}

.check-together-item strong { color: #172033; }
.check-together-item span { color: #667085; line-height: 1.55; }

.attention-box {
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.attention-box ul { margin: 0; padding-left: 20px; }

.attention-box li {
    margin: 8px 0;
    color: #7c2d12;
    line-height: 1.6;
}

.context-links-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.context-link-item {
    padding: 20px 22px;
    border-radius: 18px;
    background: #f6f8f7;
    line-height: 1.75;
    font-size: 17px;
    color: #24342f;
}

.context-link-item a {
    color: #1f6b57;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease;
}

.context-link-item a:hover {
    opacity: .7;
    text-decoration: underline;
}

.product-page {
    width: 100%;
    padding: 6px 0 80px;
}

.my-plan-page {
    width: 100%;
}

/* ______________________components_____________________*/  

/*tabs, switchers*/


        .gen-view-switch {
            display: inline-flex;
            align-items: center;
            gap: 6px;

            margin-top: 24px;
            padding: 4px;

            background:  var( --color-back-0) ;
            border-radius: 999px;
            border: 1px solid var(--color-border-soft);
        }

        .gen-view-switch a {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-height: 34px;
            padding: 0 14px;

            border-radius: 999px;

            font-size: 14px;
            font-weight: 600;

            color: #667085;
            text-decoration: none;
        }

        .gen-view-switch a.active {
/*            background:  var( --color-primary-b) ;*/
            background: var(--gradient-b);
            color: #ffffff;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
        }

        .gen-view-switch .gen-variant-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-height: 34px;
            padding: 0 14px;

            border: 0;
            border-radius: 999px;

            background: transparent;

            font-size: 14px;
            font-weight: 600;

            color: #667085;
            cursor: pointer;
        }

        .gen-view-switch .gen-variant-button.active {
            background: var(--gradient-lb);
            color: #ffffff;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
        }

/* media */




@media (max-width: 860px) {
    .ds-grid-2,
    .ds-grid-3 {
        grid-template-columns: 1fr;
    }

    .ds-page,
    .ds-page-wide {
        padding: 40px 20px;
    }

    .ds-section {
        margin-bottom: 48px;
    }
}

