@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/centurygothic.ttf') format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'CenturyGothic';
    src: url('../fonts/centurygothic_bold.ttf') format("truetype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'NicolettaScript';
    src: url('../fonts/Nicoletta_script.ttf') format("truetype");
    font-weight: 400;
    font-style: normal;
}


:root {
    --icon-font: 'Font Awesome 7 Free';
    --cgr: 'CenturyGothic';
    --nicoletta: 'NicolettaScript';
    --main-color: #0ff;
    --bg-color: #333;
    --dark-blue: rgb(22 54 74);
    --dark-blue-transparent: rgb(22 54 74 / 50%);
    --light-transparent: rgb(255 255 255 / 70%);
    --text-color: #fff;
    --hover-color: #888;
    --hover-light: #ddd;
    --white: #fff;
    --seagreen: seagreen;
    --mediumseagreen: mediumseagreen;
    --lightseagreen: lightseagreen;
    --animation-05: all .5s;
}

::-webkit-input-placeholder { transition: all 1s; }
::-moz-placeholder          { transition: all 1s; } /*Firefox 19+*/
:-moz-placeholder           { transition: all 1s; } /*Firefox 18-*/
:-ms-input-placeholder      { transition: all 1s; }

:focus::-webkit-input-placeholder { transform: translateX(150%); }
:focus::-moz-placeholder          { transform: translateX(150%); }
:focus:-moz-placeholder           { transform: translateX(150%); }
:focus:-ms-input-placeholder      { transform: translateX(150%); }

html {
    overflow-anchor: none;
}
body {
    color: var(--text-color);
    background: var(--bg-color);
    font-family: var(--cgr);
    line-height: 1.7;
}

.header-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/assets/images/header-bg.png');
    background-size: cover;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    aspect-ratio: 16 / 10;
}

.header-row {
    display: flex;
    align-items: center;
}
.content-wrapper {
    background: rgb(255 255 255 / 75%);
    border-radius: 0;
    padding: 1em;
    color: var(--bg-color);
}

@media (min-width: 1200px) {
    .content-wrapper {
        border-radius: 5px;
    }
}

nav.navbar {
    background: var(--dark-blue-transparent);
}
.navbar-collapse {
    position: absolute;
    background: var(--dark-blue);
    text-align: left;
    top: 100%;
    right: 0;
    min-width: 300px;
    border-top: 2px solid var(--text-color);
    z-index: 2;
}
.navbar-collapse::before {
    content: '';
    position: absolute;
    border-bottom: 20px solid var(--text-color);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    top: -20px;
    right: 20%;
}
.navbar-collapse::after {
    content: '';
    position: absolute;
    border-bottom: 20px solid rgb(22 54 74);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    top: -16px;
    right: 20%;
}

@media (min-width: 992px) {
    .navbar-collapse {
        position: initial;
        background: none;
        text-align: right;
        min-width: 0;
        border-top: none;
    }
    .navbar-collapse::before, .navbar-collapse::after {
        content: none;
    }
}

header a.nav-link {
    position: relative;
    color: var(--text-color);
    transition: var(--animation-05);
    overflow: hidden;
}

@media (min-width: 992px) {
    header a.nav-link {
        font-size: small;
    }
}

header a.nav-link:hover {
    color: var(--hover-light);
}
header a.nav-link::after {
    content: '';
    position: absolute;
    display: block;
    background: var(--text-color);
    width: 100%;
    height: 2px;
    left: -1px;
    bottom: 0;
    transform: translateX(-100%);
    transition: var(--animation-05);
}
header a.nav-link:hover::after, header a.nav-link.state::after {
    left: 0;
    transform: translateX(0);
}
header a.nav-link:hover::after, header a.nav-link.state:hover::after {
    background: var(--hover-color);
}
li.nav-item.phone-item a.nav-link {
    font-weight: 700;
    font-size: medium;
}
h1 {
    text-transform: uppercase;
}
h1 small {
    display: block;
    text-transform: none;
    font-family: var(--cgr);
    font-size: small;
    margin-bottom: 1em;
}

