
body {
    background: #f0f8fb;
}

.mod-adverts {
    color: #000;
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.mod-adverts > h1 {
    color: #9bb3c0;
    font-size: 60px;
    padding-top: 80px;
    font-weight: 100;
    text-align: center;
    margin-bottom: 60px;
}

.mod-adverts__top {
    margin-bottom: 25px;
}

.mod-adverts__top-select {
    margin-right: 25px;
    float: left;
}

.mod-adverts__top-select > div {
    background: #dee9ed;
    border-radius: 25px;
    border: 1px solid #ebebeb;
    width: 180px;
    position: relative;
}

.mod-adverts__top-select-rubric > div {
    width: 210px !important;
}

.mod-adverts__top-select > div:after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="6px"><path fill-rule="evenodd" fill="rgb(165, 176, 183)" d="M6.000,5.657 L0.343,-0.000 L11.657,-0.000 L6.000,5.657 Z"/></svg>') 0px 0px no-repeat;
    content: "";
    position: absolute;
    width: 12px;
    height: 6px;
    right: 20px;
    top: 20px;
}

.mod-adverts__top-select select {
    background: none;
    font-size: 14px;
    color: #78858d;
    border: none;
    height: 45px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.mod-adverts__top-select select:hover {
    color: #303030;
}

.mod-adverts__top-select > div:hover:after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12px" height="6px"><path fill-rule="evenodd" fill="rgb(48, 48, 48)" d="M6.000,5.657 L0.343,-0.000 L11.657,-0.000 L6.000,5.657 Z"/></svg>') 0px 0px no-repeat;
}

.mod-adverts__top-search {
    margin-right: 60px;
    float: left;
    width: 160px;
}

.mod-adverts__top-search input {
    background: #dee9ed;
    border-radius: 25px;
    font-size: 14px;
    color: #78858d;
    font-style: italic;
    border: none;
    height: 45px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 20px;
}

