.website-examples {
    background: #0d151e;
    color: #f3f7fb;
    scroll-margin-block-start: 6rem;
}

.website-examples__heading {
    position: static;
    margin: 0 0 clamp(18px, 3vw, 36px);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.website-examples__heading h2 {
    margin-bottom: .35em;
}

.website-examples__heading p {
    max-width: 62ch;
    margin: 0;
    color: #c7d3e0;
}

.website-examples__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
}

.website-example {
    min-width: 0;
    border: 1px solid #334351;
    border-radius: 14px;
    overflow: hidden;
    background: #131f2b;
}

.website-example__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
}

.website-example__link:focus-visible {
    outline: 3px solid #74e9f0;
    outline-offset: -4px;
    border-radius: inherit;
}

.website-example__link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #1a2937;
}

.website-example__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: clamp(14px, 2vw, 22px);
    border-top: 1px solid #334351;
}

.website-example__info h3 {
    margin: 0;
    color: #f4f8fc;
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    line-height: 1.25;
}

.website-example__info p {
    margin: 0 0 5px;
    color: #c6d1dc;
    font-size: .93rem;
    line-height: 1.45;
}

.website-example__open {
    margin-top: auto;
    color: #82edf5;
    font-weight: 750;
    font-size: .88rem;
}

.website-example__link:hover .website-example__open,
.website-example__link:focus-visible .website-example__open {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.website-example-dialog {
    width: min(1100px, calc(100% - 22px));
    max-width: none;
    max-height: 94dvh;
    padding: clamp(12px, 2vw, 20px);
    border: 1px solid #405266;
    border-radius: 15px;
    color: #f3f7fb;
    background: #111c27;
    text-align: center;
}

.website-example-dialog::backdrop {
    background: rgb(2 6 12 / .87);
}

.website-example-dialog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.website-example-dialog__bar h3 {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.25;
}

.website-example-dialog__bar form {
    margin: 0;
}

.website-example-dialog__close {
    min-width: 64px;
    min-height: 44px;
    border: 1px solid #587186;
    border-radius: 7px;
    padding: .4rem .65rem;
    color: #e8f1fb;
    background: #213447;
    font: inherit;
    cursor: pointer;
}

.website-example-dialog__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 74dvh;
    margin: 0 auto;
    object-fit: contain;
}

.website-example-dialog__original {
    display: inline-block;
    margin-top: 10px;
    color: #82edf5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

@media (max-width: 600px) {
    .website-examples__grid { grid-template-columns: 1fr; }
}