@media (min-width: 992px) {
    h1 small {
        font-size: medium;
    }
}

h2 {
    font-size: 32px;
    font-weight: 700;
}
h2 small {
    display: block;
    line-height: 1.5;
    font-size: small;
    font-weight: 400;
}

@media (min-width: 992px) {
    h2 small {
        font-size: 16px;
    }
}

h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 26px;
}
h4 small {
    display: block;
    text-transform: none;
    font-size: small;
}
h6 {
    font-weight: 700;
    padding-bottom: 1em;
}
.nicoletta {
    font-family: var(--nicoletta);
}
.module-search {
    margin-bottom: 2em;
    padding-left: 1em;
    padding-right: 1em;
}
form#searchForm {
    padding-left: .5em;
}

@media (min-width: 992px) {
    .module-search {
        margin-bottom: 5em;
        padding-left: initial;
        padding-right: initial;
    }
    form#searchForm {
        padding-left: initial;
    }
}

a {
    color: var(--seagreen);
    text-decoration: none;
}
a:hover, a:focus, a:active {
    color: var(--hover-color);
}

button.navbar-toggler,button.navbar-toggler:focus {
    border: none;
    font-size: large;
    color: var(--text-color);
    box-shadow: none;
}


.form-field input.form-control, .search-filter select.form-select, .form-field select.form-select {
    height: 60px;
    padding-left: 60px;
    border-radius: 5px;
    background: var(--light-transparent);
}
.search-filter select.form-select {
    height: 40px;
    padding-left: 1em;
    padding-right: 40px;
}
.search-filter label {
    display: none;
}
select {
    -webkit-appearance: none; /* Для Safari и старых версий Chrome */
    -moz-appearance: none;    /* Для Firefox */
    appearance: none;         /* Стандартное свойство */
  
    padding-right: 30px;      /* Важно: освобождаем место справа под вашу новую иконку */
}
textarea.form-control {
    height: auto;
    border-radius: 5px;
    padding: 1em;
    overflow: hidden;
    background: rgb(255 255 255 / 70%);
}

/* Специально для Internet Explorer / Edge (на всякий случай) */
select::-ms-expand {
    display: none;
}
select:disabled + label.position-absolute {
    display: block;
    height: 40px;
    line-height: 40px;
    top: 0;
    left: 1em;
    color: rgb(50 50 50 / 70%);
}
.form-field input.form-control:focus, .form-field select.form-select:focus, .search-filter select.form-select:focus, textarea.form-control:focus {
    background: rgb(255 255 255 / 90%);
}
.form-field input.form-control.field-search + span.form-field-icon::after {
    content: '\f002';
}
.search-filter::after {
    content: '\f107';
}
.field-user span.form-field-icon::after {
    content: '\f007';
}
.field-phone span.form-field-icon::after {
    content: '\f095';
}
.field-email span.form-field-icon::after {
    content: '\40';
}
.form-field input.form-control + span.form-field-icon::after, .search-filter::after, .form-field select.form-select + span.form-field-icon::after {
    font-family: var(--icon-font);
    font-weight: 900;
    display: block;
    position: absolute;
    width: 50px;
    line-height: 50px;
    top: 5px;
    left: 5px;
    text-align: center;
    font-size: x-large;
    color: rgb(50 50 50 / 70%);
}
.search-filter::after {
    width: 40px;
    line-height: 40px;
    top: 0;
    right: 5px;
    left: auto;
    font-size: small;
}
.form-field input.form-control:focus + span.form-field-icon::after, .search-filter.is-open::after {
    color: var(--bg-color);
}

input.field-search {
    height: 40px;
    background: var(--light-transparent);
}

@media (min-width: 992px) {
    input.field-search {
        height: 40px;
    }
}

@media (min-width: 1400px) {
    input.field-search {
        height: 60px;
    }
}

