/* Keep the frosted surface stable while only the foreground enters. Opacity on
   the menu container creates a backdrop root until its animation finishes. */
body .header .header-content .header-menu {
    animation: none !important;
    opacity: 1 !important;
    --tg-menu-glass: rgb(202 235 250 / .22);
    --tg-menu-open-glass: linear-gradient(rgb(10 25 45 / .12), rgb(10 25 45 / .12)) rgb(202 235 250 / .22);
}
body .header .header-content .header-menu .header-menu-list,
body .header .header-content .header-menu.active .header-menu-list {
    animation: none !important;
    transition: none !important;
    background: var(--tg-menu-glass) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
}
body .header .header-content .header-menu .header-menu-btn {
    background: var(--tg-menu-glass) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
    transition-property: color, background-color;
}
/* One grid centres the glyph and its middle bar without percentage-position
   rounding when Safari scales the header. Remove the old -1px correction. */
body .header .header-content .header-menu .header-menu-btn {
    display: grid !important;
    place-items: center;
}
body .header .header-content .header-menu .header-menu-btn .gamburger {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    transform: none !important;
}
body .header .header-content .header-menu .header-menu-btn .gamburger-line {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
}
/* The drawing's visual centre is x=27.13 in its 64-unit box. A five-unit
   optical correction scales with the existing image on every layout. */
body #content img[src*="/service-icons-20261114/air-heating.svg"] {
    transform: translateX(7.8125%);
}
body .header .header-content .header-menu.active .header-menu-btn {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body .header .header-content .header-menu-list > li > a {
    color: #fff;
}
body .header .header-content .header__logo,
body .hdr-slogan > *,
body .header .header-content .header-menu-list > li > a,
body .header .header-content .header-menu-btn,
body .header .header-content .header-menu-btn .gamburger {
    animation: none !important;
}
/* The extra tint belongs to the open panel. The collapsed control keeps its
   existing surface. Desktop paint layers are siblings of the flyouts, so their
   blur can sample the page instead of being trapped by an ancestor filter. */
@media (min-width: 1024px) {
    body .header .header-content .header-menu.active .header-menu-list {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    body .header .header-content .header-menu.active .header-menu-list::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: var(--tg-menu-glass);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        pointer-events: none;
    }
    body .header .header-content .header-menu-list:has(> li > a[aria-expanded="true"])::before,
    body .header .header-content .header-menu-list > li > .header-menu-subs,
    body .header .header-content .tg-service-menu[data-variant="nested"] .tg-service-menu-items,
    body .header .header-content .header-menu-subs > .tg-menu-all {
        background: var(--tg-menu-open-glass) !important;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }
    body .header .header-content .header-menu-list > li > .tg-service-menu[data-variant="nested"] {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    body .header .header-content .tg-service-menu[data-variant="nested"]::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: var(--tg-menu-open-glass);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        pointer-events: none;
    }
}
@media (max-width: 1023.98px) {
    body .header .header-content .header-menu.active .header-menu-list {
        background: var(--tg-menu-open-glass) !important;
    }
    body .header .header-content .header-menu .header-menu-list .header-menu-subs {
        border-left: 0 !important;
        padding-left: 0 !important;
    }
}
@media (prefers-reduced-motion: no-preference) {
    html.tg-header-intro body .header .header-content .header__logo,
    html.tg-header-intro body .hdr-slogan > *,
    html.tg-header-intro body .header .header-content .header-menu-list > li > a,
    html.tg-header-intro body .header .header-content .header-menu-list::before,
    html.tg-header-intro body .header .header-content .header-menu-btn {
        animation: tg-opening-rise 720ms cubic-bezier(.45, 0, .2, 1) 100ms backwards !important;
    }
    html.tg-header-intro body .hdr-slogan > :nth-child(2) { animation-delay: 160ms !important; }
    html.tg-header-intro body .hdr-slogan > :nth-child(3) { animation-delay: 220ms !important; }
    html.tg-header-intro body .hdr-slogan > :nth-child(4) { animation-delay: 280ms !important; }
}
body .header .header-content .header-menu .item-223 > .header-menu-subs > li > a {
    color: #fff !important;
    font-weight: 400 !important;
}
body .header .header-content .header-menu .item-223 > .header-menu-subs > li > a:is(:hover, :focus-visible) {
    color: #8bdfff !important;
}
body .header .header-content .header-menu > .header-menu-top,
body .header.tg-header-travel .header-content .header-menu > .header-menu-top,
body .header.tg-header-travel .header-content .header__logo {
    transform: none !important;
    transition: none !important;
}
@media (min-width: 1024px) {
    body .header,
    body .header.header_background {
        padding-block: calc(30 * var(--tg-wide-unit, 1px)) !important;
        transition: none !important;
    }
    body .header .header-content,
    body .header.header_background .header-content {
        height: calc(108 * var(--tg-wide-unit, 1px)) !important;
        min-height: calc(108 * var(--tg-wide-unit, 1px)) !important;
        padding-block: 0 !important;
        transition: none !important;
        align-items: center;
    }
    body .header .header__logo {
        --tg-header-logo-size: calc(108 * var(--tg-wide-unit, 1px));
        width: var(--tg-header-logo-size) !important;
        height: var(--tg-header-logo-size) !important;
        flex: 0 0 var(--tg-header-logo-size) !important;
        transform: none !important;
        transition: width 220ms ease-out, height 220ms ease-out, flex-basis 220ms ease-out !important;
    }
    body .header.header_background .header__logo {
        --tg-header-logo-size: calc(72 * var(--tg-wide-unit, 1px));
    }
    body .header .header__logo .brand {
        width: 100% !important;
        height: 100% !important;
        box-sizing: border-box;
        padding: 0;
        transition: padding 220ms ease-out, background-color 220ms ease-out !important;
    }
    body .header.header_background .header__logo .brand {
        padding: calc(8 * var(--tg-wide-unit, 1px));
    }
    body .header .header__logo .brand img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        transition: none !important;
    }
}

