/* WordPress integration and reusable ACF blocks - mobile first. */
.no-padding-top { padding-top: 0 !important; }
.no-padding-bottom { padding-bottom: 0 !important; }
.alignwide { max-width: var(--container); margin-inline: auto; }
.alignfull { width: 100%; }
.wysiwyg > * + * { margin-top: 16px; }
.wysiwyg > .eyebrow + * { margin-top: 13px; }
.wysiwyg ul, .wysiwyg ol { padding-left: 22px; }
.wysiwyg ul { list-style: disc; }
.wysiwyg ol { list-style: decimal; }
.wysiwyg a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.wysiwyg em { color: var(--blue); font-style: normal; }
.hero .wysiwyg > * + * { margin-top: 16px; }
.hero .eyebrow { color: var(--azure-soft); }
.hero .wysiwyg > p:not(.eyebrow) { font-size: 16px; color: rgba(255,255,255,.82); max-width: 460px; }
.hero .wysiwyg em { color: var(--azure-light); }
.intro__head .eyebrow { justify-content: center; margin-top: 16px; }
.intro__head > p:not(.eyebrow) { max-width: 670px; margin-inline: auto; }
.intro__head > h2 + p:not(.eyebrow) { font-family: var(--f-head); font-size: 26px; line-height: 1.1; color: var(--blue); }
.feature-card .wysiwyg a { color: inherit; }
.feature-card .highlighted-contact {
    font-family: var(--f-head);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--blue);
}
.feature-card .wysiwyg .highlighted-contact a { color: inherit; text-decoration: none; }
.feature-card .wysiwyg .highlighted-contact a:hover { color: var(--azure); }
.column-icon { display: block; width: 52px; height: 52px; object-fit: contain; object-position: center; }
.feature-card__icon { width: 52px; min-width: 52px; max-width: 52px; height: 52px; min-height: 52px; max-height: 52px; margin-bottom: 22px; }
.intro--align-left .feature-card { text-align: left; }
.intro--align-left .feature-card__icon { margin-right: auto; }
.intro--align-left .feature-card .eyebrow { justify-content: flex-start; }
.intro--align-center .feature-card { text-align: center; }
.intro--align-center .feature-card__icon { margin-inline: auto; }
.intro--align-center .feature-card .eyebrow { justify-content: center; }
.intro--align-right .feature-card { text-align: right; }
.intro--align-right .feature-card__icon { margin-left: auto; }
.intro--align-right .feature-card .eyebrow { justify-content: flex-end; }
.step__visuals { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.step__visuals .step__num { margin-bottom: 0; }
.step__icon { width: 48px; height: 48px; margin-left: auto; }
.form-card .wpcf7 { margin-top: 22px; }
.form-card .wpcf7-form { display: grid; gap: 12px; }
.form-card .form-row > p { display: contents; }
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12px; color: #b42318; }
.form-card .wpcf7-response-output { margin: 10px 0 0; padding: 10px 14px; text-align: center; font-weight: 600; }
.form-card .wpcf7-spinner { position: absolute; }
/*
.form-card input.link-submit { width: auto; border: 0; background: transparent; padding: 6px 0; }
*/
.solutions__head > .wysiwyg { display: grid; gap: 18px; }
.solutions__head > .link-arrow { align-self: flex-start; }
/* Service carousel. Mobile uses native horizontal scrolling. */
.has-service-carousel .services-carousel { overflow: visible; }
.has-service-carousel .services-grid { align-items: stretch; }
.has-service-carousel .services-carousel__slide { display: flex; width: auto; height: auto; scroll-snap-align: start; }
.has-service-carousel .services-carousel__slide .service-card { width: 100%; flex: 1 1 auto; aspect-ratio: 4 / 5; }
.solutions-carousel__controls { display: none; }
.steps__head .eyebrow, .projects__head .eyebrow { color: var(--blue); }
.step .wysiwyg > * + * { margin-top: 8px; }
.why .wysiwyg h2 { color: var(--white); }
.why .why__inner > .wysiwyg { margin-bottom: 22px; }
.why .why__inner > .wysiwyg p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.why .accordion__body.wysiwyg > * { margin-top: 0; }
.why .accordion__body.wysiwyg ul,
.why .accordion__body.wysiwyg ol { margin-bottom: 17px; color: rgba(255,255,255,.68); }
.why .accordion__body.wysiwyg li,
.why .accordion__body.wysiwyg li::marker { color: inherit; }
.why__actions { margin-top: 32px; }
.media-text { background: var(--white); }
.media-text__outer { width: 100%; min-width: 0; }
.media-text__grid { display: grid; min-width: 0; }
.media-text__media { min-width: 0; min-height: 300px; background: var(--grey-98); overflow: hidden; }
.media-text__media img, .media-text__media video, .media-text__media iframe { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.media-text__content { width: 100%; max-width: 100%; min-width: 0; padding: 45px var(--gutter); align-self: center; overflow-wrap: anywhere; }
.media-text__content > * { max-width: 100%; }
.media-text.inside { padding-block: 60px; }
.media-text.inside .media-text__grid { border: 1px solid var(--line); }
.block-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.intro__actions { justify-content: center; margin-top: 32px; }
.steps__actions { justify-content: center; margin-top: 32px; }
.media-text__actions.is-centered { justify-content: center; }
.intro .btn-ghost,
.steps .btn-ghost,
.media-text .btn-ghost,
.page-title .btn-ghost { color: var(--blue); border-color: var(--blue); }
.intro .btn-ghost:hover,
.steps .btn-ghost:hover,
.media-text .btn-ghost:hover,
.page-title .btn-ghost:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.clients__head .eyebrow { color: var(--blue); }
.cta__copy h2 { color: var(--white); font-weight: 400; font-size: clamp(40px, 8vw, 64px); line-height: 1; }
.cta__copy p { color: rgba(255,255,255,.85); }
.cta__copy em { color: var(--azure-soft); }
.cta__inner { gap: 20px; }
.page-default-header { padding-block: 60px; }
.page-title { position: relative; padding: 55px 0 62px; overflow: hidden; background: var(--grey-98) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.page-title::before { content: ""; position: absolute; inset: 0; background: rgba(250,251,252,.93); }
.page-title .container { position: relative; }
.page-title .blog-breadcrumbs { margin-bottom: 30px; }
.page-title .eyebrow { color: var(--blue); }
.page-title h1 { margin-top: 14px; font-size: clamp(40px, 6vw, 68px); line-height: 1.03; }
.page-title .eyebrow + h1 { margin-top: 14px; }
.page-title__description { max-width: 720px; margin-top: 20px; }
.page-title__description:empty { display: none; }
.page-title__description p { color: var(--text); }
.page-title .title-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    margin: 25px 0 5px;
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.7); }
.breadcrumbs a:hover { color: var(--white); }
.text-block, .map-block, .contact-block, .gallery-block, .quote-block, .stats-block, .posts-block, .video-block { padding-block: 60px; }
.text-block--narrow .wysiwyg, .content-narrow { max-width: 900px; margin-inline: auto; }
.text-block__full { width: 100%; padding-inline: var(--gutter); }
.map-block__embed { min-height: 360px; margin-top: 30px; overflow: hidden; }
.map-block__embed iframe { width: 100%; min-height: 360px; border: 0; }
.contact-block__grid { display: grid; gap: 35px; }
.contact-block__items { border-top: 1px solid var(--line-strong); }
.contact-block__items li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-block__items span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.contact-block__items a { color: var(--blue); font-family: var(--f-head); font-size: 24px; }
.gallery-block { background: var(--ink); color: var(--white);position: relative; }
.gallery-block .wysiwyg h1, .gallery-block .wysiwyg h2, .gallery-block .wysiwyg h3, .gallery-block .wysiwyg h4, .gallery-block .wysiwyg h5, .gallery-block .wysiwyg h6 { color: var(--white); }
.gallery-block .wysiwyg p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.gallery-block .wysiwyg .eyebrow { color: var(--azure-soft); }
.gallery-block .wysiwyg em { color: var(--azure-light); }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 35px;
    z-index: 9;
    position: relative;
}
.gallery-block:after {
    content: "";
    background: linear-gradient(0deg, rgb(127 176 230 / 7%) 0%, rgba(17, 24, 32, 1) 200px, rgb(17 24 32) 100%);
    width: 100%;
    height: 200px;
    position: absolute;
    bottom: 0;
    border-bottom: 1px solid var(--f-button-color);
    z-index: 0;
}
.gallery-grid figure { position: relative; min-height: 0; overflow: hidden; background: rgba(255,255,255,.06); }
.gallery-grid > figure > a { display: block; height: 100%; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--t); }
.gallery-grid figure:hover img { transform: scale(1.035); }
.gallery-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 16px 14px; color: var(--white); font-size: 13px; background: linear-gradient(transparent, rgba(8,16,26,.78)); }
.gallery-block__actions { position: relative; z-index: 9; justify-content: center; margin-top: 32px; }

