.rt-sd-page { padding-bottom: 80px; }

.rt-sd-hero {
    width: 100%;
    padding: 70px 20px 100px;
    margin-bottom: -48px;
    color: #fff;
    background-color: #0F1F2E;
    background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/banner.webp');
    background-size: cover;
    background-position: center;
}

[data-theme="dark"] .rt-sd-hero {
    background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/banner-dark.webp');
}

.rt-sd-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.rt-sd-hero-text { flex: 1 1 auto; min-width: 0; }

.rt-sd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4ADE80;
    background: rgba(74, 222, 128, .12);
    border: 1px solid rgba(74, 222, 128, .35);
    border-radius: 30px;
}

.rt-sd-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.rt-sd-hero h1 .rt-hl { color: #4ADE80; }

.rt-sd-hero p {
    max-width: 640px;
    margin: 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: #E2E8F0;
}

.rt-sd-hero-sign {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.rt-sd-hero-sign img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rt-sd-wrap {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.rt-sd-main { min-width: 0; }

.rt-sd-card {
    margin-bottom: 24px;
    padding: 32px;
    background: var(--rt-card-bg);
    border: 1px solid var(--rt-border);
    border-radius: 20px;
    box-shadow: var(--rt-card-shadow, 0 8px 28px rgba(15, 31, 46, .06));
}

.rt-sd-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--rt-text-main);
    scroll-margin-top: calc(var(--header-h, 70px) + 80px);
}

.rt-sd-card h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; color: var(--rt-text-main); }

.rt-sd-card p, .rt-sd-card li {
    font-size: 15px;
    line-height: 1.85;
    color: var(--rt-text-muted);
}

.rt-sd-card p { margin: 0 0 14px; }
.rt-sd-card p:last-child { margin-bottom: 0; }
.rt-sd-card strong { color: var(--rt-text-main); }
.rt-sd-card a { color: var(--rt-accent); text-decoration: none; font-weight: 600; }
.rt-sd-card a:hover { text-decoration: underline; }

.rt-sd-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
}

.rt-sd-fact {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--rt-border);
    border-radius: 14px;
}

.rt-sd-fact dt { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rt-text-muted); }
.rt-sd-fact dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--rt-text-main); }

.rt-sd-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 6px;
}

.rt-sd-photo {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--rt-border);
    border-radius: 16px;
}

.rt-sd-photo:first-child { grid-column: 1 / -1; }

.rt-sd-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rt-sd-photo:first-child img { aspect-ratio: 16 / 7; }

.rt-sd-photo figcaption {
    padding: 12px 16px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--rt-text-muted);
}

.rt-sd-photo figcaption strong { display: block; margin-bottom: 2px; font-size: 13.5px; }

.rt-sd-photo.rt-sd-nophoto img { display: none; }

.rt-sd-photo.rt-sd-nophoto::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    font-size: 40px;
    color: var(--rt-accent);
    background: var(--rt-tint);
}

.rt-sd-photo.rt-sd-nophoto:first-child::before { aspect-ratio: 16 / 7; }

.rt-sd-dodont {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rt-sd-do, .rt-sd-dont {
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--rt-border);
    background: var(--bg);
}

.rt-sd-do { border-top: 4px solid #16A34A; }
.rt-sd-dont { border-top: 4px solid #DC2626; }

.rt-sd-do h3, .rt-sd-dont h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.rt-sd-do h3 i { color: #16A34A; }
.rt-sd-dont h3 i { color: #DC2626; }

.rt-sd-card ul, .rt-sd-card ol { margin: 0; padding-inline-start: 20px; }
.rt-sd-card li { margin-bottom: 8px; }
.rt-sd-card li:last-child { margin-bottom: 0; }

.rt-sd-table-wrap { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--rt-border); border-radius: 14px; }
.rt-sd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rt-sd-table th, .rt-sd-table td { padding: 12px 16px; text-align: start; line-height: 1.6; border-bottom: 1px solid var(--rt-border); color: var(--rt-text-muted); }
.rt-sd-table th { font-weight: 700; color: var(--rt-text-main); background: var(--bg); white-space: nowrap; }
.rt-sd-table tr:last-child td { border-bottom: none; }

.rt-sd-note {
    margin-top: 14px;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--rt-text-muted);
    background: var(--rt-tint);
    border-inline-start: 4px solid var(--rt-accent);
    border-radius: 10px;
}

.rt-sd-mcq {
    margin-bottom: 14px;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--rt-border);
    border-radius: 14px;
}

.rt-sd-mcq p { margin: 0 0 10px; font-weight: 600; color: var(--rt-text-main); }
.rt-sd-mcq ul { list-style: none; padding: 0; }
.rt-sd-mcq li { margin-bottom: 6px; padding: 8px 12px; background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 10px; font-size: 14px; line-height: 1.6; }
.rt-sd-mcq li.rt-sd-correct { color: #15803D; font-weight: 600; border-color: #16A34A; background: rgba(22, 163, 74, .08); }

.rt-sd-faq details { border-bottom: 1px solid var(--rt-border); }
.rt-sd-faq details:last-child { border-bottom: none; }
.rt-sd-faq summary { padding: 16px 0; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: var(--rt-text-main); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rt-sd-faq summary::-webkit-details-marker { display: none; }
.rt-sd-faq summary::after { content: '+'; flex-shrink: 0; font-size: 22px; font-weight: 500; color: var(--rt-accent); }
.rt-sd-faq details[open] summary::after { content: '\2212'; }
.rt-sd-faq details p { padding-bottom: 16px; }

.rt-sd-aside { order: -1; position: sticky; top: calc(var(--header-h, 70px) + 84px); }

.rt-sd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: rtsd; }
.rt-sd-toc li { margin: 0; counter-increment: rtsd; }
.rt-sd-toc a {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--rt-text-muted);
    text-decoration: none;
}
.rt-sd-toc a::before { content: counter(rtsd) '.'; color: var(--rt-accent); font-weight: 700; }
.rt-sd-toc a:hover { color: var(--rt-accent); text-decoration: none; }

.rt-sd-aside .rt-sd-card { padding: 24px; margin-bottom: 20px; }
.rt-sd-aside .rt-sd-card h2 { font-size: 16px; margin-bottom: 10px; }

.rt-sd-cta { text-align: center; background: var(--rt-tint); }
.rt-sd-cta p { font-size: 13.5px; }

.rt-sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    background: var(--rt-accent);
    border-radius: 12px;
    text-decoration: none !important;
    transition: var(--rt-ease, all .25s ease);
}

