/* AIDO — общий стиль для страниц статей */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #0b1320 url('/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    position: relative;
    padding: 2rem 1.5rem 4rem;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.55) 0%, rgba(8, 12, 24, 0.88) 100%);
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

/* ── Навигация ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.nav a.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: #4ade80; border-bottom-color: #4ade80; }
/* Текущий раздел. Стиль завязан на aria-current, а не на отдельный класс:
 * так состояние раздела доступно и скринридеру. Добавлено 25.09.2026
 * вместе с переходом сайта на многостраничную структуру. */
.nav-links a[aria-current="page"] {
    color: #ffffff;
    border-bottom-color: #4ade80;
}

/* ── Карточки ── */
.card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
    margin-bottom: 2rem;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Типографика ── */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2.25rem 0 0.9rem;
    color: #ffffff;
}
h2:first-child { margin-top: 0; }
h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.6rem;
    color: #4ade80;
}
p { font-size: 1.05rem; line-height: 1.75; color: #dbe4f0; margin-bottom: 1.1rem; }
p.lead { font-size: 1.2rem; color: #e8eef7; }
ul, ol { margin: 0 0 1.25rem 1.4rem; }
li { font-size: 1.05rem; line-height: 1.75; color: #dbe4f0; margin-bottom: 0.5rem; }
strong { color: #ffffff; font-weight: 700; }
a { color: #4ade80; }

.meta {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}
.pill {
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #86efac;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Иллюстрации ── */
figure { margin: 2rem 0; }
figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.6);
}
figcaption {
    font-size: 0.87rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* ── Выделенные блоки ── */
.callout {
    background: rgba(74, 222, 128, 0.08);
    border-left: 3px solid #4ade80;
    border-radius: 0 14px 14px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}
.callout p { margin-bottom: 0; font-size: 1rem; color: #e2e8f0; }
.callout.warn {
    background: rgba(251, 191, 36, 0.08);
    border-left-color: #fbbf24;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}
.mini {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
}
.mini h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7dd3fc;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.mini p { font-size: 0.95rem; margin-bottom: 0; color: #cbd5e1; line-height: 1.6; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
th {
    color: #7dd3fc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
td { color: #dbe4f0; }
tr:last-child td { border-bottom: none; }

/* ── Список статей ── */
.post-list { display: flex; flex-direction: column; gap: 1.25rem; }
.post-item {
    display: block;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 1.75rem;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    backdrop-filter: blur(10px);
}
.post-item:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(15, 23, 42, 0.68);
}
.post-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.6rem;
    text-transform: none;
    letter-spacing: -0.01em;
}
.post-item p { font-size: 0.98rem; color: #cbd5e1; margin-bottom: 0.9rem; line-height: 1.65; }
.post-item .more { color: #4ade80; font-size: 0.9rem; font-weight: 600; }

/* ── CTA ── */
.cta {
    text-align: center;
    background: rgba(74, 222, 128, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 22px;
    padding: 2.25rem;
    margin-top: 2rem;
}
.cta h3 { color: #ffffff; font-size: 1.35rem; margin: 0 0 0.6rem; }
.cta p { color: #cbd5e1; margin-bottom: 1.5rem; }
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #0b1320;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(34, 197, 94, 0.35); }

.back { display: inline-block; margin-top: 1rem; color: #94a3b8; font-size: 0.9rem; text-decoration: none; }
.back:hover { color: #4ade80; }

footer.site-foot {
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 3rem;
    line-height: 1.7;
}
footer.site-foot a { color: #94a3b8; }

@media (max-width: 640px) {
    body { padding: 1.25rem 1rem 3rem; }
    .card { padding: 1.75rem 1.35rem; border-radius: 20px; }
    h2 { font-size: 1.35rem; }
}
