/*
Theme Name: VKabinet Theme
Theme URI: https://vkabinet.kz
Author: vkabinet.kz
Author URI: https://vkabinet.kz
Description: Современная тема для справочника личных кабинетов Казахстана
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vkabinet
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* manrope-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/manrope-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/manrope-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --white:          #ffffff;
    --bg:             #f5f6f8;
    --bg2:            #eef0f4;
    --card:           #ffffff;
    --border:         #e5e7eb;
    --border2:        #d1d5db;
    --text:           #111827;
    --muted:          #6b7280;
    --muted2:         #9ca3af;
    --primary:        #1a56db;
    --primary-dark:   #1e3a8a;
    --primary-light:  #eff6ff;
    --primary-mid:    #bfdbfe;
    --accent:         #f59e0b;
    --accent-light:   #fffbeb;
    --green:          #059669;
    --green-light:    #ecfdf5;
    --red:            #dc2626;
    --red-light:      #fef2f2;
    --purple:         #7c3aed;
    --purple-light:   #f5f3ff;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      14px;
    --radius-xl:      16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { padding-left: 1.4em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.3px;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TOPBAR
   ============================================================ */
.vk-topbar {
    background: var(--primary);
    padding: 7px 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    overflow: hidden;
}
.vk-topbar .vk-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.vk-topbar-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.vk-topbar strong { color: #fff; }
.vk-topbar-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.vk-topbar-links a {
    color: rgba(255,255,255,.7);
    margin-left: 18px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.vk-topbar-links a:hover { color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.vk-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.vk-header-inner {
    display: flex;
    align-items: center;
    height: 66px;
    gap: 0;
}

/* Logo */
.vk-logo {
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: 32px;
}

.vk-logo img {
    height: 78px;
    width: auto;
}

/* ============================================================
   DESKTOP DROPDOWN NAV
   ============================================================ */
.vk-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: visible;
}

/* Top-level list */
.vk-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

/* Every li — needed for positioning dropdowns */
.vk-nav ul li {
    position: relative;
}

/* Top-level links */
.vk-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding: 0 11px;
    white-space: nowrap;
    transition: color .15s, background .15s;
    border-radius: 0;
    position: relative;
}
.vk-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s;
}
.vk-nav > ul > li > a:hover,
.vk-nav > ul > li.current-menu-item > a,
.vk-nav > ul > li.current-menu-ancestor > a {
    color: var(--primary);
    background: var(--primary-light);
}
.vk-nav > ul > li > a:hover::after,
.vk-nav > ul > li.current-menu-item > a::after,
.vk-nav > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Arrow indicator on parent items */
.vk-nav > ul > li.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 4px;
    transition: transform .2s;
    flex-shrink: 0;
    order: 2;
}
.vk-nav > ul > li.menu-item-has-children:hover > a::before {
    transform: rotate(225deg) translateY(-2px);
}

/* ---- FIRST-LEVEL DROPDOWN ---- */
.vk-nav ul .sub-menu {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    position: absolute;
    top: calc(100% + 0);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 1000;
    /* hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    pointer-events: none;
}

/* Show on hover */
.vk-nav ul li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Dropdown links */
.vk-nav ul .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color .15s, background .15s;
    border-radius: 0;
}
.vk-nav ul .sub-menu li a:hover,
.vk-nav ul .sub-menu li.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Divider between groups (optional — every 5th item) */
.vk-nav ul .sub-menu li + li {
    border-top: 1px solid transparent;
}

/* ---- SECOND-LEVEL (nested) DROPDOWN ---- */
.vk-nav ul .sub-menu .sub-menu {
    top: -6px;
    left: calc(100% + 4px);
    right: auto;
    transform: translateX(-4px) translateY(0);
}
.vk-nav ul .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}
/* Arrow on submenu parent items */
.vk-nav ul .sub-menu li.menu-item-has-children > a::after {
    content: '›';
    margin-left: auto;
    font-size: 14px;
    color: var(--muted2);
    line-height: 1;
}
/* Overflow guard: flip submenu to the left if near right edge */
.vk-nav ul .sub-menu li:hover > .sub-menu.flip-left {
    left: auto;
    right: calc(100% + 4px);
    transform: translateX(0) translateY(0);
}

/* Search — compact icon button that expands */
.vk-header-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}

