.course-detail {
    margin: 0;
    background: #faf8f1;
    color: #183d2d;
    font: 16px/1.8 Arial, Tahoma, sans-serif;
    --cd-green: #174c34;
    --cd-gold: #aa8540;
    --cd-border: #e6e0d1;
    --cd-muted: #5e6a5f;
    --cd-panel: #fffdf8;
}
.course-detail *, .course-detail *::before, .course-detail *::after { box-sizing: border-box; }
.cd-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.cd-breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 22px; font-size: 13px; color: var(--cd-muted); }
.cd-breadcrumb a, .cd-main-column a:not(.cd-button), .cd-section-nav a { color: var(--cd-green); }
.cd-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-block: 22px 36px; }
.cd-eyebrow { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border: 1px solid #d7bf83; border-radius: 20px; background: #f7edd4; color: #5d4c22; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.cd-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3.9vw, 52px); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance; }
[dir=rtl] .cd-hero h1, [dir=rtl] .cd-section h2, [dir=rtl] .cd-panel h2 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; line-height: 1.55; }
.cd-lead { color: #465a4a; font-size: 18px; margin: 0 0 24px; max-width: 580px; }
.cd-hero figure { margin: 0; }
.cd-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 22px; }
.cd-hero figcaption { color: var(--cd-muted); font-size: 11px; text-align: end; margin-top: 6px; }
.cd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cd-button, .cd-outline { display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; min-height: 46px; padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; text-align: center; }
.cd-button { border: 1px solid var(--cd-green); background: var(--cd-green); color: #fff; }
.cd-outline { border: 1px solid var(--cd-green); background: transparent; color: var(--cd-green); }
.cd-button:hover { background: #0f3826; }
.cd-button:focus-visible, .course-detail a:focus-visible, .course-detail button:focus-visible, .course-detail summary:focus-visible, .course-detail input:focus-visible, .course-detail select:focus-visible { outline: 3px solid #b18a3b; outline-offset: 4px; }
.cd-trust { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 25px; border-bottom: 1px solid var(--cd-border); font-size: 14px; }
.cd-trust span span { color: #a17a29; margin-inline-end: 8px; }
.cd-section-nav { display: flex; flex-wrap: wrap; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--cd-border); margin-bottom: 32px; font-size: 13px; }
.cd-section-nav a { text-decoration: none; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; grid-template-areas: "content price"; gap: 32px; align-items: start; }
.cd-main-column { grid-area: content; min-width: 0; }
.cd-price { grid-area: price; position: sticky; top: 20px; }
.cd-price-card { padding: 26px 22px; background: var(--cd-panel); border: 1px solid var(--cd-border); border-radius: 16px; box-shadow: 0 8px 24px #183d2d0a; }
.cd-price-number { margin: 0 0 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cd-price-number b { font: 700 42px/1.1 Georgia, serif; color: var(--cd-green); }
.cd-price-number span { font-size: 15px; }
.cd-facts { list-style: none; padding: 0; margin: 0 0 22px; }
.cd-facts li { padding-block: 8px; border-bottom: 1px solid var(--cd-border); font-size: 14px; }
.cd-facts li::before { content: "✓"; color: #a47d28; margin-inline-end: 10px; }
.cd-price-card .cd-button { width: 100%; }
.cd-fine { font-size: 12px; color: var(--cd-muted); line-height: 1.7; }
.cd-price-card .cd-fine { margin-bottom: 0; }
.cd-section { margin-bottom: 32px; scroll-margin-top: 24px; }
.cd-section h2, .cd-panel h2, .cd-materials h2, .cd-final h2 { font: 700 30px/1.25 Georgia, "Times New Roman", serif; margin: 0 0 16px; letter-spacing: -.02em; text-wrap: balance; }
.cd-section > p { color: var(--cd-muted); }
.cd-module { background: var(--cd-panel); border: 1px solid var(--cd-border); border-radius: 12px; margin: 12px 0; overflow: hidden; }
.cd-module summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 700; line-height: 1.5; list-style: none; }
.cd-module summary::after { content: "+"; font-size: 21px; color: var(--cd-gold); flex: 0 0 16px; }
.cd-module[open] summary::after { content: "−"; }
.cd-module summary::-webkit-details-marker { display: none; }
.cd-module[open] summary { border-bottom: 1px solid var(--cd-border); background: #f8f1e3; }
.cd-module > p { padding: 0 18px; color: var(--cd-muted); }
.cd-count { padding: 1px 10px; background: #f3e2b6; border-radius: 15px; font-size: 12px; color: #59481e; margin-inline-start: auto; }
.cd-unit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 18px 18px 18px 42px; margin: 0; font-size: 14px; }
[dir=rtl] .cd-unit-list { padding: 18px 42px 18px 18px; }
.cd-unit-list li { padding: 6px 2px; }
.cd-unit-list li::marker { color: #9c762c; font-weight: bold; }
.cd-panel { padding: 26px; border: 1px solid var(--cd-border); border-radius: 15px; background: var(--cd-panel); margin-bottom: 30px; }
.cd-panel p { color: var(--cd-muted); }
.cd-panel h3 { font-size: 17px; }
.cd-materials { display: flex; gap: 22px; align-items: center; padding: 22px; margin-block: 24px 36px; border: 1px solid var(--cd-border); border-radius: 13px; background: #f6f0e3; }
.cd-materials > img { width: 95px; height: auto; flex: 0 0 95px; box-shadow: 0 8px 14px #183d2d20; border-radius: 3px; }
.cd-materials h2 { font-size: 24px; }
.cd-materials p { font-size: 14px; }
.cd-lesson-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.cd-lesson-steps li { border: 1px solid var(--cd-border); border-radius: 12px; padding: 18px 10px; text-align: center; background: var(--cd-panel); }
.cd-lesson-steps li > span { display: inline-grid; place-items: center; color: #8d6a22; background: #f4e6c0; width: 28px; height: 28px; border-radius: 50%; font-weight: bold; }
.cd-lesson-steps h3 { font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.cd-faq { border-bottom: 1px solid var(--cd-border); padding-block: 14px; }
.cd-faq summary { cursor: pointer; font-weight: bold; }
.cd-faq p { font-size: 15px; color: var(--cd-muted); }
.cd-assessment { scroll-margin-top: 20px; }
.cd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.cd-form-grid label { display: block; font-size: 13px; font-weight: 700; }
.cd-form-grid input, .cd-form-grid select { display: block; width: 100%; padding: 12px; font: inherit; font-weight: normal; border: 1px solid #a9b3a7; background: #fff; color: #173d2d; border-radius: 7px; margin-top: 6px; min-height: 45px; }
.cd-ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; font-size: 14px; }
.cd-ack input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--cd-green); margin-top: 4px; }
.cd-inline-price { border-inline-start: 3px solid #bc9549; padding-inline-start: 12px; font-size: 14px; }
.cd-related { margin-top: 28px; }
.cd-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cd-related-card { display: block; padding: 22px; border: 1px solid var(--cd-border); background: var(--cd-panel); border-radius: 14px; color: #173d2d; text-decoration: none; }
.cd-related-card h3 { font-size: 19px; line-height: 1.5; margin-top: 0; }
.cd-related-card p { color: var(--cd-muted); font-size: 14px; }
.cd-final { background: var(--cd-green); color: #fffdf1; border-radius: 16px; padding: 32px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.cd-final h2 { margin: 0; }
.cd-final .cd-button { background: #fbf5e5; color: #173d2d; border-color: #fbf5e5; }
.cd-mobile-cta { display: none; }
.cd-skip { position: absolute; top: -150px; }
.cd-skip:focus { top: 4px; z-index: 1000; padding: 12px; background: #fff; color: #173d2d; }
.course-detail .wz-contact-float, .course-detail .wz-games-launcher { display: none !important; }
.course-detail.dark { background: #142b22; color: #eef0df; --cd-panel: #203c2d; --cd-muted: #cfdbca; --cd-border: #486248; --cd-green: #dae8bc; }
.course-detail.dark .cd-button { background: #dce9bd; color: #153b2b; border-color: #dce9bd; }
.course-detail.dark .cd-hero p, .course-detail.dark .cd-related-card { color: #eef0df; }
.course-detail.dark .cd-materials, .course-detail.dark .cd-module[open] summary { background: #28452d; }
.course-detail.dark .cd-count { color: #372a0c; }
.course-detail.dark .cd-form-grid input, .course-detail.dark .cd-form-grid select { background: #142b22; color: #eef0df; }
.course-detail.dark .cd-final { background: #2d5239; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
    .cd-hero { gap: 28px; }
    .cd-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 22px; }
    .cd-lesson-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cd-container { width: min(580px, calc(100% - 32px)); }
    .cd-breadcrumb { padding-block: 16px; font-size: 12px; }
    .cd-hero { grid-template-columns: 1fr; gap: 22px; padding-block: 12px 24px; }
    .cd-hero h1 { font-size: 36px; }
    .cd-lead { font-size: 17px; }
    .cd-hero .cd-actions { align-items: stretch; flex-direction: column; }
    .cd-trust { justify-content: flex-start; font-size: 13px; gap: 8px 20px; }
    .cd-section-nav { gap: 12px 18px; font-size: 12px; margin-bottom: 22px; }
    .cd-layout { grid-template-columns: 1fr; grid-template-areas: "price" "content"; gap: 26px; }
    .cd-price { position: static; }
    .cd-price-card { padding: 22px; }
    .cd-unit-list { grid-template-columns: 1fr; gap: 4px; }
    .cd-panel { padding: 22px 18px; }
    .cd-materials { padding: 18px; gap: 16px; }
    .cd-materials h2 { font-size: 23px; }
    .cd-materials .cd-actions { gap: 12px; }
    .cd-related-grid { grid-template-columns: 1fr; }
    .cd-final { flex-direction: column; align-items: flex-start; padding: 24px; }
    .cd-mobile-cta { display: block; position: fixed; inset-inline: 16px; bottom: 12px; z-index: 45; padding: 14px 18px; border-radius: 9px; background: #174c34; color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; text-align: center; box-shadow: 0 4px 22px #183d2d35; }
    .course-detail { padding-bottom: 74px; }
}
@media (max-width: 420px) {
    .cd-form-grid { grid-template-columns: 1fr; }
    .cd-materials { align-items: flex-start; }
    .cd-materials > img { width: 65px; flex-basis: 65px; }
    .cd-section h2, .cd-panel h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: no-preference) { html:has(body.course-detail) { scroll-behavior: smooth; } }
@media print {
    .ui-header, .ui-footer, .cd-mobile-cta, .cd-actions, .cd-section-nav, .cd-assessment, .cd-final, .cd-related, .wz-games-launcher { display: none !important; }
    .course-detail, .course-detail.dark { background: #fff; color: #000; padding: 0; }
    .cd-container { width: 100%; }
    .cd-hero { padding: 0; }
    .cd-layout { display: block; }
    .cd-price { position: static; margin-bottom: 24px; }
    .cd-panel, .cd-module, .cd-price-card { box-shadow: none; break-inside: avoid; background: #fff; color: #000; }
}

.course-detail .books-teaser { display: none; }
.cd-arrow { display: inline-block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; vertical-align: middle; margin-inline-start: 6px; }
.cd-teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 20px; }
.cd-person { padding: 12px; border: 1px solid var(--cd-border); border-radius: 12px; }
.cd-person img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cd-person h4 { font-size: 14px; margin: 12px 0 4px; }
.cd-person p { font-size: 12px; margin: 0; }
@media (max-width: 520px) { .cd-teacher-grid { grid-template-columns: 1fr; } .cd-person { display: grid; grid-template-columns: 70px 1fr; gap: 0 14px; } .cd-person img { grid-row: span 2; } .cd-person h4 { margin-top: 0; } }
