.expertise-hero {
  min-height: calc(clamp(470px, 58vh, 620px) + var(--header-height));
  padding-block: calc(76px + var(--header-height)) 64px;
  text-align: left;
  background-image: radial-gradient(circle at 82% 30%, rgba(11,143,199,.26), transparent 28%), linear-gradient(104deg, rgba(7,21,33,.97) 15%, rgba(11,54,79,.83) 70%, rgba(7,21,33,.76)), url('../assets/banner-expertises.jpg');
  background-position: center;
}
.expertise-hero .hero-overlay { width: min(1180px, 100%); max-width: none; }
.expertise-hero h1 { max-width: 900px; margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5.4rem); }
.expertise-hero h2 { margin-bottom: 14px; }
.expertise-hero .expertise-hero-text { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.expertise-page { padding: 0 24px 96px; background: linear-gradient(180deg, #eef4f7 0, var(--surface-soft) 340px); }
.expertise-intro { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 70px; align-items: end; margin: 0 auto; padding: 84px 0 54px; }
.section-kicker { margin: 0 0 10px; color: var(--blue-600); font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.expertise-intro h2 { margin: 0 0 15px; color: var(--navy-900); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
.expertise-intro-copy > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.expertise-search { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.expertise-search label { display: block; margin-bottom: 8px; color: var(--navy-800); font-size: .82rem; font-weight: 760; }
.expertise-search-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f7fafb; border: 1px solid #cbd8df; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.expertise-search-field:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,143,199,.11); }
.expertise-search-field span { color: var(--blue-600); font-size: 1.4rem; }
.expertise-search input { width: 100%; min-height: 46px; padding: 10px 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.expertise-search input::placeholder { color: #84919b; }
#expertise-result-count { margin: 7px 2px 0; color: var(--muted); font-size: .74rem; }
.expertise-layout { width: min(1180px, 100%); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; margin: 0 auto; }
.expertise-sidebar { position: sticky; top: calc(var(--header-height) + 24px); max-height: calc(100vh - var(--header-height) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.expertise-sidebar-inner { padding: 20px; background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: var(--shadow-sm); }
.expertise-sidebar-title { margin: 0 0 12px; color: #fff; font-size: .78rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
#expertise-toc { display: grid; gap: 3px; }
#expertise-toc a { position: relative; display: block; padding: 8px 9px 8px 18px; color: rgba(255,255,255,.65); border-radius: 8px; font-size: .78rem; line-height: 1.35; text-decoration: none; transition: color .2s, background .2s; }
#expertise-toc a::before { content: ""; position: absolute; left: 7px; top: 50%; width: 4px; height: 4px; background: rgba(255,255,255,.3); border-radius: 50%; transform: translateY(-50%); }
#expertise-toc a:hover, #expertise-toc a.is-open { color: #fff; background: rgba(255,255,255,.08); }
#expertise-toc a.is-open::before { background: var(--amber-500); box-shadow: 0 0 0 3px rgba(242,169,0,.15); }
#expertise-toc a.is-hidden { display: none; }
.expertise-sidebar-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding: 12px; color: var(--navy-950); background: var(--amber-500); border-radius: 9px; font-size: .76rem; font-weight: 780; line-height: 1.3; text-decoration: none; }
.expertise-sidebar-cta:hover { color: var(--navy-950); background: #ffc13d; }
.expertise-section { min-width: 0; padding: 0; }
.expertise-box { position: relative; margin: 0 0 16px; padding: 27px 32px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(7,21,33,.055); scroll-margin-top: calc(var(--header-height) + 24px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.expertise-box:hover { border-color: #bad9e5; box-shadow: 0 18px 42px rgba(7,21,33,.1); transform: translateY(-2px); }
.expertise-box.is-expanded { margin-bottom: 24px; padding-block: 32px; border-color: #bad9e5; box-shadow: 0 18px 42px rgba(7,21,33,.09); }
.expertise-box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--amber-500), var(--blue-500)); }
.expertise-box[hidden] { display: none; }
.expertise-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; }
.expertise-index { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; color: var(--navy-950); background: var(--amber-500); border-radius: 11px; font-size: .78rem; font-weight: 900; }
.expertise-box h3 { margin: 0; color: var(--navy-900); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.expertise-box h4 { margin: 30px 0 10px; color: var(--navy-800); }
.expertise-box h5 { margin: 27px 0 9px; color: var(--navy-800); font-size: 1rem; line-height: 1.35; }
.expertise-box h6 { margin: 0 0 10px; color: var(--navy-800); font-size: .92rem; line-height: 1.4; }
.expertise-box p, .expertise-box li { color: #42515e; }
.expertise-box p { margin-block: 0 18px; }
.expertise-box br + br { line-height: .55; }
.expertise-box ul { padding-left: 22px; }
.expertise-box li { margin-bottom: 12px; padding-left: 5px; }
.expertise-box li::marker { color: var(--blue-500); }
.expertise-box .li-title { display: block; margin-bottom: 4px; color: var(--navy-800); font-weight: 760; }
.expertise-box b { color: var(--navy-800); }
.expertise-box mark.search-highlight { padding: 0 .12em; color: inherit; background: linear-gradient(transparent 8%, rgba(242,169,0,.42) 8%, rgba(242,169,0,.42) 92%, transparent 92%); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.expert-note { display: block !important; margin: 25px 0 !important; padding: 22px !important; color: var(--ink) !important; background: linear-gradient(135deg, #eef9fd, #f7fbfc) !important; border: 1px solid #b8dce9 !important; border-left: 4px solid var(--blue-500) !important; border-radius: 12px !important; }
.expert-accent { color: var(--blue-600) !important; }
.expert-note > :first-child { margin-top: 0; }
.expert-note > :last-child { margin-bottom: 0; }
.expert-note-heading { color: var(--blue-600) !important; font-weight: 800; }
.expertise-detail { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.expertise-detail--first { margin-top: 18px; padding-top: 0; border-top: 0; }
.expertise-detail > h4 { margin-top: 0; font-size: clamp(1.14rem, 2vw, 1.38rem); line-height: 1.35; }
.expertise-detail-list { margin: 13px 0 23px; padding-left: 23px; }
.expertise-detail-list--numbered { padding-left: 27px; }
.expertise-detail-list--features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.expertise-detail-list--features > li { margin: 0; padding: 15px 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.expertise-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 15px 0 27px; }
.expertise-topic-grid article { padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.expertise-topic-grid p { margin-bottom: 13px; font-size: .94rem; }
.expertise-topic-grid p:last-child { margin-bottom: 0; }
.expertise-nota { margin-top: 24px; padding: 17px 19px; background: #fff8e5; border: 1px solid #f1d58e; border-radius: 11px; }
.expertise-nota h5 { margin-top: 0; color: #795600; }
.expertise-nota p:last-child { margin-bottom: 0; }
.expertise-body { max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height .5s ease, margin-top .35s ease, opacity .25s ease; }
.expertise-body.is-collapsed { max-height: 0; }
.expertise-body.is-expanded { max-height: var(--expertise-body-height); margin-top: 25px; opacity: 1; pointer-events: auto; }
.expertise-expand { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 9px 13px; color: var(--blue-600); background: var(--blue-100); border: 1px solid transparent; border-radius: 9px; font-size: .8rem; font-weight: 780; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.expertise-expand:hover, .expertise-expand:focus-visible { color: var(--navy-900); background: #e1f3f9; border-color: #b8dce9; }
.expertise-expand::after { content: "↓"; font-size: 1rem; line-height: 1; }
.expertise-expand[aria-expanded="true"]::after { content: "↑"; }
.expertise-empty { padding: 55px 25px; color: var(--muted); background: #fff; border: 1px dashed #b8c8d1; border-radius: 18px; text-align: center; }
.expertise-empty[hidden] { display: none; }
.expertise-empty strong { display: block; color: var(--navy-900); font-size: 1.15rem; }
.expertise-empty p { margin: 5px 0 0; }
@media (max-width: 980px) {
  .expertise-intro { grid-template-columns: 1fr; gap: 28px; }
  .expertise-layout { min-width: 0; display: block; }
  .expertise-sidebar, .expertise-sidebar-inner { width: 100%; min-width: 0; }
  .expertise-sidebar { position: static; max-height: none; margin-bottom: 34px; overflow: visible; }
  #expertise-toc { width: 100%; max-width: 100%; min-width: 0; display: flex; gap: 7px; overflow-x: auto; padding: 0 2px 8px; scroll-snap-type: x proximity; scroll-padding-inline: 2px; scrollbar-width: thin; overscroll-behavior-inline: contain; }
  #expertise-toc a { flex: 0 0 auto; display: inline-flex; min-height: 44px; align-items: center; padding: 9px 12px; background: rgba(255,255,255,.06); scroll-snap-align: start; }
  #expertise-toc a::before { display: none; }
  .expertise-sidebar-cta { display: flex; min-height: 48px; margin-top: 12px; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .expertise-sidebar { position: sticky; z-index: 20; top: calc(var(--header-height) + 12px); }
}
@media (max-width: 700px) {
  .expertise-hero { min-height: calc(450px + var(--header-height)); padding: calc(54px + var(--header-height)) 20px 48px; text-align: center; background-image: radial-gradient(circle at 82% 30%, rgba(11,143,199,.26), transparent 28%), linear-gradient(104deg, rgba(7,21,33,.97) 15%, rgba(11,54,79,.83) 70%, rgba(7,21,33,.76)), url('../assets/mobile/banner-expertises-960.webp'); }
  .expertise-hero h1 { font-size: clamp(2.45rem, 12vw, 3.75rem); }
  .expertise-hero .expertise-hero-text { margin-inline: auto; }
  .expertise-hero-actions { justify-content: center; }
  .expertise-proof { grid-template-columns: 1fr; max-width: 360px; margin: 35px auto 0; text-align: left; }
  .expertise-page { padding-inline: 16px; }
  .expertise-intro { padding-block: 60px 38px; }
  .expertise-layout { gap: 22px; }
  .expertise-sidebar { margin-bottom: 22px; }
  .expertise-sidebar-inner { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .expertise-sidebar-title, #expertise-toc { display: none !important; }
  .expertise-sidebar-cta { width: 100%; min-height: 50px; margin: 0; padding: 14px 16px; }
  .expertise-box { padding: 23px 20px; }
  .expertise-box.is-expanded { padding-block: 27px; }
  .expertise-heading { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .expertise-index { flex-basis: 35px; width: 35px; height: 35px; }
  .expertise-expand { grid-column: 2; justify-self: start; min-height: 44px; margin-top: 5px; }
  .expertise-body.is-expanded { margin-top: 20px; }
  .expert-note { padding: 17px !important; }
  .expertise-detail-list--features, .expertise-topic-grid { grid-template-columns: 1fr; }
  .expertise-detail { margin-top: 29px; padding-top: 24px; }
}
@media (max-width: 420px) {
  .expertise-page { padding-inline: 12px; }
  .expertise-box { padding-inline: 16px; }
  .expertise-heading { column-gap: 11px; }
  .expertise-box h3 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .expertise-body { transition: none; }
}