/* The toggle icon button */
.vk-search-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all .15s;
    flex-shrink: 0;
}
.vk-search-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown search panel */
.vk-header-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1000;
}
.vk-header-search-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.vk-header-search-panel svg { color: var(--muted2); flex-shrink: 0; }
.vk-header-search-panel input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
}
.vk-header-search-panel input::placeholder { color: var(--muted2); }
.vk-header-search-panel button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.vk-header-search-panel button[type="submit"]:hover { background: var(--primary-dark); }

/* Mobile menu button */
.vk-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background .15s;
    margin-left: auto;
}
.vk-menu-toggle:hover { background: var(--bg2); }
.vk-menu-toggle svg { display: block; }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.vk-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 998;
    pointer-events: none;
    transition: background .35s;
}
.vk-mobile-overlay.is-open {
    background: rgba(0,0,0,.45);
    pointer-events: all;
}

.vk-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.vk-mobile-menu.is-open { transform: translateX(0); }

a.vk-logo-menu img {
    width: 180px;
    position: relative;
    top: -1px;
}

.vk-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vk-mobile-menu-header .vk-logo { margin: 0; font-size: 20px; }
.vk-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: all .15s;
}
.vk-mobile-close:hover { background: var(--bg2); color: var(--text); }

.vk-mobile-nav {
    flex: 1;
    overflow-y: auto;
}
.vk-mobile-nav ul { list-style: none; padding: 0; margin: 0; }

/* Top-level items */
.vk-mobile-nav > ul > li {
    border-bottom: 1px solid var(--bg2);
}

/* All links */
.vk-mobile-nav ul li a {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.35;
}
.vk-mobile-nav ul li a:hover,
.vk-mobile-nav ul li.current-menu-item > a {
    background: var(--primary-light);
    color: var(--primary);
}

/* Row wrapper for items with children: link + toggle button */
.vk-mobile-nav li.menu-item-has-children {
    position: relative;
}
.vk-mobile-nav li.menu-item-has-children > a {
    padding-right: 52px; /* room for toggle button */
}

/* Toggle button (+/-) */
.vk-mobile-submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 52px;
    height: 45px; /* matches link height */
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .15s, color .15s;
    flex-shrink: 0;
    z-index: 1;
}
.vk-mobile-submenu-toggle:hover { background: var(--bg2); color: var(--primary); }

/* The chevron icon inside toggle */
.vk-mobile-submenu-toggle svg {
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    display: block;
}
.vk-mobile-submenu-toggle.is-open svg {
    transform: rotate(180deg);
}

/* Submenu — hidden by default */
.vk-mobile-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s cubic-bezier(.4,0,.2,1);
}
.vk-mobile-nav .sub-menu.is-open {
    max-height: 800px; /* large enough for any submenu */
}

/* Indentation levels */
.vk-mobile-nav .sub-menu li a {
    padding-left: 36px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.vk-mobile-nav .sub-menu li:last-child > a {
    border-bottom: none;
}
/* 3rd level */
.vk-mobile-nav .sub-menu .sub-menu li a {
    padding-left: 52px;
    font-size: 13px;
    color: var(--muted2);
}

.vk-mobile-search {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.vk-mobile-search form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.vk-mobile-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}
.vk-mobile-search button {
    background: var(--primary);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    color: #fff;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.vk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.vk-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
span.vk-hero-badge-flag-kz {
    width: 20px;
    height: 20px;
    background-size: cover;
    background-image: url(images/flag-kz.svg);
    display: block;
}
.vk-container-seo {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    padding: 30px 30px;
}
.vk-container-seo h2 {
    margin-bottom: 15px;
}
.vk-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 56px 0 60px;
    position: relative;
    overflow: hidden;
}
.vk-hero::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.vk-hero::after {
    content: '';
    position: absolute;
    right: 160px; bottom: -120px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.vk-hero-inner { position: relative; z-index: 1; }
.vk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.vk-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    max-width: 560px;
    margin-bottom: 14px;
    letter-spacing: -1px;
}
.vk-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.75);
    max-width: 460px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.vk-hero-search {
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.vk-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 18px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
    width: 310px;
}
.vk-hero-search input::placeholder { color: var(--muted2); }
.vk-hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px 24px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}
.vk-hero-search button:hover { background: var(--primary-dark); }
.vk-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 24px;
}
.vk-hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.vk-hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-top: 2px;
}
.vk-hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.15);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.vk-section { padding: 44px 0; }
.vk-section + .vk-section { padding-top: 0; }

