body {
    background: url('../img/presentation/background.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

@media print {
    @page {
        size: A4 landscape !important;
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;   /* Chrome, Safari */
        color-adjust: exact !important;                 /*Firefox*/
    }

    html, body {
        background: url('../img/presentation/background.png') repeat-y top !important;
        -webkit-background-size: initial !important;
        -moz-background-size: initial !important;
        -o-background-size: initial !important;
        background-size: initial !important;
    }

    .col-md-1 {width:8%;  float:left;}
    .col-md-2 {width:16%; float:left;}
    .col-md-3 {width:25%; float:left;}
    .col-md-4 {width:33%; float:left;}
    .col-md-5 {width:42%; float:left;}
    .col-md-6 {width:50%; float:left;}
    .col-md-7 {width:58%; float:left;}
    .col-md-8 {width:66%; float:left;}
    .col-md-9 {width:75%; float:left;}
    .col-md-10{width:83%; float:left;}
    .col-md-11{width:92%; float:left;}
    .col-md-12{width:100%; float:left;}

    a[href]:after { content: none !important; }

    .well {
        background: transparent !important;
    }

    .well > .row:not(.images) {
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
    }

    .well > .row.images {
        page-break-before: always !important;
    }

    .page-break {
        display: block !important;
    }

    .info > .details > .price, .info > .details > .address, .info > .details > .manager   {
        color: #aa001f !important;
    }

    .gallery-item {
        display: inherit !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
        page-break-inside: avoid !important;
        max-height: 320px !important;
        width: auto !important;
    }

    .gallery-item a {
        visibility: hidden !important;
        display: none !important;
    }

    .gallery-item img {
        max-width: 525px !important;
        max-height: 350px !important;
    }

    .footer .head > br {
        display: block !important;
    }

    .footer .social > a {
        color: #aa001f !important;
        line-height: inherit !important;
        font-size: inherit !important;
    }
}


body * {
    background: transparent;
}

.well {
    padding: 0 15px;
    margin-top: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.well > .row:not(.company_header) {
    margin-top: 30px;
}

a.phone {
    color: #333 !important;
    display: block;
    margin-right: 10px;
    line-height: 1;
    margin-bottom: 10px;
}

.page-break {
    margin-bottom: 30px;
    display: none;
}


/* Header block */
.company_header .title, .company_header a.phone {
    color: #333 !important;
    font-weight: bold !important;
    font-size: 30px;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}


/* Info block */
.info > .photo {
    text-align: center;
}

.info > .photo > img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.info > .details > * {
    display: block;
}

.info > .details > .price {
    font-size: 32px;
    color: #aa001f;
}

.info > .details > .address {
    font-size: 32px;
    margin: 20px 0;
    color: #aa001f;
}

.info > .details > .manager {
    margin-bottom: 10px;
    color: #aa001f;
}


/* Params block */
.params {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}

.params dt {
    display: inline-block;
    border-bottom: 1px solid #ececec;
    width: 59%;
    padding-left: 30px;
    position: relative;
}

.params dd {
    display: inline-block;
    border-bottom: 1px solid #ececec;
    width: 39%;
}

.params dt::before {
    content: "";
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    left: -5px;
    top: -8px;
    -webkit-background-size: contain !important;
    -moz-background-size: contain !important;
    -o-background-size: contain !important;
    background-size: contain !important;
}

.params dt.id::before {
    background-image: url('../img/presentation/id.png') !important;
}

.params dt.city::before {
    background-image: url('../img/presentation/City.png') !important;
}

.params dt.district::before {
    background-image: url('../img/presentation/District.png') !important;
}

.params dt.subdistrict::before {
    background-image: url('../img/presentation/microdistrict.png') !important;
}

.params dt.housing_complex::before {
    background-image: url('../img/presentation/Address.png') !important;
}

.params dt.square_total::before {
    background-image: url('../img/presentation/total_area.png') !important;
}

.params dt.square_living::before {
    background-image: url('../img/presentation/Life_area.png') !important;
}

.params dt.square_kitchen::before {
    background-image: url('../img/presentation/kitchen.png') !important;
}

.params dt.rooms::before {
    background-image: url('../img/presentation/Quantity_of_rooms.png') !important;
}

.params dt.floor::before {
    background-image: url('../img/presentation/Floors.png') !important;
}

.params dt.floors::before {
    background-image: url('../img/presentation/number_of_storeys.png') !important;
}

.params dt.material::before {
    background-image: url('../img/presentation/Materials.png') !important;
}

.params dt.series::before {
    background-image: url('../img/presentation/Series_of_houses.png') !important;
}


/* Description */
.description .content {
    font-size: 130%;
}

/* Images */
.images legend {
    margin-bottom: 0;
}

.gallery-item {
    min-height: 350px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-item a {
    width: calc(100% - 30px);
}

.gallery-item img {
    display: block;
    max-width: 100%;
}


/* Map */
.map {
    width: 100%;
    height: 475px;
    border: 0;
    background: url('../img/mapbg.jpg');
}


/* Footer */
.footer {
    margin-top: 60px;
}

.footer > div > .head, .footer > div > .bye {
    font-weight: bold !important;
    font-size: 27px;
    display: block;
    line-height: 1;
    margin: 50px 0;
    text-align: center;
    color: #aa001f !important;
}

.footer .head > br {
    display: none;
}

.footer .social {
    position: relative;
    display: flex;
    justify-content: space-around;
}

.footer .social > a {
    line-height: 0;
    font-size: 0;
    color: transparent;
    text-align: center;
}

.footer .social > a::before {
    content: "";
    display: block;
    -webkit-background-size: contain !important;
    -moz-background-size: contain !important;
    -o-background-size: contain !important;
    background-size: contain !important;
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
}

.footer .social > a.www::before {
    background-image: url('../img/presentation/social/www.png') !important;
}

.footer .social > a.instagram::before {
    background-image: url('../img/presentation/social/instagram.png') !important;
}

.footer .social > a.facebook::before {
    background-image: url('../img/presentation/social/facebook.png') !important;
}

.footer .social > a.telegram::before {
    background-image: url('../img/presentation/social/telegram.png') !important;
}

.footer .social > a.youtube::before {
    background-image: url('../img/presentation/social/youtube.png') !important;
}