/* Apply the 1248 px / 1728 px content axis to both service catalogues. */
body#uslugi-gazifikatsii.view-category #wrapper > .top-firstscreen {
    position: relative;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content > .blog-service > .container {
    width: var(--tg-content-width);
    max-width: var(--tg-content-width);
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .page-header {
    margin: 0;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .page-header h1 {
    margin: 0;
    font-size: clamp(32px, 3.5vw, calc(58 * var(--tg-wide-unit, 1px)));
    line-height: 1.1;
    text-align: start;
    text-transform: none;
    overflow-wrap: anywhere;
}

/* The gas catalogue has one outer Joomla row; services groups items by three. */
body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service :is(.container, .container > div[itemscope]):has(> .items-row) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 44px);
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service :is(.container, .container > div[itemscope]):has(> .items-row) > :not(.items-row) {
    grid-column: 1 / -1;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .items-row {
    display: contents;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .items-row::before,
body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .items-row::after {
    content: none;
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service .items-row > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 1023.98px) {
    body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service :is(.container, .container > div[itemscope]):has(> .items-row) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 621px) {
    body:is(#uslugi, #uslugi-gazifikatsii).view-category #content .blog-service :is(.container, .container > div[itemscope]):has(> .items-row) {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* About-only final corrections. Load after acceptance-layout.css. */
body #about-us #geo .tg-geo-layout {position:relative;align-items:center;}
body #about-us #geo .tg-geo-layout .tg-geo-copy,
body #about-us #geo .tg-geo-layout:has(.tg-geo-label:not([hidden])) .tg-geo-copy {align-self:center;}
body #about-us #geo .tg-geo-label {
 position:static;inset:auto;width:auto;min-width:0;box-sizing:border-box;
 align-self:center;min-height:150px;margin:0;
}
body #about-us #geo .tg-geo-label[hidden] {display:flex;visibility:hidden;}
@media(min-width:1024px){
 body #about-us #geo .tg-geo-layout {
  grid-template-columns:minmax(0,1fr) minmax(0,1.24fr) minmax(180px,.6fr);
  gap:clamp(20px,1.5vw,36px);
 }
 body #about-us #geo .tg-geo-copy {grid-column:1;grid-row:1;}
 body #about-us #geo .tg-geo-map-wrap {grid-column:2;grid-row:1;}
 body #about-us #geo .tg-geo-label {grid-column:3;grid-row:1;}
}
@media(min-width:576px) and (max-width:1023.98px){
 body #about-us #geo .tg-geo-layout {grid-template-columns:minmax(0,1fr) minmax(180px,.5fr);}
 body #about-us #geo .tg-geo-copy {grid-column:1/-1;grid-row:1;}
 body #about-us #geo .tg-geo-map-wrap {grid-column:1;grid-row:2;}
 body #about-us #geo .tg-geo-label {grid-column:2;grid-row:2;}
}
@media(max-width:575.98px){
 body #about-us #geo .tg-geo-layout {grid-template-columns:minmax(0,1fr);}
 body #about-us #geo .tg-geo-label {min-height:120px;}
}
body #about-us #clients.tg-client-logos .client,
body #about-us #clients.tg-client-logos .client.slick-slide {
 box-sizing:border-box;height:clamp(130px,16svh,170px);min-height:0;
 padding:20px 20px 38px!important;overflow:hidden;
 display:flex!important;flex-direction:column;align-items:center;justify-content:flex-end;gap:0;
}
body #about-us #clients.tg-client-logos .client img,
body #about-us #clients.tg-client-logos .client:hover img {
 position:relative;inset:auto;display:block;flex:0 1 auto;
 width:auto;max-width:min(100%,220px);height:clamp(58px,7.5svh,82px);max-height:82px;
 object-fit:contain;object-position:center bottom;margin:0 auto;
 opacity:.76;
}
body #about-us #clients.tg-client-logos .client .tg-client-name,
body #about-us #clients.tg-client-logos .tg-client-trud .tg-client-name {
 position:absolute;inset:auto 12px 10px;min-height:0;
 font-size:clamp(10px,.5867vw,11.34px);font-weight:400;line-height:1.3;
 color:rgba(188,221,240,.64);text-align:center;max-width:calc(100% - 24px);
}
body #about-us #clients.tg-client-logos .tg-client-trud img,
body #about-us #clients.tg-client-logos .tg-client-trud:hover img {
 filter:url('#tg-client-alpha');max-width:min(100%,220px);opacity:.76;
}
@media(max-width:620px){
 body #about-us #clients.tg-client-logos .client {height:136px;padding-inline:14px!important;}
 body #about-us #clients.tg-client-logos .client .tg-client-name {font-size:10px;}
}

body #content > .tg-inline-application > #simpleForm2_129 {
    box-sizing: border-box;
    width: var(--tg-content-width);
    max-width: var(--tg-content-width);
    margin: 0 auto;
    padding-block: clamp(24px, 4vw, 68px);
    padding-inline: clamp(20px, 3.24vw, 56px) !important;
    border: 1px solid rgb(255 255 255 / .12);
    border-radius: clamp(24px, 3vw, 48px);
    background: rgb(255 255 255 / .10);
    box-shadow: none;
}

body #content > .tg-inline-application #simpleForm2_129 > .sf2-body > .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body #content > .tg-inline-application #simpleForm2_129 > .sf2-body > .container > .row {
    display: grid;
    gap: clamp(22px, 3.24vw, 56px);
    margin: 0;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}

body #content > .tg-inline-application #simpleForm2_129 > .sf2-body > .container > .row > [class*="col-"] {
    max-width: none;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
}

body #content .tg-inline-application #simpleForm2_129 .sf2-form-group:not([class*="col-"]) {
    margin-block: 0 clamp(10px, 0.9vw, 16px);
}

body #content .tg-inline-application #simpleForm2_129 .row.align-items-center {
    margin: 0;
    min-width: 0;
}

@media (min-width: 1024px) {
    body #content > .tg-inline-application #simpleForm2_129 > .sf2-body > .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body:is(#uslugi, #uslugi-gazifikatsii).view-category .blog-service .items-row .item { height: 100%; }

body:has(.tg-has-company-flag)::after { z-index: 1; }

body #about-us > .tg-has-company-flag {
    z-index: 2;
    background: linear-gradient(115deg, #132f5a, #153568 62%, #112f5c);
}

.tg-about-flag-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tg-grain-image);
    opacity: var(--tg-grain-opacity);
}

@media (prefers-reduced-motion: no-preference) {
    .tg-about-flag-scene::before { animation: tg-grain-position .72s steps(1, end) infinite; }
}

.tg-about-flag-plane {
    position: absolute;
    right: 8.2%;
    bottom: 0;
    width: min(43.5vw, 84svh);
    aspect-ratio: 762 / 773;
    pointer-events: none;
}

body #about-us .tg-about-flag-plane .tg-about-flag-pole,
body #about-us .tg-about-flag-plane .tg-about-flag-cloth {
    position: absolute;
    display: block;
    object-fit: fill;
}

body #about-us .tg-about-flag-plane .tg-about-flag-pole {
    inset: 0 auto auto 0;
    width: 8.27%;
    height: 100%;
    z-index: 1;
}