.rt-sd-btn:hover { background: var(--rt-dark-green); transform: translateY(-2px); }

.rt-sd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.rt-sd-related a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--rt-text-main);
    background: var(--bg);
    border: 1px solid var(--rt-border);
    border-radius: 14px;
    text-decoration: none;
    transition: var(--rt-ease, all .25s ease);
}

.rt-sd-related a:hover { border-color: var(--rt-accent); transform: translateY(-3px); text-decoration: none; }
.rt-sd-related img { width: 56px; height: 56px; object-fit: contain; }

.rt-sd-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

.rt-sd-h-icon { margin-inline-end: 10px; font-size: .85em; color: var(--rt-accent); }

.rt-sd-sz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 18px; }
.rt-sd-sz-stat { padding: 18px 16px; text-align: center; background: var(--bg); border: 1px solid var(--rt-border); border-radius: 16px; }
.rt-sd-sz-num { display: block; margin-bottom: 6px; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--rt-accent); }
.rt-sd-sz-lbl { display: block; font-size: 13px; line-height: 1.5; color: var(--rt-text-muted); }
.rt-sd-card ul.rt-sd-sz-rules { list-style: none; padding: 0; margin: 0; }
.rt-sd-sz-rules li { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 10px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--rt-border); border-radius: 14px; }
.rt-sd-sz-rules li:last-child { margin-bottom: 0; }
.rt-sd-sz-rules i { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--rt-accent); background: var(--rt-tint); border-radius: 10px; }
.rt-sd-sz-rules span { min-width: 0; font-size: 14.5px; line-height: 1.7; color: var(--rt-text-muted); }

