@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Unbound:wght@700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — hex-конвертация из oklch (Lovable)
   ============================================================ */
:root {
  /* Радиусы */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-md:  12px;
  --radius-lg:  14px;
  --radius-xl:  18px;
  --radius-pill: 999px;

  /* Основные поверхности */
  --background:                #f7fbfd;
  --foreground:                #070e16;
  --card:                      #ffffff;
  --card-foreground:           #070e16;
  --popover:                   #ffffff;
  --popover-foreground:        #070e16;

  /* Бренд (зелёный) */
  --brand:                     #4ab074;
  --brand-foreground:          #070e16;
  --brand-soft:                #c9f4d7;
  --brand-softer:              #e6fcec;

  /* Primary / Secondary */
  --primary:                   #0b121a;
  --primary-foreground:        #f7fbfd;
  --secondary:                 #ecf3f8;
  --secondary-foreground:      #0b121a;

  /* Muted */
  --muted:                     #ecf3f8;
  --muted-foreground:          #5b646f;

  /* Accent */
  --accent:                    #c9f4d7;
  --accent-foreground:         #070e16;

  /* Destructive */
  --destructive:               #e7000b;
  --destructive-foreground:    #f8fafc;

  /* Borders / Inputs */
  --border:                    #e2e8f0;
  --input:                     #e2e8f0;
  --ring:                      #90a1b9;

  /* Sidebar */
  --sidebar:                   #f8fafc;
  --sidebar-foreground:        #020618;
  --sidebar-primary:           #0f172b;
  --sidebar-primary-foreground:#f8fafc;
  --sidebar-accent:            #f1f5f9;
  --sidebar-accent-foreground: #0f172b;
  --sidebar-border:            #e2e8f0;
  --sidebar-ring:              #90a1b9;

  /* Charts */
  --chart-1:                   #f54900;
  --chart-2:                   #009689;
  --chart-3:                   #104e64;
  --chart-4:                   #ffb900;
  --chart-5:                   #fe9a00;

  /* Типографика */
  --font-heading: 'Montserrat', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Контейнер */
  --max-width: 1400px;
  --col-left:  240px;
  --col-right: 300px;
}

/* ============================================================
   RESET
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}


img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-ui); }
ul, ol { list-style: none; margin: 0; padding: 0; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--foreground);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.meta svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 28px;
}
.site-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-logo .dot { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 13px;
  color: var(--foreground);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.site-nav a:hover { background: var(--secondary); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.header-search input {
  border: none;
  background: transparent;
  font-size: 12px;
  outline: none;
  width: 140px;
  color: var(--foreground);
}
.header-search input::placeholder { color: var(--muted-foreground); }
.btn-login {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
}

.hero-text { flex: 1; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-eyebrow .pill {
  background: var(--brand-soft);
  color: var(--foreground);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.hero-eyebrow .date { font-size: 12px; color: var(--muted-foreground); }
.hero-text h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.hero-text p {
  font-size: 14px;
  color: var(--muted-foreground);
  max-width: 420px;
  margin-bottom: 22px;
}
.hero-btns { display: flex; gap: 10px; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 600;
}
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 500;
}
.hero-avatars { display: flex; gap: 12px; flex-shrink: 0; }
.avatar-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 76px;
  position: relative;
}
.avatar-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-card .label {
  font-size: 9px;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}
.avatar-card .badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   МАКЕТ: 3 КОЛОНКИ
   ============================================================ */
.home-layout {
  display: grid;
  grid-template-columns: var(--col-left) minmax(0, 1fr) var(--col-right);
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

/* ============================================================
   ЛЕВЫЙ САЙДБАР
   ============================================================ */
.left-sidebar { position: sticky; top: 72px; min-width: 0; }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  min-width: 0;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
  padding: 0 6px;
  margin-bottom: 8px;
}
.cat-list { list-style: none; }
.cat-list li { display: block; }
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(7, 14, 22, .75);
  transition: background .15s;
  width: 100%;
  box-sizing: border-box;
}
.cat-list a:hover { background: var(--secondary); }
.cat-list a.active {
  background: var(--brand-soft);
  color: var(--foreground);
  font-weight: 600;
}
.cat-list .cat-left { display: flex; align-items: center; gap: 8px; }
.cat-list .cat-left svg { width: 15px; height: 15px; color: var(--muted-foreground); flex-shrink: 0; }
.cat-list a.active .cat-left svg { color: var(--brand); }
.cat-list .cat-count { font-size: 11px; color: var(--muted-foreground); }
.author-blurb {
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 6px;
  line-height: 1.5;
}
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   ЛЕНТА
   ============================================================ */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feed-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.tab-group {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.tab-group a {
  display: block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background .15s, color .15s;
}
.tab-group a.active,
.tab-group a:hover { background: var(--primary); color: var(--primary-foreground); }
.feed { display: flex; flex-direction: column; gap: 14px; }

/* ---- Базовая карточка ---- */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }

/* ---- Главная карточка (Featured) ---- */
.post-card--featured .post-card-img {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.post-card--featured .post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card--featured:hover .post-card-img img { transform: scale(1.04); }
.post-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.post-card-body { padding: 20px; }
.post-card-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.post-card-body h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.3px;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.post-card-body .excerpt {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 14px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more { font-size: 12px; font-weight: 600; color: var(--brand); }
.read-more:hover { text-decoration: underline; }

/* ---- Компактная карточка (2 колонки) ---- */
.post-card--compact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
}
.post-card--compact .thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.post-card--compact .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card--compact:hover .thumb img { transform: scale(1.05); }
.post-card--compact .body { display: flex; flex-direction: column; }
.post-card--compact h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 7px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card--compact .excerpt {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card--compact .meta { margin-top: auto; padding-top: 10px; }

/* ---- Слайдер ---- */
.post-card--slider { position: relative; }
.slider-track { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.slider-track img.active { display: block; }
.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 40%, rgba(0,0,0,.15) 70%, transparent);
  pointer-events: none;
}
.slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
  color: #fff;
}
.slider-content .tag {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.slider-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.3;
  font-family: var(--font-body);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.slider-btn:hover { background: #fff; }
.slider-btn--prev { left: 10px; }
.slider-btn--next { right: 10px; }
.slider-dots {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.slider-dot {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.5);
  border: none;
  transition: all .2s;
}
.slider-dot.active { width: 20px; background: #fff; }
.slider-dot:not(.active) { width: 5px; }

/* ---- Линейный список ---- */
.linear-list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.linear-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
  margin-bottom: 2px;
}
.linear-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.linear-item:last-child { border-bottom: none; padding-bottom: 0; }
.linear-item h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: color .15s;
}
.linear-item:hover h3 { color: var(--brand); }

/* ---- Цитата ---- */
.quote-card {
  background: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: var(--primary-foreground);
}
.quote-mark { font-size: 50px; line-height: 1; color: var(--brand); }
.quote-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 6px;
  font-family: var(--font-body);
}
.quote-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.quote-author-name { font-size: 13px; font-weight: 600; }
.quote-author-sub { font-size: 11px; color: rgba(247,247,246,.5); margin-top: 1px; }

/* ---- Подкаст ---- */
.podcast-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s;
}
.play-btn:hover { transform: scale(1.07); }
.play-btn svg { width: 20px; height: 20px; fill: var(--brand-foreground); margin-left: 2px; }
.podcast-info { flex: 1; min-width: 0; }
.podcast-info h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-info p { font-size: 11px; color: var(--muted-foreground); margin-top: 3px; }

/* ---- Загрузить ещё ---- */
.load-more { display: flex; justify-content: center; padding-top: 8px; }
.load-more a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  transition: background .15s;
}
.load-more a:hover { background: var(--secondary); }

/* ============================================================
   ПРАВЫЙ САЙДБАР
   ============================================================ */
.right-sidebar { position: sticky; top: 72px; min-width: 0; }
.right-sidebar .sidebar-card { margin-bottom: 14px; }

/* Ad banner */
.ad-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 14px;
}
.ad-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.ad-card:hover img { transform: scale(1.04); }
.ad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 50%, rgba(0,0,0,.2) 75%, transparent);
  pointer-events: none;
}
.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,.88);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--foreground);
}
.ad-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  color: #fff;
}
.ad-content h4 { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ad-content p { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 3px; }

/* Top posts */
.rs-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}
.rs-header svg { width: 15px; height: 15px; color: var(--brand); }
.top-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.top-item { display: flex; gap: 8px; align-items: flex-start; }
.top-num {
  font-size: 18px;
  font-weight: 700;
  color: rgba(76,175,133,.6);
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
}
.top-item a { font-size: 12px; line-height: 1.4; color: rgba(28,28,40,.8); }
.top-item a:hover { color: var(--brand); }

/* Reading progress */
.reading-item { margin-bottom: 14px; }
.reading-item:last-child { margin-bottom: 0; }
.reading-item a { font-size: 12px; font-weight: 600; color: var(--foreground); }
.reading-item a:hover { color: var(--brand); }
.progress-bar {
  height: 4px;
  background: var(--secondary);
  border-radius: var(--radius-pill);
  margin-top: 7px;
  overflow: hidden;
}
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: var(--brand); }
.progress-label { font-size: 10px; color: var(--muted-foreground); margin-top: 4px; }