/* The previews use the same catalogue and differ only in the group controls. */
body .header .header-content .tg-service-menu .tg-service-menu-group {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
body .header .header-content .tg-service-menu .tg-service-menu-items {
    margin: 0;
    padding: 0;
    list-style: none;
}
body .header .header-content .tg-service-menu-items[hidden] {
    display: none !important;
}
body .header .header-content .tg-service-menu-items > li {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none;
}
body .header .header-content .tg-service-menu-items > li > a {
    display: block;
    padding: 10px 6px;
    color: #fff;
    font-size: calc(15 * var(--tg-wide-unit, 1px));
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: normal;
    text-decoration: none;
}
body .header .header-content .tg-service-menu .tg-service-group-title,
body .header .header-content .tg-service-menu .tg-service-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 6px;
    box-sizing: border-box;
    color: #8bdfff;
    font: inherit;
    font-size: calc(16 * var(--tg-wide-unit, 1px));
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}
body .header .header-content .tg-service-menu .tg-service-group-title {
    margin-top: 14px;
    pointer-events: none;
}
body .header .header-content .tg-service-menu-group:first-child > .tg-service-group-title {
    margin-top: 0;
}
body .header .header-content .tg-service-menu .tg-service-group-toggle {
    cursor: pointer;
    gap: 16px;
}
body .header .header-content .tg-service-menu .tg-service-group-toggle > span {
    font-size: 24px;
    line-height: 1;
}
body .header .header-content .tg-service-menu a:hover,
body .header .header-content .tg-service-menu a:focus-visible,
body .header .header-content .tg-service-group-toggle:is(:hover, [aria-expanded="true"]) {
    color: #8bdfff !important;
    background: rgb(108 211 255 / .09) !important;
}
body .header .header-content .tg-service-group-toggle:focus-visible {
    outline: 2px solid #8bdfff;
    outline-offset: 2px;
}
@media (min-width: 1024px) {
    body .header .header-content .header-menu-list > li.item-178 > .tg-service-menu {
        width: clamp(320px, 27vw, 460px);
    }
    body .header .header-content .header-menu-list > li.item-178 > .tg-service-menu[data-variant="nested"] {
        overflow: visible !important;
    }
    body .header .header-content .tg-service-menu[data-variant="nested"] .tg-service-menu-group {
        position: relative;
    }
    body .header .header-content .tg-service-menu[data-variant="nested"] .tg-service-menu-items {
        position: absolute;
        right: 100%;
        top: 0;
        width: clamp(320px, 28vw, 440px);
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px;
        border: 1px solid rgb(139 223 255 / .24);
        border-radius: 18px;
        background: #1a2b4f;
        box-shadow: 0 12px 32px rgb(9 20 39 / .2);
    }
}
@media (max-width: 1023.98px) {
    body .header .header-content .tg-service-menu .tg-service-group-title,
    body .header .header-content .tg-service-menu .tg-service-group-toggle,
    body .header .header-content .tg-service-menu-items > li > a {
        font-size: 14px !important;
        min-height: 44px;
        padding: 10px 0 !important;
    }
    body .header .header-content .tg-service-menu .tg-service-group-toggle > span {
        rotate: -90deg;
    }
    body .header .header-content .tg-service-menu .tg-service-group-toggle[aria-expanded="true"] > span {
        rotate: 90deg;
    }
    body .header .header-content .tg-service-menu[data-variant="nested"] .tg-service-menu-items {
        padding-left: 10px;
        border-left: 1px solid rgb(108 211 255 / .3);
    }
}

