/* =============================================================================
   Блог — Figma 26:3162 (десктоп, 1440) и 26:3373 (мобилно, 390).

   Дословна геометрия на десктопа:
     нав          1332 × 68 на y=34
     заглавен блок 809 (заглавие) / 813 (лийд), лийд на y=158
     препоръчана   1332 × 443.3: снимка 666 вляво, съдържание 666 вдясно
                   с 48px ляв отстъп → текстова колона 618
     филтри        редица бутони 35px, px 12 / py 8
     решетка       две колони по 642, пролука 48 хоризонтално и 48 вертикално
     карта         снимка 642 × 361 (16:9), радиус 16, gap 24 до текста
   ============================================================================= */

/* Блогът няма hero — навигацията стои върху фона на страницата */
.blog-top {
  display: flex;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.125rem var(--space-4) 0; /* дизайн 26:3163: навът е на y=34 */
}

.blog {
  padding: 4.125rem 0 4rem; /* заглавният блок е на y=132 спрямо навът */
}

.blog-inner {
  display: flex;
  flex-direction: column;
  gap: 4.125rem; /* дизайн: заглавен блок 233 → карта на y=297 */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

/* --- Заглавен блок --------------------------------------------------------- */
.blog-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* заглавие 134 → лийд на y=158 */
}

.blog-heading {
  margin: 0;
  max-width: 50.5625rem; /* 809px */
  font-family: var(--font-display);
  font-weight: 300; /* Argent CF Light */
  font-size: var(--text-4xl);
  line-height: 1.2;
  color: var(--color-white);
}

.blog-lead {
  margin: 0;
  max-width: 50.8125rem; /* 813px */
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
  text-shadow: var(--shadow-text);
}

/* --- Карта ----------------------------------------------------------------- */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* дизайн 26:3230: 24px */
}

.blog-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 616 / 346.5;
  border-radius: var(--radius-lg); /* 16px */
  overflow: clip;
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px */
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem; /* дизайн 26:3233: 14px */
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4); /* 16px */
  margin: 0;
}

.blog-card-meta time {
  font-size: var(--text-sm); /* 14px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gold);
}

/* Етикетът: светъл чип в бяла рамка (дизайн 26:3235/26:3236) */
.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;      /* 4 / 8 */
  border: 6px solid var(--color-white);
  border-radius: 0.375rem;      /* 6px */
  background: var(--color-tag-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.6875rem;         /* 11px */
  line-height: 1.4;
  letter-spacing: 0.06em;       /* 0.66px при 11px */
  text-transform: uppercase;
  color: var(--surface-card);
}

.blog-card-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* 8px */
}

.blog-card-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xxl); /* 28px */
  line-height: 1.1;
  color: var(--color-white);
}

.blog-card-title h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title h3 a:hover,
.blog-card-title h3 a:focus-visible {
  text-decoration: underline;
}

.blog-card-title p {
  margin: 0;
  font-size: var(--text-lg); /* 18px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}

.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem; /* дизайн 26:3242: 2px */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base); /* 16px */
  line-height: 1.2;
  letter-spacing: var(--tracking-btn);
  color: var(--color-white);
  text-decoration: none;
}

.blog-card-more:hover,
.blog-card-more:focus-visible {
  text-decoration: underline;
}

.blog-card-more img {
  display: block;
  flex-shrink: 0;
}

/* --- Препоръчана: снимка вляво, текст вдясно ------------------------------- */
.blog-card-wide {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.blog-card-wide .blog-card-media {
  width: 41.625rem;  /* 666px */
  flex-shrink: 0;
  aspect-ratio: 666 / 443.306;
}

.blog-card-wide .blog-card-body {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding-left: var(--space-12); /* дизайн 26:3198: 48px */
}

/* --- Филтри ---------------------------------------------------------------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem; /* дизайн 26:3214: 8 / 12 */
  border-radius: var(--radius-btn);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-white);
  text-decoration: none;
}

.blog-filter:hover,
.blog-filter:focus-visible {
  background: color-mix(in srgb, var(--surface-veil) 40%, transparent);
}

.blog-filter.is-active {
  background: var(--surface-action-dark);
}

/* --- Решетка --------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12); /* дизайн: 48px и по двете оси */
}

.blog-empty {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--color-white);
}

/* --- Пагинация ------------------------------------------------------------- */
.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.blog-pager a {
  font-size: var(--text-base);
  color: var(--color-white);
  text-decoration: none;
}

.blog-pager a.is-active {
  color: var(--color-gold);
  font-weight: 600;
}

/* =============================================================================
   Единична статия — Figma 30:3559 (десктоп) и 30:3784 (мобилно).

   Дословна геометрия на десктопа:
     заден линк 16/600 → 48 → етикет 13/700 + дата → 16 → D1 64/1.05
     → 64 → корица 1332, 1280:600, r14 → 32 → автор (16 + Argent 28)
       и 4 кръгли бутона 32 (икона 24, gap 8)
     текст 802 + 80 + CTA карта 450 (p24, r16, фон като панела)
     „Още статии": заглавие 48 + текст 18 + линк вдясно → 80 → 3 × 422.67
   ============================================================================= */
