:root {
  --ink: #25273c;
  --muted: #57596b;
  --accent: #514eb0;
  --accent-dark: #373489;
  --paper: #fff;
  --tint: #f1f0fa;
  --line: #e3e2f0;
  --wrap: 1160px;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7775d1; outline-offset: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .65em; }
h1 { font-size: clamp(1.95rem,4vw,3.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem,3vw,2rem); letter-spacing: -.022em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap),calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 12px; z-index: 20; transform: translateY(-120%); background: #fff; padding: .65em 1em; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; flex-shrink: 0; align-items: center; }
.brand img { width: 100px; height: auto; }
.nav-list, .offers ul { padding: 0; list-style: none; margin: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem,3vw,2.5rem); }
.nav-list > li > a, .offers summary { display: flex; gap: .45em; align-items: center; padding: .65em .2em; color: var(--muted); font-weight: 650; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current], .offers summary.selected, .offers[open] summary { color: var(--accent-dark); }
.nav-list > li > a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.offers { position: relative; }
.offers summary { cursor: pointer; list-style: none; }
.offers summary::-webkit-details-marker { display: none; }
.offers summary::after { content: ""; width: .4em; height: .4em; margin: -.2em 0 0 .1em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.offers[open] summary::after { transform: rotate(225deg); margin-top: .2em; }
.offers ul { position: absolute; top: 100%; left: -.8rem; background: #fff; padding: .5rem; border: 1px solid var(--line); box-shadow: 0 12px 30px #29264b20; width: 270px; border-radius: 8px; }
.offers li a { display: block; padding: .6em .65em; line-height: 1.4; text-decoration: none; }
.offers li a:hover, .offers li a[aria-current] { background: var(--tint); border-radius: 4px; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: .5rem .75rem; }
.hero {
  min-height: clamp(360px,39vw,555px);
  display: grid;
  place-items: center;
  background: linear-gradient(0deg,#181d44a0,#20284665), #585b8c url("../images/ap-smart-layerslider/homepage/anim0052.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero-inner { padding-block: 3.5rem; }
.hero h1 { margin: 0 auto .4em; max-width: 21ch; font-size: clamp(2.1rem,5vw,3.9rem); font-weight: 750; text-shadow: 0 2px 16px #13163755; }
.hero p { font-size: clamp(1.06rem,2.4vw,1.65rem); font-weight: 550; line-height: 1.5; margin-bottom: 1.25em; }
.button { display: inline-block; padding: .65em 1.15em; border-radius: 5px; background: var(--accent-dark); color: #fff; text-decoration: none; font-weight: 650; }
.button:hover { color: #fff; background: #262465; }
.button-light { background: #fff; color: var(--accent-dark); }
.button-light:hover { background: var(--tint); color: var(--accent-dark); }
.home-intro, .page-content { padding-block: clamp(2rem,6vw,4.5rem); }
.split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: start; gap: clamp(1.4rem,5vw,4.5rem); }
.home-intro .split { align-items: center; }
.split figure img { width: 100%; max-height: 490px; object-fit: cover; border-radius: 5px; }
.prose { color: var(--muted); }
.prose h2,.prose h3,.prose h4 { color: var(--ink); }
.prose ul,.prose ol { padding-left: 1.3em; margin: .45em 0 1.2em; }
.prose li { padding-left: .12em; margin: .22em 0; }
.prose li::marker { color: var(--accent); }
.prose ul ul { margin: .25em 0 .45em; }
.document { display: inline-block; font-weight: 650; margin-top: .3em; }
.offer-section { padding-block: clamp(2rem,5vw,4rem); scroll-margin-top: 100px; background: linear-gradient(#f4f3f9de,#f0eff9f3),#eeeefa url("../images/2019/03/03/tlo002.jpg") center/cover; }
.offer-section h2 { text-align: center; text-transform: uppercase; margin-bottom: 1.2em; letter-spacing: .035em; }
.offer-section h2 span { color: var(--accent-dark); }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.15rem; }
.service-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.service-card:hover { box-shadow: 0 8px 25px #38347326; }
.service-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.service-card-body { padding: .95rem; display: flex; justify-content: space-between; align-items: start; gap: .45em; line-height: 1.35; flex: 1; }
.service-card-body > span { color: var(--accent-dark); }
.band { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(1.45rem,4vw,2.8rem); }
.band h1 { margin-bottom: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: .55em; color: var(--muted); font-size: .875rem; margin-bottom: .6em; }
.article-extra { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.article-extra h2, .article-extra h3, .article-extra h4 { margin-top: 1.45em; }
.article-extra > :first-child { margin-top: 0; }
.article-image { margin: 1rem auto; max-width: min(100%, 850px); border-radius: 5px; }
.page-cta { margin: 2.5rem 0 0; }
.narrow { max-width: 76ch; }
.narrow h2:not(:first-child) { margin-top: 1.5em; }
.references { list-style: none; margin: 1.4em 0 0; padding: 0; columns: 3 16rem; column-gap: 2.5rem; }
.references li { break-inside: avoid; border-bottom: 1px solid var(--line); padding: .37em 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.contact-block { background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem,3vw,2rem); }
.contact-block h2 { font-size: 1.3rem; }
.contact-block address { font-style: normal; margin-bottom: 1em; }
.contact-block ul { padding: 0; margin: 0; list-style: none; }
.contact-block li { margin: .35em 0; overflow-wrap: anywhere; }
.site-footer { background: #a9a9c7; color: #22243b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
.footer-inner strong { display: block; letter-spacing: .08em; }
.footer-inner span { font-size: .875rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-inner a { color: #22243b; }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; margin: 1rem 0 2.5rem; }
.gallery a { display: block; border-radius: 5px; overflow: hidden; background: var(--tint); }
.gallery a:hover { box-shadow: 0 0 0 2px var(--accent); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.lightbox { width: min(calc(100% - 24px),960px); max-height: calc(100% - 24px); padding: 1rem; border: 0; border-radius: 8px; color: #fff; background: #1d1e2d; }
.lightbox::backdrop { background: #0b0b14d9; }
.lightbox img { width: auto; height: auto; max-height: 70vh; max-width: 100%; margin: .75rem auto; object-fit: contain; }
.lightbox-toolbar,.lightbox-controls { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.lightbox button { color: #fff; background: #3d3b5b; padding: .45em .65em; border: 1px solid #8885ae; border-radius: 5px; }
@media (max-width: 900px) { .cards,.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; gap: 0; flex-wrap: wrap; }
  .brand img { width: 78px; }
  .site-header { position: relative; }
  .header-inner nav { width: 100%; }
  .menu-button:not([hidden]) { display: inline-flex; gap: .6em; }
  .menu-button:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 .65rem; }
  .nav-list > li > a, .offers summary { padding-inline: .45rem; }
  .offers ul { position: static; width: 100%; border: 0; box-shadow: none; padding: 0 0 .4rem .5rem; }
  .hero { min-height: 360px; }
  .hero-inner { padding-block: 2.5rem; }
  .offer-section { scroll-margin-top: 12px; }
  .split,.contact-grid { grid-template-columns: 1fr; }
  .cards,.gallery { gap: .65rem; }
  .service-card-body { font-size: .91rem; padding: .7rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .lightbox { padding: .65rem; }
}
