/* Fonts */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
    url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
    url('../fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
    url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* 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 15px;
    color: #000;
    background: #fff;
}

.b-specproject__header-title {
    margin: -1px 0 20px;
    font: normal 700 22px/1 'Roboto', sans-serif;
    color: #6b063d;
}

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

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

@media (max-width: 640px) {
    .b-specproject__header {
        width: 100%;
        margin: 0 0 4em;
        padding: 4em 2em;
        font-size: 1.5625vw;
    }

    .b-specproject__header-title {
        display: none;
    }

    .b-specproject__header-text {
        padding: 0 0.5em;
        font-size: 1.8em;
        line-height: calc(21 / 18 * 1em);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .b-specproject__header {
        font-size: 2vw;
    }
}

/* Tiles */
.b-specproject__tiles-row {
    display: flex;
}

.b-specproject__tiles-row + .b-specproject__tiles-row {
    margin-top: 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%;
    height: 400px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

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

.b-specproject__tile--w0 {
    width: 760px;
    height: 400px;
}

.b-specproject__tile--w1 {
    width: 700px;
    height: 400px;
}

.b-specproject__tile--w2 {
    width: 500px;
    height: 400px;
}

.b-specproject__tile--w3 {
    width: 300px;
    height: 600px;
}

.b-specproject__tile--w4 {
    width: 240px;
    height: 400px;
}

.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: 20px;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.b-specproject__tile-content > * {
    width: 100%;
}

.b-specproject__tile-title {
    margin: 0 0 15px;
    font: normal 500 24px/1 'Roboto', sans-serif;
}

.b-specproject__tile-text {
    margin: 0 0 15px;
    font: normal 500 14px/1 'Roboto', 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: 50px;
    font: normal 500 14px/1 'Roboto', sans-serif;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    background: #680039;
    border-radius: 15px;
    transition: all 0.3s;
}

.b-specproject__tile-wrap-link:hover .b-specproject__tile-link,
.b-specproject__tile-link:hover {
    background: #5e6a71;
}

.b-specproject__tile-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.b-specproject__tile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-size: cover;
}

.b-specproject__tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-size: cover;
}

@media (min-width: 641px) {
    .b-specproject__tile-bg--small {
        display: none;
    }
}

@media (max-width: 640px) {
    .b-specproject__tiles {
        font-size: 1.5625vw;
    }

    .b-specproject__tile {
        font-size: 1.5625vw;
    }

    .b-specproject__tiles-row {
        flex-wrap: wrap;
    }

    .b-specproject__tiles-row + .b-specproject__tiles-row {
        margin: 4em 0 0;
    }

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

    .b-specproject__tiles-col + .b-specproject__tiles-col {
        margin: 4em 0 0;
    }

    .b-specproject__tile {
        margin: 0 auto;
    }

    .b-specproject__tile + .b-specproject__tile {
        margin: 4em auto 0;
    }

    .b-specproject__tile:not(.b-specproject__tile--fixed-size) {
        width: 100%;
        height: auto;
    }

    .b-specproject__tile:not(.b-specproject__tile--fixed-size):before {
        content: '';
        display: block;
        width: 100%;
        padding: calc(400 / 640 * 100%) 0 0;
    }

    .b-specproject__tile--info {
        order: -1;
    }

    .b-specproject__tile + .b-specproject__tile--info {
        margin-top: 0;
        margin-bottom: 4em;
    }

    .b-specproject__tile-bg--large {
        display: none;
    }

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

    .b-specproject__tile-title {
        margin: 0 0 calc(15 / 24 * 1em);
        font-size: 2.4em;
    }

    .b-specproject__tile-text {
        margin: 0 0 calc(15 / 14 * 1em);
        font-size: 1.4em;
    }

    .b-specproject__tile-link {
        width: calc(165 / 14 * 1em);
        height: calc(50 / 14 * 1em);
        font-size: 1.4em;
        border-radius: calc(15 / 14 * 1em);
    }
}

@media (max-width: 480px) {
    .b-specproject__tiles {
        font-size: 2vw;
    }

    .b-specproject__tile {
        font-size: 2vw;
    }
}

/* Share */
.b-specproject__share {
    margin: 60px 0 20px;
}

.b-specproject__share-title {
    font: normal 400 24px/1 'Roboto', sans-serif;
    text-align: center;
}

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

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

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

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

.b-specproject__share-btn:hover {
    background-color: #5e6a71;
}

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

@media (max-width: 640px) {
    .b-specproject__share {
        font-size: 1.5625vw;
        margin: 6em 0 2em;
    }

    .b-specproject__share-title {
        font-size: 2.4em;
    }

    .b-specproject__share-btns {
        margin: 0 0 1.5em;
    }

    .b-specproject__share-btn {
        width: 5.4em;
        height: 5.4em;
        font-size: inherit;
    }

    .b-specproject__share-btn + .b-specproject__share-btn {
        margin-left: 1.5em;
    }

    .b-specproject__share-btn svg {
        font-size: 0.15em;
    }
}

@media (max-width: 480px) {
    .b-specproject__share {
        font-size: 2vw;
    }
}