:root {
    --cs-header-h: 72px;
    --cs-page-w: 1120px;
    --color-primary: #663399;
    --color-secondary: #9370db;
    --color-accent: #ff1493;
    --color-btn: #7a0f5c;
    --color-btn-hover: #5c0b45;
    --color-bg: #120a18;
    --color-surface: #1a1024;
    --color-text: #e9ecef;
    --color-muted: #b7a8c9;
    --color-border: #3a2652;
    --color-on-primary: #ffffff;
    --font-head: "Rajdhani", sans-serif;
    --font-body: "Nunito", sans-serif;
}

@media (max-width: 1100px) {
    :root { --cs-header-h: 56px; }
}
@media (max-width: 480px) {
    :root { --cs-header-h: 52px; }
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
}
html { scroll-padding-top: var(--cs-header-h); }
body {
    padding-top: var(--cs-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin: 0 0 0.55em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
p { margin: 0 0 1em; }
a:not(.cs-btn) { color: var(--color-secondary); }
a:not(.cs-btn):hover { color: var(--color-accent); }

.cs-container {
    width: 100%;
    max-width: var(--cs-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.cs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--cs-header-h);
    background: #160c20;
    box-shadow: 0 2px 0 var(--color-border);
}
.cs-header a,
.cs-header a:visited { color: var(--color-text); text-decoration: none; }
.cs-header--row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: var(--cs-header-h);
    gap: 12px;
}
.cs-header--logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
}
.cs-header--logo svg {
    width: 140px;
    height: auto;
    display: block;
}
.cs-logo--mobile { display: none; }
.cs-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}
.cs-nav--left {
    justify-content: flex-end;
    padding-right: calc(70px + 1rem);
}
.cs-nav--right {
    justify-content: flex-start;
    padding-left: calc(70px + 1rem);
}
.cs-nav a.is-active { color: var(--color-accent); }
.cs-header--cta { white-space: nowrap; }

.cs-burger,
.cs-overlay,
.cs-drawer { display: none; }

.cs-burger {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
}
.cs-burger span {
    display: block;
    flex: 0 0 2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

@media (max-width: 1279px) {
    .cs-nav,
    .cs-header a.cs-header--cta { display: none; }
    .cs-header--row {
        display: flex;
        justify-content: space-between;
    }
    .cs-header--logo {
        position: static;
        transform: none;
    }
    .cs-logo--desk { display: none; }
    .cs-logo--mobile { display: block !important; width: 120px; max-width: calc(100vw - 150px); }
    .cs-burger { display: flex; order: 99; margin-left: auto; }

    .cs-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .cs-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #160c20;
        overflow-y: auto;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s;
    }
    .cs-drawer--sheet {
        inset: 0;
        height: 100vh;
        height: 100dvh;
        padding: 72px 24px 32px;
        opacity: 0;
    }
    .cs-drawer--sheet a {
        display: block;
        padding: 14px 8px;
        font-size: 1.35rem;
        font-family: var(--font-head);
        color: var(--color-text);
        text-decoration: none;
    }
    .cs-drawer--close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: var(--color-text);
        font-size: 2rem;
        cursor: pointer;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .cs-overlay { opacity: 1; visibility: visible; display: none; }
    body.nav-open .cs-drawer--sheet { opacity: 1; visibility: visible; }
}

@media (min-width: 1280px) {
    .cs-burger,
    .cs-overlay,
    .cs-drawer,
    .cs-drawer:not([hidden]),
    .cs-overlay:not([hidden]) { display: none !important; }
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    isolation: isolate;
}
a.cs-btn--primary,
a.cs-btn--primary:visited,
button.cs-btn--primary {
    color: var(--color-on-primary);
    background: var(--color-btn);
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.35), 0 0 2px var(--color-accent);
}
a.cs-btn--primary:hover,
a.cs-btn--primary:focus-visible,
button.cs-btn--primary:hover {
    color: var(--color-on-primary);
    background: var(--color-btn-hover);
    box-shadow: 0 0 18px rgba(255, 20, 147, 0.55);
}
a.cs-btn--ghost,
a.cs-btn--ghost:visited,
button.cs-btn--ghost {
    color: #f5f5f5;
    background: transparent;
    border-color: #f5f5f5;
}
a.cs-btn--ghost:hover,
a.cs-btn--ghost:focus-visible,
button.cs-btn--ghost:hover {
    color: #120a18;
    background: #f5f5f5;
    border-color: #f5f5f5;
}

.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0; }
@media (max-width: 520px) {
    .cs-actions { flex-direction: column; align-items: stretch; }
    .cs-actions .cs-btn { white-space: normal; }
}

.cs-section { padding-block: 56px; }
@media (max-width: 768px) { .cs-section { padding-block: 40px; } }

.cs-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-head);
}
.cs-lead { color: var(--color-muted); max-width: 42rem; }
.cs-muted { color: var(--color-muted); }

.cs-scan {
    position: relative;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(147, 112, 219, 0.04) 2px,
            rgba(147, 112, 219, 0.04) 4px
        ),
        linear-gradient(180deg, #1a0f28 0%, #120a18 100%);
}
.cs-band {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(102, 51, 153, 0.08) 3px,
            rgba(102, 51, 153, 0.08) 6px
        ),
        var(--color-surface);
}

