/* ============================================================
   FINLAB Blog — Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:       #1B3561;
  --primary-dark:  #0f2044;
  --primary-light: #2a4d8a;
  --accent:        #E8A020;
  --accent-light:  #f5b845;
  --text:          #1A1F36;
  --text-sec:      #4B5563;
  --text-light:    #9CA3AF;
  --bg:            #F7F8FC;
  --bg-white:      #FFFFFF;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius:        10px;
  --radius-sm:     6px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tr:            .2s ease;
  --max-w:         1200px;
  --header-h:      72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* --- Container --- */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--text); }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--tr);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,160,32,.4);
}
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--telegram { background: #29A8E0; color: #fff; justify-content: center; }
.btn--telegram:hover { background: #2296c8; }
.btn--sm  { padding: 8px 16px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

/* --- Image Placeholders (replace with real photos later) --- */
.img-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-placeholder--featured {
  height: 420px;
  background: linear-gradient(135deg, hsl(215,60%,22%), hsl(215,70%,38%));
  border-radius: 0;
}
.img-placeholder--card {
  height: 200px;
  background: linear-gradient(135deg, hsl(var(--hue,215),50%,22%), hsl(var(--hue,215),60%,42%));
  border-radius: 0;
}
.img-placeholder--post {
  height: 460px;
  background: linear-gradient(135deg, hsl(215,60%,22%), hsl(215,70%,38%));
  border-radius: var(--radius);
}
.img-placeholder__icon { font-size: 64px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }

/* Real photos */
.post-img {
  display: block; width: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.post-img--featured { height: 420px; }
.post-img--card     { height: 200px; }
.post-img--post     { height: 460px; border-radius: var(--radius); }

.post-card:hover .post-img { transform: scale(1.04); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr);
}
.header--scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 4px;
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo__brand { color: var(--primary); }
.logo__accent { color: var(--accent); }
.logo__sep { color: var(--border); margin-inline: 8px; font-weight: 300; }
.logo__blog { font-size: 15px; font-weight: 500; color: var(--text-sec); }
.logo--white .logo__brand,
.logo--white .logo__blog { color: rgba(255,255,255,.9); }
.logo--white .logo__sep { color: rgba(255,255,255,.25); }

/* Navigation */
.nav__list {
  display: flex; align-items: center; gap: 4px;
}
.nav__link {
  display: block; padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  color: var(--text-sec);
  transition: all var(--tr);
}
.nav__link:hover, .nav__link--active {
  color: var(--primary); background: rgba(27,53,97,.07);
}
.nav__link--cta {
  background: var(--primary); color: #fff !important; padding: 8px 18px;
}
.nav__link--cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__dropdown {
  display: none; position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 230px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 200;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown { display: block; }
.nav__dropdown li a {
  display: block; padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-sec);
  transition: all var(--tr);
}
.nav__dropdown li a:hover { background: var(--bg); color: var(--primary); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--tr);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1572021335469-31706a17aaef?auto=format&fit=crop&w=1600&h=750&q=80')
              center / cover no-repeat;
  color: #fff;
  padding: 100px 0 80px;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,28,66,0.65) 0%,
    rgba(27,53,97,0.52) 60%,
    rgba(42,77,138,0.42) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 680px; }
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2; color: #fff; margin-bottom: 16px;
}
.hero__desc {
  font-size: 17px; color: rgba(255,255,255,.8);
  max-width: 560px; margin-bottom: 32px;
}
.search-form {
  display: flex; max-width: 460px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; overflow: hidden;
}
.search-form__input {
  flex: 1; background: none; border: none;
  padding: 14px 20px; font-size: 15px;
  color: #fff; font-family: var(--font); outline: none;
}
.search-form__input::placeholder { color: rgba(255,255,255,.55); }
.search-form__btn {
  background: var(--accent); color: #fff;
  padding: 0 20px;
  display: flex; align-items: center;
  transition: background var(--tr);
}
.search-form__btn:hover { background: var(--accent-light); }

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured { padding: 60px 0 0; }
.featured__card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured__image { position: relative; }
.featured__badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}
.featured__content {
  padding: 48px 48px 48px 0;
  display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
}
.featured__title { font-size: 26px; line-height: 1.3; }
.featured__title a { color: var(--text); transition: color var(--tr); }
.featured__title a:hover { color: var(--primary); }
.featured__excerpt {
  color: var(--text-sec); font-size: 15px; line-height: 1.7;
}