body #about-us .tg-about-flag-plane .tg-about-flag-cloth {
    top: 8.02%;
    left: 4.2%;
    width: 95.8%;
    height: 85.38%;
}

@media (max-width: 991.98px) {
    body #about-us > .tg-has-company-flag {
        min-height: max(560px, 100svh) !important;
        padding: 108px 0 clamp(260px, 79vw, 420px);
    }

    .tg-about-flag-plane {
        right: 5%;
        width: min(79vw, 400px, 54svh);
    }
}

body:has([data-tg-hero-video])::after { z-index: 1; }

body .item-firstscreen > .page-title-box:has(> [data-tg-hero-video]) { z-index: 2; }

body .item-firstscreen > .page-title-box > [data-tg-hero-video] { z-index: 0; }

body .item-firstscreen > .page-title-box > [data-tg-hero-video]::before,
body .item-firstscreen > .page-title-box > [data-tg-hero-video]::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body .item-firstscreen > .page-title-box > [data-tg-hero-video]::before {
    content: "";
    z-index: 1;
    background: linear-gradient(90deg, rgb(14 27 51 / .88), rgb(14 27 51 / .66) 60%, rgb(14 27 51 / .46));
}

body .item-firstscreen > .page-title-box > [data-tg-hero-video]::after {
    content: "" !important;
    z-index: 2;
    background-image: var(--tg-grain-image);
    opacity: var(--tg-grain-opacity);
}

@media (prefers-reduced-motion: no-preference) {
    body .item-firstscreen > .page-title-box > [data-tg-hero-video]::after {
        animation: tg-grain-position .72s steps(1, end) infinite;
    }
}

body .header .header-menu-btn { color: #fff; }

body .header .header-menu-btn:is(:hover, :focus-visible) {
    color: #9de3ff;
    background-color: rgb(108 211 255 / .30);
}

body .header .header-menu-btn .gamburger {
    width: calc(20 * var(--tg-wide-unit, 1px));
    height: calc(14 * var(--tg-wide-unit, 1px));
    color: inherit;
    transform: translate(-50%, -50%);
    opacity: 1;
}

body .header .header-menu-btn .gamburger::before,
body .header .header-menu-btn .gamburger::after { content: none; }

body .header .header-menu-btn .gamburger .gamburger-line {
    inset: 50% 0 auto;
    width: 100%;
    height: max(1.5px, calc(2 * var(--tg-wide-unit, 1px)));
    border-radius: 10px;
    transform: translateY(-50%);
    background: currentColor;
    box-shadow: 0 calc(-6 * var(--tg-wide-unit, 1px)) currentColor,
                0 calc(6 * var(--tg-wide-unit, 1px)) currentColor;
    opacity: 1;
}

body #content :is(h1, h2, h3, h4, h5, h6),
body #content :is(.page-title-box, .page-sect) .page-header {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

@media (min-width: 1536px) {
    body #content .item-service-block > .page-title-box > .absolute-container > .row > .col-xxl-6 {
        flex-basis: 58%;
        max-width: 58%;
    }
}

@media (max-width: 575.98px) {
    body #content .item-service-block > .page-title-box h1 {
        font-size: clamp(24px, 7.25vw, 32px) !important;
    }
}

body#home #content #our-project + .tg-seo-copy { margin-block-start: 0; }

/* A complete facts screen must fit the viewport, including its borders. */
body :is(#about-us, .tg-home-facts) #about-num { border-block: 0; }
@media (min-width: 1024px) {
    body :is(#about-us, .tg-home-facts) .tg-about-fact {
        min-height: clamp(270px, 50svh, 450px);
        padding: clamp(32px, 6svh, 72px);
    }
    body #content #our-project { padding-block: clamp(48px, 11svh, 115px); }
}
@media (max-width: 479.98px) {
    body :is(#about-us, .tg-home-facts) .tg-about-fact {
        min-height: clamp(180px, 25svh, 240px);
        padding: clamp(20px, 3.8svh, 32px);
    }
    body :is(#about-us, .tg-home-facts) .tg-about-fact > img {
        width: 88px;
        height: 88px;
    }
}
body #content .tg-seo-copy { padding-block: clamp(32px, 7svh, 80px) !important; }

/* The payment explanation and its separator share the section's full axis. */
body #interest-free :is(.tg-payment-stages__intro, .tg-payment-stages__note) {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
body #interest-free .tg-payment-stage__content p { max-width: none; }

/* Keep the home service content and its breathing room within short laptops. */
@media (min-width: 1024px) and (max-height: 800px) {
    body#home #content #tabulator { padding-block: clamp(20px, 4svh, 32px); }
    body #content #our-project { padding-block: clamp(32px, 8svh, 64px); }
    body #content .tg-seo-copy { padding-block: clamp(24px, 4.5svh, 36px) !important; }
}

/* On shorter viewports, fit the closed FAQ through spacing and let answers expand. */
/* The acknowledged notice stays remembered without a persistent settings tab. */
body .cc-revoke { display: none !important; }

@media (max-width: 767.98px) and (max-height: 900px) {
    body #faq.tg-service-faq {
        padding-block: 22px;
    }

    body #faq.tg-service-faq .tg-service-faq-item {
        margin-block: 8px;
    }

    body #faq.tg-service-faq .tg-service-faq-item > summary {
        padding-block: 17px;
    }
}

@media (min-width: 1024px) and (max-height: 800px) {
    body #faq.tg-service-faq {
        padding-block: 10svh;
    }
}

@media (max-width: 767.98px) and (max-height: 900px), (min-width: 1024px) and (max-height: 800px) {
    body #faq.tg-service-faq .tg-service-faq-item:last-child {
        margin-block-end: 0;
    }
}

/* Replace the legacy 800–900px banner minimum with its actual screen height.
   Auto height retains natural growth when the copy needs more than one screen. */
@media (min-width: 1024px) {
    body #content #advantage.tg-advantage-banner,
    body #content #advantage.tg-advantage-banner > .container {
        height: auto;
        min-height: 100svh;
    }
}

/* Keep full-bleed backgrounds while reserving the header's space for content. */
@media (max-width: 1023.98px) {
    body #content .tg-swipe-screen:not(.tg-first-screen) {
        box-sizing: border-box;
        padding-block-start: var(--tg-mobile-header-safe, 88px) !important;
    }

    /* Switching to a longer services tab must not move its heading upwards. */
    body#home #content #tabulator.tg-swipe-screen {
        align-content: start;
        padding-block-end: 32px;
    }

    body #content #quizz.tg-swipe-screen {
        padding-block-end: 36px !important;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    body #content #interest-free.tg-swipe-screen {
        padding-block-end: 18px;
    }
}

@media (max-width: 479.98px) {
    body :is(#about-us, .tg-home-facts) .tg-about-fact {
        min-height: max(156px, calc((100svh - var(--tg-mobile-header-safe, 88px)) / 4));
        padding-block: clamp(16px, 2.5svh, 24px);
    }
}

