/* ============================================
   FinSriLanka — Global Styles
   CHANGES (this batch):
   - Added .breadcrumbs, .inline-cta, .related-guides
   - Minor spacing tweaks for article pages
   ============================================ */

   :root{
    /* colors */
    --bg-deep:#0f172a; --bg-deeper:#0b1224;
    --text:#0b1427; --muted:#64748b; --muted-2:#94a3b8;
    --white:#fff; --soft:#f6f7fb; --line:#e5eefc;
    --blue:#1e40af; --blue-700:#17338f;
  
    /* layout */
    --header-h:64px;
    --radius:22px; --radius-xl:28px; --capsule:2.5rem;
    --shadow:0 10px 26px rgba(2,6,23,.08);
    --shadow-lg:0 18px 34px rgba(2,6,23,.10);
  
    /* containers */
    --max-w:1180px;
  }
  
  @media (min-width:1440px){ :root{ --max-w:1280px; } }
  @media (min-width:1800px){ :root{ --max-w:1400px; } }
  
  /* Base */
  *{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{
    margin:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:var(--text);background:#fff;
    -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale
  }
  img{max-width:100%;display:block}
  a{color:inherit;text-decoration:none}
  
  h1{font-size:clamp(2.25rem,1.2rem + 2.2vw,3rem);line-height:1.12;font-weight:800;margin:0 0 .5em}
  h2{font-size:clamp(1.75rem,1.05rem + 1.4vw,2.25rem);line-height:1.18;font-weight:800;margin:0 0 .5em}
  h3{font-size:clamp(1.25rem,1rem + .6vw,1.5rem);line-height:1.25;font-weight:700;margin:0 0 .5em}
  
  .container{max-width:var(--max-w);margin:0 auto;padding:0 16px}
  .center{text-align:center}
  .cv{scroll-margin-top:80px}
  
  /* якоря не уезжают под фикс-шапку */
  :where(h1,h2,h3,[id]){ scroll-margin-top: calc(var(--header-h) + 16px); }
  
  /* HEADER */
  header{
    position:sticky; top:0; z-index:200;
    background:#0f172a; color:#fff;
    border-bottom:1px solid rgba(148,163,184,.18);
    box-shadow:0 4px 14px rgba(2,6,23,.18);
  }
  .nav-row{height:var(--header-h);display:flex;align-items:center;justify-content:space-between}
  .brand{font-size:28px;font-weight:800;letter-spacing:.2px;color:#fff;line-height:1}
  .brand span{color:#60a5fa}
  .nav{display:flex;gap:16px;align-items:center}
  .nav a{color:#fff;font-weight:600;font-size:14px;line-height:1;opacity:.95}
  .nav a:hover{opacity:1}
  .menu-btn{background:none;border:0;cursor:pointer;display:none;line-height:0;padding:8px}
  
  @media (max-width:900px){
    .nav{display:none}
    .menu-btn{display:inline-flex}
  }
  
  /* Mobile dropdown */
  #mobile-menu{
    position:fixed; left:0; right:0; top:var(--header-h);
    background:#0f172a; border-top:1px solid rgba(148,163,184,.18);
    box-shadow:0 16px 30px rgba(2,6,23,.22);
    overflow:auto;
    max-height:0; opacity:0; visibility:hidden;
    transition:max-height .25s ease, opacity .18s ease;
    z-index:190;
  }
  #mobile-menu.open{ max-height:70vh; opacity:1; visibility:visible; }
  #mobile-menu .container{display:grid;gap:10px;padding:12px 16px 16px}
  #mobile-menu a{
    color:#cbd5e1; font-weight:600; font-size:15px; padding:10px 0;
    border-bottom:1px solid rgba(148,163,184,.12);
  }
  #mobile-menu a:last-child{border-bottom:0}
  
  @media (min-width:901px){
    #mobile-menu{display:none!important}
  }
  
  /* HERO */
  .hero{
    min-height:calc(100vh - var(--header-h));
    background:linear-gradient(90deg,#0f172a,#1e293b); color:#fff; display:flex; align-items:center;
  }
  .hero-row{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;padding:60px 16px}
  .lead{color:#cbd5e1;font-size:18px;margin:12px 0 20px}
  .note{font-size:12px;color:#cbd5e1;margin-top:8px}
  .glass-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
  .glass{background:rgba(255,255,255,.1);border-radius:16px;padding:16px;text-align:center;border:1px solid rgba(255,255,255,.12)}
  
  /* Sections */
  .section{padding:64px 0}
  .light{background:#f8fafc}
  
  /* Offers */
  /* ===== Modern Offers grid (центрирование последней строки) ===== */
.offers{
  display:flex;               /* вместо grid */
  flex-wrap:wrap;
  gap:22px;
  justify-content:center;     /* <- центрует «хвост» */
  align-items:stretch;
}

/* Карточка: современный «неоклассика» стиль, лёгкий градиент-бордер */
.offer-card{
  flex:1 1 clamp(260px, 24%, 320px); /* адаптивная ширина, обычно 4 в ряд на десктопе */
  max-width:360px;
  background:#fff;
  border:1px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(180deg,rgba(2,6,23,.08),rgba(2,6,23,.02)) border-box;
  border-radius:18px;
  box-shadow:0 6px 20px rgba(2,6,23,.06);
  padding:18px;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.offer-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(2,6,23,.12);
  border-color:#c7d2fe;
}

/* Верх карточки: логотип + бренд + бейдж */
.offer-head{display:flex; align-items:center; gap:12px; margin-bottom:10px;}
.offer-logo{
  display:grid; place-items:center;
  width:44px; height:44px; border-radius:12px;
  background:#f1f5ff; border:1px solid #e5e7eb;
  overflow:hidden;
}
.offer-brand{font-weight:800; font-size:18px; color:#0b1427; line-height:1;}
.offer-badge{
  margin-left:auto;
  font-size:12px; font-weight:800; color:#1e3a8a;
  background:#eef2ff; border:1px solid #dbeafe;
  padding:4px 10px; border-radius:999px;
}

/* Фичи/пули */
.offer-feat{list-style:none;margin:10px 0 12px; padding:0; display:grid; gap:8px; color:#475569; font-size:14px;}
.offer-feat li{display:flex; gap:8px; align-items:flex-start}

/* Метрики в чипах (модель оплаты, срок, скорость и т.д.) */
.metrics{display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 12px}
.pill{
  font-size:12px; font-weight:700; color:#0b1427;
  background:#f8fafc; border:1px solid #e5e7eb;
  padding:5px 10px; border-radius:999px;
}
.pill.cpl{ color:#065f46; background:#ecfdf5; border-color:#a7f3d0; }
.pill.cps{ color:#7c2d12; background:#fff7ed; border-color:#fed7aa; }

/* CTA */
.offer-cta{margin-top:auto}
.offer-apply{
  display:block; width:100%; text-align:center;
  background:#1e40af; color:#fff; font-weight:800;
  border:0; border-radius:12px; padding:12px 16px;
  text-decoration:none; transition:background .15s ease, transform .08s ease;
}
.offer-apply:hover{ background:#17338f }
.offer-apply:active{ transform:translateY(1px) }
.offer-disc{ color:#6b7280; font-size:12px; margin-top:8px }

/* Лого картинки внутри .offer-logo */
.offer-logo img{ width:28px; height:auto; display:block }

/* Responsive правки */
@media (max-width:900px){
  .offer-card{flex:1 1 300px; max-width:100%;}
}
  
  /* Steps, tiles, grid blocks */
  .steps{display:grid;grid-template-columns:1fr 24px 1fr 24px 1fr;align-items:center;gap:10px;margin:6px 0 18px}
  .step{display:grid;justify-items:center}
  .num{width:40px;height:40px;border-radius:999px;background:#0f172a;color:#fff;display:grid;place-items:center;font-weight:800}
  .divider{height:2px;background:#cbd5e1}
  .muted{color:var(--muted)}
  .grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
  .tile{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px}
  
  /* FAQ */
  .faq-wrap{display:grid;gap:10px}
  details.faq{background:#fff;border:1px solid #dbeafe;border-radius:20px;padding:16px}
  details.faq summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700}
  .chev{width:24px;height:24px}
  
  /* Policies & footer */
  #policies{background:#f8f9fa;border-top:1px solid #e5e7eb}
  #policies .wrap{max-width:900px;margin:0 auto;padding:50px 16px}
  footer{background:#0f172a;color:#e5e7eb;text-align:center;padding:28px 0}
  footer a{color:#93c5fd}
  
  /* GUIDES — карточки на главной */
  .guides-cards{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:18px;margin-top:18px; justify-items:center;
  }
  .guides-cards .card{width:100%;max-width:360px;padding:18px;border-radius:18px}
  .guide-card-title{font-size:22px;line-height:1.25;font-weight:800;margin:4px 0 8px;color:#0b1427;text-align:left}
  .guide-meta{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
  .guide-chip{font-size:12px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#1e3a8a}
  .guides-cards p{color:#475569;margin:0 0 12px}
  .guides-cards .btn{width:100%;text-align:center}
  /* ===== Guides CTA button (polished) ===== */
.guides-cta{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.btn-xl{
  padding: 14px 22px;
  border-radius: 999px;              /* капсула */
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  touch-action: manipulation;        /* быстрее тапы */
}

.btn-accent{
  background: linear-gradient(180deg, var(--blue), var(--blue-700));
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 8px 18px rgba(30,64,175,.18),   /* внешняя мягкая тень */
    inset 0 1px 0 rgba(255,255,255,.28); /* лёгкий «глянец» сверху */
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-accent:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(30,64,175,.24),
    inset 0 1px 0 rgba(255,255,255,.28);
  filter: saturate(1.03);
}

.btn-accent:active{
  transform: translateY(0);
  box-shadow:
    0 6px 14px rgba(30,64,175,.20),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.btn-accent svg{
  transition: transform .18s ease;
}

.btn-accent:hover svg{
  transform: translateX(3px);
}

/* доступность */
.btn-accent:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(59,130,246,.28),
    0 8px 18px rgba(30,64,175,.18),
    inset 0 1px 0 rgba(255,255,255,.28);
}

/* компактнее на узких экранах */
@media (max-width:480px){
  .btn-xl{ padding: 13px 18px; font-weight: 800; }
}
  /* ARTICLE PAGES (Guides & Money) */
  .hero-skinny{
    min-height:200px;background:linear-gradient(90deg,#0f172a,#1e293b);
    color:#fff;display:flex;align-items:center;padding:32px 0 22px;border-bottom:1px solid rgba(255,255,255,.08)
  }
  .article-main{padding:26px 0 56px}
  
  /* Лэйаут: плотнее, без «лишнего воздуха» */
  .page{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}
  @media (max-width:900px){ .page{grid-template-columns:1fr} }
  
  /* TOC: sticky только на десктопе */
  .toc{
    position:sticky; top:calc(var(--header-h) + 12px);
    align-self:start; background:#fff; border:1px solid #e5e7eb;
    border-radius:14px; padding:12px; display:grid; gap:8px
  }
  @media (max-width:900px){
    .toc{ position:static; top:auto; }
  }
  .toc-title{font-weight:700;color:#0b1427;margin:2px 0 6px}
  .toc a{display:block;padding:8px 10px;border-radius:10px;color:#1e3a8a;font-weight:600}
  .toc a:hover{background:#eef2ff}
  
  /* Content */
  .prose{max-width:100%}
  .prose h2{margin:18px 0 10px;font-size:24px;font-weight:800;color:#0b1427}
  .prose h3{margin:12px 0 6px;font-size:18px;font-weight:700}
  .prose p,.prose li{color:#334155;line-height:1.7}
  .prose ul{margin:0 0 12px 18px}
  .prose hr{border:none;border-top:1px solid #e5e7eb;margin:22px 0}
  .notice{background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;padding:12px 14px;color:#1e3a8a;font-weight:600}
  .meta{font-size:13px}
  
  /* NEW: Breadcrumbs + Inline CTA + Related Guides */
  .breadcrumbs{
    font-size:13px; color:#64748b; margin:8px 0 16px;
  }
  .breadcrumbs a{color:#1e3a8a; font-weight:600}
  .breadcrumbs .sep{margin:0 6px; color:#94a3b8}
  
  .inline-cta{
    display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 18px;
  }
  .inline-cta .btn{padding:10px 14px}
  
  .related-guides{
    margin-top:18px;
  }
  .related-guides h3{margin-bottom:10px}
  .related-guides .grid{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px;
  }
  .related-guides .rg-card{
    background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:14px;
  }
  .related-guides .rg-card a{color:#1e3a8a; font-weight:700}
  
  /* Buttons — INP */
  .btn{display:inline-block;background:var(--blue);color:#fff;text-decoration:none;font-weight:700;border-radius:12px;padding:12px 18px;touch-action:manipulation}
  .btn:hover{background:var(--blue-700)}
  
  /* Responsive tweaks */
  @media (max-width:1024px){
    .hero-row{grid-template-columns:1fr}
    .glass-grid{grid-template-columns:1fr 1fr}
  }
  @media (max-width:640px){
    header{box-shadow:0 6px 12px rgba(2,6,23,.18)}
    .brand{font-size:24px}
    .hero .lead{font-size:16px}
    .glass-grid{grid-template-columns:1fr}
    .card,.tile{width:100%;box-shadow:none;border:1px solid var(--line)}
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
  }
  /* ===== Guides / Articles polish ===== */
.breadcrumbs{font-size:14px;color:#64748b;margin:6px 0 12px}
.breadcrumbs a{color:#1e3a8a;font-weight:600;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs .sep{margin:0 6px;color:#94a3b8}

.inline-cta{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.related-guides{margin-top:18px}
.related-guides .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.related-guides .rg-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px}
.related-guides .rg-card a{color:#1e3a8a;font-weight:600;text-decoration:none}
.related-guides .rg-card a:hover{text-decoration:underline}

/* Guides hub */
/* =========================
   GUIDES HUB — hard-namespaced (.guides-page / .gh-*)
   ========================= */

/* Прижим футера только здесь */
.guides-page { display:flex; flex-direction:column; min-height:100vh; }
.guides-page main { flex:1; }

/* Hero */
.gh-hero{
  background:linear-gradient(90deg,#0f172a,#1e293b);
  color:#fff; border-bottom:1px solid rgba(255,255,255,.08);
}
.gh-hero h1{ margin:8px 0 6px; font-weight:800; }
.gh-hero .sub{ color:#cbd5e1; margin:0; }

/* Breadcrumbs */
.gh-bc{ display:flex; gap:10px; align-items:center; color:#cbd5e1; font-size:14px; }
.gh-bc a{ color:#93c5fd; }
.gh-bc .sep{ opacity:.6; }

/* Toolbar (search + filters) */
.gh-toolbar{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:16px 0 8px; }
.gh-search{
  flex:1 1 280px; display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px;
  color:#64748b;
}
.gh-search input{ border:0; outline:0; width:100%; font:inherit; color:#0b1427; }
.gh-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.gh-chip{
  background:#eef2ff; color:#1e3a8a; border:1px solid #c7d2fe;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:12.5px;
  cursor:pointer; user-select:none;
}
.gh-chip.is-on{ background:#1e3a8a; color:#fff; border-color:#1e3a8a; }

/* Grid & Cards (не .card, чтобы не пересекаться с главной) */
.gh-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px; margin-top:10px;
}
.gh-card{
  grid-column:span 12;
  background:#fff; border:1px solid #e5e7eb; border-radius:18px; padding:16px;
  box-shadow:0 1px 2px rgba(2,6,23,.04);
  display:flex; flex-direction:column; gap:10px;
}
@media (min-width:680px){ .gh-card{ grid-column:span 6; } }   /* 2-в-ряд */
@media (min-width:1024px){ .gh-card{ grid-column:span 4; } } /* 3-в-ряд */

.gh-card h3{ margin:0 0 2px; font-size:20px; line-height:1.3; }
.gh-card h3 a{ color:#0b1427; }
.gh-card p{ color:#334155; margin:0; }
.gh-meta{ display:flex; gap:8px; flex-wrap:wrap; }
.gh-tag{
  background:#f1f5f9; color:#0f172a; border:1px solid #e2e8f0;
  padding:4px 8px; border-radius:999px; font-size:12px; font-weight:600;
}

/* Доп. отступ снизу пока гайдов 3–4 */
.gh-footer-pad{ padding-bottom:36px; }
.gh-inline-cta{ display:flex; gap:10px; flex-wrap:wrap; }

/* Доп. отступ снизу пока гайдов мало */
.guides-footer-pad{ padding-bottom:36px; }
.inline-cta{ display:flex; gap:10px; flex-wrap:wrap; }
.inline-cta .btn{ font-weight:700; }
/* Кнопка View all guides на главной */
.guides-cta{display:flex;justify-content:center;margin-top:18px}
.guides-cta .btn{border-radius:999px;padding:12px 20px;font-weight:800}
/* ====== Guides v2 ====== */
.guides-v2 { padding: 96px 0; background:#f8fafc; }
.guides-v2 .header { text-align:center; margin-bottom: 20px; }
.guides-v2 .eyebrow{ font-weight:800; color:#1e3a8a; background:#eef2ff; border:1px solid #dbe5ff; border-radius:999px; padding:6px 12px; display:inline-block; font-size:12px; margin-bottom:10px; }
.guides-v2 .title { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.4rem); line-height:1.15; font-weight:800; color:#0b1427; margin:0; }
.guides-v2 .sub { color:#475569; margin:8px auto 0; max-width:720px; }

.guides-grid{
  display:flex; flex-wrap:wrap; justify-content:center; /* последняя строка всегда по центру */
  gap:20px; margin-top:24px;
}
.gcard{
  flex:1 1 260px; max-width:340px;
  background:#fff; border:1px solid #e6eaf3; border-radius:18px;
  box-shadow:0 8px 22px rgba(2,6,23,.06);
  padding:18px; display:flex; flex-direction:column;
  transition:transform .12s, box-shadow .12s, border-color .12s;
}
.gcard:hover{ transform: translateY(-2px); box-shadow:0 16px 34px rgba(2,6,23,.10); border-color:#d7dff1; }

.gcard h3{ font-size:22px; line-height:1.25; font-weight:800; margin:4px 0 8px; color:#0b1427; }
.g-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 10px; }
.g-chip{ font-size:12px; padding:4px 8px; border-radius:999px; background:#eef2ff; color:#1e3a8a; border:1px solid #dbe5ff; font-weight:700; }
.gcard p{ color:#475569; margin:0 0 14px; min-height:56px; } /* выравниваем высоту описания */

.g-cta{ margin-top:auto; }
.g-cta .btn{ display:block; width:100%; text-align:center; background:#2446d6; color:#fff; font-weight:800; border-radius:12px; padding:12px 16px; }
.g-cta .btn:hover{ background:#1837be; }

.view-all-wrap{ display:flex; justify-content:center; margin-top:20px; }
.view-all{ display:inline-flex; align-items:center; gap:8px; background:#0f172a; color:#fff; font-weight:800; border-radius:999px; padding:12px 18px; }
.view-all svg{ width:18px; height:18px; }
/* ===== Guides hub: equal-height cards & stable layout ===== */
.guides-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
  gap:18px;
  align-items:stretch;          /* тянем карточки по высоте */
  justify-items:stretch;
}

/* сама карточка */
.gh-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:18px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  display:flex;                 /* делаем флекс-контейнер */
  flex-direction:column;
  height:100%;                  /* растягиваем на высоту грида */
}

/* заголовок — компактнее, без скачков */
.gh-card h3{
  font-size:20px;
  line-height:1.25;
  margin:2px 0 8px;
  word-break:break-word;
}

/* метки, переносы и стабильная высота зоны с чипсами */
.gh-card .gh-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
}

/* чипсы */
.gh-card .gh-tag{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#1e3a8a;
  white-space:nowrap;
}

/* описание */
.gh-card p{
  color:#334155;
  margin:0 0 12px;
}

/* кнопка всегда прижата к низу карточки */
.gh-card .btn{
  margin-top:auto;              /* выталкиваем вниз */
  align-self:flex-start;
}

/* если хочется ещё плотнее собрать карточки на мелких экранах */
@media (max-width:640px){
  .gh-card{padding:16px;border-radius:14px}
}
/* ===== Guides hub (scопировано, не ломает главную) ===== */
#guides-hub { padding-top: 18px; padding-bottom: 28px; }

/* Breadcrumbs (если уже есть — этот блок можно не добавлять) */
.breadcrumbs{display:flex;align-items:center;gap:8px;font-size:14px;color:#94a3b8}
.breadcrumbs a{color:#cbd5e1}
.breadcrumbs .sep{opacity:.6}

/* Заголовок секции хаба */
.guides-hero{background:linear-gradient(90deg,#0f172a,#1e293b);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.guides-hero h1{margin:6px 0 6px;font-size:clamp(28px,2.5vw,36px);font-weight:800}
.guides-hero .sub{color:#cbd5e1;margin:0}

/* Грид карточек */
.ghub-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:18px;
  align-items:stretch;
}
@media (max-width:720px){
  .ghub-grid{grid-template-columns:1fr}
}

/* Карточка гайда */
.ghub-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
  box-shadow:0 1px 2px rgba(2,6,23,.04);
  display:flex; flex-direction:column; min-height:0;
}
.ghub-card h3{margin:4px 0 6px; font-size:20px; font-weight:800; color:#0b1427}
.ghub-card .meta{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px}
.ghub-card .chip{
  font-size:12px; padding:4px 8px; border-radius:999px;
  background:#eef2ff; color:#1e3a8a; font-weight:600
}
.ghub-card p{color:#334155; margin:0 0 12px; line-height:1.55}
.ghub-card .btn{margin-top:auto; align-self:flex-start}

/* Бар с кнопками (CTA) */
.ghub-cta{
  display:flex; justify-content:center; gap:12px; flex-wrap:wrap;
  margin-top:24px; padding:4px 0 6px;
}
.ghub-cta .btn{
  padding:12px 20px; border-radius:14px; font-weight:800;
}
/* ===============================
   GUIDES HUB (clean & scoped)
   =============================== */

   .guides-page{display:flex;flex-direction:column;min-height:100vh}
   .guides-page main{flex:1}
   
   /* Hero */
   .gh-hero{
     background:linear-gradient(90deg,#0f172a,#1e293b);
     color:#fff; border-bottom:1px solid rgba(255,255,255,.08);
   }
   .gh-hero h1{margin:8px 0 6px;font-weight:800}
   .gh-hero .sub{color:#cbd5e1;margin:0}
   
   /* Breadcrumbs в hero */
   .gh-bc{display:flex;gap:10px;align-items:center;color:#cbd5e1;font-size:14px}
   .gh-bc a{color:#93c5fd}
   .gh-bc .sep{opacity:.6}
   
   /* Toolbar */
   .gh-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 10px}
   .gh-search{
     flex:1 1 280px;display:flex;align-items:center;gap:8px;
     background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;color:#64748b
   }
   .gh-search input{border:0;outline:0;width:100%;font:inherit;color:#0b1427}
   .gh-filters{display:flex;flex-wrap:wrap;gap:8px}
   .gh-chip{
     background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe;
     padding:6px 10px;border-radius:999px;font-weight:700;font-size:12.5px;cursor:pointer;user-select:none
   }
   .gh-chip.is-on{background:#1e3a8a;color:#fff;border-color:#1e3a8a}
   
   /* CTA (сверху, под тулбаром) */
   .gh-inline-cta{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 0}
   .gh-inline-cta .btn{padding:12px 18px;font-weight:800;border-radius:12px}
   
   /* Grid & Cards */
   .gh-grid{
     display:grid;
     grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
     gap:18px; align-items:stretch; margin-top:14px;
   }
   .gh-card{
     background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;
     box-shadow:0 1px 2px rgba(2,6,23,.04);
     display:flex;flex-direction:column;height:100%;min-height:0
   }
   .gh-card h3{font-size:20px;line-height:1.25;margin:2px 0 8px;word-break:break-word}
   .gh-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
   .gh-tag{font-size:12px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#1e3a8a;white-space:nowrap}
   .gh-card p{color:#334155;margin:0 0 12px}
   .gh-card .btn{margin-top:auto;align-self:flex-start}
   
   /* Немного воздуха снизу, если гайдов мало */
   .gh-footer-pad{padding-bottom:36px}
   
   @media (max-width:640px){
     .gh-card{padding:16px;border-radius:14px}
   }
  