/* WorldWides - inner pages (services, sections). Builds on main.css tokens. */

body.inner main { padding-top: 74px; }
body.inner { background: var(--white); }

/* mega menu: "all services" link */
.mega-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); text-transform: uppercase;
}
.mega-all:hover { color: var(--gold); }

/* homepage "see all" links */
.home-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1.6rem; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--blue); border-bottom: 1px solid rgba(26,58,143,.25); padding-bottom: 2px;
}
.home-more:hover { color: var(--gold); border-color: var(--gold); }
.cases-section-v2 .home-more { margin: 0 1.2rem 0 0; }
.main-svc-name a, .svc-name a { color: inherit; }

/* ── page hero ─────────────────────────────────────────── */
.pg-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(26,58,143,.07), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(201,168,76,.08), transparent 60%),
    var(--off);
  border-bottom: 1px solid rgba(26,58,143,.06);
  padding: 28px 0 34px;
}
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink2); }
.crumbs a:hover { color: var(--blue); }
.crumbs-sep { opacity: .45; }
.crumbs [aria-current] { color: var(--muted); }

.pg-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 26px; }
.pg-hero-text .pg-hero-grid { grid-template-columns: 1fr; max-width: 820px; }
.pg-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.pg-eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--gold); }
.pg-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(36px, 5vw, 62px); line-height: 1.04; letter-spacing: -.01em;
  color: var(--ink); margin: 14px 0 16px; text-wrap: balance;
}
.pg-lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink2); line-height: 1.6; max-width: 600px; }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
.pg-hero-actions .btn { gap: 8px; }
.pg-link-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pg-link-wa svg { color: #25D366; }
.pg-link-wa:hover { color: var(--blue); }

.pg-hero-media { position: relative; }
.pg-hero-img, .pg-hero-media .img-ph {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--r-lg); box-shadow: 0 30px 60px rgba(13,24,51,.14);
}
.pg-hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-radius: 99px; padding: 9px 16px; font-size: 12px; font-weight: 700; color: var(--ink);
  box-shadow: 0 10px 25px rgba(13,24,51,.12);
}
.pg-hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.img-ph { background: linear-gradient(135deg, #1a3a8f 0%, #0d1833 100%); position: relative; }
.img-ph::after {
  content: 'W'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-size: 64px; color: rgba(201,168,76,.45);
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 34px;
  background: rgba(26,58,143,.08); border-radius: 16px; overflow: hidden; border: 1px solid rgba(26,58,143,.08); }
.fact { background: rgba(255,255,255,.92); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.fact b { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.fact span { font-size: 12px; color: var(--muted); }

/* ── body layout ───────────────────────────────────────── */
.pg-body { padding: 56px 0 24px; }
.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-main { min-width: 0; }
.pg-aside { position: sticky; top: 100px; }
.aside-card {
  background: linear-gradient(160deg, var(--blue-d), var(--ink)); color: var(--white);
  border-radius: var(--r-lg); padding: 26px 24px; box-shadow: 0 24px 50px rgba(13,24,51,.18);
}
.aside-eyebrow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.aside-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; margin: 8px 0 6px; line-height: 1.1; }
.aside-card p { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.55; }
.aside-btn { width: 100%; justify-content: center; margin-top: 18px; }
.aside-wa, .aside-tel { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.aside-wa svg { color: #25D366; }
.aside-wa:hover, .aside-tel:hover { color: var(--gold); }

.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink2); margin: 0 0 1.05em; }
.prose ul { margin: .4em 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin: .45em 0; color: var(--ink2); line-height: 1.6; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.pg-intro p:first-child { font-size: 18px; color: var(--ink); }
.pg-intro-wide { max-width: 820px; }

.pg-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; color: var(--ink); margin: 0 0 22px; text-wrap: balance;
}
.pg-block { margin-top: 52px; }

.inc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inc-item {
  display: flex; gap: 14px; padding: 20px; border-radius: 16px;
  background: var(--white); border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card);
}
.inc-icon { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-l); color: #8a6d1f; }
.inc-item h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin: 4px 0 4px; line-height: 1.35; }
.inc-item p { font-size: 14px; color: var(--ink2); line-height: 1.55; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink2); line-height: 1.55; }
.check-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--blue); }

