:root {
  --ink: #0b1426;
  --paper: #f7f3eb;
  --muted: #69758a;
  --line: rgba(11, 20, 38, .12);
  --lime: #c9f23f;
  --blue: #229ed9;
  --green: #18a66a;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Manrope", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
mark { color: inherit; background: linear-gradient(transparent 64%, rgba(201, 242, 63, .7) 64%); }
.blog-shell { width: var(--shell); margin-inline: auto; }

.blog-header { position: sticky; z-index: 20; top: 0; background: rgba(247, 243, 235, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.blog-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.blog-brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.blog-brand img { width: 34px; height: 34px; object-fit: contain; }
.blog-brand strong { font-size: 18px; }
.blog-brand span { color: var(--muted); font-size: 14px; }
.blog-nav nav { display: flex; align-items: center; gap: 24px; color: #4f5b6e; font-size: 13px; font-weight: 700; }
.blog-nav nav a:hover, .blog-nav nav a[aria-current="page"] { color: var(--ink); }
.blog-nav-cta { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; color: #fff !important; background: var(--ink); border-radius: 12px; }

.hub-hero { padding: 105px 0 80px; overflow: hidden; position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.hub-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -240px; top: -260px; border: 90px solid rgba(34, 158, 217, .08); border-radius: 50%; }
.hub-hero .blog-shell { position: relative; z-index: 1; }
.hub-kicker, .library-head span, .hub-cta span, .related > span { color: #1389c5; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.hub-hero h1 { max-width: 900px; margin: 18px 0 25px; font-size: clamp(48px, 7vw, 82px); line-height: 1.02; letter-spacing: -.065em; }
.hub-hero > .blog-shell > p { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hub-stats { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 45px; }
.hub-stats div { padding-left: 16px; border-left: 3px solid var(--lime); }
.hub-stats b, .hub-stats span { display: block; }
.hub-stats b { font-size: 30px; letter-spacing: -.04em; }
.hub-stats span { margin-top: 2px; color: var(--muted); font-size: 12px; }

.hub-library { padding: 80px 0 110px; }
.library-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.library-head h2 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; }
.blog-search { width: min(430px, 100%); min-height: 54px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 12px 35px rgba(11, 20, 38, .06); }
.blog-search span { color: var(--muted); font-size: 25px; }
.blog-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.cluster-filters { margin: 35px 0 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.cluster-filters button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: #5d687b; background: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.cluster-filters button:hover, .cluster-filters button.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.result-count { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 21px; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(11, 20, 38, .1); }
.post-card[hidden] { display: none; }
.post-image { aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf2; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-image img { transform: scale(1.025); }
.post-card > div { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.post-card > div > span { color: #1389c5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.post-card h2 { margin: 10px 0 12px; font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
.post-card h2 a:hover { color: #087fba; }
.post-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.post-link { margin-top: auto; color: #087fba; font-size: 11px; font-weight: 800; }
.no-results { padding: 60px 20px; text-align: center; background: var(--paper); border-radius: 22px; }
.no-results p { color: var(--muted); }

.hub-cta { padding: 0 0 100px; background: #fff; }
.hub-cta .blog-shell { padding: 48px 55px; display: flex; align-items: center; justify-content: space-between; gap: 35px; color: #fff; background: var(--ink); border-radius: 28px; }
.hub-cta h2 { margin: 10px 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.hub-cta p { margin: 0; color: rgba(255, 255, 255, .62); }
.hub-cta a { min-height: 52px; padding: 0 21px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--ink); background: var(--lime); border-radius: 14px; font-size: 12px; font-weight: 850; }

.article { padding: 35px 0 100px; background: #fff; }
.article-shell { max-width: 1180px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: #087fba; }
.article-hero { margin-top: 28px; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; }
.article-intro { padding: clamp(35px, 5.5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.article-cluster { color: #1389c5; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.article-hero h1 { margin: 15px 0 20px; font-size: clamp(37px, 5vw, 62px); line-height: 1.05; letter-spacing: -.058em; }
.article-hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.article-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 8px; color: #8791a2; font-size: 10px; }
.article-hero > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.article-layout { margin-top: 65px; display: grid; grid-template-columns: 250px minmax(0, 740px); gap: 58px; justify-content: center; align-items: start; }
.article-toc { padding: 22px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 98px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 45px rgba(11, 20, 38, .06); }
.article-toc b { margin: 0 10px 10px; font-size: 15px; line-height: 1.35; letter-spacing: -.015em; }
.article-toc a { min-height: 40px; padding: 10px; display: flex; align-items: center; color: var(--muted); border-radius: 11px; font-size: 13px; font-weight: 650; line-height: 1.4; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.article-toc a:hover { color: #087fba; background: #f3f8fb; transform: translateX(2px); }
.article-toc a:focus-visible { color: var(--ink); outline: 2px solid var(--blue); outline-offset: 2px; }
.article-body { min-width: 0; }
.article-body section { scroll-margin-top: 100px; }
.article-body > p, .article-body section > p, .article-body li { color: #4f5b6e; font-size: 15px; line-height: 1.85; }
.article-body .lead { margin: 36px 0; color: var(--ink); font-size: 19px; line-height: 1.75; }
.article-body h2 { margin: 58px 0 18px; font-size: clamp(29px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.045em; }
.article-body h3 { margin: 35px 0 15px; font-size: 21px; letter-spacing: -.025em; }
.answer-box { padding: 28px; border-left: 4px solid var(--lime); border-radius: 0 18px 18px 0; background: var(--paper); }
.answer-box span, .metric-card > span, .article-cta span { color: #1389c5; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.answer-box p { margin: 10px 0 0; color: var(--ink) !important; font-size: 16px !important; line-height: 1.75 !important; }
.note { margin: 28px 0; padding: 24px; background: #edf8fc; border: 1px solid rgba(34, 158, 217, .18); border-radius: 17px; }
.note b { font-size: 13px; }
.note p { margin: 8px 0 0; color: #536579; font-size: 13px; line-height: 1.75; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { margin: 0 0 13px; padding: 18px 18px 18px 55px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.steps li::before { counter-increment: steps; content: counter(steps); width: 27px; height: 27px; position: absolute; left: 16px; top: 17px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 9px; font-size: 10px; font-weight: 800; }
.metric-card { margin: 50px 0; padding: 35px; color: #fff; background: var(--ink); border-radius: 22px; }
.metric-card h2 { margin: 10px 0 12px; color: #fff; }
.metric-card p { margin: 0; color: rgba(255, 255, 255, .68) !important; }
.week-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.week-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.week-grid span, .week-grid b { display: block; }
.week-grid span { color: #1389c5; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.week-grid b { margin-top: 8px; font-size: 15px; }
.week-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.formula { padding: 27px; background: var(--paper); border-radius: 18px; }
.formula b { display: block; margin-bottom: 12px; }
.formula code { display: block; padding: 16px; overflow-x: auto; color: #0b6245; background: #e9f7f0; border-radius: 12px; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.6; }
.formula p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.checklist { padding: 0; list-style: none; }
.checklist li { padding-left: 31px; position: relative; }
.checklist li::before { content: "✓"; width: 21px; height: 21px; position: absolute; left: 0; top: 4px; display: grid; place-items: center; color: var(--green); background: #eaf8f1; border-radius: 50%; font-size: 11px; font-weight: 900; }
.article-cta { margin: 60px 0; padding: 35px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: var(--ink); border-radius: 22px; }
.article-cta h2 { margin: 9px 0 !important; color: #fff; font-size: 30px !important; }
.article-cta p { margin: 0; color: rgba(255, 255, 255, .62) !important; font-size: 12px !important; }
.article-cta > a { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--ink); background: var(--lime); border-radius: 13px; font-size: 11px; font-weight: 850; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 0; cursor: pointer; font-size: 14px; font-weight: 750; }
.faq-list p { margin: -5px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.related { margin-top: 65px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-grid a { min-height: 185px; padding: 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; }
.related-grid small { color: #1389c5; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.related-grid b { margin: 9px 0; font-size: 13px; line-height: 1.45; }
.related-grid em { margin-top: auto; color: #087fba; font-size: 10px; font-style: normal; font-weight: 800; }

.blog-footer { padding: 60px 0 25px; background: var(--paper); border-top: 1px solid var(--line); }
.blog-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.blog-footer-grid p { max-width: 370px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.blog-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
.blog-footer-grid b { font-size: 11px; }
.blog-footer-grid a:not(.blog-brand) { color: var(--muted); font-size: 11px; }
.blog-footer-grid a:hover { color: var(--ink); }
.blog-footer-bottom { margin-top: 45px; padding-top: 20px; color: #8b94a3; border-top: 1px solid var(--line); font-size: 10px; }

@media (max-width: 900px) {
  .blog-nav nav a:not(.blog-nav-cta):not([aria-current="page"]) { display: none; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero { grid-template-columns: 1fr; }
  .article-hero > img { min-height: 360px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-toc { width: 100%; max-width: 100%; padding: 12px; flex-direction: row; align-items: center; gap: 8px; top: 84px; z-index: 10; overflow-x: auto; overscroll-behavior-inline: contain; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 34px rgba(11, 20, 38, .09); backdrop-filter: blur(16px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .article-toc::-webkit-scrollbar { display: none; }
  .article-toc b { margin: 0; padding: 0 6px; flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
  .article-toc a { min-height: 44px; padding: 0 15px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
  .article-toc a:hover { transform: none; }
  .article-body section { scroll-margin-top: 160px; }
  .blog-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .blog-nav { min-height: 64px; }
  .blog-brand strong { font-size: 15px; }
  .blog-brand span { font-size: 11px; }
  .blog-nav nav { gap: 10px; }
  .blog-nav nav a[aria-current="page"] { display: none; }
  .blog-nav-cta { min-height: 38px; padding: 0 13px; font-size: 11px; }
  .hub-hero { padding: 70px 0 55px; }
  .hub-hero h1 { font-size: 44px; }
  .hub-hero > .blog-shell > p { font-size: 15px; }
  .hub-stats { gap: 22px; }
  .hub-library { padding: 55px 0 75px; }
  .library-head { align-items: stretch; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .hub-cta .blog-shell, .article-cta { padding: 32px 25px; align-items: flex-start; flex-direction: column; }
  .article { padding-top: 20px; }
  .article-hero { border-radius: 20px; }
  .article-intro { padding: 30px 23px; }
  .article-hero h1 { font-size: 37px; }
  .article-hero > img { min-height: 250px; }
  .article-layout { margin-top: 38px; }
  .article-toc { margin-inline: -2px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: static; overflow: visible; border-radius: 18px; box-shadow: 0 12px 34px rgba(11, 20, 38, .07); backdrop-filter: none; }
  .article-toc b { margin: 0 0 5px; padding: 0; grid-column: 1 / -1; font-size: 15px; }
  .article-toc a { min-height: 48px; padding: 10px 12px; justify-content: center; border-radius: 12px; font-size: 12px; line-height: 1.35; text-align: center; white-space: normal; }
  .article-body section { scroll-margin-top: 90px; }
  .article-body .lead { font-size: 17px; }
  .answer-box, .metric-card, .formula { padding: 23px; }
  .week-grid, .related-grid { grid-template-columns: 1fr; }
  .blog-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Four-language switcher (blog nav) */
.blog-lang{display:inline-flex;gap:2px;margin:0 4px;padding:2px;border:1px solid rgba(0,0,0,.12);border-radius:999px}
.blog-lang a{padding:4px 10px;border-radius:999px;font-size:12.5px;font-weight:600;color:inherit;opacity:.7;line-height:1.4}
.blog-lang a[aria-current="true"]{background:var(--ink,#1a1a2e);color:#fff;opacity:1}
@media (prefers-color-scheme:dark){.blog-lang{border-color:rgba(255,255,255,.16)}.blog-lang a[aria-current="true"]{background:#fff;color:#111}}
@media (max-width:620px){
  .blog-nav{gap:8px}
  .blog-nav nav{gap:7px}
  .blog-nav nav .blog-lang{margin:0;padding:2px;gap:1px}
  .blog-nav nav .blog-lang a{width:28px;height:30px;padding:0!important;display:inline-grid!important;place-items:center;overflow:hidden;font-size:0!important}
  .blog-lang a::before{font-size:15px;line-height:1}
  .blog-lang a[href*="/uz-cyrl/"]::before,.blog-lang a[href^="https://business.salom-ai.uz/blog/"]::before{content:"🇺🇿"}
  .blog-lang a[href*="/ru/"]::before{content:"🇷🇺"}
  .blog-lang a[href*="/en/"]::before{content:"🇬🇧"}
  .blog-lang a[aria-current="true"]{box-shadow:0 0 0 1px var(--ink)}
}
@media (max-width:410px){
  .blog-brand span{display:none}
  .blog-nav-cta{width:44px;padding:0;justify-content:center;overflow:hidden;white-space:nowrap;text-indent:-999px}
  .blog-nav-cta::after{content:"AI";text-indent:0}
}
