a.seg-btn {
    text-decoration: none;
}



.post-media--1, .post-media--2 {
    aspect-ratio: auto;
}

.post-media--1 .post-media img {
    height: auto;
}

















/* ---- Pagy pagination ---- */
.pagy.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pagy.nav a,
.pagy.nav .current,
.pagy.nav .gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    min-width: 40px;
    height: 40px;
    padding: 0 8px;

    border: 1px solid var(--line);
    border-radius: var(--radius-pill);

    background: var(--surface);
    color: var(--ink);

    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;

    transition:
            border-color .13s var(--ease),
            transform .13s var(--ease),
            background .13s var(--ease),
            color .13s var(--ease);
}

/* hover только для активных ссылок */
.pagy.nav a[href]:hover {
    border-color: var(--ink-3);
    transform: translateY(-1px);
}

/* текущая страница */
.pagy.nav .current,
.pagy.nav [aria-current="page"] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    cursor: default;
    pointer-events: none;
}

/* отключенные prev/next */
.pagy.nav [aria-disabled="true"][aria-label="Previous"], .pagy.nav [aria-disabled="true"][aria-label="Next"] {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

/* многоточие */
.pagy.nav .gap {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
}




/*brief*/
.brief-digest {
    margin-top: 7px;
    background: var(--c-surface);
    border: 1px solid rgba(29,29,31,0.07);
    border-radius: 13px;
    overflow: hidden;
    margin-bottom: 22px;
}

.brief-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 15px;
    font-family: inherit;
}

.brief-head:hover {
    background: var(--bg-soft);
}

.brief-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
}

.brief-ico {
    font-size: 15px;
    line-height: 1;
}

.brief-static {
    cursor: default;
}

.brief-static:hover {
    background: none;
}

.brief-summary {
    margin: 0;
    padding: 2px 15px 15px;
    font-size: 14px;
    line-height: 1.62;
    color: var(--ink-2);
    text-wrap: pretty;
}



/*services*/
/* ---------------- Services tab (App Store-style grid) ---------------- */
.svc-intro {
    margin-top: 26px;
}

.svc-title {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.svc-sub {
    font-size: 14.5px;
    color: var(--ink-2);
    margin-top: 6px;
    text-wrap: pretty;
}

.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
    padding-bottom: 40px;
}

.svc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--c-surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.svc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.svc-card:active {
    transform: scale(0.98);
}

.svc-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

.svc-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.svc-desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-2);
}

@media (min-width: 480px) {
    .svc-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}