@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ============================================
   Pastel Bloom — мягкая светлая тема
   ============================================ */

:root {
    --font: 'Manrope', 'Inter', system-ui, sans-serif;
    --ink: #2c2c32;
    --muted: #5c6573;
    --accent: #ff7da8;
    --accent-2: #8f5bff;
    --surface: #fefcf9;
    --panel: rgba(255, 255, 255, 0.9);
    --card: rgba(255, 255, 255, 0.75);
    --stroke: rgba(44, 44, 50, 0.08);
    --radius-xl: 38px;
    --page-max-width: 1180px;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(135deg, #fff2f7, #edf5ff, #ffffff);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
}

/* ============================================
   Header & Footer
   ============================================ */

.wrap-header,
.wrap-footer {
    border: 1px solid var(--stroke);
    background: var(--panel);
    box-shadow: 0 16px 60px rgba(255, 125, 168, 0.12);
    backdrop-filter: blur(14px);
}


.site-header,
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 36px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-mark {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-weight: 700;
}

.brand-caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-nav {
    display: flex;
    gap: 20px;
    font-weight: 600;
}

.site-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    border-color: var(--accent);
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(143, 91, 255, 0.08);
}

.search input {
    background: transparent;
    border: none;
    font-family: inherit;
    min-width: 220px;
    color: var(--ink);
}

.search button {
    border: none;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: white;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--accent-2);
    font-weight: 600;
}

/* ============================================
   Utilities
   ============================================ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 125, 168, 0.16);
    color: var(--ink);
}

.pill-outline {
    border: 1px solid rgba(143, 91, 255, 0.35);
    background: transparent;
    color: var(--accent-2);
}

.muted,
.description,
.excerpt,
.meta {
    color: var(--muted);
}

.meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin: 12px 0;
}

.btn {
    display: inline-flex;
    border: none;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.load-more {
    display: flex;
}

.load-more-btn {
    margin: 0 auto;
    justify-content: center;
    min-width: 220px;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 22px 44px rgba(143, 91, 255, 0.3);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(143, 91, 255, 0.25);
    color: var(--ink);
}

.see-all,
.back-link,
.read-more {
    color: var(--accent-2);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   Cards & Layout
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 231, 247, 0.8));
}

.hero-feature + .hero-feature {
    margin-top: 20px;
}

.hero-media {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 50px rgba(143, 91, 255, 0.15);
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.highlight-stack {
    border-radius: 32px;
    border: 1px solid var(--stroke);
    background: var(--panel);
    padding: 0;
    overflow: hidden;
}

.highlight-card {
    padding: 22px 26px;
    border-bottom: 1px solid rgba(44, 44, 50, 0.06);
}

.highlight-card:last-child {
    border-bottom: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.category-card,
.article-card,
.search-item {
    padding: 26px;
    border-radius: 34px;
    border: 1px solid var(--stroke);
    background: var(--card);
    box-shadow: 0 18px 50px rgba(44, 44, 50, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.article-card:hover,
.search-item:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 91, 255, 0.35);
}

.article-card a,
.search-item a {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: inherit;
}

.article-card a {
    flex-direction: row;
    align-items: stretch;
}

.cover {
    flex-shrink: 0;
    width: 180px;
}

.cover img {
    border-radius: 26px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.category-list li {
    padding-top: 10px;
    border-top: 1px solid rgba(44, 44, 50, 0.08);
}

.article-header,
.category-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.96);
}

.header-cover img,
.hero-cover img {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
}

.article-body,
.rich-text-block {
    padding: 32px;
    border-radius: 34px;
    border: 1px solid rgba(44, 44, 50, 0.08);
    background: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

/* ============================================
   Error
   ============================================ */

.error {
    padding: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error .panel {
    width: min(860px, 100%);
    border-radius: 40px;
    border: 1px solid rgba(255, 125, 168, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 48px;
    box-shadow: 0 30px 70px rgba(143, 91, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.error .card {
    border-radius: 28px;
    padding: 24px;
    border: 1px dashed rgba(143, 91, 255, 0.25);
    background: rgba(143, 91, 255, 0.06);
}

/* ============================================
   States
   ============================================ */

.loader,
.empty {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(143, 91, 255, 0.25);
    border-top-color: var(--accent);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header,
    .site-footer,
    .hero,
    .article-header,
    .category-hero {
        padding: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .search input {
        min-width: 150px;
    }

    .article-card a {
        flex-direction: column;
    }

    .cover {
        width: 100%;
    }
}