a.btn.btn-primary, button.btn.btn-primary {
    display: block;
    width: 100%;
    height: 60px;
    border-radius: 5px;
    text-transform: uppercase;
    background: rgb(255 255 255 / 70%);
    color: rgb(50 50 50 / 70%);
    border: none;
}
a.btn.btn-primary:hover, a.btn.btn-primary:focus, a.btn.btn-primary:active, button.btn.btn-primary:hover, button.btn.btn-primary:active, .btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background:rgb(255 255 255 / 70%);
    color: var(--bg-color);
}
a.btn.btn-primary:active:focus, button.btn.btn-primary:active, button.btn.btn-primary:active:focus {
    box-shadow: inset 0px 5px 5px rgb(200 200 200 / 70%);
    font-size: 0.9rem;
}
a.btn.btn-primary {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 1em 1.5em;
    margin: .5em;
}
a.btn.menu-btn {
    background: var(--text-color);
}

.search button.btn.btn-primary {
    height: 40px;
    font-size: large;
    aspect-ratio: 1 / 1;
    width: auto;
    border-radius: var(--bs-border-radius);
}

@media (min-width: 1400px) {
    .search button.btn.btn-primary {
        height: 60px;
    }
}

.search button.btn.btn-primary:hover, .search button.btn.btn-primary:focus {
    color: var(--seagreen);
}
.search button.btn.btn-primary:active {
    color: var(--main-color);
}

select.phone-country {
    height: 60px;
    padding: .5em;
    background: var(--light-transparent);
}

.navbar-collapse {
    z-index: 3;
}
.navbar-collapse a.btn.menu-btn {
    display: block;
    font-size: x-large;
    margin-top: 1em;
}

@media (min-width: 992px) {
    .navbar-collapse a.btn.menu-btn {
        display: inline-block;
        font-size: small;
        margin-top: 0;
    }
}

a.btn.menu-btn:hover, a.btn.menu-btn:active, a.btn.menu-btn:focus, a.btn.menu-btn:active:focus {
    background: var(--hover-color);
    color: var(--text-color);
    box-shadow: none;
}
button.btn.btn-primary.inverted, a.btn.btn-primary.inverted {
    background: rgb(50 50 50 / 70%);
    color: rgb(255 255 255 / 70%);
}
button.btn.btn-primary.inverted:hover, button.btn.btn-primary.inverted:focus, button.btn.btn-primary.inverted:active, button.btn.btn-primary.inverted:active:focus, a.btn.btn-primary.inverted:hover, a.btn.btn-primary.inverted:focus, a.btn.btn-primary.inverted:active, a.btn.btn-primary.inverted:active:focus {
    background:var(--bg-color);
    color: rgb(255 255 255 / 70%);
    box-shadow: none;
}

.breadcrumbs {
    border-bottom: 2px solid var(--white);
}

.breadcrumbs-back {
    margin-right: .5rem;
    color: inherit;
}

