/* Scoped service blocks. Typography inherits the existing site. */
.service-gallery, .service-steps { --sb-ink:#000b33; --sb-muted:#526778; --sb-surface:#ecf3ff; --sb-accent:#d7242a; padding:88px 0; color:var(--sb-ink); background:#fff; }
.service-gallery *, .service-steps * { box-sizing:border-box; }
.service-block-heading { margin-bottom:40px; }
.service-block-heading h2 { margin:0; font-size:40px; line-height:1.15; letter-spacing:-.035em; font-weight:400; }
.service-block-heading p { margin:16px 0 0; font-size:18px; line-height:1.5; max-width:880px; }
.service-gallery__photo, .service-gallery__thumbnail { position:relative; display:block; overflow:hidden; border:0; padding:0; margin:0; background:var(--sb-surface); border-radius:20px; min-width:0; cursor:zoom-in; }
.service-gallery__photo:disabled { opacity:1; cursor:default; pointer-events:none; }
.service-gallery__photo img, .service-gallery__thumbnail img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .22s ease; }
.service-gallery__photo:not(:disabled):hover img { transform:scale(1.02); }
.service-gallery button:focus-visible, .service-steps a:focus-visible { outline:3px solid var(--sb-accent); outline-offset:4px; }
.service-gallery__single { height:404px; position:relative; }
.service-gallery__main { width:100%; height:100%; }
.service-gallery--thumbnails .service-gallery__main img { object-fit:contain; object-position:center !important; }
.service-gallery__arrow { flex:0 0 48px; width:48px; height:48px; display:grid; place-items:center; border:1px solid #d7e1ec; border-radius:50%; padding:0; background:#fff; color:var(--sb-ink); cursor:pointer; transition:background .18s ease,transform .18s ease; }
.service-gallery__arrow img { display:block; width:24px; height:24px; }
.service-gallery__arrow--previous img { transform:rotate(180deg); }
.service-gallery__arrow:hover { background:#f6f9ff; }
.service-gallery__arrow:active { transform:scale(.95); }
.service-gallery__arrow:disabled { opacity:.35; cursor:default; }
.service-gallery__single > .service-gallery__arrow { position:absolute; top:calc(50% - 24px); }
.service-gallery__single > .service-gallery__arrow--previous { left:20px; }
.service-gallery__single > .service-gallery__arrow--next { right:20px; }
.service-gallery__thumbnails { position:relative; display:flex; gap:16px; padding:4px; margin:12px -4px -4px; overflow-x:auto; scrollbar-width:thin; }
.service-gallery__thumbnail { flex:0 0 calc((100% - 80px)/6); height:88px; min-width:64px; border-radius:12px; cursor:pointer; }
.service-gallery__thumbnail[aria-pressed=true] { box-shadow:0 0 0 3px var(--sb-accent); }
.service-gallery__footer { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; min-height:48px; }
.service-gallery__footer--compact { justify-content:center; min-height:24px; margin-top:16px; }
.service-gallery__counter { color:var(--sb-muted); font-size:16px; line-height:24px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.service-gallery__footer-info, .service-gallery__arrows, .service-gallery__dots { display:flex; align-items:center; }
.service-gallery__footer-info { gap:32px; min-width:0; flex:1; }
.service-gallery__dots { min-width:0; flex-wrap:wrap; }
.service-gallery__arrows { gap:16px; }
.service-gallery__dot { position:relative; width:44px; height:44px; border:0; padding:0; background:transparent; cursor:pointer; }
.service-gallery__dot::after { content:''; position:absolute; width:6px; height:6px; top:19px; left:19px; border-radius:50%; background:#bccbdc; }
.service-gallery__dot[aria-pressed=true]::after { width:20px; left:12px; border-radius:4px; background:var(--sb-accent); }
.service-gallery__viewport { overflow:hidden; border-radius:20px; }
.service-gallery__track { display:flex; gap:24px; transition:transform .22s ease; }
.service-gallery__card { flex:0 0 calc((100% - 48px)/3); aspect-ratio:4 / 3; }
.service-gallery__card img { position:absolute; inset:0; }
.service-gallery .service-gallery__card:focus-visible { outline-offset:-4px; }
.service-gallery--neighbors { background:var(--sb-surface); }
.service-gallery__neighbors { display:grid; grid-template-columns:224px minmax(0,1fr) 224px; gap:24px; height:440px; }
.service-gallery__neighbors--single { grid-template-columns:minmax(0,1fr); }
.service-gallery__neighbor { height:100%; cursor:pointer; }
[data-gallery-swipe] { touch-action:pan-y; }
[data-gallery-draggable], [data-gallery-draggable] .service-gallery__photo { cursor:grab; }
[data-gallery-draggable].is-dragging, [data-gallery-draggable].is-dragging .service-gallery__photo { cursor:grabbing; user-select:none; }
[data-gallery-draggable].is-dragging .service-gallery__track { transition:none; }
[data-gallery-draggable].is-dragging .service-gallery__photo img { transform:none; }
.service-gallery [hidden], .service-steps [hidden] { display:none !important; }
.service-gallery__viewer { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; border:0; padding:64px 80px; background:#000b33; color:#fff; }
.service-gallery__viewer::backdrop { background:#000b33; }
.service-gallery__viewer-stage { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.service-gallery__viewer-stage img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.service-gallery__close, .service-gallery__viewer > .service-gallery__arrow { position:fixed; width:48px; height:48px; border:0; background:#fff; color:#000b33; }
.service-gallery__close { right:24px; top:16px; border-radius:12px; font:inherit; font-size:30px; cursor:pointer; }
.service-gallery__viewer > .service-gallery__arrow--previous { left:16px; top:calc(50% - 24px); }
.service-gallery__viewer > .service-gallery__arrow--next { right:16px; top:calc(50% - 24px); }
.service-gallery__viewer-counter { position:fixed; top:28px; left:80px; font-size:16px; line-height:24px; }
body.service-gallery-viewer-open { overflow:hidden; }
.service-steps__items { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:0; margin:0; list-style:none; }
.service-steps__item { margin:0; padding:28px; border-radius:20px; background:var(--sb-surface); }
.service-steps__number { display:block; margin-bottom:28px; color:var(--sb-accent); font-size:28px; font-weight:400; line-height:1.2; font-variant-numeric:tabular-nums; }
.service-steps__item h3 { font-size:21px; line-height:1.25; letter-spacing:-.02em; font-weight:500; margin:0 0 16px; }
.service-steps__item p { font-size:17px; line-height:1.5; margin:0; }
.service-steps__note { display:grid; grid-template-columns:260px minmax(0,1fr); gap:24px; border-radius:20px; padding:24px 28px; margin-top:24px; background:#f5f8fe; }
.service-steps__note h3 { margin:0; font-size:18px; line-height:1.4; font-weight:500; }
.service-steps__note p { margin:0; font-size:16px; line-height:1.5; color:var(--sb-muted); }
.service-steps--list .service-steps__body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px; }
.service-steps__visual > img { display:block; width:100%; height:auto; aspect-ratio:628 / 420; object-fit:cover; border-radius:20px; }
.service-steps__visual .service-steps__note { display:block; padding:24px; }
.service-steps__visual .service-steps__note h3 { margin-bottom:10px; }
.service-steps--list .service-steps__items { display:block; }
.service-steps--list .service-steps__item { padding:16px 0; border-radius:0; border-bottom:1px solid #d4ddef; background:transparent; overflow-wrap:anywhere; }
.service-steps--list .service-steps__item:first-child { padding-top:0; }
.service-steps--list .service-steps__item:last-child { padding-bottom:0; border-bottom:0; }
.service-steps--without-photo .service-steps__body { display:block; }
.service-steps--compact { background:var(--sb-surface); }
.service-steps--compact .service-steps__items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 56px; }
.service-steps--compact .service-steps__item { display:grid; grid-template-columns:40px minmax(0,1fr); gap:20px; background:transparent; border-radius:0; padding:28px 0; border-top:1px solid #ccdae9; }
.service-steps--compact .service-steps__number { font-size:20px; margin:0; padding-top:2px; }
.service-steps--compact .service-steps__note { background:#fff; }
@media (min-width:1024px) and (max-width:1279px) {
  .service-gallery,.service-steps { padding:72px 0; }
  .service-block-heading h2 { font-size:36px; }
  .service-gallery__single { height:340px; }
  .service-gallery__neighbors { grid-template-columns:144px minmax(0,1fr) 144px; gap:16px; height:400px; }
  .service-gallery__thumbnail { height:72px; }
  .service-steps__items { gap:16px; }
  .service-steps__item { padding:20px; }
  .service-steps__item h3 { font-size:20px; margin-bottom:12px; }
  .service-steps__item p { font-size:16px; }
  .service-steps__number { margin-bottom:20px; }
}
@media (min-width:640px) and (max-width:1023px) {
  .service-gallery,.service-steps { padding:72px 0; }
  .service-block-heading h2 { font-size:36px; }
  .service-gallery__single { height:340px; }
  .service-gallery__thumbnail { height:72px; flex-basis:calc((100% - 48px)/5); }
  .service-gallery__thumbnails { gap:12px; }
  .service-gallery__card { flex-basis:calc((100% - 24px)/2); }
  .service-gallery__neighbors { grid-template-columns:88px minmax(0,1fr) 88px; gap:16px; height:360px; }
  .service-steps__items { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .service-steps__note { grid-template-columns:1fr; gap:12px; }
}
@media (max-width:639px) {
  .service-gallery,.service-steps { padding:64px 0; }
  .service-block-heading { margin-bottom:32px; }
  .service-block-heading h2 { font-size:30px; }
  .service-block-heading p { font-size:17px; margin-top:16px; }
  .service-gallery__single { height:256px; }
  .service-gallery--thumbnails .service-gallery__main img { object-fit:cover; object-position:var(--gallery-focal,center) !important; }
  .service-gallery__single > .service-gallery__arrow--previous { left:12px; }
  .service-gallery__single > .service-gallery__arrow--next { right:12px; }
  .service-gallery__thumbnails { gap:8px; }
  .service-gallery__thumbnail { flex-basis:calc((100% - 40px)/6); min-width:44px; height:48px; border-radius:8px; }
  .service-gallery__card { flex-basis:100%; }
  .service-gallery__neighbors { display:block; height:320px; }
  .service-gallery__neighbor { display:none; }
  .service-gallery__footer:not(.service-gallery__footer--compact) { display:grid; grid-template-columns:1fr auto; gap:8px; }
  .service-gallery__footer-info { display:contents; }
  .service-gallery__counter { grid-column:1; grid-row:1; }
  .service-gallery__dots { grid-row:2; grid-column:1 / -1; justify-content:center; flex-wrap:wrap; }
  .service-gallery__arrows { grid-column:2; grid-row:1; gap:8px; }
  .service-gallery__viewer { padding:64px 16px; }
  .service-gallery__viewer-counter { left:16px; }
  .service-gallery__viewer > .service-gallery__arrow { top:auto; bottom:16px; }
  .service-steps__items { grid-template-columns:minmax(0,1fr); gap:16px; }
  .service-steps__item { padding:24px; }
  .service-steps__number { margin-bottom:20px; }
  .service-steps__item h3 { font-size:21px; }
  .service-steps__note { grid-template-columns:1fr; gap:12px; padding:24px; }
  .service-steps--compact .service-steps__items { grid-template-columns:minmax(0,1fr); }
  .service-steps--compact .service-steps__item { padding:24px 0; gap:16px; grid-template-columns:32px minmax(0,1fr); }
}
.service-steps--list { padding:72px 0; }
.service-steps--list .service-block-heading p { color:var(--sb-muted); }
.service-steps--list .service-steps__item h3 { font-size:21px; margin-bottom:8px; }
.service-steps--list .service-steps__item p { font-size:17px; }
@media (max-width:1023px) {
  .service-steps--list .service-steps__body { grid-template-columns:minmax(0,1fr); }
  .service-steps__visual > img { max-height:420px; }
}
@media (max-width:639px) {
  .service-steps--list { padding:48px 0; }
  .service-steps--list .service-block-heading { margin-bottom:28px; }
  .service-steps__visual > img { aspect-ratio:358 / 238; }
}
@media (prefers-reduced-motion:reduce) { .service-gallery__track,.service-gallery__photo img,.service-gallery__arrow { transition:none; } }