/* Post Meta */
.post-meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--text-light);
}
.post-meta__category {
  background: rgba(27,53,97,.08);
  color: var(--primary); font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
}
.post-meta__category:hover { background: rgba(27,53,97,.15); }
.post-meta__reading::before { content: "·"; margin-right: 4px; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: 60px 0 80px; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px; align-items: start;
}
.posts__header {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.posts__title { font-size: 22px; font-weight: 700; }
.posts__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--text-sec);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--tr);
}
.filter-btn:hover, .filter-btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.posts__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

/* Post Card */
.post-card {
  background: var(--bg-white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--tr);
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card__img-link { display: block; overflow: hidden; }
.post-card__img-link .img-placeholder { transition: transform .35s ease; }
.post-card:hover .img-placeholder { transform: scale(1.04); }
.post-card__body {
  padding: 20px; display: flex;
  flex-direction: column; flex: 1; gap: 10px;
}
.post-card__title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.post-card__title a { color: var(--text); transition: color var(--tr); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt {
  font-size: 14px; color: var(--text-sec);
  line-height: 1.6; flex: 1;
}
.post-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.reading-time { font-size: 12px; color: var(--text-light); }
.reading-time::before { content: "⏱ "; }
.post-card__link {
  font-size: 13px; font-weight: 600; color: var(--primary);
  transition: color var(--tr);
}
.post-card__link:hover { color: var(--accent); }
.posts__more { text-align: center; margin-top: 40px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.sidebar__widget {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.widget__title {
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

/* About Widget */
.widget-about { text-align: center; }
.widget-about__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative; overflow: hidden;
}
.widget-about__avatar::after { content: "👩‍💼"; font-size: 44px; }
.widget-about__name { font-size: 17px; margin-bottom: 4px; }
.widget-about__pos { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.widget-about__bio {
  font-size: 13px; color: var(--text-sec);
  line-height: 1.6; margin-bottom: 16px;
}

/* Category List */
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-list__link {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-sec);
  transition: all var(--tr);
}
.category-list__link:hover {
  background: var(--bg); color: var(--primary); padding-left: 18px;
}
.category-list__link span {
  background: var(--bg); color: var(--text-light);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  transition: all var(--tr);
}
.category-list__link:hover span { background: var(--primary); color: #fff; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  background: var(--bg); color: var(--text-sec);
  font-size: 13px; padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all var(--tr);
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CTA Widget */
.widget-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; flex-direction: column; gap: 12px;
}
.widget-cta .widget__title { color: #fff; border-color: rgba(255,255,255,.25); }
.widget-cta__text { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; }
.widget-cta .btn--outline {
  border-color: rgba(255,255,255,.5); color: #fff;
}
.widget-cta .btn--outline:hover {
  background: rgba(255,255,255,.12); border-color: #fff;
}

/* Stats Bar (sidebar) */
.stats-bar {
  display: flex; flex-direction: column; gap: 14px;
}
.stat-item { display: flex; justify-content: space-between; align-items: center; }
.stat-item__val {
  font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1;
}
.stat-item__label { font-size: 13px; color: var(--text-sec); }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb__list {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 6px;
}
.breadcrumb__list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb__list a { color: var(--text-sec); transition: color var(--tr); }
.breadcrumb__list a:hover { color: var(--primary); }
.breadcrumb__list li:not(:last-child)::after {
  content: "›"; color: var(--text-light); font-size: 14px;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px; align-items: start;
  padding: 0 0 80px;
}

/* Article */
.article__header { margin-bottom: 40px; }
.article__tags { margin-bottom: 16px; }
.article__tags .tag { font-size: 11px; padding: 4px 10px; }
.article__title {
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.25; margin-bottom: 20px;
}
.article__meta {
  display: flex; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article__meta-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  overflow: hidden; position: relative;
}
.author-avatar::after { content: "👩‍💼"; font-size: 22px; position: absolute; }
.author-info__name { font-size: 14px; font-weight: 700; }
.author-info__role { font-size: 12px; color: var(--text-light); }
.article__meta-stats {
  display: flex; gap: 20px;
  font-size: 13px; color: var(--text-light); margin-left: auto;
}
.article__meta-stats span { display: flex; align-items: center; gap: 5px; }

.article__hero-img {
  margin-bottom: 40px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Article Body Typography */
.article__content {
  font-size: 17px; line-height: 1.75; color: var(--text);
}
.article__content > * + * { margin-top: 1.5em; }
.article__content h2 {
  font-size: 24px; font-weight: 700;
  margin-top: 2.5em; margin-bottom: .8em;
  color: var(--primary);
  padding-top: 1em;
  border-top: 1px solid var(--border);
}
.article__content h3 {
  font-size: 19px; font-weight: 700;
  margin-top: 2em; margin-bottom: .6em;
}
.article__content p { margin: 0; }
.article__content ul, .article__content ol {
  padding-left: 28px;
}
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }
.article__content li { margin-bottom: .5em; }
.article__content strong { font-weight: 700; color: var(--text); }
.article__content a {
  color: var(--primary); text-decoration: underline;
  text-underline-offset: 3px;
}
.article__content a:hover { color: var(--accent); }

.article__content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: rgba(27,53,97,.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px; font-style: italic;
  color: var(--text-sec);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(27,53,97,.05), rgba(27,53,97,.08));
  border: 1px solid rgba(27,53,97,.12);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2em 0;
}
.highlight-box__title {
  font-size: 16px; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.highlight-box ul { padding-left: 20px; list-style: disc; }
.highlight-box li {
  font-size: 15px; color: var(--text-sec);
  margin-bottom: 6px;
}

.number-list { list-style: none !important; padding-left: 0 !important; counter-reset: n; }
.number-list li {
  counter-increment: n;
  padding: 14px 16px 14px 52px;
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px !important;
}
.number-list li::before {
  content: counter(n);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Post Footer */
.article__footer {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 20px;
  justify-content: space-between;
}
.article__footer-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article__footer-tags span { font-size: 13px; color: var(--text-sec); font-weight: 600; }
.share-btns { display: flex; align-items: center; gap: 10px; }
.share-btns span { font-size: 13px; color: var(--text-sec); font-weight: 600; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: all var(--tr);
  border: 1px solid var(--border);
  color: var(--text-sec);
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn--tg { background: #29A8E0; color: #fff; border-color: #29A8E0; }
.share-btn--tg:hover { background: #2296c8; }
.share-btn--vk { background: #4C75A3; color: #fff; border-color: #4C75A3; }
.share-btn--vk:hover { background: #3d6090; }
.share-btn--copy:hover { background: var(--bg); color: var(--primary); }

/* Related Posts */
.related-posts { padding: 60px 0; background: var(--bg-white); }
.related-posts .container { }
.section-title {
  font-size: 24px; font-weight: 700;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center; color: #fff;
}
.cta-section__tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
  color: rgba(255,255,255,.9);
}
.cta-section__title {
  font-size: clamp(24px, 3vw, 38px);
  color: #fff; margin-bottom: 16px;
}
.cta-section__desc {
  font-size: 17px; color: rgba(255,255,255,.8);
  max-width: 560px; margin: 0 auto 36px;
}
.cta-section__btns {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cta-section .btn--outline {
  border-color: rgba(255,255,255,.5); color: #fff;
}
.cta-section .btn--outline:hover {
  background: rgba(255,255,255,.12); border-color: #fff;
}
.cta-section__stats {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap; margin-top: 52px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.15);
}
.cta-stat__val {
  font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1;
}
.cta-stat__label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__tagline {
  font-size: 14px; color: rgba(255,255,255,.55);
  margin-top: 12px; line-height: 1.6; max-width: 280px;
}
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all var(--tr);
}
.social-link:hover { background: var(--accent); transform: translateY(-2px); }
.footer__nav-title {
  font-size: 13px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav ul a {
  font-size: 14px; color: rgba(255,255,255,.55);
  transition: color var(--tr);
}
.footer__nav ul a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact p, .footer__contact a {
  font-size: 14px; color: rgba(255,255,255,.55);
}
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding: 20px 0; gap: 16px; flex-wrap: wrap;
}
.footer__copy { font-size: 13px; color: rgba(255,255,255,.35); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: all var(--tr);
  z-index: 50; pointer-events: none;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.back-to-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px; border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .featured__card { grid-template-columns: 1fr; }
  .featured__content { padding: 32px; }
  .featured__image .img-placeholder--featured { height: 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-layout .sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg-white);
    padding: 24px 20px;
    transform: translateX(110%);
    transition: transform .3s ease;
    z-index: 99; overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav.nav--open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { font-size: 16px; padding: 12px 16px; }
  .nav__dropdown {
    position: static; box-shadow: none;
    border: none; background: var(--bg);
    display: block; padding-left: 12px; margin-top: 4px;
  }
  .burger { display: flex; }
  .hero { padding: 56px 0 48px; }
  .search-form { max-width: 100%; }
  .posts__grid { grid-template-columns: 1fr; }
  .posts__header { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-section__stats { gap: 32px; }
}

@media (max-width: 480px) {
  .featured__content { padding: 24px; }
  .featured__title { font-size: 20px; }
  .back-to-top { bottom: 20px; right: 20px; }
  .article__footer { flex-direction: column; align-items: flex-start; }
}
