:root {
    --dp-bg: #f7f7fb;
    --dp-paper: #fff;
    --dp-ink: #161824;
    --dp-muted: #626779;
    --dp-line: #e2e3eb;
    --dp-brand: #4d49e5;
    --dp-brand-dark: #3b38c4;
    --dp-brand-soft: #ecebff;
    --dp-green: #147b61;
    color: var(--dp-ink);
    background: var(--dp-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f1f1f8; scroll-behavior: smooth; }
body.directory-page { margin: 0; color: var(--dp-ink); background: var(--dp-bg); -webkit-font-smoothing: antialiased; }
.directory-page a { color: var(--dp-brand); }
.dp-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.dp-hero {
    overflow: hidden;
    color: var(--dp-ink);
    background: #efeffb;
    border-bottom: 1px solid #dedff0;
}

.dp-hero__inner {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 76px 0 72px;
}

.dp-hero__inner::before,
.dp-hero__inner::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.dp-hero__inner::before {
    width: 480px;
    height: 480px;
    right: -90px;
    top: -160px;
    border: 1px solid rgba(77,73,229,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.42), 0 0 0 140px rgba(77,73,229,.035);
    animation: dp-orbit-drift 9s ease-in-out infinite alternate;
}

.dp-hero__inner::after {
    width: 12px;
    height: 12px;
    right: 255px;
    top: 120px;
    border-radius: 50%;
    background: var(--dp-brand);
    box-shadow: 0 0 0 8px rgba(77,73,229,.11);
    animation: dp-dot-drift 6s ease-in-out infinite alternate;
}

.dp-breadcrumb,
.dp-kicker {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dp-breadcrumb { margin: 0 0 30px; color: #74788a; }
.dp-breadcrumb a { color: #55596b; text-decoration: none; }
.dp-kicker { margin-bottom: 15px; color: var(--dp-brand); }
.dp-hero h1 { position: relative; z-index: 1; max-width: 820px; margin: 0 0 20px; color: var(--dp-ink); font-size: clamp(43px, 6vw, 74px); line-height: .99; letter-spacing: -.055em; animation: dp-copy-in .55s ease-out both; }
.dp-hero__lede { position: relative; z-index: 1; max-width: 700px; margin: 0; color: #4f5363; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; animation: dp-copy-in .55s .08s ease-out both; }
.dp-hero__meta { position: relative; z-index: 1; margin: 24px 0 0; color: #767a8b; font-size: 12px; animation: dp-copy-in .55s .14s ease-out both; }

.dp-hero__title-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.dp-hero__heading { min-width: 0; }
.dp-hero__title-row .dp-kicker { display: block; }
.dp-hero__title-row h1 { margin-bottom: 0; }
.dp-hero__exam-logo-link {
    flex: 0 0 auto;
    display: block;
    width: 101px;
    height: 104px;
    box-shadow: 0 12px 28px rgba(22,24,36,.13);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: dp-copy-in .55s ease-out both;
}
.dp-hero__exam-logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(22,24,36,.18);
}
.dp-hero__exam-logo { display: block; width: 101px; height: 104px; object-fit: contain; }

@keyframes dp-copy-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes dp-orbit-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 14px, 0) scale(1.025); }
}

@keyframes dp-dot-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(14px, -10px, 0); }
}