body #content #tabulator .tg-direction-tabs > .tabs_titles {
    flex-wrap: nowrap;
    gap: clamp(18px, 2vw, 38px);
}
body #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title {
    font-size: clamp(16px, 1.35vw, 24px);
    line-height: 1.3;
    white-space: nowrap;
}
body #content #tabulator .tg-catalog-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 48px;
    margin-top: 24px;
    color: #8bdfff;
    font-size: clamp(16px, 1.1vw, 22px);
    text-decoration: none;
}
body #content #tabulator .tg-catalog-more > span {
    font-size: 1.5em;
    line-height: 1;
}
body #content .tg-service-direction {
    margin-top: clamp(40px, 5vw, 80px);
    scroll-margin-top: clamp(120px, 10vw, 180px);
}
body #content .tg-service-direction-title {
    margin: 0 0 clamp(24px, 3vw, 44px);
    color: #8bdfff;
    font-size: clamp(24px, 2.2vw, 38px);
    font-weight: 500;
    line-height: 1.25;
}
body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .tg-service-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}
body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .tg-service-direction-grid > [class*="col-"] {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}
body #content .tg-service-direction-grid > div > .item,
body #content .tg-service-direction-grid .tg-service-card,
body #content .tg-service-direction-grid .tg-service-card__link {
    height: 100%;
}
body #content .tg-service-direction-grid .tg-service-card__title {
    margin: 0;
    font-size: clamp(19px, 1.55vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
}
body #content .tg-service-direction-grid .tg-service-card__more {
    color: #6cd3ff;
}
body #content .tg-direction-details .tg-direction-copy {
    max-width: 880px;
    margin: 0;
}
body #content .tg-direction-details h2 {
    margin-bottom: 28px;
}
body #content .tg-direction-details p,
body #content .tg-direction-details li {
    font-size: clamp(17px, 1.25vw, 23px);
    line-height: 1.65;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .tg-service-direction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    body #content #tabulator .tg-direction-tabs > .tabs_titles {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        margin-bottom: 22px;
        border-radius: 18px;
    }
    body #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title {
        min-height: 52px;
        padding: 8px 4px;
        border-radius: 14px;
        font-size: clamp(11px, 3.25vw, 14px);
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: normal;
    }
    body #content .tg-service-direction {
        margin-top: 36px;
        scroll-margin-top: 112px;
    }
    body #content .tg-service-direction-title {
        margin-bottom: 22px;
    }
    body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .tg-service-direction-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* Tab changes keep one fixed starting line. A long list grows downwards and
   remains part of the section's ordinary page scroll. */
body#home {
    overflow-anchor: none;
}
body#home #content #tabulator.tg-swipe-screen {
    align-content: start !important;
    padding-block: clamp(112px, 13svh, 160px) 28px !important;
    overflow-anchor: none;
}
body#home #content #tabulator > .container {
    margin-block: 0 !important;
    min-height: 0 !important;
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles {
    align-items: stretch;
    gap: clamp(20px, 2vw, 38px);
    margin-bottom: 28px !important;
    padding: 0;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 0 12px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    transition: color 200ms ease-out;
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title::before {
    content: none !important;
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    width: 100%;
    background: #6cd3ff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(.25, .1, .25, 1);
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title:is(:hover, :focus-visible, .active)::after {
    transform: scaleX(1);
}
body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title:not(.active):is(:hover, :focus-visible) {
    color: #6cd3ff !important;
}
body#home #content #tabulator .tg-direction-tabs > .tabs_contents > .xs-title {
    display: none !important;
}
body#home #content #tabulator .mdl_tabulator_ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}
body#home #content #tabulator .mdl_tabulator_ul > li.item {
    float: none;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}