.vk-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.vk-sec-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}
.vk-sec-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s;
}
.vk-sec-link:hover { gap: 7px; color: var(--primary-dark); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.vk-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.vk-cat-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.vk-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    background: var(--primary);
    transition: opacity .2s;
}
.vk-cat-card:hover {
    border-color: var(--primary-mid);
    box-shadow: 0 6px 24px rgba(26,86,219,.1);
    transform: translateY(-2px);
}
.vk-cat-card:hover::before { opacity: 1; }
.vk-cat-card--green::before { background: var(--green); }
.vk-cat-card--amber::before { background: var(--accent); }
.vk-cat-card--purple::before { background: var(--purple); }
.vk-cat-card--red::before { background: var(--red); }
.vk-cat-card--cyan::before { background: #0891b2; }

.vk-cat-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.vk-cat-icon--blue   { background: var(--primary-light); }
.vk-cat-icon--green  { background: var(--green-light); }
.vk-cat-icon--amber  { background: var(--accent-light); }
.vk-cat-icon--purple { background: var(--purple-light); }
.vk-cat-icon--red    { background: var(--red-light); }
.vk-cat-icon--cyan   { background: #ecfeff; }

.vk-cat-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.vk-cat-count {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* ============================================================
   POSTS LAYOUT
   ============================================================ */
.vk-posts-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* Post card */
.vk-post-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    transition: box-shadow .2s, transform .2s;
}
.vk-post-card:last-child { margin-bottom: 0; }
.vk-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.vk-post-thumb {
    width: 190px;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.vk-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.vk-post-thumb-placeholder {
    font-size: 44px;
    position: relative;
    z-index: 1;
}

.vk-post-content { padding: 18px 20px; flex: 1; min-width: 0; }

.vk-post-cats {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.vk-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
}
.vk-badge--blue   { background: var(--primary-light); color: var(--primary); }
.vk-badge--amber  { background: var(--accent-light); color: #92400e; }
.vk-badge--green  { background: var(--green-light); color: #065f46; }
.vk-badge--purple { background: var(--purple-light); color: #5b21b6; }
.vk-badge--red    { background: var(--red-light); color: #991b1b; }

.vk-post-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color .15s;
}
.vk-post-title:hover { color: var(--primary); }

.vk-post-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vk-post-meta {
     display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted2);
    font-weight: 500;
    flex-wrap: wrap;
    row-gap: 4px;
}
.vk-post-meta-sep { color: var(--border2); }
.vk-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 480px) {
    .vk-post-meta { gap: 6px 12px; }
}
.vk-avatar {
    width: 22px; height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.vk-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.vk-sidebar { }

.vk-widget {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
}
.vk-widget-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg2);
}

.vk-cat-list { list-style: none; padding: 0; margin: 0; }
.vk-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg2);
}
.vk-cat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.vk-cat-list a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .15s;
}
.vk-cat-list a:hover { color: var(--primary); }
.vk-cat-list .vk-cat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-mid);
    flex-shrink: 0;
}
.vk-cat-list .vk-count {
    background: var(--bg);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* CTA widget */
.vk-widget--cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
}
.vk-widget--cta .vk-widget-title { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.15); }
.vk-widget--cta p { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 14px; }
.vk-widget--cta a {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all .15s;
}
.vk-widget--cta a:hover { background: var(--primary-light); }

/* WordPress default widgets */
.widget { margin-bottom: 0; }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.vk-single-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 36px 0 48px;
    align-items: start;
}

/* Critical: grid children must have min-width:0 to prevent overflow */
.vk-single-main,
.vk-single-wrap > * {
    min-width: 0;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content table {
    max-width: 100%;
}

/* Breadcrumb */
.vk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted2);
    font-weight: 600;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.vk-breadcrumb a { color: var(--primary); text-decoration: none; }
.vk-breadcrumb a:hover { color: var(--primary-dark); }
.vk-breadcrumb span.sep { color: var(--border2); }