@media (min-width: 600px) {
 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid figure:first-child { grid-column: 1 / -1; }
}
.quote-block { background: var(--grey-98); text-align: center; }
.quote-block figure { max-width: 800px; margin-inline: auto; }
.quote-block blockquote p { font-family: var(--f-head); font-size: 28px; line-height: 1.25; color: var(--ink); }
.quote-block figcaption { margin-top: 18px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.stats-block { background: var(--ink); color: var(--white); }
.stats-block .wysiwyg h2, .stats-block .wysiwyg p { color: var(--white); }
.stats-block__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 35px; background: rgba(255,255,255,.15); }
.stats-block__grid > div { display: grid; gap: 6px; padding: 25px; background: var(--ink); }
.stats-block__grid strong { color: var(--azure-light); font-family: var(--f-head); font-size: 44px; font-weight: 400; line-height: 1em; }
.stats-block__grid span { color: rgba(255,255,255,.72); }
.posts-grid { display: grid; gap: 28px; margin-top: 35px; }
.post-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-98); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card .eyebrow { margin-top: 15px; color: var(--blue); }
.post-card h3 { margin: 8px 0; }
.video-block__embed { position: relative; aspect-ratio: 16 / 9; margin-top: 30px; background: var(--ink) center / cover no-repeat; overflow: hidden; }
.video-block__embed iframe { width: 100%; height: 100%; }
.content-archive, .single-entry, .page-content, .error-page { padding-block: 60px 80px; }
.archive-head { margin-bottom: 40px; }
.archive-head .eyebrow { margin-bottom: 12px; }
.services-grid--archive, .projects__grid--archive { margin-top: 0; }
.offer-archive--grid .services-grid--archive { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; gap: 3px; overflow: visible; padding-bottom: 0; }
.offer-archive--grid .services-grid--archive .service-card { aspect-ratio: 4 / 5; }
@media (min-width: 600px) {
  .offer-archive--grid .services-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.offer-archive { padding-bottom: 60px; background: var(--grey-98); }
.offer-archive__pagination { padding-top: 40px; }
.offer-archive__pagination:empty { padding-top: 0; }
.offer-archive__empty { padding-top: 60px; }
.single-entry h1 { margin-top: 14px; }
.single-entry__media { margin: 35px 0; aspect-ratio: 16 / 9; overflow: hidden; }
.single-entry__media img { width: 100%; height: 100%; object-fit: cover; }
.single-entry .wysiwyg > * + * { margin-top: 18px; }
/* Single blog */
.blog-archive-hero { padding: 55px 0 62px; background: var(--grey-98); border-bottom: 1px solid var(--line); }
.blog-archive-hero .blog-breadcrumbs { margin-bottom: 30px; }
.blog-archive-hero .eyebrow { color: var(--blue); }
.blog-archive-hero h1 { margin-top: 14px; font-size: clamp(44px, 6vw, 68px); line-height: 1.03; }
.blog-archive-hero__description { max-width: 720px; margin-top: 20px; color: var(--text); }
.blog-archive-hero__description p { color: inherit; }
.content-archive.content-archive--blog { padding-top: 60px; }
.content-archive.content-archive--blog .posts-grid { margin-top: 0; }
.blog-single__hero { padding: 55px 0 82px; background: var(--grey-98); border-bottom: 1px solid var(--line); }
.blog-single__hero-inner { text-align: left; }
.blog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.blog-breadcrumbs a { transition: color var(--t-fast); }
.blog-breadcrumbs a:hover { color: var(--blue); }
.blog-single__hero .eyebrow { color: var(--blue); }
.blog-single__hero h1 { max-width: 980px; margin-top: 15px; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; text-wrap: balance; }
.blog-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 23px; color: var(--muted); font-size: 14px; }
.blog-single__meta a { color: var(--blue); }
.blog-single__featured { position: relative; aspect-ratio: 16 / 8; margin-top: -42px; overflow: hidden; background: var(--grey-98); box-shadow: 0 24px 60px rgba(8,16,26,.12); }
.blog-single__featured img { width: 100%; height: 100%; object-fit: cover; }
.blog-single__body { padding: 60px 0 90px; }
.blog-single__layout { display: grid; gap: 60px; }
.blog-single__main { min-width: 0; }
.blog-single__content { font-size: 16px; }
.blog-single__content > *:first-child { margin-top: 0; }
.blog-single__content p, .blog-single__content li { font-size: 16px; line-height: 1.5; }
.blog-single__content h2 { margin-top: 44px; font-size: 36px; }
.blog-single__content h3 { margin-top: 34px; font-size: 27px; }
.blog-single__content h4 { margin-top: 28px; }
.blog-single__content ul, .blog-single__content ol { margin-top: 18px; padding-left: 24px; }
.blog-single__content img { width: 100%; margin-block: 28px; }
.blog-single__content blockquote { margin-block: 36px; padding: 26px 28px; border-left: 4px solid var(--blue); background: var(--grey-98); font-size: 24px; }
.blog-single__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); }
.blog-single__tags > span { margin-right: 4px; font-weight: 600; color: var(--ink); }
.blog-single__tags a, .blog-sidebar__tags a { padding: 7px 11px; border: 1px solid var(--line-strong); color: var(--text); font-size: 13px; transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.blog-single__tags a:hover, .blog-sidebar__tags a:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }
.blog-post-nav { display: grid; gap: 12px; margin-top: 42px; }
.blog-post-nav__item { display: flex; min-height: 135px; flex-direction: column; justify-content: space-between; gap: 15px; padding: 22px; border: 1px solid var(--line-strong); transition: border-color var(--t-fast), background var(--t-fast); }
.blog-post-nav__item:hover { border-color: var(--blue); background: var(--grey-98); }
.blog-post-nav__label { color: var(--blue); font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.blog-post-nav__item strong { font-family: var(--f-head); font-size: 22px; font-weight: 500; line-height: 1.2; }
.blog-post-nav__item--next { text-align: right; }
.blog-sidebar { min-width: 0; }
.blog-sidebar__section { padding-top: 18px; border-top: 2px solid var(--ink); }
.blog-sidebar__section + .blog-sidebar__section { margin-top: 38px; }
.blog-sidebar__section h2 { margin-bottom: 20px; font-family: var(--f-ui); font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.blog-sidebar__posts { display: grid; gap: 17px; }
.blog-sidebar-post { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; align-items: center; }
.blog-sidebar-post:not(:has(.blog-sidebar-post__image)) { grid-template-columns: 1fr; }
.blog-sidebar-post__image { aspect-ratio: 1 / 1; overflow: hidden; background: var(--grey-98); }
.blog-sidebar-post__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.blog-sidebar-post:hover .blog-sidebar-post__image img { transform: scale(1.05); }
.blog-sidebar-post__content { display: grid; gap: 4px; min-width: 0; }
.blog-sidebar-post__content time { color: var(--muted); font-size: 12px; }
.blog-sidebar-post__content strong { font-family: var(--f-head); font-size: 18px; font-weight: 500; line-height: 1.2; transition: color var(--t-fast); }
.blog-sidebar-post:hover strong { color: var(--blue); }
.blog-sidebar__categories { border-bottom: 1px solid var(--line); }
.blog-sidebar__categories li { border-top: 1px solid var(--line); }
.blog-sidebar__categories a { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; transition: color var(--t-fast); }
.blog-sidebar__categories a:hover { color: var(--blue); }
.blog-sidebar__categories small { color: var(--muted); }
.blog-sidebar__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.content-archive.content-archive--projects { padding-top: 60px; }
.content-archive.content-archive--projects .projects__grid { margin-top: 0; }
.single-detail { padding: 60px 0 90px; }
.single-detail__lead { max-width: 760px; margin-top: 20px; color: var(--text); font-size: 17px; line-height: 1.6; }
.single-detail__meta { margin-top: 20px; color: var(--blue); font-family: var(--f-ui); font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.single-detail__featured { aspect-ratio: 16 / 9; margin-bottom: 45px; overflow: hidden; background: var(--grey-98); }
.single-detail__featured img { width: 100%; height: 100%; object-fit: cover; }
.single-detail__content > *:first-child { margin-top: 0; }
.single-detail__content p, .single-detail__content li { font-size: 16px; line-height: 1.75; }
.single-detail__content h2 { margin-top: 42px; }
.single-detail__content h3 { margin-top: 32px; }
.single-detail__content ul, .single-detail__content ol { margin-top: 18px; padding-left: 24px; }
.single-project__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.single-project__gallery figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-98); }
.single-project__gallery img { width: 100%; height: 100%; object-fit: cover; }
.single-project__route { margin-top: 15px; color: var(--blue); font-weight: 600; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line-strong); }
.page-numbers.current { color: var(--white); background: var(--blue); border-color: var(--blue); }
.error-page .btn { margin-top: 25px; }
.admin-bar .site-header { top: 46px; }