.post {
  padding: var(--space-16) 0 0; /* навът свършва на y=102, блокът е на y=166 */
}

.post-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem; /* 2px */
  align-self: flex-start;
  margin-bottom: var(--space-12); /* 48px до заглавния блок */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  letter-spacing: var(--tracking-btn);
  color: var(--color-white);
  text-decoration: none;
}

.post-back img {
  transform: rotate(180deg); /* стрелката гледа наляво */
}

.post-back:hover,
.post-back:focus-visible {
  text-decoration: underline;
}

.post-headline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px */
  margin-bottom: var(--space-16); /* 64px до корицата */
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4); /* 16px */
  margin: 0;
}

.post-meta time {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gold);
}

/* Етикетът тук е БЕЗ бялата рамка от списъка (дизайн 30:3593) */
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem; /* 4 / 8 */
  border-radius: 0.375rem;
  background: var(--color-tag-bg);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.4;
  letter-spacing: 0.04em; /* 0.52px при 13px */
  text-transform: uppercase;
  color: var(--color-ink);
}

.post-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4rem;   /* D1: 64px */
  line-height: 1.05;
  color: var(--color-white);
}

.post-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-8); /* 32px корица → авторски ред */
}

.post-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 600;
  object-fit: cover;
  border-radius: var(--radius-btn); /* 14px */
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.post-author {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* 8px */
}

.post-author-label {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}

.post-author-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xxl); /* 28px */
  line-height: 1.2;
  letter-spacing: 0.02em; /* 0.56px */
  color: var(--color-white);
}

.post-share {
  display: flex;
  align-items: center;
  gap: var(--space-2); /* 8px */
}

.post-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;  /* 32px */
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
}

.post-share-btn img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.post-share-btn.is-copied {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

/* --- Текстът и CTA картата ------------------------------------------------- */
.post-layout {
  display: flex;
  align-items: flex-start;
  gap: 5rem; /* дизайн 30:3623: 80px */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-4);
}

/* Съдържанието идва от редактора — правилата покриват произволна структура */
.post-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px между абзаците */
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--text-body-l); /* 17px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}

.post-body > * {
  margin: 0;
}

.post-body h2 {
  margin: 1.25rem 0 0.5rem; /* ритъм 36 отгоре / 24 отдолу при gap 16 */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-3xl); /* 32px */
  line-height: 1.1;
}

.post-body h3 {
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-2xl); /* 24px */
  line-height: 1.2;
}

.post-body strong {
  font-weight: 700;
}

.post-body blockquote {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-inline: 1.25rem; /* дизайн 30:3637: 20px от линията, 20px отдясно */
  border-left: 2px solid var(--color-white);
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;  /* 20px */
  line-height: 1.75rem; /* 28px */
}

.post-body ul,
.post-body ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 1.25rem;
}

.post-body a {
  color: var(--color-gold);
}

.post-body hr {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid var(--color-divider);
}

.post-body img {
  display: block;
  width: 100%;
  border-radius: var(--radius-btn);
}

/* CTA картата (дизайн 30:3647) — копито е дословно от борда */
.post-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* 16px */
  flex: 0 0 28.125rem; /* 450px */
  padding: var(--space-6); /* 24px */
  border-radius: var(--radius-panel); /* 16px */
  background: color-mix(in srgb, var(--surface-panel) 40%, transparent);
}

.post-cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; /* Argent CF Bold */
  font-size: var(--text-xl); /* 20px */
  line-height: 1.4;
  color: var(--color-white);
}

.post-cta-text {
  margin: 0;
  font-size: var(--text-lg); /* 18px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}

.post-cta-btn {
  width: 100%;
  height: 3rem;
  font-weight: 500;   /* дизайн 30:3653: Jost Medium */
  letter-spacing: 0;
  line-height: normal;
}

/* --- „Още статии" ----------------------------------------------------------- */
.post-more {
  display: flex;
  flex-direction: column;
  gap: 5rem; /* дизайн 30:3661: 80px */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16) var(--space-4);
}

.post-more-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}

.post-more-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4); /* заглавие 58 → текст на y=74 */
  max-width: 30.4375rem; /* 487px */
}

.post-more-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-4xl); /* 48px */
  line-height: 1.2;
  color: var(--color-white);
}

.post-more-text {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}

.post-more-all {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  letter-spacing: var(--tracking-btn);
  color: var(--color-white);
  text-decoration: none;
}

.post-more-all:hover,
.post-more-all:focus-visible {
  text-decoration: underline;
}

.post-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; /* дизайн: 32px между картите */
}

/* Картите тук са по-дребни от тези в списъка (дизайн 30:3669) */
.post-more-grid .blog-card-title h3 {
  font-size: var(--text-2xl); /* 24px */
  line-height: 1.2;
}

.post-more-grid .blog-card-title p {
  font-size: var(--text-body-l); /* 17px */
}

.post-more-grid .blog-card-content {
  gap: var(--space-4); /* 16px */
}

.post-more-grid .blog-card-body {
  gap: 1.25rem; /* 20px до „Прочетете повече" */
}

/* --- Правни страници (ползват .post скелета) ------------------------------- */
.legal-inner {
  max-width: var(--container-narrow);
}

.legal-updated {
  margin: -0.5rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-gold);
}