body#home #content #tabulator .mdl_tabulator_ul > li.item > a {
    min-height: 44px;
    gap: 12px;
    font-size: clamp(16px, 1vw, 21px);
    line-height: 1.25;
    color: #fff;
    transition: color 200ms ease-out;
}
body#home #content #tabulator .mdl_tabulator_ul > li.item > a > img {
    width: calc(44 * var(--tg-wide-unit, 1px));
    height: calc(44 * var(--tg-wide-unit, 1px));
    flex-shrink: 0;
    margin: 0;
}
body#home #content #tabulator .mdl_tabulator_ul > li.item > a:is(:hover, :focus-visible),
body#home #content #tabulator .mdl_tabulator_ul > li.item > a:is(:hover, :focus-visible) > span {
    color: #6cd3ff !important;
}
@media (max-width: 767.98px) {
    body .tg-service-direction-page > .page-title-box > .firstscreen-img img,
    body:is(#stroitelstvo-kotelnykh, #luchistoe-otoplenie, #vozdushnoe-otoplenie, #razreshenie-na-gazifikatsiyu) .page-title-box > .firstscreen-img img {
        object-position: 75% center;
    }
    body#home #content #tabulator.tg-swipe-screen {
        padding-block: clamp(104px, 13svh, 130px) 24px !important;
    }
    body#home #content #tabulator .tg-direction-tabs > .tabs_titles {
        gap: 12px;
        margin-bottom: 22px !important;
    }
    body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title {
        min-height: 50px;
        padding-bottom: 10px;
        font-size: clamp(11px, 3.2vw, 14px);
    }
    body#home #content #tabulator .mdl_tabulator_ul {
        gap: 12px 16px;
    }
    body#home #content #tabulator .mdl_tabulator_ul > li.item > a {
        align-items: center;
        min-height: 58px;
        gap: 9px;
        font-size: 14px;
        line-height: 1.3;
    }
    body#home #content #tabulator .mdl_tabulator_ul > li.item > a > img {
        width: 38px;
        height: 38px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body#home #content #tabulator .tg-direction-tabs > .tabs_titles > .tab_title::after {
        transition: none;
    }
}

/* Mobile submenu density: smaller labels and ten percent tighter rows. */
@media (max-width: 1023.98px) {
    body .header .header-content .header-menu .item-223 > .header-menu-subs > li > a {
        font-size: 13px !important;
        min-height: 39.6px;
        padding-block: 7.2px !important;
    }
    body .header .header-content .tg-service-menu-items > li > a {
        font-size: 13px !important;
        min-height: 39.6px;
        padding-block: 9px !important;
    }
}
@media (max-width: 359.98px) {
    body .header .header-content .header-menu .item-223 > .header-menu-subs > li > a {
        font-size: 12px !important;
    }
}

/* Preserve the three-column card size and centre smaller staff groups.
   Slick handles overflow at one/two/three visible cards; fitting groups stay still. */
body #about-us #work .row.tg-staff-all-fit .slick-track {
    margin-inline: auto !important;
    transform: none !important;
    transition: none !important;
}
body #about-us #work .row.tg-staff-all-fit .slick-arrow {
    display: none !important;
}

/* The expanded pill always uses the existing flyout glass, including between hovers. */
@media (min-width: 1024px) {
    body .header .header-content .header-menu.active .header-menu-list::before {
        background: var(--tg-menu-open-glass);
    }
}
/* Centre the complete company introduction below the mobile header safe area. */
@media (max-width: 767.98px) {
    body #content #about-us > .tg-about-heading {
        align-items: flex-start !important;
        padding-top: calc(var(--tg-mobile-header-safe, 88px) + 24px) !important;
    }
    body #content #about-us .tg-about-heading h1.tg-about-experience {
        width: 100%;
        max-width: none;
        align-items: center;
        margin-inline: auto;
        text-align: center;
    }
    body #content #about-us .tg-about-experience > .tg-about-years {
        font-size: clamp(150px, 41vw, 172px) !important;
        text-align: center;
    }
    body #content #about-us .tg-about-experience > .tg-about-tagline {
        max-width: min(100%, 330px) !important;
        font-size: clamp(26px, 7.4vw, 30px) !important;
        line-height: 1.18;
        text-align: center;
    }
}

/* A pre-paint entrance for letters, licences and text documents; lower rows
   wait for visibility. Screen replays then hand these same units to WAAPI. */