@media (min-width: 992px) {
  .hero .wysiwyg > p:not(.eyebrow) { font-size: 16px; }
  .intro__head > h2 + p:not(.eyebrow) { font-size: 38px; }
  .solutions__head > .wysiwyg { grid-template-columns: 1fr 1.7fr; gap: 35px; }
  .solutions__head > .wysiwyg .eyebrow, .solutions__head > .wysiwyg h2 { grid-column: 1 / -1; }
  .solutions--carousel { padding-bottom: 52px; }
  .has-service-carousel .services-carousel.is-swiper-ready { overflow: hidden; }
  .has-service-carousel .services-carousel.is-swiper-ready .services-grid { display: flex; grid-auto-flow: unset; grid-template-columns: none; grid-auto-columns: auto; gap: 0; overflow: visible; padding-bottom: 0; }
  .has-service-carousel .services-carousel.is-swiper-ready .services-carousel__slide { width: auto; }
  .has-service-carousel .services-carousel.is-swiper-ready .service-card { height: auto; aspect-ratio: 4 / 5; max-height: 450px !important; }
  .has-service-carousel .services-carousel.is-swiper-ready .solutions-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
  .has-service-carousel .services-carousel.is-swiper-ready.is-static .solutions-carousel__controls { display: none; }
  .solutions-carousel__button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--blue); background: var(--white); border: 1px solid var(--blue); transition: color var(--t-fast), background var(--t-fast), opacity var(--t-fast); }
  .solutions-carousel__button:hover { color: var(--white); background: var(--blue); }
  .solutions-carousel__button.swiper-button-disabled { opacity: .35; cursor: default; }
  .solutions-carousel__prev .ico-arrow { transform: rotate(180deg); }
  .solutions-carousel__pagination { display: flex; justify-content: center; width: auto !important; min-width: 48px; }
  .solutions-carousel__pagination .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 4px !important; background: var(--blue); }
  .media-text__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 560px; }
  .media-text.right .media-text__media { order: 2; }
  .media-text__content { padding: 70px 55px; }
  .media-text.outside.left .media-text__content { padding-right: max(55px, calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .media-text.outside.right .media-text__content { padding-left: max(55px, calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .media-text.inside .media-text__grid { min-height: 480px; }
  .cta__inner { grid-template-columns: 1.4fr 1fr; }
  .cta__actions { justify-content: flex-start; }
  .text-block, .map-block, .contact-block, .gallery-block, .quote-block, .stats-block, .posts-block, .video-block { padding-block: 90px; }
  .contact-block__grid { grid-template-columns: 1.25fr 1fr; gap: 70px; }
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(180px, 16vw, 245px);
    gap: 18px;
  }
  .gallery-grid figure,
  .gallery-grid figure:first-child { grid-column: span 4; grid-row: span 1; }
  .gallery-grid figure:nth-child(6n + 1) { grid-column: span 7; grid-row: span 2; }
  .gallery-grid figure:nth-child(6n + 2),
  .gallery-grid figure:nth-child(6n + 3) { grid-column: span 5; grid-row: span 1; }
  .gallery-grid img { height: 100%; aspect-ratio: auto; }
  .stats-block__grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .page-title { padding: 70px 0 78px; }
  .page-default-header { padding-block: 90px; }
  .blog-archive-hero { padding: 70px 0 78px; }
  .content-archive.content-archive--blog { padding-top: 75px; }
  .blog-single__hero { padding: 70px 0 105px; }
  .blog-single__featured { aspect-ratio: 16 / 7; margin-top: -58px; }
  .blog-single__body { padding: 78px 0 115px; }
  .blog-single__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
  .blog-single__content p, .blog-single__content li { font-size: 17px; }
  .blog-post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-post-nav__item--next { grid-column: 2; }
  .blog-sidebar { position: sticky; top: calc(var(--header-h) + 35px); }
  .content-archive.content-archive--projects { padding-top: 75px; }
  .single-detail { padding: 78px 0 115px; }
  .single-detail__content p, .single-detail__content li { font-size: 17px; }
  .single-project__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .content-archive, .single-entry, .page-content, .error-page { padding-block: 90px 110px; }
  .offer-archive--grid .services-grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .offer-archive { padding-bottom: 90px; }
  .offer-archive__pagination { padding-top: 50px; }
  .projects__grid--archive { grid-template-columns: repeat(3, 1fr); }
  .admin-bar .site-header { top: 32px; }
}
/* DGK ENTRY ANIMATIONS */
html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
html.js main > section,
html.js main > header,
html.js .single-service__blocks > section,
html.js .single-project__blocks > section,
html.js .fade-in,
html.js .fade-up,
html.js .fade-left,
html.js .fade-right {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 650ms;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

html.js main > section,
html.js main > header,
html.js .single-service__blocks > section,
html.js .single-project__blocks > section,
html.js .fade-up {
  transform: translate3d(0, 32px, 0);
}

html.js .fade-in {
  transform: translate3d(0, 0, 0);
}

html.js .fade-left {
  transform: translate3d(-40px, 0, 0);
}

html.js .fade-right {
  transform: translate3d(40px, 0, 0);
}

html.js main > section.is-animated,
html.js main > header.is-animated,
html.js .single-service__blocks > section.is-animated,
html.js .single-project__blocks > section.is-animated,
html.js .fade-in.is-animated,
html.js .fade-up.is-animated,
html.js .fade-left.is-animated,
html.js .fade-right.is-animated {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 767px) {
  html.js .fade-left,
  html.js .fade-right {
    transform: translate3d(0, 24px, 0);
  }

  html.js .fade-left.is-animated,
  html.js .fade-right.is-animated {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js main > section,
  html.js main > header,
  html.js .single-service__blocks > section,
  html.js .single-project__blocks > section,
  html.js .fade-in,
  html.js .fade-up,
  html.js .fade-left,
  html.js .fade-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ACF block spacing: editor values are desktop sizes; mobile uses exactly 50%. */
[style*="--dgk-space-mt-mobile:"] { margin-top: var(--dgk-space-mt-mobile) !important; }
[style*="--dgk-space-mb-mobile:"] { margin-bottom: var(--dgk-space-mb-mobile) !important; }
[style*="--dgk-space-pt-mobile:"] { padding-top: var(--dgk-space-pt-mobile) !important; }
[style*="--dgk-space-pb-mobile:"] { padding-bottom: var(--dgk-space-pb-mobile) !important; }

@media (min-width: 992px) {
  [style*="--dgk-space-mt-desktop:"] { margin-top: var(--dgk-space-mt-desktop) !important; }
  [style*="--dgk-space-mb-desktop:"] { margin-bottom: var(--dgk-space-mb-desktop) !important; }
  [style*="--dgk-space-pt-desktop:"] { padding-top: var(--dgk-space-pt-desktop) !important; }
  [style*="--dgk-space-pb-desktop:"] { padding-bottom: var(--dgk-space-pb-desktop) !important; }
}

/* ===== QUOTE MODAL (CF7) — otwierany linkiem <a href="#wycena"> ===== */
.quote-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, 92vw);
  max-height: min(640px, 90vh);
  overflow-y: auto;
  border: 0;
  opacity: 0;
  padding: 25px;
  transform: scale(.96);
  transition-property: opacity, transform, display, overlay;
  transition-duration: var(--t);
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.quote-modal[open] { opacity: 1; transform: scale(1); }
@starting-style {
  .quote-modal[open] { opacity: 0; transform: scale(.96); }
}
.quote-modal::backdrop {
  background-color: rgba(8, 16, 26, 0);
  transition: background-color var(--t) ease-out, display var(--t) allow-discrete, overlay var(--t) allow-discrete;
}
.quote-modal[open]::backdrop { background-color: rgba(8, 16, 26, .55); }
@starting-style {
  .quote-modal[open]::backdrop { background-color: rgba(8, 16, 26, 0); }
}
body:has(.quote-modal[open]) { overflow: hidden; }

.quote-modal h2 { margin-top: 0; padding-right: 30px; }
.quote-modal__close-form { position: absolute; top: 14px; right: 14px; }
.quote-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: color var(--t-fast);
}
.quote-modal__close:hover,
.quote-modal__close:focus-visible { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .quote-modal { transform: none; transition-duration: .1s; }
  @starting-style {
    .quote-modal[open] { transform: none; }
  }
}
@media (max-width: 992px) {
	.quote-modal {
		padding: 15px;
	}
	.quote-modal .form-card .wpcf7 {
		margin-top: 10px;
	}
	.quote-modal.form-card textarea, 
	.quote-modal.form-card input:not([type='button']):not([type='submit']) {
		padding: 7px 11px;
		font-size: 14px;		
	}
	.quote-modal .form-row {
		gap: 7px;
	}
	.quote-modal p.agree-rodo {
		font-size: 9px;
		line-height: 11px;
	}
}