/* =============================================================
   ЭТО НАДО ОБЫГРАТЬ — Ghost Theme
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@400;600&display=swap');

:root {
  --blue: #3754c4;
  --pink: #d9408c;
  --yellow: #fdc524;
  --dark: #171721;
  --text: #171721;
  --subtext: #808291;
  --muted: #a6a8b8;
  --border: #e0e3ed;
  --bg: #ffffff;
  --radius: 16px;
  --max-width: 1280px;
  --page-padding: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + var(--page-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  background: #fff;
  padding: 12px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.site-header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 55px;
  width: auto;
}

.site-logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

.site-logo-text .line1 { color: var(--dark); }
.site-logo-text .line2 { color: var(--blue); }

/* Nav centered absolutely */
.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
}

.site-nav a.nav-news { color: var(--blue); }
.site-nav a.nav-collections { color: var(--pink); }
.site-nav a:hover { opacity: 1; }

.site-nav a.nav-news:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.site-nav a.nav-collections:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

/* Active nav underline */
.site-nav a.active {
  position: relative;
}
.site-nav a.nav-news.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.site-nav a.nav-collections.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero-block {
  border-radius: var(--radius);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 36px 40px;
  text-decoration: none;
}

.hero-block-pink { background: var(--pink); }
.hero-block-blue { background: var(--blue); }

