/* Graphite header and blue navigation. */
#head { background: #222831; color: #f4f7fb; }
#head .site_desc, #head .head_contact .cont .ph, #head .head_contact .cont .adr { color: #f4f7fb; }
#head .head_contact .cont { border-color: #495566; }
#head .head_contact .cont a { color: #8ecbff; }
.main_menu_wrapper { background: #181e26; }
.main_menu_wrapper .main_menu_block .menu li { position: relative; }
.main_menu_wrapper .main_menu_block .menu li > a { position: relative; border-bottom: 0; color: #f4f7fb; }
.main_menu_wrapper .main_menu_block .menu li:is(.current-menu-item,.current-menu-ancestor) > a::before {
    content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #69baff;
}
.main_menu_wrapper .main_menu_block .menu li.menu-item-has-children > a::after {
    content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .55em;
    border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-.2em) rotate(45deg);
}
.main_menu_wrapper .menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 13rem;
    margin: 0; padding: .35rem .7rem; list-style: none; background: #222831;
}
.main_menu_wrapper .main_menu_block .menu .sub-menu > li { float: none; margin: 0; }
.main_menu_wrapper .main_menu_block .menu .sub-menu a { padding: .7rem 0; }
.main_menu_wrapper .menu li:is(:hover,:focus-within) > .sub-menu { display: block; }
.main_menu_wrapper .menu .sub-menu .sub-menu { top: 0; left: 100%; }
.main_menu_wrapper .foto, .popup_wrapper .form .sub_send { background: #1766a5; border-color: #438dc8; color: white; }
.content { max-width: calc(100% - 24px); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { min-width: min(34rem, 100vw); }
.table-scroll td, .table-scroll th { overflow-wrap: anywhere; }
.site-dialog {
    position: fixed; box-sizing: border-box; width: min(34rem, calc(100% - 24px)); max-height: calc(100dvh - 24px);
    padding: clamp(1rem, 5vw, 2rem); overflow: auto; border: 0; border-radius: .6rem;
    background: white; color: #202934;
}
.site-dialog::backdrop { background: #101820aa; }
.site-dialog h2 { padding-right: 2rem; margin-top: 0; line-height: 1.2; }
.site-dialog .dialog-close { position: absolute; top: .5rem; right: .5rem; font-size: 1.5rem; cursor: pointer; }
.site-dialog input, .site-dialog textarea { box-sizing: border-box; max-width: 100%; }
body:has(.site-dialog[open]) { overflow: hidden; }
@media (max-width: 767px) {
    .main_menu_wrapper .menu .sub-menu { display: block; position: static; min-width: 0; padding-left: 1rem; }
    .main_menu_wrapper .main_menu_block .mob_menu { color: #f4f7fb; background-color: transparent; border: 0; width: auto; }
}

.inner_page .our_work_catalog_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.inner_page .our_work_catalog_list > li { width: auto; height: auto; padding: 0; }
.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d9e1e8;
    border-radius: .35rem;
    background: #fff;
    color: #174975;
}
.portfolio-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-card span { display: block; padding: .75rem 1rem; }
@media (max-width: 479px) {
    .inner_page .our_work_catalog_list { grid-template-columns: 1fr; }
}

/* Spacing and reading order shared by public pages. */
#body > .content { padding-top: clamp(.75rem, 2vw, 1.75rem); }
.page_content { min-width: 0; text-align: left; }
.page_content h1 {
    margin: .45em 0 .5em;
    color: #202b37;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.page_content :is(h2, h3) { line-height: 1.25; }
.page_content img { max-width: 100%; }
.page-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.25rem; }
.page-actions a, .price-sections a {
    display: inline-block;
    padding: .55rem .8rem;
    border: 1px solid #cbd9e7;
    border-radius: .35rem;
    line-height: 1.25;
    color: #154e82;
}
.page-actions a:first-child { background: #1766a5; border-color: #1766a5; color: #fff; }
.home .main_slider_wrapper { max-width: 100%; }
.home .main_slider_wrapper .bx_slider > li img {
    max-height: 23rem;
    object-fit: contain;
}
.price-sections { margin: .5rem 0 1rem; }
.price-sections ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.price-table { width: 100%; border-collapse: collapse; }
.table-scroll .price-table { min-width: 0; }
.price-table tr > :is(th,td) { box-sizing: border-box; padding: .55rem .65rem; }
.price-table tr > :is(th,td):last-child:not([colspan]) {
    width: 5.75rem;
    text-align: right !important;
    white-space: nowrap;
}
.price-table .price-section-heading { scroll-margin-top: 1rem; }
.contact_page #map:empty { display: none; }
.contact_form_wrapper .contact_form {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: clamp(1rem, 3vw, 2rem);
    background: #f3f7fa;
    border: 1px solid #d8e2eb;
    border-radius: .45rem;
}
#footer .footer_contact .ph { margin-bottom: .5rem; }
#footer .footer_contact .ph a { color: #fff; }
#footer .footer_contact .adr { color: #c7d0d9; line-height: 1.4; }
@media (max-width: 479px) {
    .price-table tr > :is(th,td) { padding: .4rem .45rem; }
    .price-table tr > :is(th,td):last-child:not([colspan]) { width: 5.2rem; }
}

/* The controls share the photo's frame at every viewport width. */
.home .main_slider_wrapper { width: min(54rem, calc(100% - 24px)); margin: 1rem auto 0; }
.home .main_slider_wrapper .main_slider { position: relative; border-radius: .5rem; }
.home .main_slider_wrapper .bx-wrapper { margin-bottom: 0; }
.home .main_slider_wrapper .bx_slider > li img { display: block; width: 100%; max-height: none; }
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction a {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    top: 50%;
    bottom: auto;
    width: clamp(2.5rem, 5vw, 3.25rem);
    height: clamp(2.5rem, 5vw, 3.25rem);
    margin: 0;
    transform: translateY(-50%);
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #182532e8;
    color: #fff;
    opacity: 1;
}
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction a:is(:hover,:focus-visible) { background: #1766a5; }
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction a::after {
    content: "";
    width: .55rem;
    height: .55rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
}
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction .bx-prev { left: .65rem; right: auto; }
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction .bx-prev::after { transform: rotate(135deg); }
.home .main_slider_wrapper .bx-wrapper .bx-controls-direction .bx-next { right: .65rem; left: auto; }
#body .sidebar_menu_block {
    margin: 0;
    z-index: auto;
    overflow: hidden;
    border: 1px solid #d8e2eb;
    border-radius: .45rem;
    background: #f7fafd;
}
.sidebar_menu_block h2 { padding: 1rem; background: #223044; }
.sidebar_menu_block .sidebar_menu { border: 0; }
.service-menu-group { padding: .7rem 1rem; border-bottom: 1px solid #d8e2eb; }
.service-menu-group summary { color: #174975; font-weight: 700; cursor: pointer; }
.service-menu-group a { display: inline-block; line-height: 1.4; padding: .3rem 0; }
.service-menu-group .current-menu-item > a { color: #154e82; font-weight: 700; text-decoration: underline; }
.sidebar_menu_block .why_we_block { display: flow-root; border: 0; }
.sidebar_menu_block .why_we_block .top_text { padding: .75rem 1rem; }
.sidebar_menu_block .why_we_block .why_we_list > li {
    float: none;
    width: auto;
    min-height: 2.75rem;
    height: auto;
    margin: 0 .75rem .7rem;
    padding: .35rem 0 .35rem 3.25rem;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 2.5rem auto;
}
.inner_page .our_works {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.inner_page .our_works > li { padding: 0; }
.inner_page .our_works img { display: block; height: auto; border-radius: .35rem; }
@media (max-width: 479px) {
    .inner_page .our_works { grid-template-columns: 1fr; }
}

/* Contacts and Contact Form 7 share the same control styles. */
.contact-intro { margin-bottom: 1.25rem; }
.contact-people { display: grid; gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-person {
    display: flex;
    align-items: flex-start;
    gap: clamp(.75rem, 3vw, 1.25rem);
    padding: clamp(.9rem, 3vw, 1.35rem);
    background: #f5f8fc;
    border: 1px solid #d8e2eb;
    border-radius: .65rem;
}
.contact-person img { flex: none; width: clamp(4rem, 15vw, 7.5rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .45rem; }
.contact-person > div { min-width: 0; }
.page_content .contact-person h2 { margin: 0; color: #202b37; font-size: 1.15rem; }
.contact-person .contact-role { margin: .2rem 0 .65rem; color: #526474; }
.contact-person-links { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.contact-person-links li { display: flex; flex-wrap: wrap; gap: 0 .45rem; }
.contact-person-links span { min-width: 5.3rem; color: #526474; font-size: .85rem; }
.contact-person-links a { overflow-wrap: anywhere; }
.contact_form_wrapper { margin: 1.75rem 0; }
.contact_form_wrapper .contact_form { background: #f5f8fc; }
.contact_form_wrapper .contact_form form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem 1rem; }
.contact_form_wrapper .contact_form form > * { grid-column: 1 / -1; min-width: 0; }
.contact_form_wrapper .contact_form form > .half { grid-column: auto; width: auto; margin: 0; float: none; }
.contact_form_wrapper .contact_form form > p, #popup_callback form > p { margin: 0; }
:is(.contact_form, #popup_callback) label { display: block; margin-bottom: .3rem; color: #33465a; font-weight: 600; }
:is(.contact_form, #popup_callback) .wpcf7-form-control-wrap { display: block; }
:is(.contact_form_wrapper .contact_form, #popup_callback) :is(input:not([type=hidden]):not([type=submit]),textarea) {
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    box-sizing: border-box;
    margin: 0;
    padding: .65rem .8rem;
    border: 1px solid #b7c7d6;
    border-radius: .35rem;
    background: #fff;
    color: #202b37;
    font: inherit;
}
:is(.contact_form_wrapper .contact_form, #popup_callback) textarea { min-height: 7rem; resize: vertical; }
:is(.contact_form_wrapper .contact_form, #popup_callback) :is(input,textarea):focus-visible {
    outline: 2px solid #1b73b8;
    outline-offset: 2px;
}
:is(.contact_form_wrapper .contact_form, #popup_callback) input.wpcf7-submit {
    display: inline-block;
    width: auto;
    min-height: 2.75rem;
    height: auto;
    margin: 0;
    padding: .55rem 1.1rem;
    border: 1px solid #1766a5;
    border-radius: .35rem;
    background: #1766a5;
    color: #fff;
    font: 600 1rem/1.3 Ubuntu, sans-serif;
    text-transform: none;
    cursor: pointer;
}
:is(.contact_form_wrapper .contact_form, #popup_callback) input.wpcf7-submit:hover { background: #124d7d; }
.contact_form .form-privacy, #popup_callback .privacy { margin: 1rem 0 0; font-size: .82rem; line-height: 1.5; color: #526474; }
#popup_callback form > p + p { margin-top: .8rem; }
#popup_callback { width: min(28rem, calc(100% - 24px)); }
#popup_callback h2 { color: #202b37; }
.site-dialog .dialog-close {
    display: grid; place-items: center;
    width: 2rem; height: 2rem;
    padding: 0; border: 0; border-radius: .35rem;
    background: #eaf0f6; color: #33465a; line-height: 1;
}
.portfolio-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.portfolio-pagination .page-numbers {
    display: inline-grid; place-items: center;
    min-width: 2.65rem; min-height: 2.65rem;
    box-sizing: border-box; padding: .4rem .6rem;
    border: 1px solid #cbd9e7; border-radius: .35rem;
    color: #154e82; line-height: 1; text-decoration: none;
}
.portfolio-pagination a.page-numbers:is(:hover,:focus-visible) { background: #eaf2f9; }
.portfolio-pagination .page-numbers.current { background: #1766a5; border-color: #1766a5; color: #fff; }
.portfolio-pagination .page-numbers.dots { border-color: transparent; }
.portfolio-pagination :is(.prev,.next) { font-size: 1.35rem; }
.portfolio-pagination .screen-reader-text {
    position: absolute; clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
@media (max-width: 479px) {
    .contact_form_wrapper .contact_form form { grid-template-columns: 1fr; }
    .portfolio-pagination .nav-links { gap: .35rem; }
    .portfolio-pagination .page-numbers { min-width: 2.2rem; min-height: 2.5rem; }
}
