/* Shared navigation keeps labels and the phone number on one line. */
.header > .container-fluid > .position-relative {
    gap: clamp(12px, 2vw, 32px);
}

.header .navbar-brand,
.header .headerClasses {
    flex: 0 0 auto;
}

.header .navbar-brand {
    margin-inline-end: 0;
}

.header .headerClasses a[href^="tel:"] {
    white-space: nowrap;
}

.header #mainmenu > .main-menu {
    align-items: center;
    gap: clamp(12px, 1.65vw, 32px);
}

.header #mainmenu > .main-menu > .nav-item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.header #mainmenu > .main-menu > .nav-item.parent::after {
    top: auto;
    transform: none;
}

@media (max-width: 1023px) {
    .header #mainmenu {
        display: none !important;
    }

    .header .hdr_menu_switcher {
        display: flex !important;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .header > .container-fluid {
        padding-inline: 24px;
    }

    .header > .container-fluid > .position-relative,
    .header #mainmenu > .main-menu {
        gap: 12px;
    }

    .header .navbar-brand img {
        width: 94px;
    }
}

@media (max-width: 420px) {
    .header .navbar-brand img {
        width: clamp(78px, 26vw, 110px);
        height: auto;
    }

    .header .headerClasses a[href^="tel:"] {
        font-size: 15px;
    }
}

/* A one-slide hero fills the viewport when Slick recalculates on resize. */
.firstscreen-carousel .slick-track:has(> .slick-slide:only-child),
.firstscreen-carousel .slick-track > .slick-slide:only-child {
    width: 100% !important;
}

.firstscreen-carousel .slick-track:has(> .slick-slide:only-child) {
    transform: none !important;
}

/* Hero text defines the block height. Photos crop independently. */
.glavnyj-ekran-box .firstscreen-carousel .item > .d-flex,
:is(.service-desc, .about-desc, .production-desc) {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: clamp(25rem, 52vw, 43rem);
    background-color: #25333a;
}

:is(.service-desc, .about-desc, .production-desc) {
    margin-bottom: clamp(24px, 5vw, 64px);
    padding-bottom: 0 !important;
}

.glavnyj-ekran-box .firstscreen-carousel .item > .d-flex::before,
:is(.service-desc, .about-desc, .production-desc)::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(0deg, rgb(15 26 31 / 76%), rgb(15 26 31 / 28%));
    content: "";
    pointer-events: none;
}

.glavnyj-ekran-box .firstscreen-carousel .item .icon,
.service-desc > img,
:is(.about-desc, .production-desc) > :is(.about_video, .production_video) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

.glavnyj-ekran-box .firstscreen-carousel .item .icon::before {
    content: none;
}

.glavnyj-ekran-box .firstscreen-carousel .item .icon img,
:is(.about-desc, .production-desc) > :is(.about_video, .production_video) > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

:is(.about-desc, .production-desc) > :is(.about_video, .production_video)::before {
    content: none;
}

:is(.glavnyj-ekran-box, .service-desc, .about-desc, .production-desc) .info {
    position: relative;
    inset: auto;
    z-index: 2;
    padding-block: clamp(36px, 7.5vw, 116px);
}

:is(.glavnyj-ekran-box, .service-desc, .about-desc, .production-desc) .info > .container > .row {
    align-items: end;
    row-gap: 24px;
    margin-bottom: 0;
}