body .tg-contacts-map-layout .contact-address > .tg-contact-has-icon::before {
    content: none;
}
body .tg-contacts-map-layout .contact-address > .d-flex > .tg-contact-icon {
    position: absolute;
    inset: 0 auto auto 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #6cd3ff;
    background-position: center;
    background-size: 24px;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Mobile controls and forms — shared by the inline and popup applications. */
@media (max-width: 1023.98px) {
    body .our-project-box .carousel .col-auto,
    body .reiews-box .reviews-container-carousel .tg-review-carousel-card > .text,
    body #about-us #work .slick-slide .item {
        border-radius: clamp(18px, 4vw, 26px);
    }

    body .slick-slider button.slick-arrow:is(.arrow-left, .arrow-right),
    body .reiews-box .reviews-container-carousel.slick-slider > button.slick-arrow {
        width: 44px;
        height: 44px;
    }

    body .slick-slider button.slick-arrow.arrow-left {
        left: 0;
    }

    body .slick-slider button.slick-arrow.arrow-right {
        right: 0;
    }

    body .fancybox-navigation button.fancybox-button:is(.fancybox-button--arrow_left, .fancybox-button--arrow_right) {
        top: calc(50% - 22px);
        width: 44px;
        height: 44px;
        padding: 6px;
    }

    body .fancybox-navigation button.fancybox-button--arrow_left {
        left: max(8px, env(safe-area-inset-left));
    }

    body .fancybox-navigation button.fancybox-button--arrow_right {
        right: max(8px, env(safe-area-inset-right));
    }

    body .tg-application-launcher svg {
        width: 58%;
        height: 58%;
    }

    body :is(#simpleForm2_125, #simpleForm2_129) .sf2-body .page-header {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.13;
        white-space: nowrap;
    }

    body .sf2Win #simpleForm2_125 .sf2-body .page-header {
        margin-block-end: 22px;
    }

    body :is(#simpleForm2_125, #simpleForm2_129) .sf2-body .page-header > span {
        display: inline;
    }

    body :is(#simpleForm2_125, #simpleForm2_129) .sf2-body .page-header > span:first-child {
        display: block;
    }

    body :is(#simpleForm2_125, #simpleForm2_129) .sf2-body .sf2-form-group + .sf2-form-group:not([class*="col-"]) {
        margin-block-start: 6px;
    }

    body :is(#simpleForm2_125, #simpleForm2_129) .sf2-body :is(input[type="text"], input[type="tel"], textarea).sf2-element {
        display: block;
        margin-block-end: 8px;
    }
}

@media (max-width: 575.98px) {
    body .tg-license-showcase .tg-license-stack .tg-license-preview {
        width: min(56%, 245px);
    }
}

/* Mobile facts: four aligned rows and three full-width separators. */
/* Four mobile facts; preserve the tablet/desktop two-column presentation. */
@media(max-width:767.98px){
 body :is(#about-us,.tg-home-facts) #about-num {
  width:100%;min-height:100svh;box-sizing:border-box;
  padding-block:var(--tg-mobile-header-safe,88px) 0!important;border:0;margin-block:0;
 }
 body :is(#about-us,.tg-home-facts) #about-num > .container {
  width:100%!important;max-width:none!important;padding:0!important;margin-inline:0;
 }
 body :is(#about-us,.tg-home-facts) #about-num > .container > .row {margin:0!important;padding:0;}
 body :is(#about-us,.tg-home-facts) .tg-about-facts-grid {
  grid-template-columns:minmax(0,1fr);width:100%;margin:0;padding:0;gap:0;
 }
 body :is(#about-us,.tg-home-facts) .tg-about-fact {
  display:grid;grid-template-columns:minmax(0,1fr) 80px;grid-template-rows:auto auto;
  align-content:center;column-gap:20px;row-gap:8px;
  min-height:calc((100svh - var(--tg-mobile-header-safe,88px))/4);
  /* Reserve the fixed 48px launcher plus an 8px gap at the right edge. */
  padding:16px 76px 16px 20px;box-sizing:border-box;border:0;
 }
 body :is(#about-us,.tg-home-facts) .tg-about-fact + .tg-about-fact {border-top:1px solid rgba(217,217,217,.18);}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > :is(.tg-fact-number,.tg-fact-title) {grid-column:1;grid-row:1;margin:0;align-self:end;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > .tg-fact-number {font-size:44px;line-height:1.1;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > .tg-fact-title {font-size:clamp(24px,6.7vw,28px);line-height:1.12;max-width:6.1em;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > .tg-fact-label {grid-column:1;grid-row:2;margin:0;max-width:none;font-size:16px;line-height:1.25;align-self:start;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > img {
  position:static;grid-column:2;grid-row:1/3;align-self:center;justify-self:end;
  width:80px;height:80px;max-width:100%;object-fit:contain;margin:0;
 }
}
@media(max-width:359.98px){
 body :is(#about-us,.tg-home-facts) .tg-about-fact {grid-template-columns:minmax(0,1fr) 72px;column-gap:16px;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > img {width:72px;height:72px;}
 body :is(#about-us,.tg-home-facts) .tg-about-fact > .tg-fact-label {font-size:14px;}
}

/* Shared follow-up components, 2026-11-15. */
/* Use the existing advantage photograph in a portrait crop on phones. */
@media (max-width: 767.98px) {
    body #content #advantage.tg-advantage-banner {
        --tg-advantage-photo-height: min(76%, 640px);
        background-image:
            linear-gradient(180deg, transparent 26%, #1a2b4f min(75%, 628px)),
            linear-gradient(105deg, rgb(14 27 51 / .86), rgb(14 27 51 / .76) 43%, rgb(14 27 51 / .65)),
            url("/images/advantage/advantage.jpg") !important;
        background-position: center top, center top, 76% top;
        background-size: 100% 100%, 100% var(--tg-advantage-photo-height), auto var(--tg-advantage-photo-height);
        background-repeat: no-repeat;
    }
}

/* Embedded review carousels only; the /otzyvy listing keeps its own layout. */
body .reiews-box > .container > .d-flex > .page-header {white-space:nowrap;overflow-wrap:normal;}
body .reiews-box > .container > .d-flex > .page-header > span {display:block;white-space:nowrap;}
@media(max-width:767.98px){
 body .reiews-box > .container > .d-flex > .page-header {flex-basis:100%;}
}

body #all-reviews .items-element:has(.tg-review-scan-link),
body .reviews-container-carousel .tg-review-carousel-card:has(a.read[data-fancybox][href]) {
    cursor: pointer;
}

body #all-reviews .tg-review-letter:has(> .tg-review-scan-link) {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body #all-reviews .tg-review-scan-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: clamp(12px, 1.4vw, 24px);
    color: #6cd3ff;
}

/* First content screens need the same clear area as later screens.
   Hero artwork and the independently laid-out contacts page retain their layout. */
@media(max-width:1023.98px){
 body {--tg-mobile-header-safe:84px;}
 body:not(#kontakty) #content .tg-first-screen:not(.page-title-box):not(.tg-about-heading):not(.tg-project-intro):not(.tg-contacts-map-layout):not(:has(.page-title-box)) {
  box-sizing:border-box;padding-block-start:var(--tg-mobile-header-safe,88px)!important;
 }
 /* Surface-only list: no links-as-buttons, circles, fields or header controls. */
 body #content :is(.blog-service .item,.tg-service-card,
  .our-project-box .carousel .col-auto,.tg-projects-list .col-auto,
  .tg-project-list-card__link,
  .reviews-blog .items-element,.tg-review-carousel-card > .text,
  #about-us #work .item,#about-us #clients .client,
  .tg-fact,.tg-energy-option,.teplo-technology-detail,.tg-service-faq-item,
  .tg-inline-application .sf2-form-box),
 body :is(.sf2Win,.teploquiz) {
  border-radius:20px!important;
 }
 body .sf2Win::before {border-radius:inherit!important;}
}

.tg-carousel-pagination { display: none; }

@media (max-width: 767.98px) {
    body .slick-slider:has(+ .tg-carousel-pagination) > button.slick-arrow {
        display: none !important;
    }
    body .tg-carousel-pagination:not([hidden]) {
        display: block;
        width: calc(var(--tg-dot-count, 0) * 24px);
        margin: 8px auto 0;
        overflow: clip;
    }
    .tg-carousel-pagination-track {
        display: flex;
        transform: translateX(calc(var(--tg-dot-start, 0) * -24px));
        transition: transform 220ms ease-out;
    }
    body .tg-carousel-pagination-track > button {
        appearance: none;
        display: grid;
        place-items: center;
        flex: 0 0 24px;
        height: 28px;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .tg-carousel-pagination-track > button::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #a9dbf5;
        opacity: var(--tg-dot-opacity, .65);
    }
    .tg-carousel-pagination-track > button[aria-current="true"]::before {
        width: 8px;
        height: 8px;
        background: #6cd3ff;
        opacity: 1;
    }
    .tg-carousel-pagination-track > button:focus-visible {
        outline-offset: -3px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-carousel-pagination-track { transition: none; }
}

body #ftr .tg-footer-label-short { display: none; }

@media (min-width: 768px) {
    body #ftr.tg-footer-fidelity {
        --tg-footer-credit-size: max(14px, calc(14 * var(--tg-wide-unit, 1px)));
    }

    body #ftr.tg-footer-fidelity :is(.copiryght, .deldy, .copiryght > span, .copiryght > a, .deldy .zbull, .deldy .zbull span) {
        font-size: var(--tg-footer-credit-size);
        line-height: calc(1.35 * var(--tg-footer-credit-size));
        font-weight: 400;
    }

    body #ftr.tg-footer-fidelity .copiryght {
        gap: 0;
    }

    body #ftr.tg-footer-fidelity .deldy .zbull {
        display: block;
    }
}

