.cgy-library {
    --cgy-bg: #060913;
    --cgy-panel: #0d1220;
    --cgy-panel-2: #111827;
    --cgy-text: #f7f9ff;
    --cgy-muted: #9aa6bd;
    --cgy-line: rgba(255, 255, 255, 0.09);
    --cgy-accent: #2684ff;
    --cgy-accent-rgb: 38, 132, 255;
    --cgy-brand: #2684ff;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    color: var(--cgy-text);
    background:
        radial-gradient(circle at 8% 9%, rgba(35, 88, 255, 0.13), transparent 28rem),
        radial-gradient(circle at 94% 18%, rgba(112, 45, 255, 0.12), transparent 28rem),
        var(--cgy-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    isolation: isolate;
}

.cgy-library *,
.cgy-library *::before,
.cgy-library *::after {
    box-sizing: border-box;
}

.cgy-library img {
    max-width: 100%;
}

.cgy-library a {
    color: inherit;
    text-decoration: none;
}

.cgy-library button,
.cgy-library input {
    font: inherit;
}

.cgy-library h1,
.cgy-library h2,
.cgy-library h3,
.cgy-library p {
    margin-top: 0;
}

.cgy-library .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cgy-kicker,
.cgy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #6be4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.cgy-kicker::before,
.cgy-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 16px currentColor;
}

.cgy-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    align-items: center;
    min-height: 610px;
    padding: 86px clamp(28px, 7vw, 104px);
    border-bottom: 1px solid var(--cgy-line);
}

.cgy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to right, black, transparent 92%);
}