.rt-sd-fine {
    margin-bottom: 24px;
    padding: 32px;
    color: #fff;
    background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 55%, #DC2626 100%);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(185, 28, 28, .28);
}
.rt-sd-fine-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rt-sd-fine-icon { flex-shrink: 0; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #B91C1C; background: #fff; border-radius: 16px; }
.rt-sd-fine-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FECACA; }
.rt-sd-fine h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.35; color: #fff; scroll-margin-top: calc(var(--header-h, 70px) + 80px); }
.rt-sd-fine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rt-sd-fine-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px; }
.rt-sd-fine-max { background: #fff; border-color: #fff; }
.rt-sd-fine-tag { font-size: 12.5px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; color: #FECACA; }
.rt-sd-fine-amt { font-size: 32px; font-weight: 800; line-height: 1.15; color: #fff; }
.rt-sd-fine-sub { font-size: 13.5px; line-height: 1.5; color: #FEE2E2; }
.rt-sd-fine-max .rt-sd-fine-tag { color: #B91C1C; }
.rt-sd-fine-max .rt-sd-fine-amt { color: #991B1B; }
.rt-sd-fine-max .rt-sd-fine-sub { color: #7F1D1D; }
.rt-sd-fine-note { margin: 18px 0 0; font-size: 13px; line-height: 1.75; color: #FEE2E2; }

.rt-sd-emergency { border: 2px dotted #F59E0B; box-shadow: none; }
.rt-sd-emergency .rt-sd-h-icon { color: #F59E0B; }
.rt-sd-rto { background: var(--rt-tint); border-color: rgba(22, 163, 74, .3); }
.rt-sd-mistakes ol { list-style: none; padding: 0; counter-reset: rtm; }
.rt-sd-mistakes li { position: relative; counter-increment: rtm; margin-bottom: 12px; padding: 14px 16px 14px 62px; background: var(--bg); border: 1px solid var(--rt-border); border-radius: 14px; }
.rt-sd-mistakes li::before { content: counter(rtm); position: absolute; inset-inline-start: 16px; top: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; background: #DC2626; border-radius: 50%; }
[dir="rtl"] .rt-sd-mistakes li { padding: 14px 62px 14px 16px; }

@media (max-width: 960px) {
    .rt-sd-wrap { grid-template-columns: minmax(0, 1fr); }
    .rt-sd-aside { order: 0; position: static; }
    .rt-sd-toc-card { display: none; }
}

@media (max-width: 700px) {
    .rt-sd-hero { padding: 44px 16px 80px; margin-bottom: -40px; }
    .rt-sd-hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 22px; padding: 0; }
    .rt-sd-hero-sign { width: 120px; height: 120px; padding: 16px; border-radius: 22px; }
    .rt-sd-hero p { font-size: 14px; }
    .rt-sd-wrap { padding: 0 16px; gap: 0; }
    .rt-sd-card { padding: 22px 18px; border-radius: 16px; margin-bottom: 18px; }
    .rt-sd-card h2 { font-size: 19px; }
    .rt-sd-facts, .rt-sd-photos, .rt-sd-dodont { grid-template-columns: 1fr; }
    .rt-sd-photo:first-child img { aspect-ratio: 16 / 10; }
    .rt-sd-related { grid-template-columns: repeat(2, 1fr); }
    .rt-sd-sz-stats { grid-template-columns: 1fr; gap: 10px; }
    .rt-sd-sz-stat { display: flex; align-items: center; gap: 16px; padding: 14px 16px; text-align: start; }
    .rt-sd-sz-num { flex-shrink: 0; min-width: 84px; margin: 0; font-size: 24px; }
    .rt-sd-sz-rules li { padding: 12px; gap: 12px; }
    .rt-sd-fine { padding: 22px 18px; border-radius: 18px; margin-bottom: 18px; }
    .rt-sd-fine h2 { font-size: 18px; }
    .rt-sd-fine-icon { width: 46px; height: 46px; font-size: 19px; border-radius: 14px; }
    .rt-sd-fine-grid { grid-template-columns: 1fr; gap: 10px; }
    .rt-sd-fine-tile { padding: 16px; }
    .rt-sd-fine-amt { font-size: 28px; }
    .rt-sd-mistakes li { padding: 12px 14px 12px 56px; }
}

.rt-sd-fact-fine { background: #FEF2F2; border-color: #FCA5A5; border-top: 4px solid #DC2626; }
.rt-sd-fact-fine dt { color: #B91C1C; }
.rt-sd-fact-fine dd { color: #991B1B; }
[data-theme="dark"] .rt-sd-fact-fine { background: rgba(220, 38, 38, .14); border-color: rgba(248, 113, 113, .45); }
[data-theme="dark"] .rt-sd-fact-fine dt { color: #FCA5A5; }
[data-theme="dark"] .rt-sd-fact-fine dd { color: #FECACA; }

.rt-sd-t-short { display: none; }

.rt-sd-bar {
    position: fixed;
    top: var(--header-h, 68px);
    inset-inline: 0;
    z-index: 999;
    height: 64px;
    display: flex;
    align-items: center;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .25s ease, visibility .3s;
}

.rt-sd-bar.rt-sd-bar-on { transform: translateY(0); opacity: 1; visibility: visible; }

.rt-sd-bar-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rt-sd-bar-icon {
    width: 46px;
    height: 46px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 12px;
}

.rt-sd-bar-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rt-sd-bar-name { font-size: 16px; font-weight: 800; color: var(--rt-text-main); text-align: end; }
.rt-sd-bar-name .rt-hl { color: var(--rt-accent); }

@media (max-width: 700px) {
    .rt-sd-bar { height: 60px; }
    .rt-sd-bar-icon { width: 42px; height: 42px; }
    .rt-sd-bar-inner { padding: 0 16px; }
    .rt-sd-t-long { display: none; }
    .rt-sd-t-short { display: inline; }
    .rt-sd-faq summary { padding: 13px 0; font-size: 13.5px; line-height: 1.55; }
    .rt-sd-faq summary::after { font-size: 20px; }
    .rt-sd-faq details p { padding-bottom: 13px; font-size: 13px; line-height: 1.75; }
}

@media (max-width: 768px) {
    .rt-sd-hero {
        background-color: #0F1F2E;
        background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/m-light.webp');
        background-size: cover;
        background-position: center;
    }
    [data-theme="dark"] .rt-sd-hero {
        background-color: #050505;
        background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/m-dark.webp');
    }
}