/* Newsletter */
.newsletter-card {
  background: var(--brand-softer);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.newsletter-card h3 { font-size: 13px; font-weight: 700; }
.newsletter-card p { font-size: 11px; color: var(--muted-foreground); margin-top: 4px; }
.newsletter-input {
  display: block;
  width: 100%;
  margin-top: 10px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 14px;
  font-size: 11px;
  outline: none;
  color: var(--foreground);
  font-family: var(--font-ui);
}
.newsletter-input:focus { border-color: var(--brand); }
.newsletter-btn {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--brand);
  color: var(--brand-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--foreground);
  color: var(--primary-foreground);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.footer-logo .dot { color: var(--brand); }
.footer-desc { font-size: 12px; color: rgba(247,247,246,.5); line-height: 1.6; margin-bottom: 14px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(247,247,246,.6);
  transition: border-color .15s, color .15s;
}
.footer-socials a:hover { border-color: var(--brand); color: var(--brand); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(247,247,246,.4); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul a { font-size: 12px; color: rgba(247,247,246,.65); transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-newsletter h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(247,247,246,.4); margin-bottom: 8px; }
.footer-newsletter p { font-size: 11px; color: rgba(247,247,246,.45); line-height: 1.5; margin-bottom: 10px; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 6px; }
.footer-newsletter-form input {
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  padding: 0 14px;
  font-size: 11px;
  color: #fff;
  outline: none;
  font-family: var(--font-ui);
}
.footer-newsletter-form input:focus { border-color: var(--brand); }
.footer-newsletter-form button {
  background: var(--brand);
  color: var(--brand-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 11px;
  color: rgba(247,247,246,.3);
}
.footer-bottom a { color: rgba(247,247,246,.4); transition: color .15s; }
.footer-bottom a:hover { color: rgba(247,247,246,.7); }
.footer-bottom-links { display: flex; gap: 16px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .home-layout { grid-template-columns: 180px 1fr; }
  .right-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .home-layout { grid-template-columns: 1fr; }
  .left-sidebar { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-avatars { justify-content: center; }
  .hero-text h1 { font-size: 24px; }
  .post-card--compact { grid-template-columns: 90px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .hero-avatars { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   HEADER (BlogHeader.tsx)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,247,246,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--foreground);
  white-space: nowrap;
}
.site-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-foreground);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.site-logo__dot { color: var(--brand); }

.site-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(28,28,40,.7);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--secondary); color: var(--foreground); }

.site-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search-wrap {
  position: relative;
  display: none;
  align-items: center;
}
@media (min-width: 768px) { .header-search-wrap { display: flex; } }
.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.header-search-input {
  height: 40px;
  width: 256px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(240,240,238,.6);
  padding: 0 16px 0 36px;
  font-size: 13px;
  outline: none;
  transition: width .2s, border-color .2s, background .2s;
  color: var(--foreground);
  font-family: var(--font-ui);
}
.header-search-input:focus {
  width: 320px;
  border-color: var(--brand);
  background: var(--card);
}
.header-search-mobile { display: flex; }
@media (min-width: 768px) { .header-search-mobile { display: none; } }

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: grid;
  place-items: center;
  color: rgba(28,28,40,.7);
  position: relative;
  transition: background .15s;
}
.header-icon-btn:hover { background: var(--secondary); }
.header-bell-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.header-login-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 500;
  transition: opacity .15s;
}
.header-login-btn:hover { opacity: .9; }
@media (min-width: 640px) { .header-login-btn { display: flex; } }
.header-burger { display: grid; }
@media (min-width: 1024px) { .header-burger { display: none; } }

/* ============================================================
   HERO (Hero.tsx)
   ============================================================ */
.site-hero {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--background) 50%, var(--brand-softer) 100%);
  padding: 48px;
  margin-top: 24px;
  margin-bottom: 28px;
}
@media (max-width: 768px) { .site-hero { padding: 28px 20px; } }

.hero-grid {
  display: grid;
  align-items: center;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(28,28,40,.7);
  margin-bottom: 20px;
}
.hero-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--muted-foreground);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-card {
  position: relative;
  transform: rotate(var(--card-rotate, 0deg));
  transition: transform .3s, translate .3s;
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero-card--offset { margin-top: -24px; }
.hero-card__img {
  width: clamp(110px, 14vw, 180px);
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.hero-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--brand-soft);
}
.hero-card__label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--foreground);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-family: var(--font-ui);
}

/* ============================================================
   FOOTER (BlogFooter.tsx)
   ============================================================ */
.site-footer {
  margin-top: 64px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--foreground);
  color: var(--primary-foreground);
}
.footer-inner { padding: 40px; }
@media (min-width: 768px) { .footer-inner { padding: 48px; } }

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr 1fr; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 16px;
}
.footer-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-foreground);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.footer-logo__dot { color: var(--brand); }
.footer-desc {
  font-size: 13px;
  color: rgba(247,247,246,.6);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  color: rgba(247,247,246,.7);
  transition: border-color .15s, background .15s, color .15s;
}
.footer-socials a:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(247,247,246,.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(247,247,246,.7);
  transition: color .15s;
}
.footer-col ul a:hover { color: var(--brand); }

.footer-newsletter {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.footer-newsletter h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 6px;
}
.footer-newsletter p {
  font-size: 12px;
  color: rgba(247,247,246,.55);
  line-height: 1.5;
  margin-bottom: 0;
}
.footer-email-input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  padding: 0 16px;
  font-size: 12px;
  color: #fff;
  outline: none;
  font-family: var(--font-ui);
}
.footer-email-input::placeholder { color: rgba(247,247,246,.35); }
.footer-email-input:focus { border-color: var(--brand); }
.footer-subscribe-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--brand);
  color: var(--brand-foreground);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .15s;
}
.footer-subscribe-btn:hover { opacity: .9; }
.footer-disclaimer {
  font-size: 11px;
  color: rgba(247,247,246,.4);
  line-height: 1.5;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(247,247,246,.4);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom-links a { color: rgba(247,247,246,.5); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--brand); }