/* Keep the phone's legal footer inside the final application screen. */
@media (max-width: 767.98px) {
    body #ftr.tg-footer-fidelity {
        padding-block: 12px;
    }

    body #ftr.tg-footer-fidelity > .container {
        width: 100%;
        max-width: none;
        padding-inline: 20px;
    }

    body #ftr.tg-footer-fidelity .tg-footer-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
        gap: 8px;
        min-height: 66px;
        padding-inline-end: 56px;
    }

    body #ftr.tg-footer-fidelity .copiryght,
    body #ftr .tg-footer-label-full {
        display: none;
    }

    body #ftr .tg-footer-label-short { display: inline; }

    body #ftr.tg-footer-fidelity .diskmaker {
        display: grid;
        grid-template-columns: repeat(2, minmax(max-content, 1fr));
        align-items: center;
        gap: 4px 8px;
        padding: 0;
        margin: 0;
        text-align: start;
    }

    body #ftr.tg-footer-fidelity .diskmaker > a,
    body #ftr.tg-footer-fidelity .deldy .zbull {
        display: block;
        margin: 0;
        font-size: 12px;
        line-height: 18px;
        text-align: start;
        white-space: nowrap;
    }

    body #ftr.tg-footer-fidelity .deldy {
        display: block;
        margin: 0;
    }

    body #ftr.tg-footer-fidelity .deldy .zbull {
        font-size: 11px;
        line-height: 14px;
        text-align: end;
    }

    body #content > .tg-inline-application.tg-final-content {
        min-height: calc(100svh - var(--tg-footer-height, 43px));
        padding-block-end: 16px;
    }
}

@media (max-width: 767.98px) and (max-height: 700px) {
    body #content > .tg-inline-application.tg-final-content {
        padding-block-end: 12px;
    }

    body #content > .tg-inline-application > #simpleForm2_129 {
        padding-block: 16px;
    }
}

/* Match the visual weight of the menu glyph at every viewport size.
   The button diameter and right edge follow the actual menu through ResizeObserver. */
body .tg-application-launcher svg {
    width: 58%;
    height: 58%;
}

/* Fit shared screens by recovering spacing, never by clipping their content. */
@media(max-width:1023.98px){
 body #content #tabulator-service.tg-swipe-screen {padding-bottom:12px!important;}
}
@media(min-width:768px) and (max-width:1023.98px){
 body .technologies .teplo-technology-detail {margin-block:8px;}
}
@media(max-width:767.98px) and (max-height:900px){
 body #content #faq.tg-service-faq {padding-bottom:12px!important;}
 body #faq.tg-service-faq > .container > .page-header {margin-bottom:16px;}
 body #faq.tg-service-faq .tg-service-faq-item {margin-block:4px;}
 body #faq.tg-service-faq .tg-service-faq-item > summary {padding-block:9px;min-height:44px;box-sizing:border-box;}
 body #faq.tg-service-faq .tg-service-faq-item:last-child {margin-bottom:0;}
}
@media(max-width:767.98px) and (max-height:700px){
 body #content #our-project.tg-swipe-screen {padding-bottom:24px!important;}
 body #our-project > .container > .page-header {margin-bottom:24px;}
 body #our-project .carousel .col-auto .img {height:200px!important;min-height:0;flex-basis:200px!important;}
 body #our-project .carousel .col-auto .img > img {height:100%!important;object-fit:cover;}
 body #content #license.tg-swipe-screen {padding-bottom:12px!important;}
 body .license-box .tg-license-showcase {gap:16px;}
 body .tg-license-showcase .page-header {margin-bottom:16px;}
 body .tg-license-showcase .text > p {margin-bottom:16px;}
 body .tg-license-showcase .tg-license-stack {height:284px;}
 body .tg-license-showcase .tg-license-stack .tg-license-preview {width:min(55%,190px);}
 body #content .tg-seo-copy.tg-swipe-screen {padding-bottom:24px!important;margin-top:0;}
 body .tg-seo-copy .tg-seo-toggle {margin-top:16px;}
 body #content #quizz.tg-swipe-screen {padding-bottom:20px!important;}
}
@media(min-width:1024px) and (max-height:800px){
 body #content #quizz.tg-swipe-screen {padding-block:8px!important;}
 body #quizz .teploquiz > h2 {margin-bottom:22px;}
 body #faq.tg-service-faq {padding-block:60px;}
}
@media(max-width:1023.98px){
 body #content #about-us #work.tg-swipe-screen {padding-bottom:20px!important;}
}
@media(min-width:1024px) and (max-height:800px){
 body #about-us #work.tg-swipe-screen {padding-block:40px;}
 body #about-us #clients.tg-swipe-screen {padding-block:50px;}
}
@media(max-width:767.98px) and (max-height:900px){
 body #content #quizz.tg-swipe-screen {padding-bottom:16px!important;}
 body #quizz .teploquiz > h2 {margin-bottom:18px;}
}
@media(min-width:768px) and (max-width:1023.98px){
 body #about-us #work .item {padding-bottom:16px;}
}
@media(min-width:1024px) and (max-height:800px){
 body#home #content #tabulator {padding-block:26px;}
}

