.kyssa-guides-page,
.kyssa-guides-page * {
    box-sizing: border-box;
}

.kyssa-guides-page {
    --guides-blue: #3772ff;
    --guides-orange: #fa5c15;
    --guides-ink: #172033;
    --guides-text: #667085;
    --guides-line: #e7ebf2;
    color: var(--guides-ink);
    background: #fbfcff;
}

.kyssa-guides-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.kyssa-guides-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 118px) 0 clamp(58px, 7vw, 88px);
    border-bottom: 1px solid var(--guides-line);
    background:
        radial-gradient(circle at 16% 20%, rgba(55, 114, 255, .13), transparent 29%),
        radial-gradient(circle at 86% 74%, rgba(250, 92, 21, .09), transparent 28%),
        linear-gradient(145deg, #f7faff 0%, #fff 58%, #fff9f5 100%);
    text-align: center;
}

.kyssa-guides-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(55, 114, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 114, 255, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.kyssa-guides-hero .kyssa-guides-shell {
    position: relative;
    z-index: 1;
}

.kyssa-guides-kicker,
.kyssa-guides-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 750;
}

.kyssa-guides-kicker {
    padding: 9px 14px;
    border: 1px solid rgba(55, 114, 255, .18);
    background: rgba(255, 255, 255, .82);
    color: var(--guides-blue);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(55, 114, 255, .09);
}

.kyssa-guides-hero h1 {
    max-width: 850px;
    margin: 22px auto 0;
    font-size: clamp(2.25rem, 5vw, 4.3rem);
    line-height: 1.03;
    letter-spacing: -.055em;
}

.kyssa-guides-hero p {
    max-width: 680px;
    margin: 22px auto 0;
    color: var(--guides-text);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.kyssa-guides-count {
    margin-top: 26px;
    padding: 9px 15px;
    background: #eef4ff;
    color: #245bd7;
    font-size: .86rem;
}

.kyssa-guides-catalogue {
    padding: clamp(48px, 7vw, 86px) 0 96px;
}

.kyssa-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.kyssa-guides-list-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--guides-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(22, 38, 75, .07);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.kyssa-guides-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(22, 38, 75, .11);
}

.kyssa-guides-list-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    min-height: 180px;
    overflow: hidden;
    background: #dce6f5;
}

.kyssa-guides-list-card__media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.kyssa-guides-list-card__media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.kyssa-guides-list-card:hover .kyssa-guides-list-card__media img {
    transform: scale(1.025);
}

.kyssa-guides-list-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #eaf1ff, #fff5ef);
}

.kyssa-guides-list-card__placeholder svg {
    width: 64px;
    height: 64px;
    fill: rgba(55, 114, 255, .62);
}

.kyssa-guides-list-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.kyssa-guides-list-card__body {
    display: flex;
    min-height: 185px;
    padding: 14px 16px 16px;
    flex-direction: column;
    flex: 1;
}

.kyssa-guides-list-card__category {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    margin-bottom: 9px;
    padding: 4px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #eff6ff;
    color: var(--guides-blue);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.kyssa-guides-list-card h2 {
    min-height: 58px;
    margin: 0 0 14px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -.01em;
    font-weight: 650;
}

.kyssa-guides-list-card h2 a {
    color: var(--guides-ink);
    text-decoration: none;
}

.kyssa-guides-list-card h2 a:hover {
    color: var(--guides-blue);
}

.kyssa-guides-list-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.kyssa-guides-list-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.kyssa-guides-list-card__author img {
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 auto;
    border: 1px solid var(--guides-line);
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.kyssa-guides-list-card__author-name {
    max-width: 112px;
    overflow: hidden;
    color: #687085;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kyssa-guides-list-card__author-name:hover {
    color: var(--guides-ink);
}

.kyssa-guides-list-card__view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--guides-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.kyssa-guides-list-card__view:hover,
.kyssa-guides-list-card__view:focus-visible {
    text-decoration: underline;
}

.kyssa-guides-pagination {
    margin-top: 46px;
}

.kyssa-guides-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kyssa-guides-pagination a,
.kyssa-guides-pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--guides-line);
    border-radius: 12px;
    background: #fff;
    color: var(--guides-ink);
    text-decoration: none;
}

.kyssa-guides-pagination .current,
.kyssa-guides-pagination a:hover {
    border-color: var(--guides-blue);
    background: var(--guides-blue);
    color: #fff;
}

.kyssa-guides-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 58px 28px;
    border: 1px solid var(--guides-line);
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 44px rgba(23, 32, 51, .06);
}

.kyssa-guides-empty > span {
    display: block;
    margin-bottom: 14px;
    font-size: 3rem;
}

.kyssa-guides-empty h2 {
    margin: 0;
    font-size: 1.6rem;
}

.kyssa-guides-empty p {
    margin: 10px 0 0;
    color: var(--guides-text);
}

@media (max-width: 1100px) {
    .kyssa-guides-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .kyssa-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .kyssa-guides-shell {
        width: min(100% - 22px, 1180px);
    }

    .kyssa-guides-hero {
        padding-top: 58px;
    }

    .kyssa-guides-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kyssa-guides-list-card__body {
        min-height: 0;
    }

    .kyssa-guides-pagination .page-numbers {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kyssa-guides-list-card,
    .kyssa-guides-list-card__media img,
    .kyssa-guides-list-card__view {
        transition: none;
    }
}