/* ── sections ─────────────────────────────────────────── */
.pg-sec { padding: 64px 0; }
.pg-sec-alt { background: var(--off); border-top: 1px solid rgba(26,58,143,.05); border-bottom: 1px solid rgba(26,58,143,.05); }
.pg-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; font-size: 14px; color: var(--blue); }
.pg-more:hover { color: var(--gold); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 22px; border-radius: 18px; background: var(--blue-xl); border: 1px solid rgba(26,58,143,.07); }
.step-num { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.step h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 10px 0 6px; line-height: 1.35; }
.step p { font-size: 14px; color: var(--ink2); line-height: 1.55; margin: 0; }

.svc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.svc-tile { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.svc-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(13,24,51,.1); }
.svc-tile-img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-tile-img img, .svc-tile-img .img-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.svc-tile:hover .svc-tile-img img { transform: scale(1.05); }
.svc-tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.svc-tile-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.svc-tile-text { font-size: 13.5px; color: var(--ink2); line-height: 1.55; margin: 0 0 14px; flex: 1; }
.svc-tile-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.svc-tile:hover .svc-tile-more { color: var(--gold); }

.case-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.case-card { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.case-card-img, .case-card .img-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.case-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.case-card-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.case-card-title { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 600; line-height: 1.15; color: var(--ink); margin: 8px 0 8px; }
.case-card-text { font-size: 14.5px; color: var(--ink2); line-height: 1.6; margin: 0 0 14px; flex: 1; }
.case-card-metric { font-size: 13px; font-weight: 700; color: var(--blue); padding-top: 12px; border-top: 1px solid rgba(26,58,143,.08); }
.case-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.case-card-link:hover { color: var(--gold); }
.case-cards-lg { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.price-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 34px clamp(22px, 4vw, 44px); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--gold-l), #fbf6ea 60%, var(--white)); border: 1px solid rgba(201,168,76,.3); }
.price-box p { font-size: 15.5px; color: var(--ink2); line-height: 1.65; max-width: 640px; margin: 0; }
.price-box .pg-h2 { margin-bottom: 12px; }
.price-box-side { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 230px; }
.price-box-side .btn { justify-content: center; gap: 8px; padding: 14px 26px; }
.price-box-from { display: flex; flex-direction: column; text-align: center; }
.price-box-from span { font-size: 12px; color: var(--muted); }
.price-box-from b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-box-trial { text-align: center; font-size: 13px; font-weight: 700; color: var(--blue); }
.price-box-trial:hover { color: var(--gold); }

.pg-faq { background: var(--off); }
.pg-faq-grid { margin-top: 0; }

/* ── lead form ─────────────────────────────────────────── */
.lead { background: radial-gradient(900px 400px at 85% 0%, rgba(201,168,76,.16), transparent 60%), linear-gradient(160deg, var(--blue-d), var(--ink)); color: var(--white); padding: 72px 0; }
.lead-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 10px 0 12px; }
.lead-sub { color: rgba(255,255,255,.72); font-size: 15.5px; line-height: 1.65; max-width: 460px; }
.lead-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lead-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.18); color: var(--white); transition: all .2s ease; }
.lead-btn svg { width: 16px; height: 16px; }
.lead-btn-call svg { stroke: currentColor; }
.lead-btn:hover { background: rgba(255,255,255,.08); border-color: var(--gold); color: var(--gold); }
.lead-btn-wa svg { color: #25D366; }
.lead-btn-tg svg { color: #29B6F6; }
.lead-form { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lead-field span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead-field input, .lead-field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--blue-xl);
  border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s ease, background .2s ease; resize: vertical;
}
.lead-field input:focus, .lead-field textarea:focus { border-color: var(--blue); background: var(--white); }
.lead-invalid input:invalid { border-color: #d14343; }
.lead-submit { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--gold); color: #2a1a00; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .03em;
  padding: 15px 24px; border-radius: 99px; box-shadow: 0 8px 22px rgba(201,168,76,.35); transition: background .2s ease; }
.lead-submit:hover { background: #b8963e; }
.lead-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.lead-ok { display: none; margin-top: 12px; font-size: 14px; font-weight: 700; color: #15803d; }
.lead-sent .lead-ok { display: block; }

/* ── catalog (/uslugi/) ───────────────────────────────── */
.cat-list { display: grid; gap: 22px; }
.cat-item { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0; background: var(--white); border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card); }
.cat-img { display: block; min-height: 100%; }
.cat-img img, .cat-img .img-ph { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.cat-body { padding: 26px clamp(22px, 3vw, 36px); }
.cat-title { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; line-height: 1.1; margin: 0 0 8px; color: var(--ink); }
.cat-title a:hover { color: var(--blue); }
.cat-body > p { font-size: 15px; color: var(--ink2); line-height: 1.6; margin: 0 0 14px; }
.cat-subs { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-subs a { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-xl); border: 1px solid rgba(26,58,143,.1);
  padding: 6px 13px; border-radius: 99px; transition: all .2s ease; }
.cat-subs a:hover { background: var(--blue); color: var(--white); }
.cat-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cat-more:hover { color: var(--gold); }

/* ── tariffs ─────────────────────────────────────────── */
.pg-plans { padding-top: 56px; }
.cmp-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(26,58,143,.1); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid rgba(26,58,143,.07); }
.cmp thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-xl); }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.cmp td { color: var(--ink2); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp-note { margin-top: 16px; font-size: 14px; color: var(--ink2); line-height: 1.6; max-width: 820px; }
.cmp-note a { color: var(--blue); font-weight: 600; }

/* ── about ───────────────────────────────────────────── */
.about-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-cta-item { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: 18px; background: var(--blue-xl); border: 1px solid rgba(26,58,143,.08); transition: transform .2s ease; }
.about-cta-item:hover { transform: translateY(-3px); }
.about-cta-item b { font-size: 18px; color: var(--ink); }
.about-cta-item span { font-size: 14px; color: var(--ink2); }
.about-cta-item svg { color: var(--gold); margin-top: 8px; }

.nf { padding: 40px 0 80px; max-width: 720px; }

/* footer: four groups */
.ft-note { font-size: 12px; color: var(--muted); }

/* mobile sticky contact bar */
.m-bar { display: none; }

@media (max-width: 1100px) {
  .pg-layout { grid-template-columns: 1fr; }
  .pg-aside { display: none; }
  .inc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero-grid { grid-template-columns: 1fr; }
  .pg-hero-media { order: -1; }
  .lead-grid { grid-template-columns: 1fr; }
  .cat-item { grid-template-columns: 1fr; }
  .cat-img img, .cat-img .img-ph { min-height: 0; aspect-ratio: 16 / 9; }
  .price-box { grid-template-columns: 1fr; }
  .about-cta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .inc-grid, .inc-grid-4 { grid-template-columns: 1fr; }
  .lead-row { grid-template-columns: 1fr; gap: 0; }
  .pg-sec { padding: 48px 0; }
  .pg-body { padding-top: 40px; }
  .pg-block { margin-top: 40px; }
  .pg-faq-grid { grid-template-columns: 1fr; }
  .case-cards, .case-cards-lg { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
  .m-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid rgba(26,58,143,.1);
    backdrop-filter: blur(12px); }
  .m-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 99px; font-size: 14px; font-weight: 700; }
  .m-bar svg { width: 16px; height: 16px; }
  .m-bar-call { background: var(--blue-xl); color: var(--ink); }
  .m-bar-call svg { stroke: currentColor; }
  .m-bar-wa { background: #25D366; color: #fff; }
}
/* The header did not fit a 375px phone: logo 172px + language + "Связаться" + burger
   = 415px of 343px available, which pushed the burger off-screen. Languages and the
   request button live in the mobile menu and the bottom bar, so drop them here. */
@media (max-width: 560px) {
  .nav-right .lang-switch-wrap, .nav-right .nav-cta { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   CASES — case wall (bento), proof card, case page
   design-system/worldwides/pages/cases.md
   ════════════════════════════════════════════════════════════════════ */
:root { --gold-ink: #8a6a1c; } /* gold for numerals on white: 4.9:1 */


/* case wall */
.cw { background: var(--ink); color: var(--white); padding: 84px 0 92px; position: relative; overflow: hidden; }
.cw::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 90% -10%, rgba(201,168,76,.18), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(36,80,181,.35), transparent 60%); }
.cw .container { position: relative; }
.cw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.cw-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cw-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; margin: 10px 0 10px; color: var(--white); text-wrap: balance; }
.cw-sub { color: rgba(255,255,255,.66); font-size: 15px; line-height: 1.6; max-width: 560px; }
.cw-all { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(201,168,76,.45); padding: 12px 20px; border-radius: 99px; transition: all .2s ease; }
.cw-all:hover { background: var(--gold); color: #2a1a00; }
.cw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 16px; grid-auto-flow: dense; }
.cw-card { position: relative; display: block; border-radius: 20px; overflow: hidden; isolation: isolate; color: var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,.28); transition: transform .25s ease, box-shadow .25s ease; }
.cw-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(0,0,0,.36); }
.cw-card:focus-visible, .pcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cw-feat { grid-column: span 2; grid-row: span 2; }
.cw-wide { grid-column: span 2; }
.cw-img, .cw-card .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cw-card:hover .cw-img { transform: scale(1.05); }
.cw-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,14,32,.94) 0%, rgba(8,14,32,.72) 42%, rgba(8,14,32,.12) 78%, rgba(8,14,32,0) 100%); }
.cw-body { position: absolute; inset: auto 0 0 0; padding: 20px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.cw-tag { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.cw-metric { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--gold); display: flex; align-items: baseline; gap: 6px; line-height: .9; }
.cw-metric b { font-size: 46px; font-weight: 600; letter-spacing: -.02em; }
.cw-metric small { font-size: 18px; font-weight: 600; }
.cw-metric.is-word b { font-size: 28px; line-height: 1.1; }
.cw-mlabel { font-size: 12px; color: rgba(255,255,255,.7); }
.cw-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.15; margin-top: 6px; color: var(--white); }
.cw-sum { display: none; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); margin-top: 6px; max-width: 520px; }
.cw-more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--white); margin-top: 8px; opacity: .85; }
.cw-card:hover .cw-more { color: var(--gold); opacity: 1; }
.cw-feat .cw-body { padding: 30px 32px 30px; }
.cw-feat .cw-metric b { font-size: clamp(72px, 8vw, 112px); }
.cw-feat .cw-metric small { font-size: 28px; }
.cw-feat .cw-title { font-size: clamp(26px, 2.6vw, 36px); }
.cw-feat .cw-sum, .cw-wide .cw-sum { display: block; }
.cw-wide .cw-metric b { font-size: 56px; }
.cw-wide .cw-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* proof card (service pages, right after the intro) */
.pg-proof { margin-top: 34px; }
.pcard { display: grid; grid-template-columns: 42% 1fr; border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--white);
  box-shadow: 0 22px 48px rgba(13,24,51,.2); transition: transform .25s ease; }