/* Use the service catalogue's scale for ordinary page and screen headings.
   Hero artwork, application forms and smaller editorial/card headings retain
   their established hierarchy. Text stays as authored, preserving abbreviations. */
body {
    --tg-standard-heading-size: clamp(32px, 3.5vw, calc(58 * var(--tg-wide-unit, 1px)));
}

body #content :is(
    .page-header:not(:has(h1, h2)),
    .blog-service .page-header > h1,
    .tg-projects-list .page-header > h1,
    .teploquiz > h2
):not(.page-title-box *, .tg-project-intro *, form *, .sf2Win *, #always *, [itemprop="name"]) {
    font-size: var(--tg-standard-heading-size) !important;
    line-height: 1.1 !important;
    font-weight: 700;
    text-transform: none !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
}

body #content :is(h1, h2, h3, .page-header):not(.page-title-box *, .tg-project-intro *, #always *) {
    text-transform: none !important;
}

/* The review header switches to a column on phones. Its old 12ch flex-basis
   then became a large empty vertical block instead of a title width. */
@media (max-width: 1023.98px) {
    body #content .reviews-blog .review-top > .page-header {
        flex: 0 0 auto;
    }
}

/* The icon column leaves 168px of text width on a 320px phone. Keep contact
   values whole instead of breaking the email's final letter onto another line. */
@media (max-width: 359.98px) {
    body .tg-contacts-map-layout .contact-address :is(a[href^="tel:"], a[href^="mailto:"]) {
        font-size: 18px;
        line-height: 1.35;
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

/* Keep the introduction visually attached to its heading. */
body #we-recommend .tg-energy-comparison > #tg-energy-title {
    margin-bottom: 16px;
}
body #we-recommend .tg-energy-comparison > .tg-energy-intro {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    /* Long content has room to breathe below the fixed logo. Preserve the
       compact inset for slides intentionally fitted to one viewport. */
    body #content :is(#we-recommend, #interest-free, #technologies, #tabulator-service, #clients, .blog-service, .tg-projects-list, .reviews-blog).tg-swipe-screen {
        --tg-mobile-header-safe: 96px;
    }
    body #we-recommend .tg-energy-comparison > #tg-energy-title {
        margin-bottom: 14px;
    }
}
@media (max-width: 767.98px) {
    body #content #technologies.tg-swipe-screen {
        padding-block-start: var(--tg-mobile-header-safe) !important;
    }
}

/* Keep the question heading on the same left axis as its answer cards. */
body #faq.tg-service-faq > .container > .page-header {
    max-width: none;
    margin-inline: 0;
    text-align: left;
}

/* The label is an overlay: selecting a district never changes the map's grid. */
body #about-us #geo .tg-geo-layout {position:relative;}
body #about-us #geo .tg-geo-map-wrap {display:flex;justify-content:flex-end;align-items:center;}
body #about-us #geo .tg-geo-label {
 position:absolute;grid-column:auto;grid-row:auto;inset:auto 12px 12px auto;z-index:2;
 width:min(320px,calc(100% - 24px));min-height:0;margin:0;
 padding:18px 20px;gap:6px;pointer-events:none;
}
body #about-us #geo .tg-geo-label[hidden] {display:flex;visibility:hidden;}
@media(min-width:1024px){
 body #about-us #geo .tg-geo-layout {grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);gap:clamp(24px,2vw,48px);}
 body #about-us #geo .tg-geo-copy {grid-column:1;grid-row:1;}
 body #about-us #geo .tg-geo-map-wrap {grid-column:2;grid-row:1;}
 body #about-us #geo .tg-geo-map {width:min(100%,calc(94svh - 150px));height:auto;max-height:none;}
 body #about-us #geo .tg-geo-label {right:0;bottom:12px;width:min(340px,36%);}
}
@media(max-width:1023.98px){
 body #about-us #geo .tg-geo-layout {grid-template-columns:minmax(0,1fr);gap:24px;}
 body #about-us #geo .tg-geo-copy {grid-column:1;grid-row:1;}
 body #about-us #geo .tg-geo-map-wrap {grid-column:1;grid-row:2;}
 body #about-us #geo .tg-geo-map {width:min(100%,580px);height:auto;max-height:none;}
 body #about-us #geo .tg-geo-label strong {font-size:18px;line-height:1.3;}
 body #about-us #geo .tg-geo-label span {font-size:12px;line-height:1.35;}
}

/* More vertical breathing room, with logo and caption lifted together. */
body #about-us #clients.tg-client-logos {
 --tg-client-card-height:clamp(160px,19svh,280px);
 --tg-client-lift:clamp(16px,1.9svh,28px);
}
body #about-us #clients.tg-client-logos .client,
body #about-us #clients.tg-client-logos .client.slick-slide {
 height:var(--tg-client-card-height);
 padding-bottom:calc(38px + var(--tg-client-lift))!important;
}
body #about-us #clients.tg-client-logos .client .tg-client-name,
body #about-us #clients.tg-client-logos .tg-client-trud .tg-client-name {
 bottom:calc(10px + var(--tg-client-lift));
}
@media(max-width:767.98px){
 body #about-us #clients.tg-client-logos {--tg-client-card-height:156px;--tg-client-lift:16px;}
}

@media(min-width:1024px) and (max-height:800px){
 body #about-us #clients.tg-client-logos {--tg-client-card-height:clamp(140px,19svh,160px);--tg-client-lift:14px;}
}
@media(min-width:1024px){
 body #content #about-us #clients.tg-swipe-screen {padding-bottom:clamp(24px,5svh,48px)!important;}
}

/* Pointer activation never gets the browser's black/white keyboard halo. */
html[data-tg-input-mode="pointer"] :is(a, button, input, textarea, select, summary, [role="button"], [tabindex]):is(:focus, :active) {
    outline: none !important;
    box-shadow: none !important;
}
body .sf2Win:focus { outline: none !important; }
html[data-tg-input-mode="keyboard"] body :is(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible:not(.sf2Win) {
    outline: 2px solid #6cd3ff !important;
    outline-offset: 4px;
    box-shadow: none !important;
}

/* The global link transition must not compete with a card's paint fade. */
body .tg-projects-list .tg-project-list-card__link {
    transition-property: color, text-decoration-color;
}

/* Each scan supplies the paper surface for its own entrance. */
body #content .tg-license-stack,
body #content .tg-license-stack :is(.tg-license-preview, .tg-license-preview img) {
    background: transparent;
    box-shadow: none;
}

body #content .tg-license-stack .tg-license-preview img {
    filter: drop-shadow(0 12px 24px rgb(5 15 35 / .22));
}

/* Safari chrome leaves less usable height than the physical iPhone screen.
   Keep 44px service links and the 84px header clearance; compress only gaps. */