.hero-block .hero-cover {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.92) 0%, rgba(10, 10, 20, 0.5) 50%, rgba(10, 10, 20, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-label-pink { color: var(--pink); }
.hero-label-blue { color: #7eb3ff; }

.hero-title {
  font-family: 'Russo One', sans-serif;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.hero-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-bar {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title-bar.blue { background: var(--blue); }
.section-title-bar.pink { background: var(--pink); }

.section-title h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 26px;
  color: var(--dark);
}

.section-link {
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.section-link.blue { color: var(--blue); }
.section-link.pink { color: var(--pink); }
.section-link:hover { opacity: 0.8; }

/* =============================================================
   CARDS
   ============================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(55, 84, 196, 0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(55, 84, 196, 0.15), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.card-cover-placeholder {
  width: 100%;
  height: 180px;
  background: #f0f3ff;
  flex-shrink: 0;
}

.card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-label.news { color: var(--blue); }
.card-label.collection { color: var(--pink); }
.card-label[data-tag="novost"] { color: var(--blue); }
.card-label[data-tag="podborka"] { color: var(--pink); }

.card-title {
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: var(--dark);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* =============================================================
   HOMEPAGE MAIN
   ============================================================= */
.site-main {
  flex: 1;
  min-height: 60vh;
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-block {
  width: 100%;
  max-width: calc(var(--max-width) + var(--page-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* =============================================================
   TAG HERO (Новости / Подборки страница)
   ============================================================= */
.tag-hero {
  padding: 20px 0;
}

.tag-hero-blue { background: #e7ecfc; }
.tag-hero-pink { background: #feebf4; }

.tag-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}

.tag-breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
}

.tag-hero-pink .tag-breadcrumb { color: var(--pink); }

.tag-breadcrumb a { color: inherit; }
.tag-breadcrumb a:hover { opacity: 0.7; }

.tag-title {
  font-family: 'Russo One', sans-serif;
  font-size: 48px;
  color: var(--dark);
  line-height: 1.1;
}

.tag-description {
  font-size: 15px;
  color: var(--subtext);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}

/* =============================================================
   PAGINATION
   ============================================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
}

.pagination a,
.pagination span {
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  color: var(--blue);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

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

.pagination .page-number {
  color: var(--subtext);
  border: none;
}

/* =============================================================
   POST PAGE
   ============================================================= */
.post-header {
  background: #fff;
  padding: 48px 0 0;
}

.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.post-tag-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: block;
}

.post-tag-label.news { color: var(--blue); }
.post-tag-label.collection { color: var(--pink); }
.post-tag-label[data-tag="novost"] { color: var(--blue); }
.post-tag-label[data-tag="podborka"] { color: var(--pink); }

.post-title {
  font-family: 'Russo One', sans-serif;
  font-size: 40px;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}

.post-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: calc(var(--max-width) + var(--page-padding) * 2);
  margin: 0 auto;
  padding: 48px var(--page-padding) 80px;
}

.post-content { min-width: 0; }

.post-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.post-content h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 28px;
  color: var(--dark);
  margin: 40px 0 16px;
}

.post-content h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: var(--dark);
  margin: 32px 0 12px;
}

.post-content img {
  width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

.post-content a { color: var(--blue); text-decoration: underline; }

.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 20px;
  color: var(--subtext);
  font-style: italic;
  margin: 24px 0;
}

.post-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  margin: 24px 0;
}

.post-content .kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.post-content .kg-gallery-row {
  display: flex;
  gap: 12px;
}

.post-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.post-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-title {
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-cards { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sidebar-card:hover { opacity: 0.8; }

.sidebar-card-cover {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--border);
}

.sidebar-card-info { flex: 1; }

.sidebar-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.sidebar-card-label.news { color: var(--blue); }
.sidebar-card-label.collection { color: var(--pink); }
.sidebar-card-label[data-tag="novost"] { color: var(--blue); }
.sidebar-card-label[data-tag="podborka"] { color: var(--pink); }

.sidebar-card-title {
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--dark);
  padding: 20px var(--page-padding);
  color: #808599;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo img { height: 45px; width: auto; }

.footer-logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}

.footer-logo-text .line1 { color: #fff; }
.footer-logo-text .line2 { color: var(--blue); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  color: #808599;
}

.footer-nav a:hover { color: #fff; }
/* footer-col replaces footer-nav in new footer */

.footer-bottom {
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  color: #808599;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================================
   CLOCK ICON
   ============================================================= */
.icon-clock {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none'%3E%3Ccircle cx='7.5' cy='7.5' r='6.5' stroke='%23a6a8b8' stroke-width='1.2'/%3E%3Cpath d='M7.5 4.5V7.5L9.5 9.5' stroke='%23a6a8b8' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  vertical-align: middle;
}

/* =============================================================
   GHOST REQUIRED
   ============================================================= */
.kg-width-wide {
  margin-left: -80px;
  margin-right: -80px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.kg-image { max-width: 100%; }

.kg-embed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}

.kg-embed-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content { padding: 16px; flex: 1; }

.kg-bookmark-title {
  font-family: 'Russo One', sans-serif;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}

.kg-bookmark-description { font-size: 14px; color: var(--subtext); }

.kg-bookmark-thumbnail img {
  width: 160px;
  height: 100%;
  object-fit: cover;
}

.kg-callout-card {
  background: #f0f3ff;
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }

/* =============================================================
   PAGE
   ============================================================= */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px var(--page-padding) 80px;
}

.page-title {
  font-family: 'Russo One', sans-serif;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 32px;
}

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 1100px) {
  :root { --page-padding: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .post-content-wrapper { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

@media (max-width: 768px) {
  :root { --page-padding: 20px; }

  .site-nav {
    display: none;
    position: fixed;
    top: 79px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px var(--page-padding);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 200;
    flex-direction: column;
    gap: 24px;
    transform: none;
    border-bottom: none;
  }

  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; }

  .cards-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 26px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-block { min-height: 280px; padding: 28px 24px; }
  .hero-title { font-size: 22px; }

  .post-title { font-size: 26px; }
  .post-content p { font-size: 16px; }

  .tag-title { font-size: 32px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .site-header { padding: 12px var(--page-padding); }
}

/* Nav hover underline */
.site-nav a {
  position: relative;
}
.site-nav a.nav-news:hover::after,
.site-nav a.nav-news.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.site-nav a.nav-collections:hover::after,
.site-nav a.nav-collections.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}

/* Fix mobile nav open state */
@media (max-width: 768px) {
  .site-nav.open {
    border: none !important;
    outline: none !important;
  }
  .site-nav.open a::after {
    display: none !important;
  }
  .site-nav.open a:hover::after {
    display: none !important;
  }
  .site-nav.open a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .site-nav.open a.nav-news.active {
    text-decoration-color: var(--blue);
  }
  .site-nav.open a.nav-collections.active {
    text-decoration-color: var(--pink);
  }
}

/* =============================================================
   POST PAGE — updated layout matching Figma
   ============================================================= */
.post-layout {
  display: grid;
  grid-template-columns: 720px 260px;
  gap: 40px;
  justify-content: center;
  max-width: calc(var(--max-width) + var(--page-padding) * 2);
  margin: 0 auto;
  padding: 40px var(--page-padding) 80px;
}

.post-main { min-width: 0; }

.post-breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--subtext);
  margin-bottom: 12px;
}
.post-breadcrumb a { color: var(--subtext); }
.post-breadcrumb a:hover { color: var(--blue); }

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--subtext);
  margin-bottom: 24px;
}
.post-meta-dot { color: var(--border); }
.post-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-cover-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  max-height: 400px;
  object-fit: cover;
}

/* Sidebar redesign to match Figma */
.post-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  padding-top: 63px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar-heading-bar {
  width: 3px;
  height: 18px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0;
}

.sidebar-heading span {
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
  color: var(--dark);
}

.sidebar-cards { display: flex; flex-direction: column; gap: 10px; }

.sidebar-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  height: 76px;
  transition: box-shadow 0.2s;
}