.pcard:hover { transform: translateY(-3px); }
.pcard-img { position: relative; min-height: 260px; }
.pcard-img img, .pcard-img .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.pcard-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pcard-metric { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--gold); display: flex; align-items: baseline; gap: 6px; margin-top: 8px; line-height: .9; }
.pcard-metric b { font-size: 64px; font-weight: 600; letter-spacing: -.02em; }
.pcard-metric small { font-size: 22px; font-weight: 600; }
.pcard-metric.is-word b { font-size: 34px; line-height: 1.1; }
.pcard-mlabel { font-size: 12.5px; color: rgba(255,255,255,.66); }
.pcard-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.15; margin-top: 10px; }
.pcard-sum { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.76); margin-top: 6px; }
.pcard-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-top: 12px; color: var(--white); }
.pcard:hover .pcard-more { color: var(--gold); }

/* case page */
.case-hero-metric { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 2px 0 14px; }
.chm { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--gold-ink); display: flex; align-items: baseline; gap: 8px; line-height: .9; }
.chm b { font-size: clamp(64px, 7vw, 96px); font-weight: 600; letter-spacing: -.02em; }
.chm small { font-size: 26px; font-weight: 600; }
.chm.is-word b { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; }
.chm-label { font-size: 14px; color: var(--muted); max-width: 260px; }
.cs-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cs-step { padding: 28px 26px; border-radius: 20px; background: var(--white); border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card); }
.cs-step:last-child { background: var(--ink); color: var(--white); border-color: transparent; }
.cs-num { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--gold-ink); }
.cs-step:last-child .cs-num { color: var(--gold); }
.cs-step h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 600; margin: 8px 0 10px; color: inherit; }
.cs-step p { font-size: 16px; line-height: 1.65; color: var(--ink2); margin: 0; }
.cs-step:last-child p { color: rgba(255,255,255,.82); }
.cs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.cs-pager a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(26,58,143,.1); background: var(--off); }
.cs-pager a:hover { border-color: var(--gold); }
.cs-pager span { font-size: 12px; font-weight: 700; color: var(--blue); }
.cs-pager b { font-size: 15px; color: var(--ink); line-height: 1.4; }
.cs-pager .cs-next { text-align: right; }