@media (max-width:767.98px) and (max-height:800px) {
  body#home #content #tabulator.tg-swipe-screen {
    padding-bottom:16px !important;
  }
  body#home #tabulator > .container > .page-header {
    margin-bottom:16px !important;
  }
  body#home #tabulator .tabs_main > .tabs_titles {
    margin-bottom:12px !important;
  }
  body#home #tabulator .mdl_tabulator_ul > li.item {
    margin-block:0 !important;
  }
  body#home #tabulator .mdl_tabulator_ul > li.item + li.item {
    margin-top:clamp(0px, calc((100svh - 670px) / 10), 8px) !important;
  }
}

@media (max-width: 767.98px) {
    body #content #about-us #geo.tg-swipe-screen {
        min-height: 100svh;
        padding-bottom: 20px !important;
        display: grid;
        align-items: center;
    }
    body #about-us #geo > .container {
        height: calc(100svh - var(--tg-mobile-header-safe, 84px) - 20px);
    }
    body #about-us #geo .tg-geo-layout {
        height: calc(100svh - var(--tg-mobile-header-safe, 84px) - 20px);
        grid-template-rows: auto minmax(0, 1fr);
        gap: 16px;
    }
    body #about-us #geo .tg-geo-map-wrap {
        min-height: 0;
        justify-content: center;
    }
    body #about-us #geo .tg-geo-map {
        width: auto;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
    }
    body #about-us #work .slick-slide .item {
        height: auto;
    }
    body #about-us #work .work-el:first-child img { margin-bottom: 18px; }
    body #about-us #work .page-header {
        margin-bottom: 22px;
    }
    body #about-us #work .slick-slide .item img {
        height: min(calc(100vw - 40px), clamp(180px, calc(100svh - 390px), 330px)) !important;
        object-fit: cover;
        object-position: center 20%;
    }
    body #content #about-us #license.tg-swipe-screen {
        padding-bottom: 20px !important;
    }
    body #about-us .tg-license-showcase {
        gap: 24px;
    }
    body #about-us .tg-license-showcase .tg-license-stack {
        height: clamp(200px, calc(100svh - 425px), 330px);
    }
    body #about-us .tg-license-showcase .tg-license-stack .tg-license-preview {
        width: min(48%, 177px);
    }
    body #about-us #clients.tg-client-logos {
        --tg-client-card-height: clamp(98px, 16svh, 130px);
        --tg-client-lift: 8px;
    }
    body #about-us #clients.tg-client-logos .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body #about-us #clients.tg-client-logos .client {
        padding-inline: 8px !important;
    }
    body #about-us #clients.tg-client-logos .client img {
        max-width: 100%;
    }
    body #content #reiews > .container {
        display: flex;
        flex-direction: column;
    }
    body #content #reiews > .container > .d-flex {
        display: contents !important;
    }
    body #content #reiews .page-header { order: 0; }
    body #content #reiews .reviews-container-carousel {
        order: 1;
        margin-inline: 0 !important;
        width: 100%;
    }
    body #content #reiews .tg-review-carousel-card {
        padding-inline: 0 !important;
    }
    body #content #reiews .tg-carousel-pagination { order: 2; }
    body #content #reiews .see-all {
        order: 3;
        align-self: flex-start;
        margin: 12px 0 0;
    }
    body #application textarea.sf2-element { height: 84px !important; min-height: 84px !important; }
    body #application .sf2-body .page-header { margin-bottom: 16px; }
    body :is(#application, .sf2Win) .sf2-form-group:has(button[type="submit"]) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: none !important;
    }
    body :is(#application, .sf2Win) .sf2-form-group :is(.sf2-form-item, .sf2-form-element-wrap, .sf2-submit-container):has(button[type="submit"]) {
        display: block;
        width: 100% !important;
        max-width: none !important;
    }
    body :is(#application, .sf2Win) .sf2-form-group button[type="submit"] {
        width: 100% !important;
        max-width: none !important;
    }
    body .sf2Win .sf2-form-box {
        padding-top: 24px !important;
    }
}

/* Replace both copies of the pipeline pictogram with one inset drawing. */
body img:is([src*="/gas-pipeline.svg"], [src*="/pipeline-construction.svg"]) {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%236cd3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 33h11m-11 12h11m30-12h11M47 45h11M6 30v18m52-18v18M17 29h5v20h-5zm25 0h5v20h-5zM22 34h20m-20 10h20M32 34V24'/%3E%3Ccircle cx='32' cy='17' r='7'/%3E%3Cpath d='M25 17h14'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
    body #about-us #geo .tg-geo-map-wrap {
        align-self: stretch;
        height: 100%;
    }
    body #about-us #work .slick-list { height: auto !important; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
    body #application textarea.sf2-element { height: 68px !important; min-height: 68px !important; }
}

/* Short laptop viewports also include the range just above 800px. */
@media (min-width: 1024px) and (max-height: 920px) {
    body#home #content #tabulator.tg-swipe-screen {
        padding-block: clamp(22px, 4svh, 36px);
    }
    body #content #tabulator-service.tg-swipe-screen {
        padding-block: clamp(24px, 5svh, 44px);
    }
}
@media (max-width: 767.98px) and (max-height: 800px) {
    body #content #tabulator-service.tg-swipe-screen > .container > .page-header {
        margin-bottom: 14px;
    }
    body #content #tabulator-service .workcycle-img {
        margin-bottom: 12px;
    }
    body #content #tabulator-service .workcycle-img img {
        max-height: 24svh;
        object-fit: cover;
        border-radius: 16px;
    }
}

@media (min-width: 768px) {
    body #quizz .teploquiz[data-tq-visual="gas"] {
        grid-template-rows: auto 1fr;
    }
    body #quizz .teploquiz[data-tq-visual="gas"] > h2 {
        grid-column: 1;
        grid-row: 1;
        font-size: clamp(32px, 3vw, 52px) !important;
        margin-bottom: 20px;
    }
    body #quizz .teploquiz[data-tq-visual="gas"] > .tq-form { grid-row: 2; }
    body #quizz .teploquiz[data-tq-visual="gas"] > .tq-visual { grid-row: 1 / span 2; }
}
@media (max-width: 700px) {
    body #quizz .teploquiz[data-tq-visual="gas"] > h2 {
        font-size: clamp(23px, 6.5vw, 29px) !important;
        margin-bottom: 14px !important;
    }
    body #quizz .teploquiz[data-tq-visual="gas"] > .tq-visual {
        height: 94px;
        margin-bottom: 14px;
    }
    body #quizz .teploquiz[data-tq-visual="gas"] .tq-visual-drawing { height: 90px; }
}

@media (max-width: 767.98px) {
    body #about-us #work .slick-slide .item {
        margin-bottom: 0 !important;
    }
    body #about-us #work .slick-slide .work-el:first-child {
        aspect-ratio: auto !important;
        height: auto !important;
        margin-bottom: 18px !important;
    }
}
@media (max-width: 767.98px) and (max-height: 800px) {
    body #content #tabulator-service .tabs_contents_workcycles .tab_content {
        margin-bottom: 14px !important;
    }
    body #content #tabulator-service .tabs_contents_workcycles .page-header-xs {
        margin-block: 6px;
    }
}
@media (max-width: 700px) {
    body #content #quizz .teploquiz[data-tq-visual="gas"] > h2 {
        font-size: clamp(23px, 6.2vw, 29px) !important;
    }
    body #content #quizz .teploquiz[data-tq-visual="gas"] > .tq-visual {
        height: 86px;
        margin-bottom: 12px;
    }
    body #content #quizz .teploquiz[data-tq-visual="gas"] .tq-visual-drawing { height: 82px; }
    body #content #quizz .teploquiz[data-tq-visual="gas"] .tq-actions { margin-top: 14px; }
}