.cgy-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.cgy-hero h1 {
    max-width: 760px;
    margin: 20px 0 24px;
    color: #fff;
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.cgy-hero h1 em {
    display: block;
    color: transparent;
    background: linear-gradient(100deg, #55d8ff 0%, #6a8cff 48%, #b065ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-style: normal;
}

.cgy-hero__copy > p {
    max-width: 650px;
    margin-bottom: 34px;
    color: #b4bfd2;
    font-size: clamp(17px, 1.7vw, 21px);
}

.cgy-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cgy-hero__stats span {
    padding: 10px 14px;
    color: #aab5c9;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--cgy-line);
    border-radius: 999px;
    font-size: 13px;
}

.cgy-hero__stats strong {
    margin-right: 4px;
    color: #fff;
}

.cgy-hero__orbit {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 360px;
}

.cgy-hero__orbit img {
    position: relative;
    z-index: 3;
    width: min(78%, 380px);
    filter: drop-shadow(0 28px 44px rgba(28, 103, 255, 0.4));
    animation: cgy-float 5s ease-in-out infinite;
}

.cgy-orbit,
.cgy-hero__glow {
    position: absolute;
    border-radius: 50%;
}

.cgy-orbit {
    border: 1px solid rgba(82, 155, 255, 0.22);
    transform: rotate(-18deg);
}

.cgy-orbit::after {
    content: "";
    position: absolute;
    top: 13%;
    left: 5%;
    width: 9px;
    height: 9px;
    background: #56ddff;
    border-radius: 50%;
    box-shadow: 0 0 22px #56ddff;
}

.cgy-orbit--one { width: 82%; height: 58%; }
.cgy-orbit--two { width: 104%; height: 74%; transform: rotate(24deg); opacity: .58; }

.cgy-hero__glow {
    width: 62%;
    height: 20%;
    margin-top: 32%;
    background: rgba(42, 105, 255, 0.4);
    filter: blur(52px);
}

@keyframes cgy-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

.cgy-explorer {
    padding: 84px clamp(24px, 6vw, 86px) 94px;
}

.cgy-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.cgy-section-heading h2,
.cgy-help-strip h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.cgy-search {
    display: flex;
    align-items: center;
    width: min(100%, 330px);
    height: 54px;
    padding: 0 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    transition: .2s ease;
}

.cgy-search:focus-within {
    border-color: #53cfff;
    box-shadow: 0 0 0 4px rgba(58, 194, 255, .12);
}

.cgy-search svg {
    width: 20px;
    fill: none;
    stroke: #7f8ca3;
    stroke-width: 2;
    stroke-linecap: round;
}

.cgy-search input {
    width: 100%;
    height: 100%;
    padding: 0 0 0 12px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
}

.cgy-search input::placeholder { color: #7e899c; }

.cgy-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}

.cgy-filters button {
    padding: 9px 15px;
    color: #9ba6ba;
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.cgy-filters button:hover,
.cgy-filters button.is-active {
    color: #fff;
    background: var(--cgy-brand);
    border-color: var(--cgy-brand);
    box-shadow: 0 8px 22px rgba(14, 104, 234, .25);
}

.cgy-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cgy-module-card {
    --cgy-accent: #ff365b;
    --cgy-accent-rgb: 255, 54, 91;
    overflow: hidden;
    min-height: 100%;
    display: grid;
    grid-template-columns: 42% 58%;
    background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 24px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.cgy-module-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--cgy-accent-rgb), .48);
    box-shadow: 0 30px 55px rgba(0,0,0,.32), 0 0 36px rgba(var(--cgy-accent-rgb), .08);
}

.cgy-module-card[hidden] { display: none; }

.cgy-module-card__visual {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 280px;
    background:
        radial-gradient(circle at 50% 52%, rgba(var(--cgy-accent-rgb), .23), transparent 43%),
        linear-gradient(155deg, rgba(var(--cgy-accent-rgb), .12), transparent 62%);
    border-right: 1px solid rgba(255,255,255,.06);
}

.cgy-module-card__visual::before {
    content: "";
    position: absolute;
    width: 125%;
    height: 62%;
    border: 1px solid rgba(var(--cgy-accent-rgb), .22);
    border-radius: 50%;
    transform: rotate(-13deg);
}

.cgy-module-card__visual img {
    position: relative;
    z-index: 2;
    width: 78%;
    filter: drop-shadow(0 20px 26px rgba(var(--cgy-accent-rgb), .3));
    transition: transform .35s ease;
}

.cgy-module-card:hover .cgy-module-card__visual img {
    transform: translateY(-8px) scale(1.04);
}

.cgy-module-card__halo {
    position: absolute;
    width: 44%;
    height: 18%;
    margin-top: 28%;
    background: rgba(var(--cgy-accent-rgb), .5);
    border-radius: 50%;
    filter: blur(26px);
}

.cgy-version {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    padding: 6px 9px;
    color: #fff;
    background: rgba(3,6,14,.7);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.cgy-module-card__body {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.cgy-module-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--cgy-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cgy-module-card h3 {
    margin: 13px 0 10px;
    color: #fff;
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.cgy-module-card__body > p {
    margin-bottom: 19px;
    color: #9eabc0;
    font-size: 14px;
}

.cgy-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.cgy-tag-list li {
    padding: 5px 8px;
    color: #b7c0cf;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 7px;
    font-size: 10px;
}

.cgy-card-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.cgy-card-cta span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--cgy-accent);
    border-radius: 50%;
    transition: transform .2s ease;
}

.cgy-module-card:hover .cgy-card-cta span { transform: translateX(4px); }

.cgy-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.cgy-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #fff !important;
    background: rgba(var(--cgy-accent-rgb), .14);
    border: 1px solid rgba(var(--cgy-accent-rgb), .32);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.cgy-download:hover {
    background: var(--cgy-accent);
    transform: translateY(-2px);
}

.cgy-accent--red { --cgy-accent: #ff365b; --cgy-accent-rgb: 255, 54, 91; }
.cgy-accent--blue { --cgy-accent: #2485ff; --cgy-accent-rgb: 36, 133, 255; }
.cgy-accent--green { --cgy-accent: #18d49c; --cgy-accent-rgb: 24, 212, 156; }
.cgy-accent--facebook { --cgy-accent: #1877f2; --cgy-accent-rgb: 24, 119, 242; }
.cgy-accent--grey { --cgy-accent: #aeb7c2; --cgy-accent-rgb: 174, 183, 194; }

.cgy-empty {
    padding: 55px;
    color: #aab4c6;
    text-align: center;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 20px;
}

.cgy-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 62px clamp(24px, 6vw, 86px);
    background:
        radial-gradient(circle at 85% 40%, rgba(77, 79, 255, .32), transparent 30%),
        linear-gradient(115deg, #101b3c, #101027 65%, #19103b);
    border-top: 1px solid rgba(255,255,255,.09);
}

.cgy-help-strip > div { max-width: 760px; }
.cgy-help-strip h2 { font-size: clamp(30px, 3.6vw, 48px); }
.cgy-help-strip p { margin: 14px 0 0; color: #aebbd1; }

.cgy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 52px;
    padding: 0 22px;
    color: #fff !important;
    background: var(--cgy-accent);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(var(--cgy-accent-rgb), .24);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, filter .2s ease;
}

.cgy-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cgy-button--light { color: #0a1021 !important; background: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.2); }
.cgy-button--download { color: #fff !important; background: rgba(var(--cgy-accent-rgb), .1); border-color: rgba(var(--cgy-accent-rgb), .42); box-shadow: none; }

/* Tutorial */
.cgy-tutorial { padding-bottom: 82px; }

.cgy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px clamp(24px, 6vw, 86px);
    color: #79869b;
    border-bottom: 1px solid var(--cgy-line);
    font-size: 13px;
}

.cgy-breadcrumb a { color: #bdc7d7; font-weight: 700; }
.cgy-breadcrumb a:hover { color: var(--cgy-accent); }

.cgy-tutorial-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    padding: 64px clamp(24px, 6vw, 86px);
    background:
        radial-gradient(circle at 78% 52%, rgba(var(--cgy-accent-rgb), .2), transparent 27rem),
        linear-gradient(135deg, rgba(var(--cgy-accent-rgb), .075), transparent 48%);
    border-bottom: 1px solid var(--cgy-line);
}

.cgy-tutorial-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255,255,255,.35) .8px, transparent .8px);
    background-size: 26px 26px;
    mask-image: linear-gradient(90deg, transparent 30%, black 100%);
    pointer-events: none;
}

.cgy-tutorial-hero__copy { position: relative; z-index: 2; max-width: 730px; }

.cgy-tutorial-hero h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(52px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.06em;
}

.cgy-tutorial-hero__copy > p {
    max-width: 680px;
    color: #b3bed1;
    font-size: clamp(17px, 1.7vw, 21px);
}

.cgy-tutorial-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cgy-tutorial-hero__actions > span { color: #8996ab; font-size: 13px; }

.cgy-tutorial-hero__art {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.cgy-tutorial-hero__art::before,
.cgy-tutorial-hero__art::after {
    content: "";
    position: absolute;
    width: 94%;
    height: 54%;
    border: 1px solid rgba(var(--cgy-accent-rgb), .28);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.cgy-tutorial-hero__art::after { width: 112%; height: 68%; transform: rotate(23deg); opacity: .5; }

.cgy-tutorial-hero__art img {
    position: relative;
    z-index: 2;
    width: min(90%, 390px);
    filter: drop-shadow(0 28px 34px rgba(var(--cgy-accent-rgb), .35));
}

.cgy-tutorial-hero__art span {
    position: absolute;
    width: 55%;
    height: 20%;
    margin-top: 35%;
    background: rgba(var(--cgy-accent-rgb), .52);
    border-radius: 50%;
    filter: blur(35px);
}

.cgy-tutorial-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 780px);
    justify-content: center;
    align-items: start;
    gap: clamp(36px, 6vw, 86px);
    padding: 76px clamp(24px, 6vw, 86px) 0;
}

.cgy-toc {
    position: sticky;
    top: 28px;
    padding: 23px;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--cgy-line);
    border-radius: 18px;
}

.cgy-toc ol {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.cgy-toc li + li { border-top: 1px solid rgba(255,255,255,.06); }

.cgy-toc a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    padding: 11px 2px;
    color: #aab5c7;
    font-size: 12px;
    line-height: 1.35;
}

.cgy-toc a:hover { color: #fff; }
.cgy-toc a span { color: var(--cgy-accent); font-weight: 800; }

.cgy-requirements {
    margin-top: 19px;
    padding: 15px;
    background: rgba(var(--cgy-accent-rgb), .08);
    border: 1px solid rgba(var(--cgy-accent-rgb), .2);
    border-radius: 12px;
}

.cgy-requirements strong { color: #fff; font-size: 12px; }
.cgy-requirements p { margin: 6px 0 0; color: #929fb4; font-size: 11px; line-height: 1.55; }

.cgy-step-list { min-width: 0; }

.cgy-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 26px;
    scroll-margin-top: 32px;
}

.cgy-step:not(:last-of-type) { padding-bottom: 24px; }

.cgy-step:not(:last-of-type)::before {
    content: "";
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 31px;
    width: 1px;
    background: linear-gradient(var(--cgy-accent), rgba(var(--cgy-accent-rgb), .08));
}

.cgy-step__number {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: #fff;
    background: linear-gradient(145deg, rgba(var(--cgy-accent-rgb), .95), rgba(var(--cgy-accent-rgb), .48));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(var(--cgy-accent-rgb), .18);
    font-weight: 900;
}

.cgy-step__content {
    padding: 27px 30px 29px;
    background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.02));
    border: 1px solid var(--cgy-line);
    border-radius: 19px;
}

.cgy-step__label {
    color: var(--cgy-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.cgy-step h2 {
    margin: 5px 0 10px;
}

.cgy-step__toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-align: left;
    cursor: pointer;
}

.cgy-step__toggle i {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    background: rgba(var(--cgy-accent-rgb), .1);
    border: 1px solid rgba(var(--cgy-accent-rgb), .35);
    border-radius: 10px;
}

.cgy-step__toggle i::before,
.cgy-step__toggle i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--cgy-accent);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
}

.cgy-step__toggle i::after { transform: translate(-50%, -50%) rotate(90deg); }
.cgy-step__toggle[aria-expanded="true"] i::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.cgy-step__toggle:focus-visible { outline: 2px solid var(--cgy-accent); outline-offset: 6px; border-radius: 5px; }
.cgy-step__panel[hidden] { display: none !important; }
.cgy-step__panel { padding-top: 2px; }
.cgy-step__panel > p { color: #9eabc0; }

.cgy-step ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.cgy-step li {
    position: relative;
    padding-left: 25px;
    color: #c6cedb;
    font-size: 14px;
}

.cgy-step li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--cgy-accent);
    font-weight: 900;
}

.cgy-step code {
    padding: 2px 6px;
    color: #dce8ff;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    font-size: .88em;
}

.cgy-tip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 22px;
    padding: 13px 15px;
    color: #a9b5c7;
    background: rgba(var(--cgy-accent-rgb), .075);
    border-left: 3px solid var(--cgy-accent);
    border-radius: 5px 10px 10px 5px;
    font-size: 12px;
}

.cgy-tip strong { color: var(--cgy-accent); white-space: nowrap; }

.cgy-finish {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 24px;
    margin: 64px 0 26px 90px;
    padding: 28px;
    background: linear-gradient(120deg, rgba(var(--cgy-accent-rgb), .16), rgba(var(--cgy-accent-rgb), .035));
    border: 1px solid rgba(var(--cgy-accent-rgb), .3);
    border-radius: 20px;
}

.cgy-finish__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #fff;
    background: var(--cgy-accent);
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(var(--cgy-accent-rgb), .35);
    font-size: 28px;
    font-weight: 900;
}

.cgy-finish h2 { margin: 4px 0 4px; color: #fff; font-size: 26px; letter-spacing: -.03em; }
.cgy-finish p { margin: 0; color: #9fabc0; font-size: 13px; }

.cgy-back-link {
    display: inline-flex;
    gap: 9px;
    margin-left: 90px;
    color: #b8c2d2 !important;
    font-size: 13px;
    font-weight: 800;
}

.cgy-back-link:hover { color: var(--cgy-accent) !important; }

@media (max-width: 1080px) {
    .cgy-module-card { grid-template-columns: 1fr; }
    .cgy-module-card__visual { min-height: 245px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .cgy-module-card__visual img { width: min(58%, 240px); }
    .cgy-tutorial-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 820px) {
    .cgy-library { border-radius: 20px; }
    .cgy-hero, .cgy-tutorial-hero { grid-template-columns: 1fr; }
    .cgy-hero { padding-top: 64px; }
    .cgy-hero__orbit { min-height: 330px; }
    .cgy-tutorial-hero__art { min-height: 300px; }
    .cgy-section-heading { align-items: stretch; flex-direction: column; }
    .cgy-search { width: 100%; }
    .cgy-module-grid { grid-template-columns: 1fr; }
    .cgy-help-strip { align-items: flex-start; flex-direction: column; }
    .cgy-tutorial-layout { grid-template-columns: 1fr; }
    .cgy-toc { position: static; }
    .cgy-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
}

@media (max-width: 560px) {
    .cgy-hero { min-height: auto; padding: 54px 22px 36px; }
    .cgy-hero h1 { font-size: 45px; }
    .cgy-hero__orbit { min-height: 265px; }
    .cgy-explorer { padding: 62px 18px 70px; }
    .cgy-module-card__body { padding: 24px; }
    .cgy-module-card__visual { min-height: 220px; }
    .cgy-help-strip { padding: 50px 22px; }
    .cgy-tutorial-hero { padding: 52px 22px 28px; }
    .cgy-tutorial-hero h1 { font-size: 47px; }
    .cgy-tutorial-hero__art { min-height: 250px; }
    .cgy-tutorial-layout { padding: 52px 18px 0; }
    .cgy-toc ol { grid-template-columns: 1fr; }
    .cgy-step { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
    .cgy-step__number { width: 42px; height: 42px; border-radius: 12px; font-size: 12px; }
    .cgy-step:not(:last-of-type)::before { top: 40px; left: 20px; }
    .cgy-step__content { padding: 22px 19px; }
    .cgy-tip { grid-template-columns: 1fr; }
    .cgy-finish { grid-template-columns: 1fr; margin-left: 55px; }
    .cgy-back-link { margin-left: 55px; }
}

@media (prefers-reduced-motion: reduce) {
    .cgy-library *, .cgy-library *::before, .cgy-library *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