.sidebar-card:hover { box-shadow: 0 4px 16px rgba(55,84,196,0.1); }

.sidebar-card-cover {
  width: 76px;
  height: 76px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e7ecfc;
}

.sidebar-card-cover-placeholder { background: #e7ecfc; }

.sidebar-card-info {
  flex: 1;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-card-label.news { color: var(--blue); }
.sidebar-card-label.collection { color: var(--pink); }
.sidebar-card-label[data-tag="novost"] { color: var(--blue); }
.sidebar-card-label[data-tag="podborka"] { color: var(--pink); }

.sidebar-card-title {
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-card-time {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--subtext);
  margin-top: auto;
}

/* Fix reading time — override Ghost "min read" */
.card-footer .reading-time-value::after { content: none; }

@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar { display: none; }
}

/* Fix post content images */
.post-content .kg-image-card img,
.post-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.post-cover-img {
  max-height: 480px;
  object-fit: cover;
}

/* Fix post content image alignment */
.post-content .kg-image-card img,
.post-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
  border-radius: 8px;
  margin: 16px 0;
}

/* =============================================================
   FOOTER SOCIALS
   ============================================================= */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: 'Russo One', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.footer-col a {
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  color: #808599;
  transition: color 0.2s;
}

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

.footer-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  color: #808599;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer right columns group */
.footer-right {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* Dzen icon — dark bg needs special treatment */
.footer-social-link svg path[fill="#202022"] { fill: rgba(255,255,255,0.12); }
.footer-social-link:hover svg path[fill="#202022"] { fill: rgba(255,255,255,0.2); }

.footer-policy-link {
  color: #808599;
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-policy-link:hover { color: #fff; }

/* Privacy policy corner link */
.privacy-corner-link {
  position: fixed;
  bottom: 16px;
  right: 20px;
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  color: rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 50;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.privacy-corner-link:hover {
  color: rgba(0,0,0,0.5);
}

/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(23, 23, 33, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
  padding: 14px var(--page-padding);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text {
  font-size: 15px;
  color: #aaaabc;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #aaaabc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-text a:hover {
  color: #fff;
}

.cookie-banner-btn {
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
  min-height: 48px;
}

.cookie-banner-btn:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =============================================================
   SMOOTH SCROLL + PAGE TRANSITIONS
   ============================================================= */
html {
  scroll-behavior: smooth;
}

/* Page fade-in */
.site-wrapper {
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Link transitions */
a {
  transition: opacity 0.15s ease, color 0.15s ease;
}

/* =============================================================
   READING PROGRESS BAR
   ============================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--pink));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* =============================================================
   BACK TO TOP BUTTON
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 48px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(55, 84, 196, 0.35);
  opacity: 1;
  z-index: 100;
}

.back-to-top:hover {
  background: #2a42b0;
  box-shadow: 0 6px 20px rgba(55, 84, 196, 0.45);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
  }
}