/* language links */
.fc-langs { flex-wrap: wrap; }
.fc-langs a.current, .nav-mobile-lang.current { color: var(--gold); }
.lang-switch-item .lang-flag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); min-width: 22px; display: inline-block; }
.nf-langs { margin-top: 28px; font-size: 14px; color: var(--muted); }
.nf-langs a { color: var(--blue); }

@media (max-width: 1100px) {
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cs-steps { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; }
  .pcard-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .cw { padding: 56px 0 64px; }
  .cw-head { flex-direction: column; align-items: flex-start; }
  .cw-grid { grid-template-columns: 1fr; grid-auto-rows: 360px; }
  .cw-feat, .cw-wide { grid-column: auto; grid-row: auto; }
  .cw-feat .cw-metric b { font-size: 72px; }
  .cw-sum { display: block; }
  /* homepage: the wall becomes a swipeable rail */
  .cw--rail .cw-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .cw--rail .cw-grid::-webkit-scrollbar { display: none; }
  .cw--rail .cw-card { flex: 0 0 84%; height: 420px; scroll-snap-align: start; }
  .cs-pager { grid-template-columns: 1fr; }
  .cs-pager .cs-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-card, .cw-img, .pcard { transition: none !important; }
  .cw-card:hover, .pcard:hover { transform: none; }
  .cw-card:hover .cw-img { transform: none; }
}