@media (max-width: 575.98px) {
    .breadcrumbs .breadcrumb {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .breadcrumbs .breadcrumb-item {
        display: none;
    }

    .breadcrumbs .breadcrumb-item:nth-last-child(-n + 2) {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .breadcrumbs .breadcrumb-item:nth-last-child(2) {
        flex-shrink: 1;
    }

    .breadcrumbs .breadcrumb-item:last-child {
        flex-shrink: 0;
    }

    .breadcrumbs .breadcrumb-item:nth-last-child(2)::before {
        display: none;
    }
}


/* helper styles */
 .uppercase {
    text-transform: uppercase;
 }
 .lowercase {
    text-transform: lowercase;
 }
 .unpadded {
    padding: 0;
    margin: 0;
 }
 .module-row {
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
 }
 .colored-main {
    color: var(--main-color);
 }

 @media (min-width: 992px) {
    .site-header .module.html-module {
        padding-left: 0;
    }
}

.site-stats .number+.number {
    border-left: 1px solid var(--text-color);
}
.site-stats span, .module-tag-collection .title {
    font-weight: 700;
}
span.num {
    font-size: xx-large;
}
.text-small {
    font-size: smaller;
}
ul.list-unstyled {
    margin: 0;
}

.h-list li {
    display: inline-block;
}
ol.document li {
    margin-bottom: 1em;
}
ol.document>li {
    font-weight: 700;
}
ol.document>li>* {
    margin-top: 1em;
}
ol.document li ol>li, ol.document>li dl dd, ol.document>li>p {
    font-weight: 400;
}
 dt::after {
    content: ' —';
 }
 dd {
    margin-left: 3em;
    padding: 0.5em;
 }

/* modules card styles */

.card {
    border: none;
    overflow: hidden;
    border-radius: 0;
    color: var(--bg-color);
    height: 100%;

    & .card-body {
        color: var(--bg-color);
    }
}

.project-stats {
    font-size: small;
}

.card-img-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* можно 4/3 или 1/1 */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* ВАЖНО */
    object-position: center;  /* центрируем */
    border-radius: 0;
    transition: var(--animation-05);
}
.card img {
    transition: var(--animation-05);
}
.card:hover .card-img-wrapper img.card-img-top, .card:hover img.flat-plan-img {
    transform: scale(1.1);
}

.card-short-description.position-absolute {
    bottom: -200%;
    transition: var(--animation-05);
}
.card:hover .card-short-description.position-absolute {
    bottom: 0;
    padding: .5em;
    background: rgb(0 0 0 / 60%);
    color: var(--text-color);
    font-size: small;
}

@media (min-width: 768px) {
    .module-row {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
}

@media (min-width: 1200px) {
    .module-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
}
    .project-block {
        overflow: hidden;
        min-width: 0;
        min-height: 0;
    }
    .project-block .module-card {
        height: 100%;
    }
    .project-block .card-img-wrapper img {
        height: auto;
        transition: var(--animation-05);
    }
    .project-block:hover .card-img-wrapper img {
        transform: scale(1.1);
    }
    .project-block:nth-child(3) {
        grid-column: 3;
        grid-row: span 2;
    }
    .project-block:nth-child(1), .project-block:nth-child(2), .project-block:nth-child(4), .project-block:nth-child(5) {
        aspect-ratio: 2 / 1;
    }
    .project-block:nth-child(3) .card-img-wrapper {
        aspect-ratio: 1;
        height: 100%;
    }
    .project-block:nth-child(3) .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .project-block:nth-child(3) .project-description, .project-block:nth-child(3) .project-developer {
        display: none;
    }
    .project-block-row {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        height: 500px;
        align-items: stretch;
    }
    .project-block-row .project-block,
    .project-block-row .project-block-secondary {
        flex: 0 0 20%;
        max-width: 20%;
        height: 100%;
        transition: var(--animation-05);
        overflow: hidden;
    }
    .project-block-row .project-block:first-child {
        flex-basis: 40%;
        max-width: 40%;
    }
    .project-block-row .project-block-secondary img {
        height: 100%;
    }
    .project-block-bg {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }


    .project-title {
        height: 3em;
        line-height: 3em;
        left: 0;
        top: calc(50% - 1.5em);
        width: 100%;
        color: var(--text-color);
        z-index: 2;
        transition: var(--animation-05);
    }
    .project-block-row .project-block:first-child .project-title {
        top: 1em;
        transform: scale(0.7);
    }
    a.project-title:hover, a.project-title:focus, a.project-title:active {
        color: var(--hover-color);
    }
    .project-block-row .project-block:hover .project-title {
        top: 1em;
    }
    .project-city {
        top: 1em;
        left: 1em;
        background: rgb(88 88 88 / 60%);
        padding: .25em 1em;
        border-radius: 50vh;
        z-index: 2;
    }
    .project-block-row .project-block .additional-info {
        bottom: -100%;
        left: 0;
        width: 100%;
        max-height: 50%;
        padding: 1em;
        z-index: 2;
        transition: var(--animation-05);
        background: rgb(88 88 88 / 60%);
    }
    .project-block-row .project-block:first-child .additional-info, .project-block-row .project-block:hover .additional-info {
        bottom: 0;
    }
    .project-block-row .project-block:nth-child(3) .project-developer {
        display: block;
    }
    .project-description {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -moz-box;
        -moz-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        line-clamp: 6;
        box-orient: vertical;
    }

.module-homepage-text, .module-homepage-icons, .feedback-module {
    padding-top: 5em;
    padding-bottom: 5em;
}
.module-homepage-icons, .feedback-module {
    background: var(--bg-color);
}
.module-homepage-icons figcaption {
    font-weight: 700;
    padding: 0 1em;
    padding-top: 1em;
}
.module-homepage-text .text-center {
    padding: 2em;
    background: rgb(88 88 88 / 60%);
    font-weight: 700;
    line-height: 2;
}

footer {
    margin-top: 0;
    line-height: 2;
}
.footer-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-blue-transparent);
    z-index: -1;
}
footer h1 {
    margin-left: -3px;
}
.footer-modules {
    padding-top: 3em;
    padding-bottom: 2em;
}
.tagsmenu-content {
    border-left: 1px solid var(--text-color);
}
.footermenu-menu li, .tagsmenu-menu li {
    font-weight: 700;
    font-size: smaller;
}
.footermenu-menu a, .tagsmenu-menu a, a.footer-document-link {
    color: var(--text-color);
    transition: var(--animation-05);
}
.footermenu-menu a:hover, .footermenu-menu a:focus, .footermenu-menu a:active, .tagsmenu-menu a:hover, .tagsmenu-menu a:focus, .tagsmenu-menu a:active, a.footer-document-link:hover, a.footer-document-link:focus, a.footer-document-link:active {
    color: var(--hover-color);
}
 .tagsmenu-menu a {
    font-weight: 400;
 }