/* Article */
.vk-article {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.vk-article-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 28px 32px 32px;
}
.vk-article-top .vk-breadcrumb { margin-bottom: 14px; }
.vk-article-top .vk-breadcrumb,
.vk-article-top .vk-breadcrumb a { color: rgba(255,255,255,.7); }
.vk-article-top .vk-breadcrumb a:hover { color: #fff; }
.vk-article-top .vk-breadcrumb .sep { color: rgba(255,255,255,.35); }

.vk-article-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.vk-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
    flex-wrap: wrap;
}
.vk-article-meta .vk-post-author span { color: rgba(255,255,255,.85); }
.vk-article-meta a { color: rgba(255,255,255,.85); }
.vk-article-meta .sep { color: rgba(255,255,255,.3); }

/* Ad widget in single */
.vk-single-ad {
    margin: 0;
}
.vk-single-ad .td-category-header { padding: 0; }

/* ACF info block */
.vk-acf-block {
    margin: 0 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.vk-acf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.vk-acf-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
.vk-acf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vk-acf-thumb-placeholder { font-size: 52px; }

.vk-link-wrap {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vk-link-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.vk-link-row:last-child { border-bottom: none; padding-bottom: 0; }
.vk-link-row .vk-link-label {
    font-weight: 700;
    color: var(--muted);
    min-width: 64px;
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-top: 1px;
}
.vk-link-row a {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.vk-link-row a:hover { color: var(--primary-dark); text-decoration: underline; }
.vk-link-row .vk-phone-val {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

/* Buttons */
.vk-buttons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.vk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 5px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.vk-btn--site {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,86,219,.25);
}
.vk-btn--site:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26,86,219,.35);
    transform: translateY(-1px);
}
.vk-btn--cabinet {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,.25);
}
.vk-btn--cabinet:hover {
    background: #d97706;
    color: #fff;
    box-shadow: 0 6px 20px rgba(245,158,11,.35);
    transform: translateY(-1px);
}

/* Article body */
.vk-article-body {
    padding: 28px 32px 32px;
}

.vk-article-body .entry-content h2 {
    font-size: 1.35rem;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.vk-article-body .entry-content h3 {
    font-size: 1.1rem;
    margin: 22px 0 10px;
}
.vk-article-body .entry-content p {
    font-size: 14.5px;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 16px;
}
.vk-article-body .entry-content ul,
.vk-article-body .entry-content ol {
    margin: 0 0 16px 1.5em;
}
.vk-article-body .entry-content li {
    font-size: 14.5px;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 4px;
}
.vk-article-body .entry-content img {
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.vk-article-body .entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-mid);
}
.vk-article-body .entry-content a:hover { color: var(--primary-dark); }
.vk-article-body .entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 14px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0;
    font-size: 14.5px;
    color: var(--primary-dark);
}
.vk-article-body .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
}
.vk-article-body .entry-content th,
.vk-article-body .entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.vk-article-body .entry-content th {
    background: var(--bg2);
    font-weight: 700;
}
.vk-article-body .entry-content tr:nth-child(even) td { background: var(--bg); }

/* Post footer tags */
.vk-post-tags {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.vk-post-tags .vk-tags-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.vk-post-tags a {
    display: inline-block;
    background: var(--bg2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all .15s;
}
.vk-post-tags a:hover { background: var(--primary-light); color: var(--primary); }

/* Prev / Next navigation */
.vk-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.vk-post-nav-item {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-decoration: none;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vk-post-nav-item:hover { border-color: var(--primary-mid); background: var(--primary-light); }
.vk-post-nav-item--next { text-align: right; }
.vk-post-nav-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vk-post-nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}
.vk-post-nav-item:hover .vk-post-nav-title { color: var(--primary); }

/* ============================================================
   COMMENTS & COMMENT FORM
   ============================================================ */
.vk-comments-wrap {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* Title */
.vk-comments-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}
.vk-comments-title::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.vk-comments-closed {
    color: var(--muted);
    font-size: 13.5px;
    font-style: italic;
    margin-bottom: 20px;
}

/* ---- Comment list ---- */
.vk-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.vk-comment { margin: 0; padding: 0; }

/* Nested replies */
.vk-comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vk-comment-list .children > .vk-comment > .vk-comment-inner {
    margin-left: 56px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-mid);
}

/* Comment inner */
.vk-comment-inner {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--bg2);
    align-items: flex-start;
}
.vk-comment:last-child > .vk-comment-inner { border-bottom: none; }
.children > .vk-comment:last-child > .vk-comment-inner { border-bottom: none; }

