/* =================================================
   THEME — Dark editorial, bold accent
   Полностью другая палитра и типографика
================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --ink: #0a0a0a;
    --ink-light: #f5f5f5;
    --muted: #737373;
    --muted-light: #a3a3a3;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: #e5e5e5;
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #171717;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-light);
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    display: block;
}

/* Category page head */
.category-head {
    margin: 24px 0 48px;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent);
}

.category-head::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.category-title {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-light);
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.category-sub {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink-light);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
    color: var(--muted-light);
}

small {
    font-size: 0.875em;
    color: var(--muted);
}

strong {
    font-weight: 700;
}

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

a:hover {
    text-decoration: underline;
}

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

figure { margin: 0; }

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
