/* foto-neiro blog — общие стили статей */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-soft: #1a0f1a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-surface: #141420;
    --bg-surface-2: #1e1e2c;
    --glass-border: rgba(255,255,255,0.08);
    --text: #e4e4e7;
    --text-dim: #a1a1aa;
    --text-bright: #fafafa;
    --accent: #f9a8d4;
    --accent-dim: rgba(249,168,212,0.12);
    --accent-glow: rgba(249,168,212,0.35);
    --accent-soft: #fce7f3;
    --gold: #fbbf24;
    --gold-dim: rgba(251,191,36,0.12);
    --gold-glow: rgba(251,191,36,0.3);
    --violet: #c4b5fd;
    --violet-dim: rgba(196,181,253,0.12);
    --violet-glow: rgba(196,181,253,0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', sans-serif;
    --font-display: 'Onest', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--violet-glow), transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-soft); }

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
}
.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-bright);
}
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #0a0a0f;
    font-weight: 800;
    box-shadow: 0 0 20px var(--accent-glow);
}
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text); }

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.article__hero {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 1536/1024;
    background: var(--bg-soft);
}
.article__hero-img {
    width: 100%;
    height: auto;
    display: block;
}
.placeholder-hero {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-soft), rgba(249,168,212,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.article__meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.article__tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 999px;
}

.article h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.tldr {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-dim), rgba(251,191,36,0.04));
    border: 1px solid rgba(249,168,212,0.2);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
.tldr h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    padding: 0;
}
.tldr ul { padding-left: 20px; margin-bottom: 0; }
.tldr li { margin-bottom: 6px; color: var(--text); }

.toc {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
}
.toc h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    padding: 0;
}
.toc ol { padding-left: 20px; margin-bottom: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

.article h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.article h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 32px 0 12px;
    scroll-margin-top: 80px;
}
.article p { margin-bottom: 16px; }
.article strong { color: var(--text-bright); font-weight: 600; }
.article ul, .article ol { margin-bottom: 16px; padding-left: 24px; }
.article li { margin-bottom: 8px; }

.article pre {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--accent-soft);
}

.article code:not(pre code) {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-surface-2);
    color: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--glass-border);
}

.table-wrap {
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}
th {
    background: var(--bg-surface);
    color: var(--text-bright);
    text-align: left;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-display);
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    vertical-align: top;
}
tr:last-child td { border-bottom: none; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.cta-mid {
    margin: 40px 0;
    padding: 28px;
    background: linear-gradient(135deg, rgba(249,168,212,0.08), rgba(251,191,36,0.05));
    border: 1px solid rgba(249,168,212,0.2);
    border-radius: var(--radius);
    text-align: center;
}
.cta-mid h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.cta-mid p { color: var(--text-dim); margin-bottom: 16px; }
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #0a0a0f;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s;
    box-shadow: 0 0 30px var(--accent-glow);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--accent-glow);
    color: #0a0a0f;
}

.faq-item {
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
}
.faq-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-bright);
    margin: 0 0 8px;
}
.faq-item p { color: var(--text); margin-bottom: 0; }

.related {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}
.related h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    border-bottom: none;
    padding: 0;
}
.related ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.related li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}
.related li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.footer {
    border-top: 1px solid var(--glass-border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer a { color: var(--accent); }

@media (max-width: 640px) {
    .breadcrumb { display: none; }
    .article { padding: 24px 16px 60px; }
    .article h2 { font-size: 1.25rem; }
    .placeholder-hero { font-size: 1.3rem; }
}