.mod-adverts__top-search input::-webkit-input-placeholder {color:#a1b2be;}
.mod-adverts__top-search input::-moz-placeholder          {color:#a1b2be;}
.mod-adverts__top-search input:-moz-placeholder           {color:#a1b2be;}
.mod-adverts__top-search input:-ms-input-placeholder      {color:#a1b2be;}

.mod-adverts__top-submit {
    float: left;
    width: 100px;
}

.mod-adverts__top-submit input {
    background: #ffdf2b;
    border-radius: 25px;
    font-size: 13px;
    color: #212121;
    border: none;
    height: 45px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0 20px;
    cursor: pointer;
}

.mod-adverts__top-submit input:hover {
    background-color: #f1c700;
}

.mod-adverts__top-add {
    float: right;
}

.mod-adverts__top-add > a {
    text-align: center;
    height: 45px;
    line-height: 45px;
    border: 1px solid #c7dbda;
    border-radius: 25px;
    width: 220px;
    font-size: 13px;
    color: #78858d;
    text-decoration: none;
    display: inline-block;
}

.mod-adverts__top-add > a:hover {
    border: 1px solid #78858d;
    color: #303030;
}

.mod-adverts__top-show {
    display: none;
    float: right;
    text-align: center;
    height: 45px;
    line-height: 45px;
    border: 1px solid #c7dbda;
    border-radius: 25px;
    width: 80px;
    font-size: 13px;
    color: #78858d;
    display: inline-block;
}

.mod-adverts__top-show > span {
    width: 15px;
    height: 10px;
    display: inline-block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="10px"><path fill-rule="evenodd" stroke="rgb(139, 151, 158)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter" fill="none" d="M14.071,3.000 L8.000,9.071 L1.929,3.000 "/></svg>') no-repeat;
}

.mod-adverts__top-block {
    float: left;
}

.mod-adverts__tags {
    margin-bottom: 40px;
}

.mod-adverts__tags > a {
    padding: 3px 12px;
    font-size: 13px;
    color: #78858d;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
}

.mod-adverts__tags > a > span {
    color: #a1b2be;
}

.mod-adverts__tags > a:hover {
    color: #303030;
    background: #dee9ed;
    border-radius: 8px;
}

.mod-adverts__tags > a.mod-adverts__tag-active {
    color: #303030;
    background: #dee9ed;
    border-radius: 8px;
}

.mod-adverts__blocks {
    margin-bottom: 50px;
}

.mod-adverts__block {
    float: left;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 23px 65px 0px rgba(0, 15, 29, 0.1);
    width: 325px;
    height: 110px;
    padding: 20px;
    margin-right: 50px;
    margin-bottom: 50px;
}

.mod-adverts__block:nth-child(3n+3) {
    margin-right: 0;
}

.mod-adverts__block-img {
    float: left;
    margin-right: 20px;
}

.mod-adverts__block-img > a > img {
    width: 78px;
    height: 78px;
    border: 1px solid #b6c5ca;
}

.mod-adverts__block-text {
    overflow: hidden;
    max-height: 111px;
}

.mod-adverts__block-text-rubric {
    font-size: 10px;
    color: #838f96;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mod-adverts__block-text-title {
    margin-bottom: 10px;
    line-height: 14px;
}

.mod-adverts__block-text-title > a {
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 600;
    text-decoration: none;
}

.mod-adverts__block-text-title > a:hover {
    text-decoration: underline;
}

.mod-adverts__block-text-info {
    font-size: 11px;
    color: #78858d;
}

@media only screen and (max-width: 1200px) {
    .mod-adverts {
        padding: 0 20px;
    }
    .mod-adverts > h1 {
        padding-top: 40px;
    }
    .mod-adverts__blocks {
        max-width: 790px;
        margin: 0 auto;
        margin-bottom: 50px;
    }
    .mod-adverts__block:nth-child(3n+3) {
        margin-right: 50px;
    }
    .mod-adverts__block:nth-child(even) {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 1030px) {
    .mod-adverts__top-select {
        margin-right: 10px;
    }
}

@media only screen and (max-width: 1000px) {
    .mod-adverts__top-select {
        margin-right: 10px;
    }
    .mod-adverts__top-block {
        clear: both;
        margin-top: 20px;
    }
    .mod-adverts__top-add {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 820px) {
    .mod-adverts__blocks {
        max-width: 100%;
        margin-bottom: 50px;
    }
    .mod-adverts__block {
        margin: 0 auto;
        margin-bottom: 20px;
        float: none;
    }
    .mod-adverts__block:nth-child(3n+3) {
        margin-right: auto;
    }
    .mod-adverts__block:nth-child(even) {
        margin-right: auto;
    }
}

@media only screen and (min-width: 600px) {
    .mod-adverts__top-select-rubric,
    .mod-adverts__top-block,
    .mod-adverts__top-add,
    .mod-adverts__tags {
        display: block !important;
    }
    .mod-adverts__top-show {
        display: none !important;
    }
}

@media only screen and (max-width: 600px) {
    .mod-adverts__top-select-rubric,
    .mod-adverts__top-block,
    .mod-adverts__top-add,
    .mod-adverts__tags {
        display: none;
    }
    .mod-adverts__top-block {
        width: 100%;
    }
    .mod-adverts__top-show {
        display: block;
    }
    .mod-adverts__tags {
        margin-bottom: 25px;
    }
    .mod-adverts__tags > a:hover,
    .mod-adverts__tags > a.mod-adverts__tag-active {
        background: none;
    }
    .mod-adverts__tags > a:hover > span,
    .mod-adverts__tags > a.mod-adverts__tag-active > span {
        color: #303030;
    }
    .mod-adverts__top-search {
        margin-right: 0;
        width: calc(100% - 80px);
    }
    .mod-adverts__top-submit {
        width: 47px;
        float: right;
    }
    .mod-adverts__top-search > input {
        background: #fff;
        border: 1px solid #c9dcdc;
        padding-right: 50px;
        width: 100%;
    }
    .mod-adverts__top-submit > input {
        border-radius: 50%;
        background: url("/skins/default/images/search.png") center center no-repeat;
        background-color: #ffd542;
        text-indent: -99999px;
        width: 47px;
        height: 47px;
    }
}

@media only screen and (max-width: 500px) {
    .mod-adverts > h1 {
        font-size: 48px;
    }
}

@media only screen and (max-width: 400px) {
    .mod-adverts__block {
        width: auto;
        height: auto;
        min-height: 110px;
    }
}

@media only screen and (max-width: 420px) {
    .mod-adverts > h1 {
        font-size: 42px;
    }
}

@media only screen and (max-width: 320px) {
    .mod-adverts > h1 {
        font-size: 36px;
    }
}