/* === Golos Text via Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;900&display=swap');

/* === CSS Variables === */
:root {
    --red:       #D12B2B;
    --red-dark:  #A81F1F;
    --red-soft:  #FEF2F2;
    --red-mid:   #FCA5A5;
    --dark:      #111827;
    --text:      #1F2937;
    --muted:     #6B7280;
    --line:      #E5E7EB;
    --bg:        #F7F7F7;
    --card:      #FFFFFF;
    --radius:    16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.10);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--red-dark); }

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

h1, h2, h3, h4 { line-height: 1.2; margin-top: 0; font-weight: 700; }

p { margin-top: 0; }

ul, ol { padding-left: 22px; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ===============================
   HEADER
================================= */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    flex-shrink: 0;
    font-weight: 700;
}

.logo:hover { color: var(--dark); }

.logo-image {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.3px;
    line-height: 1;
    color: var(--dark);
}

.logo-text small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: background .15s, color .15s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--red-soft);
    color: var(--red);
}

/* Header search */
.header-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 50px;
    padding: 0 6px 0 14px;
    gap: 6px;
    transition: border-color .2s, box-shadow .2s;
}

.header-search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209,43,43,.10);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    width: 180px;
    padding: 8px 0;
    color: var(--text);
}

.header-search input::placeholder { color: var(--muted); }

.header-search button {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.header-search button:hover { background: var(--red-dark); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text);
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all .2s;
}

/* ===============================
   HERO SECTION
================================= */
.hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 56px 0 48px;
}

.hero-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-soft);
    color: var(--red-dark);
    border: 1px solid var(--red-mid);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: .2px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: -.5px;
    margin-bottom: 16px;
    color: var(--dark);
}

.hero h1 .accent { color: var(--red); }

.hero-lead {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Search bar */
.hero-search {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-search:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(209,43,43,.12), var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    padding: 18px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    min-width: 0;
}

.hero-search input::placeholder { color: var(--muted); }

.hero-search button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search button:hover { background: var(--red-dark); }

/* Hero stats strip */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.stat-sep {
    width: 1px;
    background: var(--line);
    align-self: stretch;
}

/* ===============================
   SECTIONS
================================= */
.section {
    padding: 48px 0;
}

.section + .section {
    padding-top: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head-left h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--dark);
}

.section-head-left p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.section-head a {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--red);
    border-bottom: 1px dashed var(--red-mid);
    padding-bottom: 1px;
    flex-shrink: 0;
}

.section-head a:hover { border-color: var(--red); }

/* ===============================
   CATEGORY CARDS
================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    padding: 24px 20px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    opacity: 0;
    transition: opacity .18s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red-mid);
    color: inherit;
}

.category-card:hover::before { opacity: 1; }

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 700;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--dark);
    line-height: 1.3;
}

.category-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    background: var(--red-soft);
    padding: 3px 9px;
    border-radius: 50px;
}

/* ===============================
   POST CARDS
================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red-mid);
    color: inherit;
}

.post-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--dark);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.meta {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

/* Tag / Badge */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--red-soft);
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1;
}

/* ===============================
   PAGE WRAP & ARTICLE
================================= */
.page-wrap {
    padding: 40px 0 64px;
}

.page-head {
    margin-bottom: 28px;
}

.page-head h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
}

.page-head p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

/* Article */
.article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 36px 40px;
}

.article h1 {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

/* Hero image inside article */
.article-hero {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    background: #f3f4f6;
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.article-body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--dark);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--dark);
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body a {
    color: var(--red);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.article-body a:hover { text-decoration-style: solid; }

.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--red);
    background: var(--red-soft);
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-style: italic;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 15px;
}

.article-body table th,
.article-body table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}

.article-body table th {
    background: #F8FAFC;
    font-weight: 700;
    color: var(--dark);
}

.article-body table tr:nth-child(even) td { background: #FAFAFA; }

/* Sidebar */
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.sidebar-list a:hover { color: var(--red); }

/* Content card (sitemap etc) */
.content-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 24px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.content-card h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.content-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.content-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.content-card ul li:last-child { border-bottom: none; }

.content-card ul li a {
    font-size: 14px;
    color: var(--text);
}

.content-card ul li a:hover { color: var(--red); }

/* ===============================
   SEARCH PAGE
================================= */
.search-box {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    transition: border-color .2s;
}

.search-box:focus-within { border-color: var(--red); }

.search-box input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    min-width: 0;
}

.search-box button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}

.search-box button:hover { background: var(--red-dark); }

.helper, .search-empty, .lead {
    color: var(--muted);
    font-size: 15px;
}