a.footer-document-link {
    display: inline-block;
    padding-left: 2em;
    font-size: x-small;
}
footer small {
    border-top: 1px solid var(--text-color);
    padding: 1em 10em;
}
footer h1 small {
    border: none;
    padding: 0;
}

img.footer-logo {
    max-width: 250px;
}

/* Slideshow styles */
.project-slideshow {
    margin-bottom: 2rem;
}

.slideshow-main {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    background: #f5f5f5;
    overflow: hidden;
}

.slideshow-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 636px;
    border-radius: 6px;
}

.slideshow-main-image,
.slideshow-next-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.slideshow-main-image {
    z-index: 1;
}

.slideshow-next-image {
    z-index: 2;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: rgb(0 0 0 / 50%);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: xxx-large;
    z-index: 10;
    transition: background 0.2s;
}

.slideshow-btn:hover {
    color: rgb(0 0 0 / 80%);
}

.slideshow-btn-prev {
    left: 0.5rem;
}

.slideshow-btn-next {
    right: 0.5rem;
}

.slideshow-counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgb(0 0 0 / 50%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.875rem;
    z-index: 2;
}

.slideshow-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

/* Minimal fullscreen modal styles (initial, progressive) */
.slideshow-modal[hidden] {
    display: none;
}
.slideshow-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
.slideshow-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.slideshow-modal-inner {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1200px;
    height: 86%;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.slideshow-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
}
.slideshow-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}
.slideshow-modal-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.slideshow-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.slideshow-modal-right {
    width: 260px;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem;
    box-sizing: border-box;
    overflow-y: auto;
}
.slideshow-modal-thumbs {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.5rem;
}
.slideshow-modal-thumb {
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}
.slideshow-modal-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.slideshow-modal-thumb.is-active {
    border-color: #fff;
}

.slideshow-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.slideshow-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-thumb:hover {
    opacity: 0.8;
}

.slideshow-thumb.is-active {
    border-color: var(--bg-color);
}

span.card-city, span.card-flag {
    position: absolute;
    top: 1em;
    left: 1em;
    background: #0000007a;
    padding: .2em 1em;
    border-radius: 25vh;
    color: white;
    font-size: small;
}
span.card-flag.right {
    left: auto;
    right: 1em;
}

