* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

.post-page {
    font-family: "Noto Sans", sans-serif;
}

.posts {
    max-width: 900px;
    padding-bottom: 60px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-family: "Noto Sans", sans-serif;
}

.page-title {
    text-align: center;
    margin: 20px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1d;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #48d941, #8af18f);
    border-radius: 4px;
}

.page-title-2 {
    text-align: center;
    margin-top: 120px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.page-title-2 h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1d;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.page-title-2 h1::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, #48d941, #8af18f);
    border-radius: 4px;
}

.posts .post-card {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border: 2px solid #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.posts .post-card img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.posts .post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.posts .post-content {
    padding: 28px 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.posts .post-content h1 {
    font-size: 21px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.4;
    position: relative;
}

.posts .post-content h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #61d465, transparent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.posts .post-card:hover .post-content h1::after {
    width: 100%;
}

.posts .post-content p {
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 22px;
}

.posts .read-more {
    align-self: flex-end;
    background: transparent;
    color: #48d941;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 50px;
    letter-spacing: 0.2px;
    text-decoration: none;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #48d941, #8af18f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.posts .read-more:hover {
    background-image: linear-gradient(90deg, #48d941, #8af18f);
    color: #fff;
}

.view-all-posts .view-all-button {
    align-self: flex-end;
    background: transparent;
    color: #48d941;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 50px;
    letter-spacing: 0.2px;
    text-decoration: none;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #48d941, #8af18f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.view-all-posts .view-all-button:hover {
    background-image: linear-gradient(90deg, #48d941, #8af18f);
    color: #fff;
}

.posts .post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.posts .post-card:hover::before {
    opacity: 1;
}

.view-all-posts {
    text-align: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 60px 0 40px;
    flex-wrap: wrap;
    font-family: "Noto Sans", sans-serif;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    color: #1d1d1d;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.pagination .current {
    border: 1.6px solid #48d941;
    color: #48d941;
    background-color: #f8fff8;
}

.pagination .page-number {
    border: 1.4px solid #dcdcdc;
}

.pagination .page-number:hover {
    border-color: #48d941;
    color: #48d941;
}

.pagination .page-link {
    border: 1.4px solid #dcdcdc;
    color: #1d1d1d;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.pagination .page-link:hover {
    border-color: #48d941;
    color: #48d941;
}

.pagination .dots {
    color: #999;
    font-size: 16px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.pinned-badge {
    display: inline-block;
    background: #ffe18a;
    color: #3a2e00;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Планшеты горизонтальные (до 1024px) */
@media (max-width: 1024px) {
    .page-title-2 {
        margin-top: 80px;
    }

    .posts {
        max-width: 90%;
        gap: 35px;
    }

    .posts .post-card img {
        aspect-ratio: 16 / 5;
    }

    .post-content h1 {
        font-size: 24px;
    }

    .post-content p {
        font-size: 15px;
        margin-right: 90px;
    }

    .read-more {
        font-size: 15px;
        padding: 9px 16px;
    }
}

/* Планшеты вертикальные (до 900px) */
@media (max-width: 900px) {
    .pagination {
        gap: 6px;
        margin: 50px 0 30px;
    }

    .pagination a,
    .pagination span {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .pagination .page-link {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .pagination .dots {
        font-size: 16px;
        width: 50px;
        height: 50px;
    }

    .page-title-2 {
        margin-top: 80px;
    }

    .page-title h1 {
        font-size: 21px;
    }

    .posts {
        gap: 30px;
    }

    .posts .post-card img {
        aspect-ratio: 16 / 5;
    }

    .post-content h1 {
        font-size: 24px;
    }

    .post-content p {
        font-size: 15px;
        margin-right: 80px;
    }

    .read-more {
        font-size: 15px;
    }
}

/* Смартфоны большие (до 768px) */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
        margin: 40px 0 20px;
    }

    .pagination a,
    .pagination span {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .pagination .page-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .pagination .dots {
        font-size: 16px;
        width: 45px;
        height: 45px;
    }

    .page-title-2 {
        margin-top: 80px;
    }

    .page-title h1 {
        font-size: 21px;
    }

    .posts {
        padding-bottom: 50px;
        gap: 25px;
    }

    .posts .post-card img {
        aspect-ratio: 16 / 5;
    }

    .post-content {
        padding: 20px 18px 60px;
    }

    .post-content h1 {
        font-size: 15px;
    }

    .post-content p {
        font-size: 15px;
        margin-right: 0;
    }

    .read-more {
        position: static;
        display: block;
        margin: 18px 0 0 auto;
        font-size: 15px;
        padding: 9px 16px;
    }
}

/* Смартфоны малые (до 576px) */
@media (max-width: 576px) {
    .pagination {
        gap: 4px;
        margin: 35px 0 15px;
    }

    .pagination a,
    .pagination span {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .pagination .page-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .pagination .dots {
        font-size: 16px;
        width: 45px;
        height: 45px;
    }
    
    .page-title-2 {
        margin-top: 80px;
    }

    .page-title h1 {
        font-size: 21px;
    }

    .posts {
        padding-bottom: 40px;
        gap: 22px;
    }

    .posts .post-card img {
        aspect-ratio: 16 / 5;
    }

    .post-content h1 {
        font-size: 20px;
    }

    .post-content p {
        font-size: 15px;
    }

    .read-more {
        font-size: 15px;
        padding: 8px 14px;
    }
}



@supports (-webkit-touch-callout: none) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        padding-top: env(safe-area-inset-top) !important;
    }

    header {
        margin: 0 !important;
        padding: 0 !important;
    }

    main.post-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .posts {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .page-title-2 {
        margin-top: 20px
    }
}



