.firms-cat {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: masonry;
}
.firm {
    position: relative;
    overflow: hidden;
    zoom: 1;
    font-size: 14px;
    line-height: 1.5em;
    margin: 20px 0 0 0;
}
.firm .image {
    float: left;
    width: 80px;
    margin-right: 10px;
}
.firm .image  IMG {
    margin: 0;
}

.firm .desc {
    overflow: hidden;
}

.firm .diler-marks {
    justify-content: flex-start;
    align-items: center;
    height: 50px;
}
.firm .diler-marks IMG {
    width: 50px;
}
.firm UL {
    list-style: circle;
    margin-left: 15px;
}
.firm UL LI {
    margin-top: 10px;
    font-size: 13px;
}
@media screen and (min-width:641px) and (max-width:960px)
{
    .firms-cat {
        grid-template-columns: repeat(2, 1fr);
    }
    .firm .image {
        width: 100px;
    }
}
@media screen and (max-width:640px)
{
    .firms-cat {
        display: block;
    }
    .firm {
        padding-bottom: 20px;
        padding-top: 20px;
        margin-top: 0;
        border-bottom: 1px solid #d7d7d7;
    }

    .firm .image {
        width: 100px;
    }
}

@media screen and (max-width: 960px) {
    .inner-firm-details {
        display: flex;
    }
    .inner-firm-logo {
        width: 20%;
        float: left;
        margin-right: 10px;
    }
    .inner-firm-logo IMG {
        margin: 0;
    }
}
@media  screen and (max-width: 460px) {
    .inner-firm-logo {
        margin-left: 10px;
    }
}

/*************** ВНутренние страница **********/
.rent-motorcycles {
    font-size: 14px;
    line-height: 1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-height: 620px;
    overflow: hidden;
}
.rent-motorcycles .motorcycle-item {
    width: calc(50% - 10px);
    height: 300px;
    margin-bottom: 20px;
    background-position: bottom;
    background-size: cover;
    position: relative; 
    overflow: hidden;
}
.rent-motorcycles .motorcycle-item A {
    display: block;
    width: 100%;
    height: 100%;
}
.rent-motorcycles .motorcycle-item .descrition {
    position: absolute;
    bottom: 0;
    background-color: black;
    opacity: 70%;
    color: white;
    padding: 10px;
    width: calc(100% - 20px);
}

@media screen and (max-width:960px)
{    
    .firm-left, .firm-right {
        float: none;
        width: auto;
    }
}
@media screen and (min-width:541px) and (max-width:960px)
{    
    .rent-motorcycles {
        width: calc(100% + 5px);
    }
    .rent-motorcycles .motorcycle-item {
        width: calc(50% - 5px);
        height: 300px;
        font-size: 14px;
        margin-bottom: 10px;
        background-position: center;
        background-size: cover;
    }
}
@media screen and (max-width:540px)
{    
    .rent-motorcycles {
        width: 100%;
        max-height: 505px;
        overflow: hidden;
    }
    .rent-motorcycles .motorcycle-item {
        width: calc(100%);
        height: 250px;
        font-size: 12px;
        margin-bottom: 5px;
        background-position: center;
        background-size: cover;
    }
}
.rent-details .images DIV {
    display: flex;
    justify-content: stretch;
    gap: 5px;
    position: relative;
    width: 100%;
}
.rent-details .images DIV A {
    float: none;
    width: 100%;
    height: 200px;
    margin: 0;
}


.diler-marks {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

.diler-marks IMG {
    margin: 0;
}
.diler-marks .grayscale {
    filter: grayscale(1);
    opacity: 0.5;
}

.firm-content .mine-links {
    display: flex;
}
.firm-content .block-left-one .logo IMG {
    border-radius: 15px;
    margin-top: 0;
}

.firm-address .button-center A {
    min-width: 70px;
    width: 70px;
    font-size: 10px;
    line-height: 20px;
}
.firm-content .text-content .logo {
    display: none;
}
    
@media screen and (max-width:960px)
{
    .firm-content .block-left-one .logo {
        display: none;
        border-radius: 15px;
    }
}

@media screen and (min-width:411px) AND (max-width:960px)
{
    .firm-content .text-content .logo {
        display: block;
        max-width: 30%;
        float: left;
        margin: 0 10px 10px 10px;
        border-radius: 15px;
    }
}
@media screen and (max-width: 410px)
{
    .firm-content .text-content .logo {
        display: block;
        float: left;
        max-width: 30%;
        margin: 10px;
        border-radius: 15px;
    }
    .read-block .text-content {
        height: 420px;
    }
    .firm-content .text-content .first {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.hotel-discount {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.hotel-discount DIV:first-child {
    background-color: green;
    border-radius: 10px;
    padding: 10px;
    font-size: 1.5em;
    color: white;
    letter-spacing: 5px;
    text-transform: uppercase;
}
.hotel-discount DIV:last-child {
    border: 1px solid silver;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
}


/*************** ВНутренние страница **********/
.hotel-rooms {
    font-size: 14px;
    line-height: 1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;
}
.hotel-rooms .room-item {
    width: calc(50% - 10px);
    height: 300px;
    margin-bottom: 20px;
    background-position: bottom;
    background-size: cover;
    position: relative; 
    overflow: hidden;
}
.hotel-rooms .room-item A {
    display: block;
    width: 100%;
    height: 100%;
}
.hotel-rooms .room-item .descrition {
    position: absolute;
    bottom: 0;
    background-color: black;
    opacity: 70%;
    color: white;
    padding: 10px;
    width: calc(100% - 20px);
}

@media screen and (min-width:541px) and (max-width:960px)
{    
    .hotel-rooms {
        width: calc(100% + 5px);
    }
    .hotel-rooms .room-item {
        width: calc(50% - 5px);
        height: 300px;
        font-size: 14px;
        margin-bottom: 10px;
        background-position: center;
        background-size: cover;
    }
}
@media screen and (max-width:540px)
{    
    .hotel-rooms {
        width: 100%;
    }
    .hotel-rooms .room-item {
        width: calc(100%);
        height: 250px;
        font-size: 12px;
        margin-bottom: 5px;
        background-position: center;
        background-size: cover;
    }
}