/* ===============================
   BUTTONS
================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, transform .1s;
    text-decoration: none;
}

.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-secondary {
    background: #F3F4F6;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover { background: #E5E7EB; color: var(--text); }

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

/* ===============================
   PAGINATION
================================= */
.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--text);
    transition: background .15s, border-color .15s, color .15s;
}

.pagination a:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ===============================
   404
================================= */
.not-found {
    padding: 100px 0;
    text-align: center;
}

.not-found-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 16px;
}

.not-found h1 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
}

.not-found p {
    color: var(--muted);
    margin-bottom: 28px;
}

/* ===============================
   CATALOG PAGE (/sitemap/)
================================= */
.catalog-page {
    padding: 40px 0 60px;
}

.catalog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.catalog-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 6px;
    color: var(--dark);
}

.catalog-title-cat { color: var(--red); }
.catalog-title em { font-style: normal; color: var(--red); }

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

/* Search bar inside catalog */
.catalog-search {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 50px;
    padding: 0 6px 0 18px;
    gap: 8px;
    flex-shrink: 0;
    transition: border-color .2s;
    width: 320px;
    max-width: 100%;
}

.catalog-search:focus-within {
    border-color: var(--red);
}

.catalog-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 10px 0;
    outline: none;
    font-family: inherit;
    color: var(--text);
    min-width: 0;
}

.catalog-search button {
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
}

.catalog-search button:hover { background: var(--red-dark); }

.catalog-search-clear {
    color: var(--muted);
    font-size: 14px;
    padding: 4px;
    text-decoration: none;
    transition: color .15s;
}
.catalog-search-clear:hover { color: var(--red); }

/* Category filter chips */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--line);
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.cat-chip:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-soft);
}

.cat-chip.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.cat-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,.1);
}

.cat-chip.active span { background: rgba(255,255,255,.25); }

/* Article grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.catalog-empty p { font-size: 16px; margin-bottom: 20px; }

/* ===============================
   ALL CATEGORIES GRID (homepage)
================================= */
.all-cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.all-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .15s, background .15s, color .15s;
    text-decoration: none;
}

.all-cat-link:hover {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

.all-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: var(--line);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.all-cat-link:hover .all-cat-count {
    background: rgba(209,43,43,.15);
    color: var(--red);
}

/* ===============================
   FOOTER
================================= */
.site-footer {
    margin-top: 60px;
    background: var(--dark);
    color: #9CA3AF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-text {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.footer-logo-accent {
    color: var(--red);
}

.footer-logo-dot {
    font-size: 22px;
    font-weight: 500;
    color: #6B7280;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6B7280;
    margin: 0;
}

.footer-col h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #fff;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li + li { margin-top: 10px; }

.footer-col a {
    font-size: 14px;
    color: #9CA3AF;
    transition: color .15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: #6B7280;
}

.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #fff; }

/* ===============================
   ADMIN
================================= */
.admin-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.admin-card {
    width: min(100%, 520px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.admin-card h1 { margin-top: 0; font-size: 24px; }

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.admin-form input:focus,
.admin-form select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209,43,43,.10);
}

.admin-alert {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    font-size: 14px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.admin-stat {
    padding: 20px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid var(--line);
    text-align: center;
}

.admin-stat strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 4px;
}

.admin-stat span { font-size: 13px; color: var(--muted); }

/* ===============================
   BREADCRUMBS
================================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs li:last-child { color: var(--text); font-weight: 500; }

/* ===============================
   MISC UTILITIES
================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav,
    .header-search {
        display: none;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        border-bottom: 2px solid var(--line);
        padding: 12px 16px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,.10);
    }

    .main-nav.open a { padding: 12px 14px; border-radius: 10px; }

    .topbar { position: relative; flex-wrap: wrap; }

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

    .hero { padding: 36px 0 32px; }
    .hero h1 { font-size: clamp(26px, 7vw, 38px); }
    .hero-lead { font-size: 16px; }

    .hero-search { border-radius: 12px; }
    .hero-search input { padding: 14px 16px; }
    .hero-search button { padding: 0 18px; font-size: 15px; }

    .hero-stats { gap: 20px; }
    .stat-sep { display: none; }
    .stat-item strong { font-size: 22px; }

    .article { padding: 22px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: unset; }
    .footer-bottom { flex-direction: column; text-align: center; }

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

    /* catalog */
    .catalog-head { flex-direction: column; }
    .catalog-search { width: 100%; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-title { font-size: 26px; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .hero-search { flex-direction: column; border-radius: 12px; }
    .hero-search button { padding: 14px; text-align: center; justify-content: center; }
    .search-box { flex-direction: column; }
    .search-box button { padding: 14px; }

    /* catalog */
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-title { font-size: 22px; }

    /* about */
    .about-hero-inner { flex-direction: column; text-align: center; }
    .about-avatar-wrap { align-items: center; }
    .about-links { justify-content: center; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .about-stat-sep { display: none; }
    .about-content-grid { grid-template-columns: 1fr; }
    .about-cta-inner { flex-direction: column; gap: 24px; }
    .about-cta-form { max-width: 100%; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(209,43,43,.18) 0%, transparent 70%);
    pointer-events: none;
}
.about-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}
.about-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.about-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, #ff6b35 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(209,43,43,.4);
}
.about-avatar-initials {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.about-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    background: rgba(255,255,255,.07);
    padding: 4px 12px;
    border-radius: 20px;
}
.about-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50% { opacity: .4; }
}
.about-hero-text { flex: 1; }
.about-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}
.about-name {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.1;
}
.about-role {
    font-size: 16px;
    color: #9ca3af;
    margin: 0 0 20px;
}
.about-bio {
    font-size: 17px;
    color: #d1d5db;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 0 28px;
}
.about-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.about-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    background: var(--red);
    color: #fff;
}
.about-link-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.about-link-btn--outline {
    background: rgba(255,255,255,.08);
    color: #d1d5db;
    border: 1px solid rgba(255,255,255,.15);
}
.about-link-btn--outline:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Stats bar */
.about-stats-bar {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 28px 0;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: center;
    gap: 0;
}
.about-stat {
    text-align: center;
    padding: 0 40px;
}
.about-stat-num {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.about-stat-label {
    font-size: 13px;
    color: #6b7280;
}
.about-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.1);
}