/* scripts that Cormorant/Inter do not cover */
:lang(zh) body, :lang(zh) input, :lang(zh) textarea, :lang(zh) button, :lang(zh) select { font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .pg-h1, :lang(zh) .pg-h2, :lang(zh) .cw-h2, :lang(zh) .cw-title, :lang(zh) .pcard-title,
:lang(zh) .lead-title, :lang(zh) .aside-title, :lang(zh) .cat-title, :lang(zh) .hero-mega-title, :lang(zh) .brand-statement,
:lang(zh) .main-svc-title, :lang(zh) .main-svc-name, :lang(zh) .sec-title, :lang(zh) .cta-banner-title { font-family: 'Cormorant Garamond', 'Noto Serif SC', serif; }
:lang(hi) body, :lang(hi) input, :lang(hi) textarea, :lang(hi) button, :lang(hi) select { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .pg-h1, :lang(hi) .pg-h2, :lang(hi) .cw-h2, :lang(hi) .cw-title, :lang(hi) .pcard-title,
:lang(hi) .lead-title, :lang(hi) .aside-title, :lang(hi) .cat-title, :lang(hi) .hero-mega-title, :lang(hi) .brand-statement,
:lang(hi) .main-svc-title, :lang(hi) .main-svc-name, :lang(hi) .sec-title, :lang(hi) .cta-banner-title { font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', serif; line-height: 1.35; }
:lang(hi) p { line-height: 1.85; }

/* ── Journal: article page ─────────────────────────────── */
.art-hero { background: var(--off); border-bottom: 1px solid rgba(26,58,143,.06); padding: 28px 0 40px; }
.art-head-row { margin-top: 26px; }
.art-head { min-width: 0; }
.art-head-row.no-toc .art-head-spacer { display: none; }
.art-head .pg-eyebrow a { color: var(--gold); }
.art-head .pg-eyebrow a:hover { color: var(--blue); }
.art-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06; letter-spacing: -.01em; color: var(--ink); margin: 14px 0 16px; text-wrap: balance; }
.art-lead { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: var(--ink2); margin: 0; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.art-meta span + span::before { content: "·"; margin-right: 18px; color: rgba(122,138,170,.6); }
.art-cover { max-width: 1100px; margin: 32px auto 0; }
.art-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; border-radius: var(--r-lg);
  box-shadow: 0 26px 56px rgba(13,24,51,.14); }

.art-wrap { padding: 52px 0 32px; }
.art-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; }
.art-layout.no-toc { grid-template-columns: minmax(0, 760px); }
.art-toc { position: sticky; top: 100px; font-size: 13.5px; }
.art-toc details { border-left: 2px solid rgba(201,168,76,.35); padding-left: 16px; }
.art-toc-title { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); cursor: pointer; list-style: none; margin-bottom: 10px; }
.art-toc-title::-webkit-details-marker { display: none; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.art-toc li { counter-increment: toc; }
.art-toc a { color: var(--ink2); line-height: 1.4; display: block; }
.art-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--muted); font-size: 11px; font-weight: 700; }
.art-toc a:hover { color: var(--blue); }

.art-body { min-width: 0; }
.art-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(27px, 2.8vw, 34px);
  line-height: 1.15; color: var(--ink); margin: 1.9em 0 .6em; scroll-margin-top: 96px; text-wrap: balance; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 18.5px; font-weight: 700; color: var(--ink); margin: 1.6em 0 .5em; line-height: 1.35; scroll-margin-top: 96px; }