/* Internal pages show the fixed menu in its final state on the first frame. */
body:not(#home) .header .header-content .header-menu.active .header-menu-list {
    animation: none !important;
}
@media (max-width: 1023.98px) {
    body .header .header-content .header-menu:not(.active) .header-menu-list {
        display: none !important;
    }
}
@media (min-width: 1024px) and (max-height: 920px) {
    body #content #about-us #clients.tg-client-logos.tg-swipe-screen {
        padding-bottom: 20px !important;
    }
}

@media (min-width: 1024px) {
    body:not(#home) .header .header-content .header-menu-list:not([aria-hidden]) {
        display: flex !important;
        width: max-content;
        height: 56px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    body:not(#home) .header .header-content .header-menu-list:not([aria-hidden]) > li {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

body .our-project-box .carousel .col-auto:has(a.read[href]) {
    cursor: pointer;
}

/* The footer already has its own height. Only the outer section owns the
   remaining viewport space, including when compact mode uses native scroll. */
body#home #content #always.tg-final-content {
    box-sizing: border-box;
    min-height: calc(100svh - var(--tg-footer-height, 0px));
    align-content: center;
}
body#home #content #always.tg-final-content > .container {
    min-height: 0 !important;
    height: auto !important;
}
@media (max-height: 850px) {
    body#home #content #always.tg-final-content > .container {
        padding-block: clamp(18px, 4svh, 40px);
    }
}

/* Keep the outside spacing from creating a second scroll stop below forms. */
@media (min-width: 1024px) and (max-height: 920px) {
    body #content > .tg-inline-application.tg-final-content {
        padding-block: clamp(12px, 2.5svh, 26px);
    }
    body #content > .tg-inline-application.tg-final-content > #simpleForm2_129 {
        padding-block: clamp(20px, 4svh, 36px);
    }
}

@media (max-width: 767.98px) and (max-height: 800px) {
    body #content #our-project.tg-swipe-screen {
        padding-bottom: 24px !important;
    }
    body #content #license.tg-swipe-screen:has(.tg-license-showcase) {
        padding-bottom: 20px !important;
    }
    body #content #license .tg-license-showcase {
        gap: 24px;
    }
    body #content #license .tg-license-showcase .tg-license-stack {
        height: clamp(200px, calc(100svh - 425px), 330px);
    }
    body #content #license .tg-license-showcase .tg-license-stack .tg-license-preview {
        width: min(48%, 177px);
    }
}

/* Entrance translations must not extend the scrollable document past the footer. */
body #ftr.tg-footer-fidelity { overflow: clip; }

@media (min-width: 1024px) and (max-height: 760px) {
    body #content > .tg-inline-application.tg-final-content {
        padding-block: 12px;
    }
    body #content > .tg-inline-application.tg-final-content > #simpleForm2_129 {
        padding-block: 20px;
    }
    body #application textarea.sf2-element {
        height: 96px !important;
        min-height: 96px !important;
    }
}
@media (max-width: 767.98px) and (max-height: 800px) {
    body #our-project .carousel .col-auto .img {
        height: clamp(168px, calc(100svh - 495px), 222px) !important;
        flex-basis: clamp(168px, calc(100svh - 495px), 222px) !important;
    }
}

@media (max-width: 700px) and (max-height: 700px) {
    body #content #quizz .teploquiz[data-tq-visual="gas"] .tq-step[data-question] legend {
        margin-bottom: 10px;
    }
    body #content #quizz .teploquiz[data-tq-visual="gas"] .tq-actions {
        margin-top: 8px;
    }
    body #content #quizz .teploquiz[data-tq-visual="gas"] > .tq-visual {
        margin-bottom: 6px;
    }
}
@media (max-width: 700px) and (max-height: 700px) {
    body #content #quizz.tg-swipe-screen:has(.teploquiz[data-tq-visual="gas"]) {
        padding-bottom: 7px !important;
    }
    body #content #quizz .teploquiz[data-tq-visual="gas"] > h2 {
        margin-bottom: 8px !important;
    }
}

/* Safari owns trackpad scrolling. Keyboard turns temporarily opt out of snap. */
html.tg-swipe-enabled.tg-native-screen-scroll:not(.tg-scripted-scroll) {
    scroll-snap-type: y mandatory !important;
}
html.tg-native-screen-scroll .tg-swipe-screen {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* Include the listing's header in the first snap area from page start. */
html.tg-native-screen-scroll .tg-first-screen {
    scroll-margin-block-start: 100svh;
}
html.tg-native-screen-scroll .tg-final-content {
    scroll-margin-bottom: var(--tg-footer-height, 0px);
}

/* These styles are available before the first paint. An element cannot flash
   visible and then go back to opacity zero when the motion script starts. */
@keyframes tg-opening-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes tg-opening-rise {
    from { opacity: 0; translate: 0 13px; }
    to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
    body .header :is(.header__logo, .header-menu, .hdr-slogan > *),
    body#home .tg-application-launcher {
        animation: tg-opening-fade 720ms cubic-bezier(.45, 0, .2, 1) backwards;
    }
    body .header .header-menu { animation-delay: 100ms; }
    body #content .page-title-box :is(h1:not(.tg-about-experience), .shortdescription, .shortdescription-serice, .sf2-callBtn, .tg-about-years, .tg-about-tagline, .tg-about-flag-plane),
    body #content :is(.tg-projects-list h1, .blog-service h1, .reviews-blog .review-top :is(.page-header, .sf2-callBtn),
        .tg-project-intro h1, .tg-project-intro .gorod, .tg-project-intro .tg-project-hero,
        .tg-contacts-map-layout h1, .tg-contacts-map-layout .infotext) {
        animation: tg-opening-rise 760ms cubic-bezier(.45, 0, .2, 1) 100ms backwards;
    }
    body #content .page-title-box :is(.shortdescription, .shortdescription-serice, .tg-about-tagline),
    body #content :is(.tg-project-intro .tg-project-hero, .tg-contacts-map-layout .infotext, .reviews-blog .review-top .sf2-callBtn) {
        animation-delay: 250ms;
    }
    body #content .page-title-box :is(.sf2-callBtn, .tg-about-flag-plane) { animation-delay: 400ms; }
}

@media (min-width: 1024px) {
    body .header .header-menu.active .header-menu-list { animation-name: none !important; }
}

/* Keep the two listings on the same grid below the shared desktop header. */
@media (min-width: 1024px) {
    body #content :is(.tg-projects-list, .reviews-blog) {
        padding-block-start: clamp(64px, 5vw, 86px);
    }
    body #content .reviews-blog {
        margin-block-start: 0;
    }
    body #content .reviews-blog .review-top > h1 {
        align-self: flex-start;
    }
}