:is(.glavnyj-ekran-box, .service-desc, .about-desc, .production-desc) .info .page-header {
    font-size: clamp(25px, 3.1vw, 44px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    :is(.glavnyj-ekran-box, .service-desc, .about-desc, .production-desc) .info .page-header br,
    .sf-consultation h3 br {
        display: none;
    }

    .sf-consultation form {
        padding: 26px clamp(14px, 5vw, 34px);
    }

    .sf-consultation .sf2-submit-container,
    .sf-consultation .sf2-submit-container button {
        width: 100%;
        max-width: 100%;
    }
}

.siteBody :is(.com-content-article, .contact-body, .policy-text) {
    overflow-wrap: anywhere;
}

.pvmep a.read {
    min-width: min(320px, 100%);
    max-width: 100%;
}

footer .navbar-nav {
    flex-wrap: wrap;
    row-gap: 10px;
}

/* The consent notice has its own space above the sticky site header. */
body > div.cc-window.cc-banner {
    position: relative;
    inset: auto;
    z-index: 10;
    gap: 12px 24px;
    padding: 12px clamp(15px, 3vw, 40px);
    border-bottom: 1px solid #dce3e8;
    font-family: 'TildaSans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
}

body > div.cc-window.cc-banner > .cc-message {
    min-width: 0;
    margin: 0;
}

body > div.cc-window.cc-banner .cc-compliance {
    gap: 8px;
}

body > div.cc-window.cc-banner a.cc-btn {
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #20394d;
    border-radius: 4px;
    line-height: 1.2;
}

body > div.cc-window.cc-banner a.cc-deny {
    background-color: #fff;
    color: #20394d;
}

body > div.cc-window.cc-banner a.cc-allow {
    background-color: #20394d;
    color: #fff;
}

@media (max-width: 680px) {
    body > div.cc-window.cc-banner {
        align-items: stretch;
        flex-direction: column;
    }

    body > div.cc-window.cc-banner .cc-compliance > a {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body > div.cc-window.cc-banner .cc-compliance {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Keep the enquiry window readable and scrollable on narrow screens. */
body > .cc-revoke {
    z-index: 8;
}

@media (max-width: 767px) {
    body > .sf2Shade:not(.sf2Message) > .sf2Win {
        width: min(440px, calc(100% - 52px));
    }

    body > .sf2Shade:not(.sf2Message) .sf2Win-body {
        max-height: min(600px, calc(100dvh - 112px));
        padding: 20px clamp(14px, 5vw, 25px);
        overflow-wrap: anywhere;
    }

    body > .sf2Shade:not(.sf2Message) .sf2Win-body h3 {
        font-size: clamp(21px, 5.5vw, 26px);
        line-height: 1.2;
    }

    body > .sf2Shade:not(.sf2Message) .sf2Win-body input,
    body > .sf2Shade:not(.sf2Message) .sf2Win-body textarea {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    body > .sf2Shade:not(.sf2Message) > .sf2Win.sf2Style-default > .sf2Win-footer {
        inset: -44px 0 auto auto;
        padding: 0;
    }

    body > .sf2Shade:not(.sf2Message) .sf2Win-footer .sf2CloseBtn {
        width: 44px;
        height: 44px;
        margin: 0;
        background-position: center;
    }
}

/* Keep the desktop header stable while its logo and page fonts load. */
@media (min-width: 1024px) {
    .header .navbar-brand {
        width: 94px;
    }

    .header .navbar-brand img {
        width: 100%;
        aspect-ratio: 116 / 19;
        height: auto;
    }

    .header #mainmenu,
    .header .headerClasses a[href^="tel:"] {
        font-family: Arial, sans-serif;
    }
}

@media (min-width: 1200px) {
    .header .navbar-brand {
        width: 116px;
    }
}

/* Public actions and cookie controls use the neutral site palette. */
:is(button.sf2-callBtn, .siteBody .btn-primary, .siteBody .btn-secondary,
    .siteBody .btn-outline-primary, .siteBody .btn-outline-secondary,
    .siteBody .pvmep a.read, .sf2Style-default button.sf2-element[type="submit"],
    .article-blog .articles-item .text > a[itemprop="url"][href*="/portfolio/"]) {
    --bs-btn-color: #242424;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #666;
    --bs-btn-hover-color: #181818;
    --bs-btn-hover-bg: #ededeb;
    --bs-btn-hover-border-color: #555;
    --bs-btn-active-color: #181818;
    --bs-btn-active-bg: #e2e2df;
    --bs-btn-active-border-color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45em;
    min-height: 40px;
    max-width: 100%;
    padding: 8px 16px;
    border: 1px solid #666;
    border-radius: 5px;
    background: #fff;
    color: #242424;
    box-shadow: none;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

:is(button.sf2-callBtn, .siteBody .btn-primary, .siteBody .btn-secondary,
    .siteBody .btn-outline-primary, .siteBody .btn-outline-secondary,
    .siteBody .pvmep a.read, .sf2Style-default button.sf2-element[type="submit"],
    .article-blog .articles-item .text > a[itemprop="url"][href*="/portfolio/"]):hover {
    background: #ededeb;
    color: #181818;
    border-color: #555;
}

.siteBody .pvmep a.read {
    min-width: 0;
    width: fit-content;
}

.completed-projects .rp-text {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
}

.completed-projects .rp-text p.readmore {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    transform: none;
}

.article-blog .articles-item .text > a[itemprop="url"][href*="/portfolio/"] {
    margin-top: 10px;
}

@media (max-width: 560px) {
    .completed-projects .rp-text {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }
}

body > div.cc-window.cc-banner {
    position: fixed;
    inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto;
    z-index: 1050;
    width: min(440px, calc(100% - 28px));
    max-height: min(80vh, 460px);
    box-sizing: border-box;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfdfdc;
    border-radius: 8px;
    background: #fff;
    color: #303030;
    box-shadow: 0 6px 24px rgb(0 0 0 / 13%);
    font-size: 14px;
    line-height: 1.45;
}

body > div.cc-window.cc-banner .cc-message {
    margin: 0;
    color: inherit;
}

body > div.cc-window.cc-banner :is(.cc-link, [data-role="gdpr_privacy_policy"]) {
    color: #393939;
    text-decoration: underline;
}

body > div.cc-window.cc-banner .cc-compliance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 15px;
    width: 100%;
    margin: 0;
}

body > div.cc-window.cc-banner .cc-compliance > .cc-compliance-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 15px;
}

body > div.cc-window.cc-banner .cc-compliance-list > li {
    min-width: 0;
}

body > div.cc-window.cc-banner .cc-compliance a.cc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 42px;
    height: 100%;
    margin: 0;
    padding: 8px;
    text-align: center;
    line-height: 1.25;
    border: 1px solid #777;
    border-radius: 5px;
    background: #fff;
    color: #292929;
    font-weight: 500;
}

body > div.cc-window.cc-banner .cc-compliance a.cc-allow {
    background: #f0f0ee;
}

body > div.cc-window.cc-banner .cc-compliance a.cc-btn:hover {
    background: #e8e8e5;
    color: #181818;
}

body > div.cc-window.cc-banner a[hidden] {
    display: none !important;
}

.footer .copiright > .d-flex {
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer .copiright .offer-2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    max-width: 100%;
}

.footer .copiright .offer-2 :is(a, .cc-revoke) {
    font-size: 13px;
    line-height: 1.45;
    color: #424242;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer .copiright .offer-2 .cc-revoke {
    position: static;
    inset: auto;
    transform: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.footer .copiright .offer-2 :is(a, .cc-revoke):focus-visible,
body > div.cc-window.cc-banner .cc-compliance a.cc-btn:focus-visible {
    outline: 2px solid #3c3c3c;
    outline-offset: 3px;
}

/* Keep the menu's hover area as tall as the desktop header. */
@media (min-width: 1024px) {
    .header > .container-fluid {
        padding-block: 0;
    }

    .header > .container-fluid > .position-relative > nav.navbar {
        align-self: stretch;
        padding-block: 0;
    }

    .header #mainmenu {
        display: flex !important;
    }

    .header #mainmenu > .main-menu {
        align-items: stretch;
    }

    .header #mainmenu > .main-menu > .nav-item {
        padding-block: calc(25px + var(--bs-navbar-padding-y, .5rem));
    }

    .header #mainmenu > .main-menu > .parent > .dropdown-menu {
        display: block;
        top: 100%;
        bottom: auto;
        inset-inline-start: 0;
        margin: 0;
        transform: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 0s linear 180ms;
    }

    .header #mainmenu > .main-menu > .parent:is(:hover, :focus-within) > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header #mainmenu > .main-menu > .parent > .dropdown-menu {
        transition: none;
    }
}

body#home .glavnyj-ekran-box .btn-box > button.sf2-callBtn {
    inline-size: 248px;
    min-block-size: 56px;
    font-size: 17px;
}

@media (max-width: 767px) {
    body#home .glavnyj-ekran-box .btn-box > button.sf2-callBtn {
        inline-size: min(100%, 320px);
        font-size: 16px;
    }
}