/* Avatar */
.vk-comment-avatar { flex-shrink: 0; }
.vk-comment-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    border: 2px solid var(--border);
}
.vk-comment-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}

/* Reply nested — smaller avatar */
.vk-comment--reply .vk-comment-avatar-img,
.vk-comment--reply .vk-comment-avatar-fallback {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

/* Body */
.vk-comment-body { flex: 1; min-width: 0; }

/* Meta row */
.vk-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.vk-comment-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vk-comment-meta-right { flex-shrink: 0; }

.vk-comment-author {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}
.vk-comment-date {
    font-size: 12px;
    color: var(--muted2);
    font-weight: 500;
}

/* Reply link */
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary-mid);
    background: var(--primary-light);
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}
.comment-reply-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.comment-reply-link::before {
    content: '↩';
    font-size: 11px;
}

/* Pending notice */
.vk-comment-pending {
    font-size: 12px;
    color: #92400e;
    background: var(--accent-light);
    border: 1px solid #fcd34d;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

/* Comment text */
.vk-comment-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
}
.vk-comment-text p { margin-bottom: 6px; }
.vk-comment-text p:last-child { margin-bottom: 0; }
.vk-comment-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Comment form ---- */
.vk-form-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    letter-spacing: -0.2px;
}

.vk-cancel-reply {
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
}
.vk-cancel-reply a {
    color: var(--muted);
    font-size: 12.5px;
    text-decoration: none;
    transition: color .15s;
}
.vk-cancel-reply a:hover { color: var(--red); }

/* Logged-in notice */
.vk-comment-form .logged-in-as {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--bg2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    line-height: 1.6;
}
.vk-comment-form .logged-in-as a { color: var(--primary); }

/* Form fields — two-column for name+email */
.vk-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.vk-comment-form .logged-in-as,
.vk-comment-form .vk-form-row:not(.vk-form-row--half),
.vk-comment-form .vk-form-submit,
.vk-comment-form #respond,
.vk-comment-form p.logged-in-as {
    grid-column: 1 / -1;
}
.vk-form-row--half { grid-column: span 1; }

@media (max-width: 640px) {
    .vk-comment-form { grid-template-columns: 1fr; }
    .vk-form-row--half { grid-column: 1 / -1; }
}

/* Row */
.vk-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.vk-comment-form label,
.vk-form-row label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.required { color: var(--red); margin-left: 2px; }

/* Inputs & textarea */
.vk-comment-form input[type="text"],
.vk-comment-form input[type="email"],
.vk-comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    line-height: 1.5;
    resize: vertical;
}
.vk-comment-form input::placeholder,
.vk-comment-form textarea::placeholder { color: var(--muted2); }
.vk-comment-form input:focus,
.vk-comment-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,86,219,.07);
}
.vk-comment-form textarea { min-height: 110px; }

/* Submit row */
.vk-form-submit {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.vk-comment-form .vk-btn { padding: 12px 28px; font-size: 14px; }

/* WordPress wraps some fields in <p> — reset */
.vk-comment-form > p { margin: 0; grid-column: 1 / -1; }

/* Nested comment avatar adjustment */
.children .vk-comment-inner { padding: 0; border-bottom: none; }
.children .vk-comment { margin-bottom: 4px; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.vk-archive-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 40px 0;
    margin-bottom: 0;
}
.vk-archive-header h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.vk-archive-header .vk-archive-desc {
    color: rgba(255,255,255,.75);
    font-size: 14px;
}
.vk-archive-meta {
    font-size: 12.5px;
    color: rgba(255,255,255,.6);
    margin-top: 8px;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.vk-search-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
    margin-bottom: 0;
}
.vk-search-header h1 { font-size: 1.4rem; }
.vk-search-header h1 em { font-style: normal; color: var(--primary); }

.vk-search-form-large {
    display: flex;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    max-width: 560px;
    overflow: hidden;
    margin-top: 16px;
    transition: border-color .2s;
}
.vk-search-form-large:focus-within { border-color: var(--primary); }
.vk-search-form-large input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    background: none;
    color: var(--text);
}
.vk-search-form-large button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 20px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.vk-search-form-large button:hover { background: var(--primary-dark); }

/* ============================================================
   PAGINATION
   ============================================================ */