.cs-hero--center { text-align: center; }
.cs-hero--center .cs-lead { margin-inline: auto; }
.cs-hero--center .cs-actions { justify-content: center; }
.cs-hero--preview {
    margin: 2rem auto 0;
    max-width: 920px;
    border: 2px solid var(--color-border);
    box-shadow: 0 0 0 1px rgba(255, 20, 147, 0.25), 0 0 24px rgba(102, 51, 153, 0.35);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.cs-hero--preview img { width: 100%; }

.cs-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 20px;
    min-width: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    box-shadow: 0 0 0 1px rgba(147, 112, 219, 0.15);
}
.cs-card:hover { box-shadow: 0 0 16px rgba(255, 20, 147, 0.2); }

.cs-passport--head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.cs-passport--icon {
    width: 112px;
    height: 112px;
    border-radius: 22%;
    border: 2px solid var(--color-border);
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}
.cs-table th,
.cs-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.cs-table th {
    width: 9rem;
    color: var(--color-muted);
    font-weight: 600;
}

.cs-stills {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.cs-stills--item {
    margin: 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.cs-stills img { width: 100%; height: auto; }
@media (max-width: 900px) {
    .cs-stills { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .cs-stills { grid-template-columns: repeat(2, 1fr); }
}

.cs-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cs-checklist li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.cs-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1em;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

.cs-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.cs-chapters--item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--color-text);
}
.cs-chapters--item:hover { border-color: var(--color-accent); }
.cs-chapters--num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 12px rgba(255, 20, 147, 0.45);
}
.cs-chapters--body { display: flex; flex-direction: column; gap: 4px; }

.cs-cta { text-align: center; }
.cs-cta .cs-btn { margin-top: 0.5rem; }

.cs-split { display: block; }
.cs-split--rail {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 20px;
}
.cs-split--note { color: var(--color-muted); }
.cs-score {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.2rem 0 0;
}
.cs-score div {
    text-align: center;
    padding: 10px 6px;
    border: 1px solid var(--color-border);
}
.cs-score dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}
.cs-score dd {
    margin: 4px 0 0;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
}
@media (min-width: 1024px) {
    .cs-split {
        display: grid;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        align-items: start;
    }
    .cs-split--rail {
        position: sticky;
        top: var(--cs-header-h);
        height: calc(100vh - var(--cs-header-h));
        overflow: auto;
        border-bottom: 0;
        border-right: 1px solid var(--color-border);
        padding: 32px 24px;
    }
}

.cs-prose { max-width: 720px; }
.cs-steps { padding-left: 1.2rem; }
.cs-steps li { margin-bottom: 0.8rem; }

.cs-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    margin-top: 1rem;
}
@media (max-width: 800px) {
    .cs-contact { grid-template-columns: 1fr; }
}
.cs-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 600;
}
.cs-form input,
.cs-form textarea {
    background: #0e0714;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px;
    font: inherit;
    border-radius: 6px;
}

.cs-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}
.cs-collections--group {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 18px;
}
.cs-collections--group ul { padding-left: 1.1rem; }
.cs-collections--group a { text-decoration: none; }

.cs-crumbs { margin: 0 0 1.2rem; }
.cs-crumbs--list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.cs-crumbs--item:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: var(--color-border);
}

.cs-series {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.cs-series a {
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 14px;
}
.cs-series--label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}
.cs-series--next { text-align: right; }
.cs-series--index {
    align-self: center;
    text-align: center;
    white-space: nowrap;
}
.cs-series--empty { border: 0; background: transparent; }
@media (max-width: 700px) {
    .cs-series { grid-template-columns: 1fr; }
    .cs-series--next { text-align: left; }
}

.cs-walk {
    display: grid;
    gap: 28px;
    margin: 1.5rem 0 2rem;
}
.cs-walk--item {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}
.cs-walk--item img {
    border: 1px solid var(--color-border);
    width: 100%;
}
.cs-walk--n {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 8px;
}
@media (max-width: 700px) {
    .cs-walk--item { grid-template-columns: 1fr; }
}

.cs-searchlist {
    columns: 2;
    gap: 24px;
    padding-left: 1.2rem;
}
@media (max-width: 600px) { .cs-searchlist { columns: 1; } }

.cs-footer {
    padding: 48px 0 36px;
    background: #0b0610;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}
.cs-footer a,
.cs-footer a:visited { color: var(--color-text); text-decoration: none; }
.cs-footer--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 700px) {
    .cs-footer--grid { grid-template-columns: 1fr; }
}
.cs-footer--brand {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-text);
}
.cs-footer--links,
.cs-footer--legal {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.cs-footer--links li,
.cs-footer--legal li { margin-bottom: 6px; }
.cs-footer--cookiebtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.cs-footer--disclaimer { font-size: 0.9rem; }
.cs-footer--copy { font-size: 0.85rem; }

.cs-cookie { display: none; }
.cs-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 110;
    bottom: 16px;
    right: 16px;
    max-width: 360px;
    gap: 12px;
    padding: 16px;
    background: #1a1024;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: 0 0 20px rgba(102, 51, 153, 0.35);
}
.cs-cookie a { color: var(--color-secondary); }
.cs-cookie .cs-btn { box-shadow: none; min-height: 44px; }
@media (max-width: 520px) {
    .cs-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .js .cs-reveal {
        clip-path: inset(12% 0 0 0);
        transition: clip-path 0.55s ease;
    }
    .js .cs-reveal.is-in {
        clip-path: inset(0 0 0 0);
    }
}
