/* ============================================================
   KHO BAI VIET - template 1200
   Design system: light theme / teal #0f766e + amber #f59e0b
   Font: Be Vietnam Pro
   ============================================================ */

:root {
  --kb-ink: #0b3b38;
  --kb-ink-2: #46615e;
  --kb-ink-3: #6b827f;
  --kb-teal: #0f766e;
  --kb-teal-deep: #115e59;
  --kb-teal-ink: #083a37;
  --kb-teal-soft: #e6f4f2;
  --kb-amber: #f59e0b;
  --kb-amber-deep: #b45309;
  --kb-amber-soft: #fff7e6;
  --kb-line: #dcebe8;
  --kb-bg: #f5faf9;
  --kb-card: #ffffff;
  --kb-shadow: 0 18px 40px -24px rgba(8, 58, 55, 0.35);
  --kb-shadow-sm: 0 8px 22px -16px rgba(8, 58, 55, 0.5);
  --kb-r: 18px;
  --kb-r-sm: 12px;
  --kb-max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.kb-body {
  margin: 0;
  background: var(--kb-bg);
  color: var(--kb-ink);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.kb-shell { max-width: var(--kb-max); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -0.2px; }
p { margin: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: var(--kb-teal); color: #fff; }

:focus-visible { outline: 3px solid var(--kb-amber); outline-offset: 2px; border-radius: 6px; }

.kb-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--kb-teal-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: 14px;
}
.kb-skip:focus { left: 0; }

/* ------------------------------------------------------------
   Header + navigation
   ------------------------------------------------------------ */
.kb-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--kb-line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.kb-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(8, 58, 55, 0.6); background: #ffffff; }
.kb-header-line { display: flex; align-items: center; gap: 26px; min-height: 76px; }

.kb-logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.kb-logo-img { display: block; width: 230px; height: 52px; max-width: 100%; object-fit: contain; object-position: left center; }

.kb-nav { margin-left: auto; }
.kb-nav-list { display: flex; align-items: center; gap: 2px; }
.kb-nav-list > li { position: relative; }
.kb-nav-a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--kb-ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.kb-nav-a:hover { color: var(--kb-teal); background: var(--kb-teal-soft); }
.kb-nav-a.is-active { color: #fff; background: var(--kb-teal); }

.kb-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: var(--kb-teal-soft); border: 1px solid var(--kb-line); border-radius: 12px; cursor: pointer;
}
.kb-burger span { display: block; height: 2px; border-radius: 2px; background: var(--kb-teal-deep); transition: transform 0.25s ease, opacity 0.2s ease; }
.kb-nav-mask {
  display: none; position: fixed; inset: 0; z-index: 45;
  background: rgba(6, 40, 37, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.kb-nav-mask.is-show { opacity: 1; visibility: visible; }
body.kb-locked { overflow: hidden; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.kb-btn b { font-weight: 500; transition: transform 0.18s ease; }
.kb-btn:hover b { transform: translateX(3px); }
.kb-btn:hover { transform: translateY(-1px); }
.kb-btn-solid { background: var(--kb-teal); color: #fff; box-shadow: 0 12px 26px -16px rgba(15, 118, 110, 0.9); }
.kb-btn-solid:hover { background: var(--kb-teal-deep); }
.kb-btn-ghost { background: transparent; color: var(--kb-teal-deep); border-color: #bcd9d4; }
.kb-btn-ghost:hover { background: var(--kb-teal-soft); border-color: var(--kb-teal); }
.kb-btn-amber { background: var(--kb-amber); color: #3a2503; box-shadow: 0 12px 26px -16px rgba(245, 158, 11, 0.95); }
.kb-btn-amber:hover { background: #e08c04; color: #2c1d02; }
.kb-btn-sm { padding: 9px 17px; font-size: 14px; }
.kb-btn-lg { padding: 14px 28px; font-size: 16px; }

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */
.kb-hero { position: relative; overflow: hidden; background: #083a37; color: #eaf6f4; }
.kb-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(255, 255, 255, 0.14), transparent 62%),
    radial-gradient(720px 460px at 92% 92%, rgba(245, 158, 11, 0.22), transparent 60%),
    linear-gradient(126deg, #0d5b55 0%, #083a37 58%, #052e2c 100%);
}
.kb-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 78px);
}
.kb-hero-line {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 46px; align-items: center;
  padding-top: 66px; padding-bottom: 74px;
}
.kb-hero-copy { min-width: 0; }
.kb-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--kb-amber);
}
.kb-kicker-inline { margin-bottom: 10px; color: var(--kb-amber-deep); }
.kb-hero .kb-kicker { margin-bottom: 16px; }
.kb-hero-title { font-size: clamp(31px, 4.2vw, 50px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.kb-hero-desc { font-size: 17px; line-height: 1.8; color: #cbe6e2; max-width: 54ch; }
.kb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kb-hero .kb-btn-ghost { color: #dff1ee; border-color: rgba(255, 255, 255, 0.34); }
.kb-hero .kb-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.kb-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.kb-stat dt { font-size: 25px; font-weight: 800; color: var(--kb-amber); letter-spacing: -0.5px; }
.kb-stat dd { font-size: 13px; color: #b6d6d1; line-height: 1.45; margin-top: 2px; }

.kb-hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kb-poster {
  position: relative; display: block; overflow: hidden; border-radius: var(--kb-r);
  background: #0a433f; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.75);
}
.kb-poster:nth-child(1) { grid-column: 1 / -1; }
.kb-poster:nth-child(1) .kb-poster-media { aspect-ratio: 16 / 8; }
.kb-poster-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.kb-poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.kb-poster:hover .kb-poster-media img { transform: scale(1.05); }
.kb-poster-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 32, 30, 0.86));
  display: flex; flex-direction: column; gap: 2px; color: #fff;
}
.kb-poster-cap strong { font-size: 15.5px; font-weight: 700; }
.kb-poster-cap > span { font-size: 12.5px; color: var(--kb-amber); font-weight: 600; }

/* ------------------------------------------------------------
   Sections, headings, grids
   ------------------------------------------------------------ */
.kb-section { padding: 74px 0; }
.kb-section-alt { background: #ffffff; border-top: 1px solid var(--kb-line); border-bottom: 1px solid var(--kb-line); }
.kb-head { margin-bottom: 32px; }
.kb-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.kb-h2 { font-size: clamp(24px, 2.7vw, 33px); font-weight: 800; color: var(--kb-teal-ink); }
.kb-head-desc { margin-top: 10px; color: var(--kb-ink-2); max-width: 62ch; }
.kb-head-link {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  font-size: 14.5px; font-weight: 700; color: var(--kb-teal-deep);
  padding: 9px 16px; border: 1px solid #c5e2dd; border-radius: 999px; background: var(--kb-teal-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.kb-head-link:hover { background: var(--kb-teal); color: #fff; transform: translateY(-1px); }
.kb-head-link b { font-weight: 500; }

.kb-grid { display: grid; gap: 22px; }
.kb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kb-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 26px; }
.kb-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--kb-teal-soft); color: var(--kb-teal-deep); border: 1px solid #c5e2dd;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.kb-pill:hover { background: var(--kb-teal); color: #fff; transform: translateY(-1px); }

/* ------------------------------------------------------------
   Category feature + lean cards
   ------------------------------------------------------------ */
.kb-cat-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kb-cat-big {
  position: relative; overflow: hidden; border-radius: var(--kb-r);
  background: var(--kb-card); border: 1px solid var(--kb-line); box-shadow: var(--kb-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kb-cat-big:hover { transform: translateY(-4px); box-shadow: var(--kb-shadow); }
.kb-cat-big-link { display: grid; grid-template-columns: 0.92fr 1.08fr; min-height: 232px; }
.kb-cat-big-media { overflow: hidden; }
.kb-cat-big-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.kb-cat-big:hover .kb-cat-big-media img { transform: scale(1.05); }
.kb-cat-big-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.kb-cat-big-name { font-size: 22px; font-weight: 800; color: var(--kb-teal-ink); }
.kb-cat-big-desc { font-size: 14.5px; color: var(--kb-ink-2); line-height: 1.7; }
.kb-cat-big-more { font-size: 14px; font-weight: 700; color: var(--kb-amber-deep); margin-top: 4px; }
.kb-cat-big-more b { font-weight: 500; transition: transform 0.2s ease; }
.kb-cat-big:hover .kb-cat-big-more b { transform: translateX(3px); }

.kb-cat-lean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.kb-cat-slim {
  border: 1px solid var(--kb-line); border-radius: var(--kb-r); background: var(--kb-card);
  overflow: hidden; box-shadow: var(--kb-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.kb-cat-slim:hover { transform: translateY(-3px); border-color: var(--kb-teal); box-shadow: var(--kb-shadow); }
.kb-cat-slim-link { display: flex; align-items: flex-start; gap: 14px; padding: 20px; height: 100%; }
.kb-cat-slim-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; padding: 11px;
  background: var(--kb-teal-soft); color: var(--kb-teal);
}
.kb-cat-slim-ico svg { width: 100%; height: 100%; }
.kb-cat-slim-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kb-cat-slim-name { font-size: 17px; font-weight: 700; color: var(--kb-teal-ink); }
.kb-cat-slim-desc { font-size: 13.5px; color: var(--kb-ink-3); line-height: 1.6; }
.kb-cat-slim-arrow { margin-left: auto; align-self: center; color: #b7d2cd; font-weight: 500; transition: transform 0.2s ease, color 0.2s ease; }
.kb-cat-slim:hover .kb-cat-slim-arrow { color: var(--kb-teal); transform: translateX(3px); }

/* ------------------------------------------------------------
   Content cards
   ------------------------------------------------------------ */
.kb-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: var(--kb-r);
  overflow: hidden; box-shadow: var(--kb-shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.kb-card:hover { transform: translateY(-5px); box-shadow: var(--kb-shadow); border-color: #bfe0da; }
.kb-card-link { display: flex; flex-direction: column; height: 100%; }
.kb-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--kb-teal-soft); }
.kb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.kb-card:hover .kb-card-media img { transform: scale(1.06); }
.kb-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1 1 auto; }
.kb-card-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--kb-ink-3); flex-wrap: wrap; }
.kb-card-meta i { color: #b9d2ce; font-style: normal; }
.kb-card-tag { font-style: normal; font-weight: 700; color: var(--kb-amber-deep); }
.kb-card-title { font-size: 16.5px; font-weight: 700; color: var(--kb-teal-ink); line-height: 1.42; }
.kb-card-desc { font-size: 14px; color: var(--kb-ink-2); line-height: 1.65; }
.kb-card-more {
  margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--kb-teal-deep);
}
.kb-card-more b { font-weight: 500; transition: transform 0.2s ease; }
.kb-card:hover .kb-card-more b { transform: translateX(3px); }

/* ------------------------------------------------------------
   About block
   ------------------------------------------------------------ */
.kb-about { background: #ffffff; padding: 78px 0; border-top: 1px solid var(--kb-line); }
.kb-about-line { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 48px; align-items: center; }
.kb-about-media { border-radius: var(--kb-r); overflow: hidden; box-shadow: var(--kb-shadow); }
.kb-about-media img { width: 100%; height: 100%; object-fit: cover; }
.kb-about-copy .kb-h2 { margin-bottom: 14px; }
.kb-about-lead { font-size: 16.5px; color: var(--kb-ink); margin-bottom: 12px; }
.kb-about-text { color: var(--kb-ink-2); }
.kb-about-quote {
  margin-top: 22px; padding: 18px 22px; border-left: 4px solid var(--kb-amber);
  background: var(--kb-amber-soft); border-radius: 0 var(--kb-r-sm) var(--kb-r-sm) 0;
}
.kb-about-quote p { font-size: 15.5px; font-weight: 600; color: var(--kb-amber-deep); }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.kb-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kb-faq-col { display: flex; flex-direction: column; gap: 14px; }
.kb-faq-item {
  background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: var(--kb-r);
  overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kb-faq-item.is-open { border-color: var(--kb-teal); box-shadow: var(--kb-shadow-sm); }
.kb-faq-h { font-size: inherit; font-weight: inherit; }
.kb-faq-q {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 17px 19px; background: transparent; border: 0; cursor: pointer;
}
.kb-faq-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; padding: 7px 0;
  text-align: center; font-size: 13px; font-weight: 800; color: var(--kb-teal);
  background: var(--kb-teal-soft); font-variant-numeric: tabular-nums;
}
.kb-faq-text { flex: 1 1 auto; font-size: 15.5px; font-weight: 700; color: var(--kb-teal-ink); line-height: 1.5; }
.kb-faq-ico { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.kb-faq-ico::before, .kb-faq-ico::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--kb-teal);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.kb-faq-ico::before { width: 16px; height: 2px; border-radius: 2px; }
.kb-faq-ico::after { width: 2px; height: 16px; border-radius: 2px; }
.kb-faq-item.is-open .kb-faq-ico::after { transform: rotate(90deg); opacity: 0; }
.kb-faq-a { padding: 0 19px 19px 67px; }
.kb-faq-a p { font-size: 14.8px; color: var(--kb-ink-2); line-height: 1.75; }

/* ------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------ */
.kb-crumb { background: #ffffff; border-bottom: 1px solid var(--kb-line); }
.kb-crumb-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 13px; padding-bottom: 13px;
  font-size: 13.5px; color: var(--kb-ink-3);
}
.kb-crumb a { color: var(--kb-ink-2); font-weight: 500; transition: color 0.18s ease; }
.kb-crumb a:hover { color: var(--kb-teal); }
.kb-crumb-sep { color: #c2d8d4; }
.kb-crumb-now { font-weight: 700; color: var(--kb-teal-deep); }

/* ------------------------------------------------------------
   Inner page hero
   ------------------------------------------------------------ */
.kb-page-hero {
  position: relative; overflow: hidden; color: #eaf6f4;
  background:
    radial-gradient(760px 320px at 84% 6%, rgba(245, 158, 11, 0.2), transparent 62%),
    linear-gradient(118deg, #0f5d56 0%, #0a423f 56%, #06312f 100%);
}
.kb-page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 72px);
}
.kb-page-hero-line { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 46px; }
.kb-page-hero-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--kb-amber); margin-bottom: 12px; }
.kb-page-hero-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #fff; }
.kb-page-hero-desc { margin-top: 12px; max-width: 68ch; color: #c7e3df; }

/* ------------------------------------------------------------
   Panels (category / related)
   ------------------------------------------------------------ */
.kb-page { padding-top: 46px; }
.kb-panel {
  background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: var(--kb-r);
  padding: 30px; box-shadow: var(--kb-shadow-sm); margin-bottom: 26px;
}
.kb-panel-h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--kb-teal-ink); }
.kb-panel-h2 { font-size: clamp(20px, 2.3vw, 26px); font-weight: 800; color: var(--kb-teal-ink); margin-bottom: 20px; }
.kb-panel-lead { margin-top: 12px; font-size: 16px; color: var(--kb-ink-2); max-width: 74ch; }
.kb-panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kb-panel-foot { margin-top: 26px; display: flex; justify-content: center; }

.kb-subcat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kb-subcat-card {
  border: 1px solid var(--kb-line); border-radius: var(--kb-r); overflow: hidden; background: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.kb-subcat-card:hover { transform: translateY(-4px); box-shadow: var(--kb-shadow); }
.kb-subcat-link { display: block; }
.kb-subcat-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.kb-subcat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.kb-subcat-card:hover .kb-subcat-media img { transform: scale(1.05); }
.kb-subcat-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px 20px; }
.kb-subcat-name { font-size: 18.5px; font-weight: 800; color: var(--kb-teal-ink); }
.kb-subcat-desc { font-size: 14.2px; color: var(--kb-ink-2); line-height: 1.65; }
.kb-subcat-more { font-size: 14px; font-weight: 700; color: var(--kb-amber-deep); }
.kb-subcat-more b { font-weight: 500; transition: transform 0.2s ease; }
.kb-subcat-card:hover .kb-subcat-more b { transform: translateX(3px); }

/* ------------------------------------------------------------
   List page + sidebar
   ------------------------------------------------------------ */
.kb-list-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.kb-list-main { min-width: 0; }
.kb-list-head { margin-bottom: 28px; }
.kb-list-h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--kb-teal-ink); }
.kb-list-lead { margin-top: 10px; color: var(--kb-ink-2); max-width: 70ch; }
.kb-rows { margin-bottom: 30px; }
.kb-list-empty {
  padding: 26px; text-align: center; border: 1px dashed #bcd9d4; border-radius: var(--kb-r);
  color: var(--kb-ink-2); background: #fff;
}
.kb-pagi { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.kb-pagi-btn {
  min-width: 44px; padding: 9px 15px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--kb-line); background: #fff; color: var(--kb-ink-2);
  font-size: 14.5px; font-weight: 600; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kb-pagi-btn:hover { background: var(--kb-teal-soft); color: var(--kb-teal-deep); border-color: var(--kb-teal); }
.kb-pagi-btn.is-active { background: var(--kb-teal); border-color: var(--kb-teal); color: #fff; }
.kb-pagi-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.kb-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.kb-side-box { background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r); padding: 22px; box-shadow: var(--kb-shadow-sm); }
.kb-side-h { font-size: 17.5px; font-weight: 800; color: var(--kb-teal-ink); margin-bottom: 15px; }
.kb-side-hot { display: flex; flex-direction: column; gap: 14px; }
.kb-side-hot a { display: flex; gap: 12px; align-items: flex-start; }
.kb-side-hot img { flex: 0 0 74px; width: 74px; height: 56px; object-fit: cover; border-radius: 10px; }
.kb-side-hot-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kb-side-hot-body strong { font-size: 14px; font-weight: 600; color: var(--kb-teal-ink); line-height: 1.45; }
.kb-side-hot-body time { font-size: 12.5px; color: var(--kb-ink-3); }
.kb-side-hot a:hover strong { color: var(--kb-teal); }
.kb-side-more { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--kb-line); }
.kb-side-more a { font-size: 14px; font-weight: 700; color: var(--kb-teal); }
.kb-side-more a:hover { color: var(--kb-amber); }
.kb-side-more b { font-weight: 700; }
.kb-side-links { display: flex; flex-direction: column; }
.kb-side-links a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--kb-line);
  font-size: 14.3px; color: var(--kb-ink-2); transition: color 0.18s ease;
}
.kb-side-links li:last-child a { border-bottom: 0; }
.kb-side-links a:hover { color: var(--kb-teal); }
.kb-side-links time { font-size: 12.5px; color: var(--kb-ink-3); flex: 0 0 auto; }
.kb-side-cta { background: linear-gradient(150deg, #0f766e, #083a37); border-color: transparent; color: #eaf6f4; }
.kb-side-cta .kb-side-h { color: #fff; }
.kb-side-cta .kb-side-desc { font-size: 14.2px; color: #c7e3df; margin-bottom: 16px; }

/* ------------------------------------------------------------
   Article page
   ------------------------------------------------------------ */
.kb-article-wrap {
  max-width: 1240px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start;
}
.kb-show-main { min-width: 0; }
.kb-article {
  background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r);
  padding: 34px; box-shadow: var(--kb-shadow-sm); margin-bottom: 26px;
}
.kb-article-head { margin-bottom: 24px; }
.kb-article-cat {
  display: inline-flex; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
  background: var(--kb-amber-soft); color: var(--kb-amber-deep); font-size: 13px; font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.kb-article-cat:hover { background: var(--kb-amber); color: #3a2503; }
.kb-article-title { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; color: var(--kb-teal-ink); line-height: 1.32; }
.kb-article-summ { margin-top: 14px; font-size: 16.5px; color: var(--kb-ink-2); line-height: 1.75; }
.kb-article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--kb-line); }
.kb-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--kb-ink-3); }
.kb-meta-ico { font-size: 14px; color: var(--kb-teal); }
.kb-article-figure { margin: 0 0 26px; border-radius: var(--kb-r); overflow: hidden; border: 1px solid var(--kb-line); }
.kb-article-figure img { width: 100%; }
.kb-article-figure figcaption { padding: 10px 16px; font-size: 13px; color: var(--kb-ink-3); background: var(--kb-bg); }

.kb-article-body { font-size: 16.5px; line-height: 1.85; color: #224a46; }
.kb-article-body p { margin: 0 0 18px; }
.kb-article-body h2 {
  margin: 30px 0 14px; font-size: 21px; font-weight: 800; color: var(--kb-teal-ink);
  padding-left: 14px; border-left: 4px solid var(--kb-amber);
}
.kb-article-body ul { margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.kb-article-body li { position: relative; padding-left: 20px; }
.kb-article-body li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--kb-teal);
}
.kb-article-body strong { color: var(--kb-teal-ink); }
.kb-facts {
  list-style: none; background: var(--kb-teal-soft); border: 1px solid #c5e2dd;
  border-radius: var(--kb-r-sm); padding: 18px 20px !important;
}
.kb-facts li { padding-left: 0 !important; }
.kb-facts li::before { display: none !important; }
.kb-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--kb-line); }
.kb-tag-label { font-size: 14px; font-weight: 700; color: var(--kb-ink-3); }
.kb-tag {
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--kb-teal-soft); color: var(--kb-teal-deep);
  transition: background 0.2s ease, color 0.2s ease;
}
.kb-tag:hover { background: var(--kb-teal); color: #fff; }

.kb-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.kb-switcher-cell {
  background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r); padding: 18px 20px;
  box-shadow: var(--kb-shadow-sm); transition: border-color 0.2s ease, transform 0.2s ease;
}
.kb-switcher-cell:hover { border-color: var(--kb-teal); transform: translateY(-2px); }
.kb-switcher-next { text-align: right; }
.kb-switcher-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--kb-ink-3); margin-bottom: 8px; }
.kb-switcher-link { display: inline-block; font-size: 15px; font-weight: 700; color: var(--kb-teal-ink); line-height: 1.5; }
.kb-switcher-link:hover { color: var(--kb-teal); }
.kb-switcher-empty { font-size: 14.5px; color: var(--kb-ink-3); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   Friend links block (sits right above the footer)
   ------------------------------------------------------------ */
.kb-flink { background: #f2f8f7; border-top: 1px solid #dfecea; padding: 38px 0 34px; }
.kb-flink-head { margin-bottom: 22px; }
.kb-flink-title { font-size: 20px; font-weight: 800; color: var(--kb-teal-ink); letter-spacing: -0.2px; }
.kb-flink-note { margin-top: 5px; font-size: 14.5px; color: var(--kb-ink-3); }
.kb-flink-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kb-flink-cell { min-width: 0; }
.kb-flink-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 10px 13px; border-radius: 14px; background: #ffffff;
  border: 1px solid #e2eeec; text-align: center; height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.kb-flink-item:hover, .kb-flink-item:focus-visible {
  transform: translateY(-3px); border-color: var(--kb-teal);
  box-shadow: 0 12px 26px rgba(11, 60, 56, 0.12);
}
.kb-flink-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.kb-flink-name { font-size: 14px; font-weight: 700; color: var(--kb-ink-1); line-height: 1.4; }

.kb-footer { background: #07302e; color: #c9e2de; margin-top: 0; }
.kb-foot-grid {
  display: grid; grid-template-columns: 1.3fr 1.25fr 1.15fr; gap: 30px;
  padding: 42px 0 30px;
}
.kb-foot-brand, .kb-foot-col { min-width: 0; }
.kb-logo-foot { margin-bottom: 16px; }
.kb-foot-about { font-size: 14.5px; line-height: 1.75; color: #a9cfca; max-width: 40ch; }
.kb-foot-h { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 15px; letter-spacing: 0.3px; }
.kb-foot-list { display: flex; flex-direction: column; gap: 9px; }
.kb-foot-list a { font-size: 14.3px; color: #a9cfca; transition: color 0.18s ease, transform 0.18s ease; display: inline-block; }
.kb-foot-list a:hover { color: var(--kb-amber); transform: translateX(2px); }
.kb-foot-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 9px; }
.kb-foot-info { display: flex; flex-direction: column; gap: 11px; }
.kb-foot-info li { display: flex; gap: 10px; font-size: 14.3px; line-height: 1.6; }
.kb-foot-key { flex: 0 0 92px; color: #7fb0aa; }
.kb-foot-val { color: #d3e9e5; }
.kb-foot-base { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kb-foot-copy { font-size: 13.3px; color: #8fb5b0; max-width: 72ch; }
.kb-foot-meta { display: flex; align-items: center; gap: 9px; font-size: 13.3px; color: #8fb5b0; flex-wrap: wrap; }
.kb-foot-sitemap { color: #6fd6c9; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.18s ease; }
.kb-foot-sitemap:hover { color: var(--kb-amber); }

.kb-top-btn {
  position: fixed; right: 22px; bottom: 24px; z-index: 60;
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--kb-teal); color: #fff; font-size: 18px;
  box-shadow: 0 14px 30px -14px rgba(15, 118, 110, 0.9);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.kb-top-btn.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.kb-top-btn:hover { background: var(--kb-teal-deep); }

/* ------------------------------------------------------------
   404 page
   ------------------------------------------------------------ */
.kb-error { padding: 74px 0 84px; text-align: center; }
.kb-error-code {
  font-size: clamp(72px, 13vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -3px;
  background: linear-gradient(140deg, var(--kb-teal), var(--kb-amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kb-error-title { margin-top: 14px; font-size: clamp(23px, 3vw, 32px); font-weight: 800; color: var(--kb-teal-ink); }
.kb-error-desc { margin: 14px auto 0; max-width: 56ch; color: var(--kb-ink-2); }
.kb-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kb-error-cats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: 46px; text-align: left;
}
.kb-error-cat {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: #fff; border: 1px solid var(--kb-line); border-radius: var(--kb-r);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.kb-error-cat:hover { transform: translateY(-3px); border-color: var(--kb-teal); box-shadow: var(--kb-shadow-sm); }
.kb-error-cat strong { font-size: 16px; font-weight: 700; color: var(--kb-teal-ink); }
.kb-error-cat span { font-size: 13.3px; color: var(--kb-ink-3); line-height: 1.6; }

/* ------------------------------------------------------------
   Reveal animation
   ------------------------------------------------------------ */
html.kb-js .kb-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.kb-js .kb-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.kb-js .kb-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Tablet 1080px and below
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .kb-header-line { gap: 16px; }
  .kb-burger { display: flex; margin-left: auto; }
  .kb-nav-mask { display: block; }
  .kb-nav {
    position: fixed; top: 0; right: 0; z-index: 50;
    width: min(360px, 86vw); height: 100vh; height: 100dvh;
    background: #ffffff; box-shadow: -18px 0 44px -26px rgba(8, 58, 55, 0.6);
    transform: translateX(102%); transition: transform 0.3s ease;
    overflow-y: auto; padding: 22px 0 30px;
  }
  .kb-nav.is-open { transform: translateX(0); }
  .kb-nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 16px; }
  .kb-nav-list > li { border-bottom: 1px dashed var(--kb-line); }
  .kb-nav-list > li:last-child { border-bottom: 0; }
  .kb-nav-a { width: 100%; justify-content: space-between; padding: 15px 12px; border-radius: 12px; font-size: 16px; }
  .kb-nav-a.is-active { color: var(--kb-teal-deep); background: var(--kb-teal-soft); }

  .kb-hero-line { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 54px; }
  .kb-hero-desc { max-width: none; }
  .kb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .kb-cat-feature { grid-template-columns: 1fr; }
  .kb-cat-lean { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .kb-subcat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .kb-list-wrap { grid-template-columns: 1fr; gap: 30px; }
  .kb-article-wrap { grid-template-columns: 1fr; gap: 30px; max-width: 920px; }
  .kb-side { position: static; }
  .kb-about-line { grid-template-columns: 1fr; gap: 30px; }
  .kb-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .kb-flink { padding: 32px 0 28px; }
  .kb-flink-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .kb-error-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-faq { grid-template-columns: 1fr; }
  .kb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------
   Mobile 700px and below
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  body.kb-body { font-size: 15.5px; }
  .kb-shell { padding: 0 16px; }
  .kb-header-line { min-height: 66px; }
  .kb-logo-img { width: 196px; height: 45px; }

  .kb-hero-line { padding-top: 34px; padding-bottom: 42px; gap: 28px; }
  .kb-hero-title { font-size: clamp(27px, 8vw, 34px); }
  .kb-hero-actions .kb-btn { flex: 1 1 100%; }
  .kb-stats { gap: 8px; margin-top: 24px; }
  .kb-stat dt { font-size: 21px; }
  .kb-hero-visual { gap: 12px; }
  .kb-poster:nth-child(1) .kb-poster-media { aspect-ratio: 16 / 10; }
  .kb-poster-media { aspect-ratio: 4 / 3; }

  .kb-section { padding: 52px 0; }
  .kb-grid-4 { grid-template-columns: 1fr; }
  .kb-cat-lean { grid-template-columns: 1fr; }
  .kb-cat-lean .kb-cat-slim:nth-child(3) { display: block; }
  .kb-subcat { grid-template-columns: 1fr; }
  .kb-cat-big-link { grid-template-columns: 1fr; min-height: 0; }
  .kb-cat-big-media { aspect-ratio: 16 / 9; }
  .kb-about { padding: 54px 0; }
  .kb-about-line { gap: 24px; }
  .kb-faq-a { padding-left: 19px; }
  .kb-panel { padding: 22px 18px; }
  .kb-article { padding: 24px 18px; }
  .kb-article-body { font-size: 16px; }
  .kb-article-body h2 { font-size: 19px; margin-top: 24px; }
  .kb-switcher { grid-template-columns: 1fr; }
  .kb-switcher-next { text-align: left; }
  .kb-foot-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .kb-foot-cats { column-gap: 14px; row-gap: 8px; }
  .kb-flink { padding: 26px 0 22px; }
  .kb-flink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kb-flink-item { padding: 13px 8px 11px; border-radius: 12px; }
  .kb-flink-logo { width: 48px; height: 48px; }
  .kb-flink-name { font-size: 13.2px; }
  .kb-error { padding: 52px 0 60px; }
  .kb-error-cats { grid-template-columns: 1fr; }
  .kb-page-hero-line { padding-top: 32px; padding-bottom: 34px; }
  .kb-top-btn { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
  .kb-header, .kb-burger, .kb-nav, .kb-top-btn, .kb-pagi, .kb-side, .kb-flink { display: none !important; }
  body.kb-body { background: #fff; }
  .kb-article { border: 0; box-shadow: none; padding: 0; }
}
