
/* Main wrap */
.b-specproject {
    padding: 0 5px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

@media (max-width: 1030px) {
    .b-specproject {
        padding: 0;
    }
}

/* Reset */
.b-specproject * {
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

/* Header */
.b-specproject__header {
    width: 700px;
    margin: 0 0 20px;
    padding: 25px 20px;
    color: #fff;
    background: #003147;
}

.b-specproject__header-title {
    margin: 0 0 10px;
    font: normal 600 15px/20px 'Arial', sans-serif;
}

.b-specproject__header-text {
    font: normal 400 10px/18px 'Arial', sans-serif;
}

.b-specproject__header-text strong {
    font-weight: 700;
}

@media (max-width: 1030px) {
    .b-specproject__header {
        width: 100%;
        height: auto;
        padding: 15px;
        text-align: center;
    }

    .b-specproject__header-title {
        font-size: 16px;
    }

    .b-specproject__header-text {
        font-size: 14px;
        text-align: center;
    }
}

@media (max-width: 320px) {
    .b-specproject__header-title {
        font-size: 14px;
    }

    .b-specproject__header-text {
        font-size: 12px;
    }
}

/* Tiles */
.b-specproject__tiles-row {
    display: flex;
    margin: 0 0 20px;
}

.b-specproject__tiles-col {
    flex: 0 0 auto;
}

.b-specproject__tiles-col + .b-specproject__tiles-col {
    margin-left: 20px;
}

.b-specproject__tiles-col--w1 {
    width: 700px;
}

.b-specproject__tiles-col--w2 {
    width: 300px;
}

.b-specproject__tile {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.b-specproject__tile:before {
    content: '';
    display: block;
    width: 100%;
}

.b-specproject__tile--w700 {
    max-width: 700px;
}


.b-specproject__tile--w700:before {
    padding: calc(400 / 700 * 100%) 0 0;
}

.b-specproject__tile--spb {
    background-image: url(https://static.sobaka.ru/uploads/specprojects/ebay/spb_700.jpg);
}

.b-specproject__tile + .b-specproject__tile {
    margin-left: 20px;
}

.b-specproject__tile--w500 {
    max-width: 500px;
}

.b-specproject__tile--w500:before {
    padding: calc(400 / 500 * 100%) 0 0;
}

.b-specproject__tile--info2 {
    background-image: url(https://static.sobaka.ru/uploads/specprojects/ebay/info2.jpg);
}

.b-specproject__tile--w230 {
    max-width: 230px;
    background: url('https://static.sobaka.ru/uploads/specprojects/ebay/info1.jpg');
}

.b-specproject__tile--w230:before {
    padding: calc(695 / 230 * 100%) 0 0;
}

.b-specproject__tile--w770 {
    max-width: 770px;
    background: url('https://static.sobaka.ru/uploads/specprojects/ebay/instrustion.jpg');
}

.b-specproject__tile--w770:before {
    padding: calc(695 / 770 * 100%) 0 0;
}

.b-specproject__tile-wrap-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: inherit;
}

.b-specproject__tile-wrap-link:hover {
    color: inherit;
}

.b-specproject__tile-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px 15px;
    color: #fff;
    /*background: linear-gradient(rgba(0, 0, 0, 0) 11.25%, rgba(0, 0, 0, 0.5) 80%);*/
}

.b-specproject__tile-title {
    width: 100%;
    margin: 0 0 10px;
    font: normal 400 20px/24px 'Arial', sans-serif;
}

.b-specproject__tile-name {
    font: normal 400 20px/24px 'Arial', sans-serif;
}

.b-specproject__tile-text {
    width: 100%;
    margin: 0 0 10px;
    font: normal 400 18px/20px 'Arial', sans-serif;
}

.b-specproject__tile-text a {
    color: inherit;
    text-decoration: underline;
}

.b-specproject__tile-text a:hover {
    color: inherit;
    text-decoration: none;
}

.b-specproject__tile-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 165px;
    height: 40px;
    font: normal 400 16px/24px 'Arial', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    background: #420f56;
    transition: all 0.3s;
}

.b-specproject__tile-wrap-link:hover .b-specproject__tile-link,
.b-specproject__tile-link:hover {
    color: #fff;
    background: #2A461E;
}

.b-specproject__tile--img:before {
    padding: calc(120 / 1020 * 100%) 0 0;
}

@media (max-width: 640px) {

    .b-specproject__tile--spb {
        background-image: url(https://static.sobaka.ru/uploads/specprojects/ebay/spb_m.jpg);
    }

    .b-specproject__tile--w700:before {
        padding: calc(400 / 500 * 100%) 0 0;
    }

    .b-specproject__tile--img:before {
        padding: calc(120 / 640 * 100%) 0 0;
    }

    .b-specproject__tile--info2 {
        background-image: url(https://static.sobaka.ru/uploads/specprojects/ebay/info2_m.jpg);
    }

    .b-specproject__tile--info2:before {
        padding: calc(955 / 640 * 100%) 0 0;
    }

    .b-specproject__tile--w230 {
        max-width: 640px;
        background: url('https://static.sobaka.ru/uploads/specprojects/ebay/info1_m.jpg');
    }

    .b-specproject__tile--w230:before {
        padding: calc(753 / 640 * 100%) 0 0;
    }

    .b-specproject__tile--w770 {
        max-width: 640px;
        background: url('https://static.sobaka.ru/uploads/specprojects/ebay/instrustion_m.jpg');
    }

    .b-specproject__tile--w770:before {
        padding: calc(1050 / 640 * 100%) 0 0;
    }
}

@media (max-width: 1030px) {
    .b-specproject__tiles-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .b-specproject__tiles-row--reverse {
        flex-direction: column-reverse;
        align-items: center;
    }

    .b-specproject__tiles-col {
        width: 100%;
        margin: 0;
    }

    .b-specproject__tiles-col + .b-specproject__tiles-col {
        margin: 20px 0 0;
    }

    .b-specproject__tile {
        width: 100%;
        margin: 0;
        background-size: cover;
    }

    .b-specproject__tiles-row--reverse .b-specproject__tile + .b-specproject__tile {
        margin: 0 auto 20px;
    }

    .b-specproject__tile + .b-specproject__tile {
        margin: 20px auto 0;
    }

    .b-specproject__tile-content {
        padding: 30px 15px;
    }

    .b-specproject__tile-content br {
        display: none;
    }
}

@media (max-width: 425px) {

    .b-specproject__tile-title {
        font: normal 400 18px/20px 'Arial', sans-serif;
    }

    .b-specproject__tile-text {
        font: normal 400 13px/18px 'Arial', sans-serif;
    }

    .b-specproject__tile-link {
        width: 120px;
        height: 40px;
        font: normal 400 12px/1 'Arial', sans-serif;
    }

    .b-specproject__tile-content {
        padding: 15px 13px;
    }

    .b-specproject__tile + .b-specproject__tile {
        margin: 10px auto 0;
    }

    .b-specproject__tiles-row {
        margin: 0 0 10px;
    }
}

/* Share */
.b-specproject__share {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 30px;
}

.b-specproject__share-title {
    font: normal 400 14px/1 'Arial', sans-serif;
}

.b-specproject__share-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 0 20px;
}

.b-specproject__share-btn {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    font-size: 1px;
    color: #fff;
    background: #01A2AC;
    border: 1px solid #01A2AC;
    border-radius: 50%;
    overflow: hidden;
    transition: background 0.3s;
}

.b-specproject__share-btn + .b-specproject__share-btn {
    margin-left: 5px;
}

.b-specproject__share-btn:focus:active {
    outline: none;
}

.b-specproject__share-btn:hover {
    background: #1DCBCA;
    color: #fff;
    border: 1px solid #1DCBCA;
}

.b-specproject__share-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    fill: currentColor;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* Hide the search form of the main layout */
#search-form {
    display: none;
}