@media (prefers-reduced-motion: no-preference) {
    body #content > :is(.item-.item-article,.item-reviews.item-article) > .page-header:not([data-tg-opening-deferred]),
    body #content > :is(.item-.item-article,.item-reviews.item-article) > figure.item-image > img:not([data-tg-opening-deferred]),
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > p:not([data-tg-opening-deferred]),
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :is(p,h2,h3):not([data-tg-opening-deferred]),
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :is(ul,ol) > li:not([data-tg-opening-deferred]),
    body #content > :is(.item-.item-article,.item-reviews.item-article) .tg-document-grid :is(img,figcaption):not([data-tg-opening-deferred]) {
        animation: tg-opening-rise 760ms cubic-bezier(.45, 0, .2, 1) var(--tg-static-delay, 100ms) backwards;
    }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > figure.item-image > img { --tg-static-delay: 220ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > p { --tg-static-delay: 250ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :nth-child(1) { --tg-static-delay: 180ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :nth-child(2) { --tg-static-delay: 260ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :nth-child(3) { --tg-static-delay: 340ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) > [itemprop="articleBody"] > .tg-content-copy > :nth-child(n+4) { --tg-static-delay: 400ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) .tg-document-grid > figure:nth-child(1) { --tg-static-delay: 220ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) .tg-document-grid > figure:nth-child(2) { --tg-static-delay: 300ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) .tg-document-grid > figure:nth-child(n+3) { --tg-static-delay: 380ms; }
    body #content > :is(.item-.item-article,.item-reviews.item-article) .tg-document-grid figcaption:not([data-tg-opening-deferred]) { animation-delay: calc(var(--tg-static-delay, 220ms) + 60ms); }
    body #content [data-tg-opening-deferred] {
        opacity: 0;
        animation: none !important;
    }
    body :is(#content, #ftr) [data-tg-entry-pending] {
        opacity: 0;
    }
}

/* Center the introduction over the comparison grid; keep card copy left aligned. */
body #we-recommend .tg-energy-comparison > #tg-energy-title {
    text-align: center;
    margin-inline: auto;
}

body #we-recommend .tg-energy-comparison > .tg-energy-intro {
    max-inline-size: 64ch;
    margin-inline: auto;
    text-align: center;
    text-wrap: pretty;
}

body #content #about-us > .tg-about-heading .tg-about-experience {
    position: relative;
    top: clamp(8px, 1.25vh, 14px);
}

@media (min-width: 992px) {
    body #about-us .tg-about-flag-plane {
        width: min(46vw, 88svh);
    }
}

@media (max-width: 991.98px) {
    body #about-us .tg-about-flag-plane {
        width: min(85vw, 430px, 58svh);
    }
}

/* Pending and playing pieces share one opacity owner. Hover styles resume
   after the piece has reached its actual resting opacity. */
body :is(#content, #ftr, .sf2Win) :is([data-tg-entry-pending], [data-tg-entrance-running]) {
    transition-property: none !important;
}

/* The gallery uses the same outside edges as its heading. Each photograph
   fills a grid column, with the original available in the lightbox. */
body #content .tg-project-gallery > .container > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.45vw, 26px);
    margin-inline: 0;
}
body #content .tg-project-gallery .gall-item {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
body #content .tg-project-gallery .thumbnail img {
    width: 100%;
    height: auto;
}
@media (max-width: 767.98px) {
    body #content .tg-project-gallery > .container > .row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Keep the two-column facts grid ruled at tablet widths too. The mobile
   one-column grid has its own full-width horizontal dividers. */
@media (min-width: 768px) {
    body #content :is(#about-us, .tg-home-facts) #about-num {
        --tg-facts-rule: rgb(217 227 244 / .18);
        --tg-grid-line: linear-gradient(var(--tg-facts-rule), var(--tg-facts-rule));
    }
    body #content :is(#about-us, .tg-home-facts) #about-num .tg-about-fact:nth-child(n + 3) {
        border-color: var(--tg-facts-rule);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    body #content :is(#about-us, .tg-home-facts) #about-num {
        --tg-facts-edge: 20px;
        background-image: var(--tg-grid-line), var(--tg-grid-line), var(--tg-grid-line);
        background-size: 1px 100%;
        background-position: var(--tg-facts-edge) 0, 50% 0, right var(--tg-facts-edge) top;
        background-repeat: no-repeat;
    }
    body #content :is(#about-us, .tg-home-facts) #about-num .tg-about-fact:nth-child(n + 3) {
        box-shadow: inset 0 1px var(--tg-facts-rule);
    }
}

/* The text link includes the gap up to the fixed emblem. Keep the visible
   text in its original position and keep each line as its own intro piece. */
body .sitename .hdr-slogan.tg-header-home {
    margin-inline-start: calc(138 * var(--tg-wide-unit, 1px));
    padding-inline-start: calc(27 * var(--tg-wide-unit, 1px));
    min-block-size: calc(108 * var(--tg-wide-unit, 1px));
    justify-content: center;
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

body .sitename .hdr-slogan.tg-header-home:focus-visible {
    outline: 2px solid #6cd3ff;
    outline-offset: 3px;
}