.vk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 0 0;
    flex-wrap: wrap;
}
.vk-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all .15s;
}
.vk-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.vk-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.vk-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ============================================================
   404 PAGE
   ============================================================ */
.vk-404 {
    padding: 80px 0;
    text-align: center;
}
.vk-404-icon { font-size: 80px; margin-bottom: 24px; }
.vk-404 h1 { font-size: 5rem; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.vk-404 h2 { font-size: 1.4rem; margin-bottom: 12px; }
.vk-404 p { color: var(--muted); max-width: 400px; margin: 0 auto 28px; }

/* ============================================================
   STATIC PAGE
   ============================================================ */
.vk-page-wrap {
    padding: 40px 0 56px;
}
.vk-page-content {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
}
.vk-page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.vk-page-header h1 { font-size: 1.7rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.vk-footer {
    background: var(--text);
    padding: 52px 0 28px;
    margin-top: 40px;
}
.vk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 36px;
    margin-bottom: 40px;
}
.vk-footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 12px;
}
.vk-footer-logo span { color: #60a5fa; }
.vk-footer-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.7;
}
.vk-footer-col h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 16px;
}
.vk-footer-col ul { list-style: none; padding: 0; }
.vk-footer-col li { margin-bottom: 9px; }
.vk-footer-col a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color .15s;
}
.vk-footer-col a:hover { color: #fff; }
.vk-footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 500;
    flex-wrap: wrap;
    gap: 8px;
}
.vk-footer-bottom a { color: #6b7280; transition: color .15s; }
.vk-footer-bottom a:hover { color: #fff; }

/* ============================================================
   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-width: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .vk-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .vk-posts-layout { grid-template-columns: 1fr 280px; gap: 20px; }
    .vk-single-wrap { grid-template-columns: 1fr 280px; gap: 20px; }
    .vk-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 1100px) {
    .vk-nav { display: none; }
    .vk-header-search { display: none; }
    .vk-menu-toggle { display: flex; }
    .vk-logo { margin-right: 0; }
}

@media (max-width: 900px) {
    .vk-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .vk-posts-layout,
    .vk-single-wrap { grid-template-columns: 1fr; }
    .vk-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .vk-acf-grid { grid-template-columns: 1fr; }
    .vk-buttons-wrap { grid-template-columns: 1fr; }
    .vk-hero h1 { font-size: 2rem; }
    .vk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .vk-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .vk-post-card { flex-direction: column; }
    .vk-post-thumb { width: 100%; height: 180px; }
    .vk-sidebar { grid-template-columns: 1fr; }
    .vk-post-nav { grid-template-columns: 1fr; }
    .vk-hero h1 { font-size: 1.7rem; }
    .vk-hero-search { max-width: 100%; }
    .vk-hero-search input { min-width: 0; }
    .vk-hero-search button { white-space: nowrap; flex-shrink: 0; }
    .vk-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .vk-article-top { padding: 20px 20px 24px; }
    .vk-article-body { padding: 20px 20px 24px; }
    .vk-acf-block { margin: 0 20px; }
    .vk-single-ad { margin: 0 20px; }
    .vk-page-content { padding: 24px 20px; }
    .vk-404 h1 { font-size: 3.5rem; }
}

/* ============================================================
   POST VIEWS COUNTER
   ============================================================ */
.vk-post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,.7);
    font-size: 12.5px;
    font-weight: 500;
}
.vk-post-views svg {
    opacity: .8;
    flex-shrink: 0;
}

.vk-post-meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted2);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
}
.vk-post-meta-comments:hover { color: var(--primary); }
.vk-post-meta-comments svg { flex-shrink: 0; }

.vk-widget-search {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s;
}
.vk-widget-search:focus-within { border-color: var(--primary); }
.vk-widget-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}
.vk-widget-search input::placeholder { color: var(--muted2); }
.vk-widget-search button {
    background: var(--primary);
    border: none;
    padding: 0 13px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background .15s;
}
.vk-widget-search button:hover { background: var(--primary-dark); }
a.vk-footer-logo img {
    width: 160px;
}

@media screen and (max-width: 460px) {
	.vk-link-row .vk-link-label {
		min-width: inherit;
	}
}

.rmp-widgets-container.rmp-wp-plugin.rmp-main-container {
    text-align: center;
    margin: 1rem 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
}