/* Balance first-screen copy while keeping authored home and company lockups. */
body #content :is(.item-service-block > .page-title-box h1, .tg-project-intro h1, .blog-service .page-header > h1, .tg-boundary-service .page-header > h1) {
    text-wrap: balance;
    overflow-wrap: normal;
    hyphens: none;
}

body #content .tg-project-intro h1 {
    text-wrap: pretty;
}

@media (min-width: 576px) {
    body#soprovozhdenie-i-poluchenie-iskhodnykh-dannykh #content .item-service-block > .page-title-box h1 {
        max-inline-size: 12.65em;
        text-wrap: wrap;
    }
}

@media (max-width: 359.98px) {
    body #content .item-service-block > .page-title-box h1 {
        font-size: clamp(21px, 6.8vw, 24px) !important;
    }
    body #content .tg-project-intro h1 {
        font-size: clamp(24px, 7.5vw, 27px) !important;
    }
}

/* Center the logo and its caption together. The logo size follows the tile. */
body #about-us #clients.tg-client-logos :is(.client, .client.slick-slide) {
    justify-content: center;
    gap: clamp(5px, 1svh, 14px);
    padding-block: 10px !important;
}

body #about-us #clients.tg-client-logos :is(.client, .client:hover, .tg-client-trud:hover) img {
    flex: none;
    height: calc(.38 * var(--tg-client-card-height));
    max-height: none;
    max-width: 74%;
    object-position: center;
}

body #about-us #clients.tg-client-logos :is(.client, .tg-client-trud) .tg-client-name {
    position: static;
    max-width: 100%;
    margin: 0;
    font-size: clamp(10px, .64vw, 15px);
}

body #content #quizz.tg-swipe-screen:has(.teploquiz[data-tq-visual]) {
    transition: none;
}

@media (min-width: 701px) {
    body #content #quizz .teploquiz[data-tq-visual] {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        grid-template-rows: auto 1fr;
        column-gap: clamp(24px, 3vw, 64px);
    }
    body #content #quizz .teploquiz[data-tq-visual] > h2 {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        max-width: min(100%, calc(700 * var(--tg-wide-unit, 1px)));
        margin-bottom: clamp(16px, 2.3svh, 28px);
    }
    body #content #quizz .teploquiz[data-tq-visual] > .tq-form {
        grid-column: 1;
        grid-row: 2;
    }
    body #content #quizz .teploquiz[data-tq-visual] > .tq-visual {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    body #content #quizz .tq-visual .tq-visual-drawing {
        height: clamp(118px, 16svh, 168px);
    }
}

@media (min-width: 1024px) {
    body #content #quizz.tg-swipe-screen:has(.teploquiz[data-tq-visual]) {
        padding-block: clamp(16px, 2.7svh, 40px) !important;
    }
    body #content #quizz .teploquiz[data-tq-visual] legend {
        margin-bottom: clamp(14px, 2svh, 30px);
    }
    body #content #quizz .teploquiz[data-tq-visual] .tq-choice {
        margin-block: clamp(9px, 1.4svh, 20px);
    }
}

@media (max-width: 700px) {
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) > .tq-visual {
        height: clamp(86px, 12svh, 100px);
        margin-bottom: 10px;
    }
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) .tq-visual-drawing {
        height: 100%;
    }
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) .tq-actions {
        margin-top: 14px;
    }
}

@media (max-width: 700px) and (max-height: 800px) {
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) .tq-choice {
        margin-block: 11px;
    }
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) .tq-contact-step > label:not(.tq-contact-consent) {
        margin-block: 8px;
    }
    body #content #quizz .teploquiz[data-tq-visual]:not([data-tq-visual="gas"]) textarea {
        height: 112px;
        min-height: 112px;
    }
}

body {
    --tg-action-width: calc(240 * var(--tg-wide-unit, 1px));
    --tg-action-height: calc(64 * var(--tg-wide-unit, 1px));
    --tg-action-circle: calc(52 * var(--tg-wide-unit, 1px));
    --tg-action-text: calc(18 * var(--tg-wide-unit, 1px));
    --tg-action-inset: calc(20 * var(--tg-wide-unit, 1px));
    --tg-action-edge: calc(5 * var(--tg-wide-unit, 1px));
    --tg-action-gap: calc(10 * var(--tg-wide-unit, 1px));
}

@media (max-width: 767.98px) {
    body {
        --tg-action-width: 216px;
        --tg-action-height: 56px;
        --tg-action-circle: 44px;
        --tg-action-text: 16px;
        --tg-action-inset: 16px;
    }
}

body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tg-action-gap);
    width: max-content;
    min-width: var(--tg-action-width);
    max-width: 100%;
    height: var(--tg-action-height);
    min-height: var(--tg-action-height);
    padding: var(--tg-action-edge) var(--tg-action-edge) var(--tg-action-edge) var(--tg-action-inset);
    border: 1px solid rgb(255 255 255 / .28);
    border-radius: 999px;
    background: rgb(255 255 255 / .12);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / .12);
    color: #fff;
    font-size: var(--tg-action-text);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease;
}

body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button)::after {
    content: "";
    position: static;
    display: block;
    flex: 0 0 var(--tg-action-circle);
    width: var(--tg-action-circle);
    height: var(--tg-action-circle);
    margin: 0;
    border-radius: 50%;
    background: #6cd3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m9 6 6 6-6 6' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 46% no-repeat;
    transform: none;
}

body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button):hover {
    background: rgb(255 255 255 / .19);
    border-color: rgb(255 255 255 / .42);
}

body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button):hover::after {
    background-color: #96e0ff;
}

body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button):focus-visible {
    outline: 2px solid #6cd3ff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body #content :is(button.sf2-callBtn:not(.chat), a.see-all, a.tg-documents-button) {
        transition: none;
    }
}

body #content .blog-service .tg-service-card__more {
    color: #6cd3ff;
}

@media (prefers-reduced-motion: no-preference) {
    body #content :is(
        .blog-service .item:has(> .tg-service-card),
        .reviews-blog .items-element,
        .reviews-blog #tg-public-reviews-title,
        .tg-projects-list .tg-project-list-card__link
    ):not([data-tg-awaiting-entrance]) {
        animation: tg-opening-rise 760ms cubic-bezier(.45, 0, .2, 1) var(--tg-listing-delay, 190ms) backwards;
    }

    body .sf2Win:has(#simpleForm2_134) {
        animation: tg-opening-rise 760ms cubic-bezier(.45, 0, .2, 1) backwards;
    }

    body #content :is(
        .blog-service .items-row > :nth-child(3n+2),
        .reviews-blog #all-reviews > :nth-child(even),
        .tg-projects-stack__item:nth-child(even)
    ) {
        --tg-listing-delay: 255ms;
    }

    body #content .blog-service .items-row > :nth-child(3n) {
        --tg-listing-delay: 320ms;
    }

    body #content [data-tg-awaiting-entrance] {
        opacity: 0;
    }

    body #content :is(
        .blog-service .item:has(> .tg-service-card),
        .reviews-blog .items-element,
        .tg-projects-list .tg-project-list-card__link
    ):is(:focus-visible, :focus-within) {
        animation: none;
        opacity: 1;
    }
}