.art-body p a, .art-body li a, .art-body td a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(26,58,143,.3); text-underline-offset: 3px; }
.art-body p a:hover, .art-body li a:hover, .art-body td a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body ol { margin: .4em 0 1.2em; padding-left: 1.4em; color: var(--ink2); }
.art-body ol li { padding-left: 4px; margin: .45em 0; line-height: 1.6; }
.art-body ol li::before { content: none; }
.art-table { overflow-x: auto; margin: 1.4em 0; border-radius: 14px; border: 1px solid rgba(26,58,143,.12); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.art-table caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
.art-table th { background: var(--blue-xl); color: var(--blue); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; text-align: left; padding: 12px 16px; }
.art-table td { padding: 12px 16px; border-top: 1px solid rgba(26,58,143,.07); color: var(--ink2); vertical-align: top; line-height: 1.5; }
.art-tip { margin: 1.5em 0; padding: 18px 22px; border-radius: 14px; background: linear-gradient(120deg, var(--gold-l), #fbf6ea);
  border: 1px solid rgba(201,168,76,.35); }
.art-tip-title { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8a6d1f; margin-bottom: 6px; }
.art-tip p { margin: 0; color: var(--ink); }
.art-body blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--gold); }
.art-body blockquote p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; line-height: 1.4; color: var(--ink); font-style: italic; margin: 0; }
.art-body blockquote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-style: normal; }

.art-cta { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; margin: 2em 0;
  padding: 16px; border-radius: 18px; background: linear-gradient(160deg, var(--blue-d), var(--ink)); color: var(--white);
  box-shadow: 0 18px 40px rgba(13,24,51,.16); }
.art-cta-img img, .art-cta-img .img-ph { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; display: block; }
.art-cta-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.art-cta-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1.15; margin: 4px 0 4px; }
.art-cta-body p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.75); margin: 0 0 8px; }
.art-cta-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--gold); text-decoration: none; }
.art-cta-link:hover { color: var(--white); }

.art-sources { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid rgba(26,58,143,.1); }
.art-sources h2 { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8em; }
.art-sources ol { padding-left: 1.3em; margin: 0; }
.art-sources li { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: .35em 0; word-break: break-word; }
.art-sources a { color: var(--ink2); }
.art-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 2.2em; padding: 20px 22px; border-radius: 16px; background: var(--blue-xl); border: 1px solid rgba(26,58,143,.08); }
.art-author-mark { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-d), var(--ink)); color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; }
.art-author-label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.art-author-name { font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.art-author p { font-size: 14px; line-height: 1.55; margin: 0; }
.art-author p a { white-space: nowrap; }
.jr-help-text { color: var(--ink2); margin: -8px 0 22px; max-width: 640px; }

/* ── Journal: cards, index ─────────────────────────────── */
.jr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jr-head .pg-more { margin-top: 0; }
.jr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.jr-card { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26,58,143,.08); box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.jr-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(13,24,51,.1); }
.jr-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.jr-card-img img, .jr-card-img .img-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.jr-card:hover .jr-card-img img { transform: scale(1.04); }
.jr-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.jr-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.jr-cat { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; color: var(--gold); }
.jr-card-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); text-wrap: balance; }
.jr-card-title a:hover { color: var(--blue); }
.jr-card-lead { font-size: 14px; line-height: 1.55; color: var(--ink2); margin: 0; }
.jr-latest { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.jr-card-big .jr-card-title { font-size: 30px; }
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.jr-chip { font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-xl); border: 1px solid rgba(26,58,143,.1); padding: 7px 14px; border-radius: 99px; }
.jr-chip:hover { background: var(--blue); color: var(--white); }
.jr-chip-rss { color: #9a520a; background: #fff4e5; border-color: rgba(184,100,11,.18); }
.jr-group { margin-top: 44px; scroll-margin-top: 96px; }
.jr-group-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 600; color: var(--ink); margin: 0 0 18px; }

@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 760px); }
  .art-toc { position: static; margin-bottom: 8px; }
  .art-head-spacer { display: none; }
  .jr-latest { grid-template-columns: 1fr 1fr; }
  .jr-latest .jr-card-big { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .art-hero { padding-bottom: 28px; }
  .art-cover img { aspect-ratio: 16 / 10; }
  .art-wrap { padding-top: 32px; }
  .art-cta { grid-template-columns: 1fr; }
  .art-cta-img img, .art-cta-img .img-ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .jr-latest { grid-template-columns: 1fr; }
  .jr-card-big .jr-card-title { font-size: 26px; }
}