/* Content cards */
.about-content {
    padding: 64px 0;
    background: var(--bg);
}
.about-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.about-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: box-shadow .2s;
}
.about-card:hover { box-shadow: var(--shadow-md); }
.about-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}
.about-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--dark);
}
.about-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 10px;
}
.about-card p:last-child { margin-bottom: 0; }
.about-list {
    list-style: none;
    padding: 0; margin: 0;
}
.about-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
    content: '✓';
    color: var(--red);
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA */
.about-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    padding: 56px 0;
}
.about-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.about-cta-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.about-cta-text p {
    font-size: 15px;
    color: #9ca3af;
    margin: 0;
}
.about-cta-form {
    display: flex;
    gap: 8px;
    max-width: 380px;
    width: 100%;
}
.about-cta-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.about-cta-form input::placeholder { color: #6b7280; }
.about-cta-form input:focus { border-color: var(--red); }
.about-cta-form button {
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.about-cta-form button:hover { background: var(--red-dark); }

@media (max-width: 768px) {
    .about-hero { padding: 48px 0 40px; }
    .about-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .about-bio { text-align: left; }
    .about-links { justify-content: center; }
    .about-name { font-size: 36px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-stat { padding: 12px; }
    .about-stat-sep { display: none; }
    .about-stat-num { font-size: 26px; }
    .about-content-grid { grid-template-columns: 1fr; }
    .about-cta-inner { flex-direction: column; gap: 24px; }
    .about-cta-form { max-width: 100%; }
    .about-cta-text { text-align: center; }
}

/* ═══════════════════════════════════════════════════
   CATALOG v2 — sidebar layout
═══════════════════════════════════════════════════ */
.cat2-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px 60px;
    min-height: 70vh;
}

/* ── Sidebar ─────────────────────────────────────── */
.cat2-side {
    width: 240px;
    flex-shrink: 0;
    padding: 28px 0 28px;
}
.cat2-side-inner {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.cat2-side-inner::-webkit-scrollbar { width: 4px; }
.cat2-side-inner::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.cat2-side-search { margin-bottom: 20px; }
.cat2-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.cat2-search-ico {
    position: absolute;
    left: 10px;
    color: #9ca3af;
    pointer-events: none;
}
.cat2-search-input {
    width: 100%;
    padding: 9px 32px 9px 34px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    color: var(--dark);
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.cat2-search-input:focus { border-color: var(--red); }
.cat2-search-clear {
    position: absolute;
    right: 8px;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.cat2-search-clear:hover { color: var(--red); }
.cat2-search-btn {
    width: 100%;
    padding: 9px 0;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.cat2-search-btn:hover { background: var(--red-dark); }

.cat2-side-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.cat2-nav { display: flex; flex-direction: column; gap: 1px; }
.cat2-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 13.5px;
    transition: background .15s, color .15s;
}
.cat2-nav-item:hover { background: #fef2f2; color: var(--red); }
.cat2-nav-item.active {
    background: var(--red);
    color: #fff;
    font-weight: 600;
}
.cat2-nav-item.active .cat2-nav-cnt { background: rgba(255,255,255,.25); color: #fff; }
.cat2-nav-name { flex: 1; line-height: 1.3; }
.cat2-nav-cnt {
    flex-shrink: 0;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.cat2-show-more {
    background: none;
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    color: #6b7280;
    font-size: 12.5px;
    padding: 8px 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-top: 4px;
    transition: border-color .2s, color .2s;
}
.cat2-show-more:hover { border-color: var(--red); color: var(--red); }

/* ── Divider ─────────────────────────────────────── */
.cat2-divider {
    width: 1px;
    background: var(--line);
    margin: 0 28px;
    align-self: stretch;
    flex-shrink: 0;
}

/* ── Main area ───────────────────────────────────── */
.cat2-main {
    flex: 1;
    min-width: 0;
    padding: 28px 0 0 28px;
    border-left: 1px solid var(--line);
}

.cat2-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}
.cat2-topbar-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat2-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}
.cat2-count {
    font-size: 13px;
    color: #9ca3af;
}

.cat2-sort { display: flex; gap: 2px; }
.cat2-sort-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .15s;
}
.cat2-sort-btn:hover { color: var(--red); border-color: var(--line); }
.cat2-sort-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    font-weight: 600;
}

.cat2-breadcrumb {
    font-size: 12.5px;
    color: #9ca3af;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cat2-breadcrumb a { color: #6b7280; text-decoration: none; }
.cat2-breadcrumb a:hover { color: var(--red); }
.cat2-breadcrumb span { color: var(--dark); font-weight: 500; }
.cat2-reset {
    margin-left: 8px;
    padding: 2px 8px;
    background: #fef2f2;
    color: var(--red) !important;
    border-radius: 4px;
    font-size: 12px;
}

/* ── Article list ────────────────────────────────── */
.cat2-list { display: flex; flex-direction: column; gap: 12px; }

.cat2-item {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.cat2-item:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(209,43,43,.08);
    transform: translateY(-1px);
}

.cat2-item-thumb {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
}
.cat2-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.cat2-item:hover .cat2-item-thumb img { transform: scale(1.04); }

.cat2-item-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cat2-item-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--red);
}
.cat2-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.cat2-item-exc {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.cat2-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}
.cat2-item-date { font-size: 12px; color: #9ca3af; }
.cat2-item-read { font-size: 12.5px; font-weight: 600; color: var(--red); }

/* ── Empty state ─────────────────────────────────── */
.cat2-empty {
    text-align: center;
    padding: 80px 20px;
}
.cat2-empty-ico { font-size: 48px; margin-bottom: 16px; }
.cat2-empty p { font-size: 16px; color: #6b7280; margin-bottom: 20px; }
.cat2-reset-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* ── Pagination ──────────────────────────────────── */
.cat2-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.cat2-page-btn {
    padding: 9px 18px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.cat2-page-btn:hover { border-color: var(--red); color: var(--red); }
.cat2-page-nums { display: flex; align-items: center; gap: 4px; }
.cat2-page-num {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--dark);
    border: 1.5px solid transparent;
    transition: all .15s;
}
.cat2-page-num:hover { border-color: var(--line); }
.cat2-page-num.active {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    border-color: var(--red);
}
.cat2-dots { color: #9ca3af; font-size: 14px; padding: 0 4px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .cat2-side { width: 200px; }
    .cat2-main { padding-left: 20px; }
    .cat2-item-thumb { width: 120px; }
}
@media (max-width: 680px) {
    .cat2-wrap { flex-direction: column; gap: 0; padding: 0 12px 40px; }
    .cat2-side {
        width: 100%;
        padding: 16px 0 0;
    }
    .cat2-side-inner {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .cat2-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .cat2-nav-item {
        padding: 6px 12px;
        font-size: 13px;
        gap: 4px;
    }
    .cat2-show-more { width: auto; }
    .cat2-main {
        padding: 20px 0 0;
        border-left: none;
        border-top: 1px solid var(--line);
        margin-top: 16px;
    }
    .cat2-item-thumb { width: 100px; }
    .cat2-item-body { padding: 12px 14px; }
    .cat2-item-title { font-size: 14px; }
    .cat2-item-exc { display: none; }
    .cat2-side-search { display: flex; gap: 8px; }
    .cat2-search-wrap { flex: 1; margin-bottom: 0; }
    .cat2-search-btn { width: auto; padding: 9px 14px; }
}
