.widgets-page main {
    background: #fffaf1;
}

.widgets-hero {
    padding-bottom: 46px;
}

.widget-gallery {
    display: grid;
    gap: 24px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 70px;
}

.widget-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(9, 38, 70, .1);
}

.widget-card__content {
    padding: 24px 22px 18px;
}

.widget-card h2 {
    margin: 0;
    color: #092646;
    font-size: 1.35rem;
}

.widget-card__content p {
    margin: 8px 0 0;
    color: #637083;
    line-height: 1.55;
}

.widget-preview {
    display: block;
    border: 0;
    border-top: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    background: #f2f5f8;
}

.widget-code {
    width: calc(100% - 44px);
    margin: 18px 22px 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .76rem;
    line-height: 1.5;
}

.widget-code[hidden] {
    display: none;
}

.widget-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 20px 22px 8px;
}

.widget-card__actions .button {
    width: auto;
    min-height: 42px;
    padding: 8px 16px;
    font-size: .82rem;
}

.widget-page-link {
    color: #092646;
    font-size: .84rem;
    font-weight: 800;
    text-underline-offset: .2em;
}

.widget-feedback {
    min-height: 1.4em;
    margin: 0;
    padding: 0 22px 18px;
    color: #637083;
    font-size: .78rem;
}

.widgets-info {
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 70px;
    padding: 2rem 1.25rem;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 1rem;
}

.widgets-info ol {
    padding-left: 1.3rem;
    line-height: 1.8;
}

@media (min-width: 850px) {
    .widget-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .widget-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }

    .widgets-info {
        padding: 3rem;
    }
}