.developer-logo {
    right: 1em;
    bottom: 1em;
    max-width: 30%;
    max-height: 30%;
    background: rgb(255 255 255 / 80%);
    border-radius: 5px;
}
img.card-logo {
    opacity: 0.5;
}
img.card-logo:hover {
    opacity: 1;
}

/* preloader */
.ajax-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.ajax-loader-overlay.hidden {
    display: none;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.is-loading select {
    opacity: 0.5;
    pointer-events: none;
}

.range-slider {
    position: relative;
    padding: 20px 0;
}

.range-track,
.range-progress {
    position: absolute;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.range-track {
    width: 100%;
    background: #ddd;
}

.range-progress {
    background: #0d6efd;
}

.range-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
}

.range-input::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
}

.range-values {
    margin-top: 10px;
    font-size: 14px;
}

[data-pagination] {
    visibility: hidden !important;
}

/* flat plans */

.flatplan-card .row {
    border: 1px solid lab(0 0 0 / 0.7);
    border-radius: 1em;
    margin: 0;
    overflow: hidden;
}
.flatplan-card-image {
    aspect-ratio: 3 / 4;
}
.flatplan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.flatplan-card-description {
    padding: 0;
}
.flatplan-card-description-squareline {
    background: lab(0 0 0 / 0.7);
    height: 100%;
}
span.flatplan-card-description-squareline-block-num {
    display: block;
    color: #e66e00;
    padding-top: 1.5em;
    padding-left: .2em;
    padding-right: .2em;
}
span.flatplan-card-description-squareline-block-hint {
    color: #ccc;
    font-size: small;
}
.flatplan-card-content {
    border-top: 1px dashed lab(0 0 0 / 0.7);
}
.flatplan-card li {
    border-bottom: 1px dotted #ccc;
    padding: .7em 1.5em .7em;
}
.flatplan-card li:last-child {
    border: none;
}
.flatplan-card li::before {
    content: '\f5bc';
    font-family: var(--icon-font);
    font-weight: 900;
    font-size: small;
    margin-left: -1.5em;
    padding-right: .5em;
    color: seagreen;
    
}
.flatplan-card button {
    display: block;
    width: 100%;
    margin-bottom: .8em;
    padding: .7em 1em;
    border: none;
    background: #e66e00;
    color: white;
    border-radius: 10px;
}

.rooms-content {

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    transition:
        max-height 0.5s ease,
        opacity 0.5s ease;

}

.rooms-content.open {

    max-height: 5000px;
    overflow-y: auto;
    opacity: 1;

}

.modal {
    color: var(--hover-color);
}

/* Сообщение об успешной отправке формы обратной связи */
.feedback-module .success-form {
    padding: 2.5rem 1rem;
}

.feedback-module .success-form h4 {
    color: #198754;
    margin-bottom: .75rem;
}

