/* Внутренние страницы: блог, статья, политика, 404.
   Облик родной: те же цвета, радиусы и шрифт, что на главной (style.css). */

:root {
    /* кривая из кита сети (sites/_kit/motion.css) */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.page-top {
    display: flex;
    flex-direction: column;
    background: #EBEAEA;
    padding-bottom: 30px;
}

.logo-link {
    display: inline-flex;
}

.page-main {
    padding: 60px 0 80px;
}

.page-wrap {
    max-width: 1300px;
    margin: 0 auto;
}

.page-narrow {
    max-width: 820px;
    margin: 0 auto;
}

.crumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.crumbs a {
    color: #2760AB;
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #252528;
    line-height: 1.15;
    margin-bottom: 15px;
}

.page-lead {
    font-size: 20px;
    line-height: 1.5;
    color: #252528;
    margin-bottom: 30px;
    max-width: 981px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.article-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 35px;
}

/* Текст статьи */
.prose {
    font-size: 18px;
    line-height: 1.65;
    color: #252528;
}

.prose h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #252528;
    margin: 45px 0 15px;
}

.prose p {
    margin-bottom: 18px;
}

.prose ul {
    margin: 0 0 22px 22px;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: #2760AB;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose figure {
    margin: 30px 0;
}

.prose figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.prose figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.figure-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.figure-row.three {
    grid-template-columns: repeat(3, 1fr);
}

.table-scroll {
    overflow-x: auto;
    margin: 25px 0;
}

.prose table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.45;
}

.prose th,
.prose td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #D9E2E6;
}

.prose thead th {
    background: #EEF4F6;
    font-weight: 700;
}

.prose tbody th {
    font-weight: 700;
    white-space: nowrap;
}

/* Призыв в конце статьи: тот же синий блок, что на главной */
.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 50px;
    padding: 35px 40px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(0deg, #2760AB 0%, #2760AB 100%), radial-gradient(98.25% 88.94% at 50.09% 52.26%, #0F69E0 0%, #2760AB 99.04%), #2760AB;
}

.article-cta-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 8px;
}

.article-cta-text {
    font-size: 18px;
    margin: 0;
}

.article-cta .btn {
    flex-shrink: 0;
}

/* Лента блога */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #EEF4F6;
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.4s var(--ease-out-expo);
}

@media (hover: hover) {
    .blog-card:hover {
        transform: translateY(-8px);
    }

    .blog-card:hover .blog-card-image img {
        transform: scale(1.05);
    }
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out-expo);
}

.blog-card-content {
    padding: 22px 22px 30px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #2B2B29;
    margin-bottom: 10px;
}

.blog-card-text {
    font-size: 16px;
    line-height: 1.5;
    color: #2B2B29;
    margin-bottom: 14px;
}

.blog-card-meta {
    font-size: 14px;
    color: #666;
}

.more-title {
    font-size: 28px;
    font-weight: 700;
    color: #252528;
    margin: 60px 0 0;
}

.notfound {
    text-align: center;
    padding: 40px 0;
}

.notfound .page-lead {
    margin-left: auto;
    margin-right: auto;
}

.notfound-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.notfound-buttons .btn-secondary {
    border-color: #2760AB;
    color: #2760AB;
}

.notfound-buttons .btn-secondary:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img {
        transition: none;
    }
}

@media (min-width: 768px) and (max-width: 1324px) {
    .page-top,
    .page-main {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-top {
        padding-bottom: 0;
    }

    .page-main {
        padding: 35px 17px 50px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-lead {
        font-size: 17px;
    }

    .article-cover {
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .prose {
        font-size: 16px;
    }

    .prose h2 {
        font-size: 22px;
        margin: 35px 0 12px;
    }

    .prose figure img {
        border-radius: 12px;
    }

    .figure-row.three {
        gap: 8px;
    }

    .article-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .article-cta-title {
        font-size: 20px;
    }

    .article-cta-text {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .blog-card-title {
        font-size: 19px;
    }

    .more-title {
        font-size: 22px;
        margin-top: 45px;
    }
}
