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

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

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

:root {
    --body-width: 0px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 24px;
    font-family: Hauss, sans-serif;
    font-weight: 500;
    line-height: 140%;
}

body {
    padding: 0 50px;
    background: #4B4B4B;
    color: #fff;
}

header {
    overflow: hidden;
    width: calc(100% + 100px);
    padding: calc(var(--body-width) * 0.11) calc(var(--body-width) * 0.01) 0;
    margin-left: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 200px;
}

.anchors a {
    display: inline-block;
    margin: 0 20px;
    text-decoration: none;
}

section {
    margin: 0 auto;
    position: relative;
}

section:nth-child(1) {
    margin-bottom: 300px;
}

section:nth-child(2) {
    margin-bottom: 250px;
}

section::before {
    content: '';
    height: 48px;
    width: calc(100% + 100px);
    background: #FF7300;
    left: -50px;
    position: absolute;
    z-index: 1;
    transform-origin: center;
}

section:nth-child(1)::before {
    top: -100px;
    transform: skewY(5deg) translateY(-50%);
}

section:nth-child(2)::before {
    top: -150px;
    transform: skewY(-5deg) translateY(-50%);
}

section:nth-child(3)::before {
    top: -125px;
    transform: skewY(5deg) translateY(-50%);
}

.section-content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.tagline {
    font-family: Gorizont, sans-serif;
    color: #FF7300;
    font-size: 80px;
    font-style: normal;
    font-weight: 500;
    line-height: 89%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    max-width: 1340px;
    margin: 90px auto 130px;

    p {
        max-width: 1055px;
    }
}

a {
    color: #FF7300 !important;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

a:hover {
    opacity: 0.9;
    text-decoration: none;
}

h1 {
    font-family: Gorizont, sans-serif;
    font-size: calc(var(--body-width) * 0.092);
    line-height: 89%;
    font-weight: 700;
    margin-bottom: calc(var(--body-width) * 0.05);
    text-align: left;
    position: relative;
}

h1 span {
    display: block;
    text-align: center;
}

h1::before {
    content: 'СПД';
    color: #404040;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: 0;
    font-size: calc(var(--body-width) * 0.419);
    z-index: -1;
}

h2 {
    font-family: Gorizont, sans-serif;
    color: #FF7300;
    font-size: 50px;
    font-style: normal;
    font-weight: 500;
    line-height: 89%;
    margin-bottom: 40px;
    max-width: 1055px;
    padding-left: 50px;
}

.section-content > p {
    margin-bottom: 1em;
    max-width: 866px;
    padding-left: 50px;
}

img {
    display: block;
    max-width: 100%;
    max-height: 660px;
}

#portfolio .item:not(:last-child) {
    margin-bottom: 130px;
}

.carousel {
    margin-left: -50px;
    width: calc(100% + 100px);
    margin-top: 60px;
    padding: 0 50px;
    overflow-x: auto;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-viewport {
    display: flex;
    gap: 60px;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-label {
    text-align: left;
    color: #FF7300;
    font-family: Gorizont, sans-serif;
    font-size: 80px;
    font-style: normal;
    font-weight: 700;
    line-height: 89%;
    margin-bottom: 80px;
    padding-left: 50px;
    display: inline-block;
}

.contacts-label span {
    display: block;
    text-align: center;
}

.contacts-content {
    padding-left: 50px;
}

.contacts-content .address {
    margin-bottom: 6px;
}

.contacts-content a {
    text-decoration: none;
    color: #fff !important;
    font-size: 50px;
    font-weight: 500;
    font-family: Gorizont, sans-serif;
    line-height: 144%;
}

footer {
    padding-top: 150px;
    padding-bottom: 20px;
}

.copyright {
    color: #FF7300;
    text-align: left;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding-left: 50px;
}

@media screen and (max-width: 1024px) {
    .tagline {
        font-size: 50px;
    }

    .contacts-label {
        font-size: 50px;
        padding-left: 0;
    }

    .section-content > p {
        padding-left: 0;
    }

    .contacts-content {
        padding-left: 0;
    }

    h2 {
        padding-left: 0;
    }

    .copyright {
        padding-left: 0;
    }

    .contacts-content a {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 18px;
    }

    body {
        padding: 0 20px;
    }

    header {
        width: calc(100% + 40px);
        margin-left: -20px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    img {
        max-height: 330px;
    }

    section::before {
        height: 30px;
        width: calc(100% + 40px);
        left: -20px;
    }

    .carousel {
        margin-left: -20px;
        width: calc(100% + 40px);
    }

    .carousel-viewport {
        gap: 30px;
    }

    .tagline {
        font-size: 30px;
    }

    .contacts-label {
        font-size: 30px;
    }

    .contacts-content a {
        font-size: 24px;
    }

    .address br {
        display: none;
    }
}