.dp-main { padding: 64px 0 96px; }
.dp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; align-items: start; }
.dp-content { min-width: 0; }
.dp-content > p:first-child { margin-top: 0; color: #3f4350; font-size: 19px; line-height: 1.72; }
.dp-content h2 { margin: 62px 0 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.dp-content h3 { margin: 30px 0 9px; font-size: 21px; letter-spacing: -.02em; }
.dp-content p, .dp-content li { color: #454956; line-height: 1.72; }
.dp-content ul, .dp-content ol { padding-left: 21px; }
.dp-content li { margin: 8px 0; }

.dp-aside { position: sticky; top: 96px; padding-left: 22px; border-left: 1px solid var(--dp-line); }
.dp-aside strong { display: block; margin-bottom: 13px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.dp-aside a { display: block; margin: 10px 0; color: var(--dp-muted); font-size: 13px; line-height: 1.45; text-decoration: none; }
.dp-aside a:hover { color: var(--dp-brand); }

.dp-note { margin: 34px 0; padding: 20px 22px; border-left: 4px solid var(--dp-brand); background: var(--dp-brand-soft); }
.dp-note p { margin: 0; color: #393675; font-size: 14px; }
.dp-source { margin: 36px 0; padding-top: 22px; border-top: 1px solid var(--dp-line); font-size: 13px; }
.dp-source strong { color: var(--dp-ink); }

.dp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0 50px; overflow: hidden; border: 1px solid var(--dp-line); border-radius: 20px; background: var(--dp-line); }
.dp-fact { padding: 23px; background: #fff; }
.dp-fact span, .dp-fact strong { display: block; }
.dp-fact span { margin-bottom: 7px; color: var(--dp-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dp-fact strong { font-size: 18px; line-height: 1.35; }

.dp-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 44px; border-top: 1px solid var(--dp-line); }
.dp-link-card { min-height: 148px; padding: 25px 24px 25px 0; border-bottom: 1px solid var(--dp-line); color: var(--dp-ink) !important; text-decoration: none; }
.dp-link-card:nth-child(odd) { padding-right: 34px; border-right: 1px solid var(--dp-line); }
.dp-link-card:nth-child(even) { padding-left: 34px; }
.dp-link-card span, .dp-link-card strong, .dp-link-card small { display: block; }
.dp-link-card span { margin-bottom: 9px; color: var(--dp-brand); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.dp-link-card strong { font-size: 21px; line-height: 1.22; }
.dp-link-card small { margin-top: 9px; color: var(--dp-muted); font-size: 13px; line-height: 1.5; }
.dp-link-card:hover strong { color: var(--dp-brand); }

.dp-table-wrap { margin: 28px 0 38px; overflow-x: auto; border: 1px solid var(--dp-line); border-radius: 18px; background: #fff; }
.dp-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.dp-table th, .dp-table td { padding: 15px 17px; border-bottom: 1px solid var(--dp-line); color: #404451; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.5; }
.dp-table th { color: #6f7381; background: #f5f5f9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dp-table tr:last-child td { border-bottom: 0; }

.dp-tool {
    margin: -110px 0 58px;
    padding: 34px;
    position: relative;
    z-index: 5;
    border: 1px solid var(--dp-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(26,24,67,.13);
}
.dp-tool h2 { margin: 0 0 8px; font-size: 28px; }
.dp-tool > p { margin: 0 0 24px; color: var(--dp-muted); }
.dp-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dp-tool label { color: #606577; font-size: 12px; font-weight: 800; }
.dp-tool input, .dp-tool select, .dp-tool textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid #d9dbe5;
    border-radius: 12px;
    color: var(--dp-ink);
    background: #fafafe;
    font: inherit;
    outline: 0;
}
.dp-tool textarea { min-height: 180px; resize: vertical; }
.dp-tool input:focus, .dp-tool select:focus, .dp-tool textarea:focus { border-color: var(--dp-brand); box-shadow: 0 0 0 3px rgba(77,73,229,.1); }
.dp-tool button { min-height: 48px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: var(--dp-brand); font: inherit; font-weight: 800; cursor: pointer; }
.dp-tool button:hover { background: var(--dp-brand-dark); }
.dp-tool button.secondary { color: var(--dp-ink); background: #efeff5; }
.dp-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.dp-tool-result { margin-top: 23px; padding: 22px; border-radius: 16px; background: var(--dp-brand-soft); }
.dp-tool-result span, .dp-tool-result strong, .dp-tool-result small { display: block; }
.dp-tool-result span { color: #66629a; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.dp-tool-result strong { margin: 5px 0; color: var(--dp-brand-dark); font-size: clamp(30px, 5vw, 52px); line-height: 1; letter-spacing: -.05em; }
.dp-tool-result small { color: #55517f; line-height: 1.5; }
.dp-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--dp-line); border-radius: 15px; background: var(--dp-line); }
.dp-stat-row div { padding: 16px; background: #fff; }
.dp-stat-row span, .dp-stat-row strong { display: block; }
.dp-stat-row span { color: var(--dp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dp-stat-row strong { margin-top: 4px; font-size: 20px; }
.dp-timer { font-size: clamp(50px, 10vw, 92px) !important; font-variant-numeric: tabular-nums; }
.dp-topic-output { color: var(--dp-ink) !important; font-size: 25px !important; line-height: 1.28 !important; }

.dp-faq { margin-top: 58px; }
.dp-faq details { border-bottom: 1px solid var(--dp-line); }
.dp-faq summary { padding: 18px 0; color: var(--dp-ink); font-weight: 750; cursor: pointer; }
.dp-faq details p { margin: 0 0 18px; color: var(--dp-muted); }

.dp-cta { margin-top: 64px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 22px; color: #fff; background: var(--dp-ink); }
.dp-cta h2 { margin: 0 0 7px; color: #fff; font-size: 26px; }
.dp-cta p { margin: 0; color: #c7c9d3; }
.dp-button { display: inline-flex; min-height: 48px; padding: 0 18px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 999px; color: #fff !important; background: var(--dp-brand); font-size: 14px; font-weight: 800; text-decoration: none; }
.dp-button:hover { background: #625df4; }

.dp-reveal { opacity: 1; transform: none; }
.reveal-ready .dp-reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal-ready .dp-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .dp-layout { grid-template-columns: 1fr; gap: 0; }
    .dp-aside { position: static; order: -1; margin-bottom: 40px; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; border-left: 0; border-top: 1px solid var(--dp-line); border-bottom: 1px solid var(--dp-line); }
    .dp-aside strong { width: 100%; margin: 0 0 4px; }
    .dp-aside a { margin: 0; }
}

@media (max-width: 680px) {
    .dp-wrap { width: min(100% - 30px, 1120px); }
    .dp-hero__inner { min-height: 390px; padding: 58px 0; }
    .dp-hero h1 { font-size: 43px; }
    .dp-hero__title-row { align-items: flex-start; gap: 16px; }
    .dp-hero__exam-logo-link,
    .dp-hero__exam-logo { width: 78px; height: auto; }
    .dp-hero--with-exam-logo .dp-hero__inner::after { display: none; }
    .dp-main { padding: 48px 0 72px; }
    .dp-facts, .dp-tool-grid { grid-template-columns: 1fr; }
    .dp-link-grid { grid-template-columns: 1fr; }
    .dp-link-card:nth-child(odd), .dp-link-card:nth-child(even) { padding: 22px 0; border-right: 0; }
    .dp-tool { margin-top: -80px; padding: 24px 20px; }
    .dp-stat-row { grid-template-columns: repeat(2, 1fr); }
    .dp-cta { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal-ready .dp-reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
    #nheader, .dp-aside, .dp-cta { display: none !important; }
    .dp-hero { color: #000; background: #fff; }
    .dp-hero__lede, .dp-breadcrumb, .dp-hero__meta { color: #444; }
    .dp-main { padding-top: 20px; }
}
