:root {
    color-scheme: dark;
    font-family: Inter, Arial, sans-serif;
    background: #050814;
    color: #f5f6ff;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: radial-gradient(ellipse at 50% 0, #151744 0, #080c1d 42%, #050814 72%);
    line-height: 1.7;
}
a {
    color: #b6a4ff;
}
a:hover {
    color: #fff;
}
.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #080b19e8;
    border-bottom: 1px solid #ffffff16;
    backdrop-filter: blur(14px);
}
.header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    text-decoration: none;
}
.site-header nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.site-header nav a {
    color: #c5c8da;
    text-decoration: none;
    font-size: 15px;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
    color: #fff;
}
.breadcrumb {
    padding: 28px 0 4px;
    color: #a0a4bf;
    font-size: 14px;
}
.breadcrumb span {
    margin: 0 10px;
}
.hero,
.list-hero {
    padding: 48px 0 54px;
}
.eyebrow {
    color: #b8a5ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero h1,
.list-hero h1 {
    max-width: 900px;
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}
.hero-intro,
.list-hero > p {
    max-width: 830px;
    color: #c6c9dd;
    font-size: 18px;
}
.create-form {
    max-width: 850px;
    margin-top: 34px;
    padding: 24px;
    border: 1px solid #8d79ff55;
    border-radius: 22px;
    background: linear-gradient(130deg, #1e2146, #101629);
    box-shadow: 0 20px 70px #0005;
}
.create-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}
.create-form textarea {
    display: block;
    width: 100%;
    min-height: 138px;
    resize: vertical;
    padding: 16px;
    border: 1px solid #ffffff32;
    border-radius: 14px;
    background: #080d20;
    color: #fff;
    font: inherit;
    outline: none;
}
.create-form textarea:focus {
    border-color: #a391ff;
    box-shadow: 0 0 0 3px #a391ff33;
}
.create-form textarea::placeholder {
    color: #9298ad;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.form-actions button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg, #8758ff, #6557ed);
    color: #fff;
    padding: 12px 24px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.form-actions button:hover {
    filter: brightness(1.15);
}
.form-actions span {
    color: #aeb4cc;
    font-size: 13px;
}
.article {
    max-width: 850px;
    padding-bottom: 40px;
    color: #d2d5e5;
}
.article h2 {
    margin: 55px 0 16px;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.25;
    color: #fff;
}
.article h3 {
    margin: 30px 0 10px;
    font-size: 21px;
    line-height: 1.35;
    color: #f4f1ff;
}
.article p {
    margin: 12px 0;
}
.article pre {
    overflow: auto;
    padding: 20px;
    border: 1px solid #ffffff20;
    border-radius: 15px;
    background: #11182a;
    color: #e9e5ff;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.65;
}
.article code {
    font-family: Consolas, monospace;
}
.article :not(pre) > code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #ffffff12;
}
.article a {
    word-break: break-word;
}
.article h2:not(:first-child) {
    border-top: 1px solid #ffffff18;
    padding-top: 35px;
}
.end-cta {
    max-width: 850px;
    margin: 20px 0 80px;
    padding: 26px;
    border-radius: 20px;
    background: #151b34;
    border: 1px solid #ffffff20;
}
.end-cta h2 {
    margin: 0;
}
.end-cta p {
    color: #b9bed4;
}
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 90px;
}
.topic-card {
    display: block;
    min-height: 235px;
    padding: 28px;
    border: 1px solid #ffffff24;
    border-radius: 20px;
    background: linear-gradient(140deg, #1c2043, #101629);
    text-decoration: none;
    color: #fff;
    transition:
        transform 0.2s,
        border-color 0.2s;
}
.topic-card:hover {
    transform: translateY(-3px);
    border-color: #a18bff;
}
.card-icon {
    font-size: 30px;
}
.topic-card h2 {
    font-size: 23px;
    line-height: 1.25;
    margin: 16px 0 10px;
}
.topic-card p {
    font-size: 14px;
    color: #bbc0d6;
    margin: 0 0 18px;
}
.card-link {
    color: #b8a5ff;
    font-weight: 700;
}
.footer {
    border-top: 1px solid #ffffff18;
    background: #080b18;
}
.footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 25px 0;
    color: #a0a6bf;
    font-size: 14px;
}
.footer a {
    color: #c9bbff;
    text-decoration: none;
}
@media (max-width: 700px) {
    .wrap {
        width: min(100% - 28px, 1120px);
    }
    .header-inner {
        align-items: flex-start;
        padding: 14px 0;
        flex-direction: column;
        gap: 8px;
    }
    .site-header nav {
        gap: 15px;
        flex-wrap: wrap;
    }
    .site-header nav a {
        font-size: 13px;
    }
    .hero,
    .list-hero {
        padding: 32px 0;
    }
    .create-form {
        padding: 16px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .topic-card {
        min-height: 0;
    }
}
.template-button {
    display: inline-block;
    margin: 3px 10px 8px 0;
    padding: 8px 14px;
    border: 1px solid #8d79ff88;
    border-radius: 9px;
    background: #252342;
    color: #eae4ff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.template-button:hover {
    background: #383166;
}
