.cssguide-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cssguide-hero {
    padding: 22px;
    overflow: hidden;
}

.cssguide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #8da0aa;
}

.cssguide-breadcrumbs a {
    color: #b7c5cc;
}

.cssguide-breadcrumbs a:hover {
    color: #ffffff;
}

.cssguide-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.cssguide-hero-icon {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(73, 157, 205, 0.34);
    border-radius: 12px;
    background: rgba(25, 66, 88, 0.42);
    color: #74bee8;
    font-size: 28px;
}

.cssguide-hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "Play", Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
}

.cssguide-hero p {
    max-width: 920px;
    margin: 0;
    color: #b9c6cc;
    font-size: 15px;
    line-height: 1.65;
}

.cssguide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cssguide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    box-sizing: border-box;
}

.cssguide-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    overflow: hidden;
}

.cssguide-quick > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: rgba(12, 25, 32, 0.74);
    color: #d8e1e5;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cssguide-quick > a:hover {
    background: rgba(25, 53, 67, 0.92);
    color: #ffffff;
}

.cssguide-quick > a > i {
    flex: 0 0 30px;
    color: #6db7df;
    font-size: 22px;
    text-align: center;
}

.cssguide-quick b,
.cssguide-quick span {
    display: block;
}

.cssguide-quick b {
    margin-bottom: 3px;
    font-family: "Play", Arial, sans-serif;
    font-size: 14px;
}

.cssguide-quick span {
    color: #8698a2;
    font-size: 11px;
    line-height: 1.35;
}

.cssguide-section,
.cssguide-related,
.cssguide-finish {
    padding: 20px;
}

.cssguide-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.cssguide-section-head > span {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(32, 87, 115, 0.4);
    color: #72bee6;
    font-size: 18px;
}

.cssguide-section-head h2 {
    margin: 3px 0 0;
    color: #ffffff;
    font-family: "Play", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.3;
}

.cssguide-section-head p {
    margin: 5px 0 0;
    color: #8fa0a8;
    font-size: 12px;
    line-height: 1.45;
}

.cssguide-text {
    color: #bdc8cd;
    font-size: 14px;
    line-height: 1.75;
}

.cssguide-text p {
    margin: 0 0 14px;
}

.cssguide-text p:last-child {
    margin-bottom: 0;
}

.cssguide-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cssguide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 13, 18, 0.28);
}

.cssguide-step-number {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #235f7f;
    color: #ffffff;
    font-family: "Play", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.cssguide-steps h3 {
    margin: 0 0 5px;
    color: #eef4f6;
    font-size: 15px;
    line-height: 1.35;
}

.cssguide-steps p {
    margin: 0;
    color: #aebbc1;
    font-size: 13px;
    line-height: 1.6;
}

.cssguide-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cssguide-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 13, 18, 0.28);
}

.cssguide-card h3 {
    margin: 0 0 7px;
    color: #eef4f6;
    font-size: 15px;
    line-height: 1.35;
}

.cssguide-card p {
    margin: 0;
    color: #aebbc1;
    font-size: 13px;
    line-height: 1.6;
}

.cssguide-commands {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cssguide-command {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 13, 18, 0.3);
}

.cssguide-command code {
    overflow-wrap: anywhere;
    color: #8fd3f7;
    font-size: 13px;
    line-height: 1.5;
}

.cssguide-command span {
    color: #aebbc1;
    font-size: 13px;
    line-height: 1.55;
}

.cssguide-text + .cssguide-steps,
.cssguide-text + .cssguide-cards,
.cssguide-text + .cssguide-commands,
.cssguide-text + .cssguide-checklist,
.cssguide-steps + .cssguide-cards,
.cssguide-steps + .cssguide-commands,
.cssguide-cards + .cssguide-commands,
.cssguide-cards + .cssguide-checklist,
.cssguide-commands + .cssguide-checklist {
    margin-top: 14px;
}

.cssguide-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cssguide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(4, 13, 18, 0.25);
    color: #afbdc3;
    font-size: 13px;
    line-height: 1.55;
}

.cssguide-checklist i {
    margin-top: 3px;
    color: #58b783;
}

.cssguide-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cssguide-related-grid > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 17, 23, 0.34);
    color: #d9e2e6;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cssguide-related-grid > a:hover {
    border-color: rgba(88, 173, 220, 0.28);
    background: rgba(22, 50, 64, 0.55);
}

.cssguide-related-grid > a > i {
    flex: 0 0 30px;
    margin-top: 2px;
    color: #72bee6;
    font-size: 21px;
    text-align: center;
}

.cssguide-related-grid b,
.cssguide-related-grid span {
    display: block;
}

.cssguide-related-grid b {
    margin-bottom: 5px;
    font-family: "Play", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
}

.cssguide-related-grid span {
    color: #8d9ea6;
    font-size: 11px;
    line-height: 1.45;
}

.cssguide-finish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cssguide-finish h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: "Play", Arial, sans-serif;
    font-size: 20px;
}

.cssguide-finish p {
    max-width: 700px;
    margin: 0;
    color: #95a5ad;
    font-size: 13px;
    line-height: 1.55;
}

.cssguide-finish-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

@media screen and (max-width: 980px) {
    .cssguide-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cssguide-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cssguide-finish {
        align-items: flex-start;
        flex-direction: column;
    }

    .cssguide-finish-actions {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 640px) {
    .cssguide-hero,
    .cssguide-section,
    .cssguide-related,
    .cssguide-finish {
        padding: 15px;
    }

    .cssguide-hero-main {
        gap: 12px;
    }

    .cssguide-hero-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .cssguide-hero h1 {
        font-size: 22px;
    }

    .cssguide-quick,
    .cssguide-related-grid,
    .cssguide-cards,
    .cssguide-checklist {
        grid-template-columns: 1fr;
    }

    .cssguide-command {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cssguide-hero-actions,
    .cssguide-finish-actions {
        flex-direction: column;
        width: 100%;
    }

    .cssguide-button {
        width: 100%;
    }
}