.text-small .form-check-input {
    margin-top: .25em;
}
ul.nav.nav-tabs {
    border-bottom: 5px solid var(--seagreen);
}
ul.nav.nav-tabs .nav-link {
    border: none;
}
.nav-item button.nav-link {
    color: var(--seagreen);
    background: rgb(255 255 255 / 40%);
    padding-top: .75rem;
    padding-bottom: 1rem;
    border-radius: 0;
}
.nav-item button.nav-link:hover, .nav-item button.nav-link:focus {
    color: var(--bg-color);
    background: rgb(255 255 255 / 30%);
}
.nav-item button.nav-link.active, .nav-item button.nav-link.active:hover {
    color: var(--text-color);
    background: var(--seagreen);
    margin: 0;
    padding-top: 1rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
ul.nav.nav-tabs li.nav-item:last-child button.nav-link {
    border-top-right-radius: 5px;
}
ul.nav.nav-tabs li.nav-item:first-child button.nav-link {
    border-top-left-radius: 5px;
}
ul.nav.nav-tabs li.nav-item button::after {
    content: '';
    display: block;
    position: absolute;
    border-left: 1px solid var(--seagreen);
    right: -1px;
    top: 25%;
    height: 50%;
}
ul.nav.nav-tabs li.nav-item:last-child button::after, ul.nav.nav-tabs li.nav-item button.active::after {
    content: none;
}

.font-size-fix {
    font-size: 0;   
    * {
        font-size: initial;
    }
}

.badge.bg-primary, .badge.bg-secondary {
    background-color: var(--dark-blue-transparent) !important;
    padding: 1em 2em;
}

.house-param, .flat-param {
    background: var(--dark-blue-transparent);
    padding: 1em;
    border-radius: 0;
    height: 100%;
}

@media (min-width: 992px) {
    .house-param, .flat-param {
        border-radius: 10px;
    }
}

.house-photo-caption {
    top: 1em;
    left: 1em;
    color: var(--text-color);
    background: var(--dark-blue-transparent);
    padding: 1em 2em;
    border-radius: 5px;
    font-weight: 700;
    font-size: large;
}
.house-media>div {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
.house-media>div img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-presentation {
    cursor: pointer;
    transition: var(--animation-05);
}
.img-presentation:hover {
    transform: scale(1.1);
}
.img-presentation-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--dark-blue-transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.img-presentation-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.img-presentation-image {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.img-presentation-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-presentation-close:hover {
    background: rgba(0,0,0,0.8);
}

.small, ul.card-params li {
    font-size: small;
}
.large {
    font-size: large;
}
.bold {
    font-weight: 700;
}
ul.card-params li {
    position: relative;
    padding: 0 1em;
}
ul.card-params li:first-child {
    padding-left: 0;
}
ul.card-params li::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--seagreen);
    border-radius: 50%;
}
ul.card-params li:last-child::after {
    content: none;
}
.flat-plan {
    overflow: hidden;
}
.flat-params-list {
    line-height: 2;
}
.flat-params-list li i {
    line-height: 40px;
    width: 40px;
    text-align: center;
    background: var(--seagreen);
    margin-right: .35em;
    margin-bottom: .25em;
    color: var(--text-color);
}

img.img-grayscale {
    filter: grayscale(100%) contrast(1.2);
}

div.list-icon {
    aspect-ratio: 1 / 1;
    background: var(--seagreen);
    color: var(--text-color);
    font-size: larger;
    border-radius: 5px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        width: min(300px, calc(100vw - 2rem));
        min-width: 0;
        max-width: calc(100vw - 2rem);
    }

    #mainNavbar {
        padding: 1rem;
    }

    .content-wrapper {
        padding: .75rem;
    }

    .project-title,
    h1,
    h2,
    h3 {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575.98px) {
    body {
        overflow-x: hidden;
    }

    .navbar-collapse {
        right: -.5rem;
    }

    input.field-search,
    .search button.btn.btn-primary {
        min-height: 48px;
    }

    .search-filter select.form-select {
        height: 48px;
    }

    .house-media {
        row-gap: .75rem;
    }

    .house-photo,
    .house-plan {
        padding-left: 0;
        padding-right: 0;
    }

    .picker-range-fields {
        row-gap: .5rem;
    }

    .module.module-project-description {
        padding: 1rem;
    }

    .project-map h2,
    .project-slides h2,
    .project-houses h2,
    .project-flats h2,
    .house-flats h2,
    .house-plans h2 {
        padding: .75rem .5rem;
        font-size: 1.25rem;
    }
}

img.img-developer-logo {
    background: var(--dark-blue-transparent);
}

.table>:not(caption)>*>* {
    color: unset;
    box-shadow: none;
}
table.table tr th {
    background: var(--dark-blue);
    font-weight: 400;
    text-transform: uppercase;
    font-size: small;
    line-height: 2.5;
    color: var(--text-color);
    text-align: center;
}
table td {
    font-size: small;
}

@media (min-width: 992px) {
    table td {
        font-size: initial;
    }
}