/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: #fafaf7;
    color: #1a1a1a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #c1392a; }

/* === Layout === */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow {
    max-width: 720px;
}

/* === Header === */
.site-header {
    border-bottom: 1px solid #e8e6e0;
    background: #fafaf7;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand-tagline {
    font-size: 11px;
    color: #5b5b5b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.site-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #5b5b5b;
}
.site-nav a:hover { color: #1a1a1a; }
@media (max-width: 720px) {
    .site-nav { display: none; }
}

/* === Hero === */
.hero {
    padding: 64px 0 32px;
    border-bottom: 1px solid #e8e6e0;
}
.hero-title {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(28px, 4.4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 8px 0 16px;
    max-width: 800px;
}
.hero-sub {
    font-size: 18px;
    color: #5b5b5b;
    max-width: 640px;
    margin: 0;
}

/* === Kicker (категория над заголовком) === */
.kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c1392a;
    font-weight: 600;
    margin: 0 0 8px;
}

/* === Featured (главная статья) === */
.featured {
    padding: 48px 0;
}
.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.featured-cover {
    aspect-ratio: 16 / 7;
    background-size: cover;
    background-position: center;
    background-color: #efece3;
}
.featured-cover--placeholder {
    background: linear-gradient(135deg, #efece3, #d8d3c4);
}
.featured-body {
    padding: 28px 32px 32px;
}
.featured-title {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 8px 0 12px;
}
.featured-lead {
    font-size: 16.5px;
    color: #3a3a3a;
    margin: 0 0 16px;
    line-height: 1.6;
}

/* === Section titles === */
.section-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 24px;
}
.section-title {
    font-family: "Lora", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}
.section-meta,
.category-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6f6f6f;
    letter-spacing: 0.01em;
}
.grid-section {
    padding: 32px 0 80px;
}

/* === Article grid === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 920px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .article-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.article-cover {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #efece3;
}
.article-cover--placeholder {
    background: linear-gradient(135deg, #efece3, #d8d3c4);
}
.article-card-body {
    padding: 18px 20px 22px;
}
.article-card-title {
    font-family: "Lora", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 6px 0 10px;
}

/* === Meta line === */
.meta-line {
    font-size: 13px;
    color: #8a8a8a;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.meta-line--post {
    margin-top: 16px;
    font-size: 14px;
}
.dot {
    color: #d4d0c5;
}

/* === Post (статья) === */
.post {
    padding: 48px 0 80px;
}
.post-header {
    text-align: left;
    margin-bottom: 36px;
}
.post-title {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(28px, 4.6vw, 44px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 8px 0 16px;
}
.post-lead {
    font-size: 20px;
    color: #3a3a3a;
    line-height: 1.55;
    margin: 0 0 8px;
    font-weight: 400;
}

.post-cover {
    margin: 0 0 36px;
}
.post-cover img {
    width: 100%;
    border-radius: 4px;
}

.post-body {
    font-size: 18px;
    line-height: 1.75;
    color: #1a1a1a;
}
.post-body h2 {
    font-family: "Lora", Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 40px 0 16px;
}
.post-body h3 {
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
}
.post-body p {
    margin: 0 0 18px;
}
.post-body ul,
.post-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.post-body li {
    margin: 8px 0;
}
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body blockquote {
    border-left: 3px solid #c1392a;
    padding: 4px 0 4px 20px;
    margin: 24px 0;
    color: #3a3a3a;
    font-style: italic;
}

.post-cta {
    margin: 40px 0 24px;
    padding: 24px 28px;
    background: #f4ede1;
    border-radius: 4px;
    border-left: 3px solid #c1392a;
}
.post-cta p {
    margin: 0;
    font-family: "Lora", Georgia, serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.45;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8e6e0;
}
.tag {
    font-size: 13px;
    color: #5b5b5b;
    background: #efece3;
    padding: 4px 10px;
    border-radius: 999px;
}

/* === Related === */
.related {
    padding: 32px 0 80px;
    border-top: 1px solid #e8e6e0;
}

/* === Static pages (about, contacts) === */
.static-page {
    padding: 48px 0 80px;
}
.static-page h1 {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.static-page h2 {
    font-family: "Lora", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px;
}
.static-page p {
    margin: 0 0 16px;
}
.static-page ul {
    padding-left: 24px;
}
.static-page li {
    margin: 8px 0;
}
.static-page .lede {
    font-size: 19px;
    color: #3a3a3a;
    line-height: 1.6;
    margin-bottom: 24px;
}
.static-page a {
    color: #c1392a;
    border-bottom: 1px solid currentColor;
}
.static-page a:hover {
    color: #1a1a1a;
}

/* === Category head === */
.category-head {
    padding: 64px 0 24px;
    border-bottom: 1px solid #e8e6e0;
}
.category-title {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 600;
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}
.category-desc {
    font-size: 17px;
    color: #5b5b5b;
    max-width: 640px;
    margin: 0;
}

/* === Footer === */
.site-footer {
    border-top: 1px solid #e8e6e0;
    background: #f4f1e8;
    padding: 48px 0 36px;
    margin-top: 80px;
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 720px) {
    .footer-row { grid-template-columns: 1fr; }
}
.footer-name {
    font-family: "Lora", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
}
.footer-tagline {
    font-size: 13px;
    color: #5b5b5b;
    margin-top: 4px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 14px;
    color: #5b5b5b;
}
@media (max-width: 720px) {
    .footer-nav { align-items: flex-start; }
}
.footer-copy {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d8d3c4;
    font-size: 13px;
    color: #8a8a8a;
    max-width: 640px;
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 48px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e8e6e0;
    font-size: 14px;
}
.pagination-link {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #d8d3c4;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pagination-link:hover {
    border-color: #c1392a;
    background: #faf3f0;
}
.pagination-disabled {
    color: #b0b0b0;
    background: #f4ede1;
    cursor: default;
    pointer-events: none;
}
.pagination-status {
    color: #5b5b5b;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 580px) {
    .pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pagination-link { padding: 12px 16px; }
}
