* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    background-color: #20202d;
    color: #fff;
    font-family: 'robotoregular', sans-serif;
}

.container {
    width: 90%;
    max-width: 945px;
    margin: 0 auto;
}

.section {
    padding-top: 64px;
    padding-bottom: 92px;
}

.about-me {
    padding-top: 20px;
    padding-bottom: 20px;
}

.section-title {
    font-family: 'robotobold', sans-serif;
    margin: 0;
    margin-bottom: 84px;
    font-size: 36px;
    line-height: 42px;
    color: #ffbb01;
}

.about-me .section-title {
    margin-bottom: 15px;
}

.hero {
    padding-top: 50px;
    padding-bottom: 155px;
    background: -o-linear-gradient(89.99deg, #000000 0.01%, rgba(0, 0, 0, 0) 95.44%);
    background: linear-gradient(0.01deg, #000000 0.01%, rgba(0, 0, 0, 0) 95.44%);

}

.hero-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 105px;
}

.hero-logo {
    width: 150px;
}

.social-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.social-link {
    margin-left: 10px;
    text-decoration: none;
    display: block;
    padding: 5px;
}

.social-link .icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    -webkit-transition-duration: .4s;
    -o-transition-duration: .4s;
    transition-duration: .4s;
}

.social-link:hover .icon {
    -webkit-transform: scale(1.5);
    -ms-transform: scale(1.5);
    transform: scale(1.5);
}

.social-link:hover:nth-child(2) .icon {
    fill: #4fc5f7;
}

.social-link:hover:nth-child(3) .icon {
    fill: #f65137;
}

.social-link:hover:last-child .icon {
    fill: #1973eb;
}

.social-link:first-child {
    margin-left: 0;
}

.hero-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 50px;
    color: #ffbb01;
    margin-top: 0;
    margin-bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.hero-title {
    font-family: 'robotobold', sans-serif;
    font-size: 50px;
    line-height: 59px;
    margin-top: 0;
    margin-bottom: 20px;
    -webkit-text-stroke-color: #ffbb01;
    -webkit-text-fill-color: #ffbb01;
    -webkit-text-stroke-width: 0.02em;
    text-shadow: -5px 0 #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 16px;
    line-height: 28px;
    max-width: 420px;
    margin-bottom: 38px;
}

.button {
    font-family: 'robotobold', sans-serif;
    background: -webkit-linear-gradient(linear, left top, left bottom, from(#FDDE76), to(#FFBB01));
    background: -o-linear-gradient(top, #FDDE76 0%, #FFBB01 100%);
    background: linear-gradient(180deg, #FDDE76 0%, #FFBB01 100%);
    -webkit-box-shadow: 0px 4px 0px #B68500;
    box-shadow: 0px 4px 0px #B68500;
    border: none;
    border: 2px solid transparent;
    border-radius: 5px 5px 10px 10px;
    padding: 24px 42px;
    cursor: pointer;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    position: relative;
    -webkit-transition-duration: .4s;
    -o-transition-duration: .4s;
    transition-duration: .4s;
    outline: none;
}

.button::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    -webkit-transition: all .4s;
    -o-transition: all .4s;
    transition: all .4s;
    background: -webkit-linear-gradient(linear, left top, left bottom, from(#FDDE76), to(#FFBB01));
    background: -o-linear-gradient(top, #FDDE76 0%, #FFBB01 100%);
    background: linear-gradient(180deg, #FDDE76 0%, #FFBB01 100%);
}

.button:hover::after {
    -webkit-transform: scaleX(1.4) scaleY(1.6);
    -ms-transform: scaleX(1.4) scaleY(1.6);
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.button:hover {
    background: #fff;
    -webkit-box-shadow: 0px 4px 10px #B68500;
    box-shadow: 0px 4px 10px #B68500;
    border: 2px solid #B68500;
}

.hero-avatar {
    width: 389px;
    height: 389px;
    border-radius: 50%;
    border: 13px solid #fff;
    background-image: url('../img/avatar.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-avatar:hover::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    -webkit-box-shadow: -14.56px -14.56px 0 rgb(255 0 0 / 30%), -20.384px 0 0 rgb(255 170 0 / 30%), -14.56px 14.56px 0 rgb(170 255 0 / 30%), 0 20.384px 0 rgb(0 255 0 / 30%), 14.56px 14.56px 0 rgb(0 255 170 / 30%), 20.384px 0 0 rgb(0 170 255 / 30%), 14.56px -14.56px 0 rgb(0 0 255 / 30%), 0 -20.384px 0 rgb(170 0 255 / 30%);
    box-shadow: -14.56px -14.56px 0 rgb(255 0 0 / 30%), -20.384px 0 0 rgb(255 170 0 / 30%), -14.56px 14.56px 0 rgb(170 255 0 / 30%), 0 20.384px 0 rgb(0 255 0 / 30%), 14.56px 14.56px 0 rgb(0 255 170 / 30%), 20.384px 0 0 rgb(0 170 255 / 30%), 14.56px -14.56px 0 rgb(0 0 255 / 30%), 0 -20.384px 0 rgb(170 0 255 / 30%);
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
}

/* features */
.features {
    background-color: #000;
}

.features-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.features-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-preferred-size: 25%;
    flex-basis: 25%;
    margin-bottom: 25px;
    text-decoration: none;
    color: #fff;
    -webkit-transition-duration: .5s;
    -o-transition-duration: .5s;
    transition-duration: .5s;
}

.features-item:hover {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.features-item:hover .features-images {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
}

.features-item:hover .features-title {
    text-shadow: 0 -7px 10px #B68500;
}

.about-me__block {
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
}

.about-me__block:hover {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.features-images {
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    -webkit-transition-duration: 1s;
    -o-transition-duration: 1s;
    transition-duration: 1s;
}

.features-title {
    font-family: 'robotobold', sans-serif;
    font-size: 24px;
    line-height: 28px;
    margin-top: 0;
    margin-bottom: 0;
    -webkit-transition-duration: .5s;
    -o-transition-duration: .5s;
    transition-duration: .5s;
}

.features-text {
    font-weight: normal;
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}
/* Slider */
.projects {
    background: -webkit-linear-gradient(linear, left top, left bottom, from(#000000), color-stop(95.44%, rgba(0, 0, 0, 0)));
    background: -o-linear-gradient(top, #000000 0%, rgba(0, 0, 0, 0) 95.44%);
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 95.44%);
}

.projects-slide {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 5%;
    margin-right: 15px;
}

.portfolio-links {
    position: relative;
    overflow: hidden;
}

.portfolio-links-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.portfolio-box:hover .portfolio-links {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(	182, 133, 0, .7);
    z-index: 11;
    border-radius: 5%;
    top: 0;
    -webkit-animation: uprise 1s forwards;
    animation: uprise 1s forwards;
}

.portfolio-link {
    font-family: 'robotobold', sans-serif;
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    line-height: 28px;
}

.portfolio-link:hover .portfolio-link-text {
    text-shadow: 0 -7px 10px #000;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.portfolio-link-text {
    margin-top: 10px;
    -webkit-transition-duration: .7s;
    -o-transition-duration: .7s;
    transition-duration: .7s;
}

.portfolio-link-text {
    margin-top: 10px;
}

.portfolio-icon {
    width: 70px;
    height: 70px;
}

.portfolio-link:hover .portfolio-icon {
    -webkit-animation: jump .7s forwards;
    animation: jump .7s forwards;
}

.project-text {
    -ms-flex-preferred-size: 60%;
    flex-basis: 60%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.project-title {
    font-family: 'robotobold', sans-serif;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%; 
    font-size: 24px;
    line-height: 28px;
    margin: 0;
    margin-bottom: 10px;
}

.project-sub-title {
    margin-top: 0;
    margin-bottom: 41px;
    font-size: 18px;
    line-height: 24px;
}

.portfolio .section-title {
    margin-bottom: 0;
}

.project-time, 
.project-cost {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    margin-bottom: 44px;
}

.project-time, 
.project-cost,
.project-feedback {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.project-subtitle {
    font-family: 'robotobold', sans-serif;
    margin: 0;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 40px;
}

.portfolio-paragraph {
    margin-bottom: 84px;
    margin-top: 15px;
    font-size: 18px;
    line-height: 24px;
}

.project-paragraph {
    margin: 0;
    font-weight: normal;
    font-size: 16px;
    line-height: 150%;
}

.project-icon {
    margin-right: 16px;
}

.project-image {
    width: 350px;
    height: 285px;
}

.projects-pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 44px;
}

.projects-bullet {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #ffbb01;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
}

.projects-bullet:first-child {
    margin-left: 0;
}
.projects-bullet:last-child {
    margin-right: 0;
}

.projects-bullet-active {
    background-color: #ffbb01;
}

.project-lists {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.project-list:not(:last-child) {
    margin-bottom: 10px;
}

.project-list {
    position: relative;
    font-style: italic;
}

.project-list::before {
    content: "\2714";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffbb01;
    border-radius: 5px;
    margin-right: 6px;
    text-align: center;
    font-weight: bold;
    color: #ffbb01;
}

/* contacts */
.footer {
    padding-bottom: 30px;
    overflow: hidden;
}

.contacts-form {
    background: #fff;
    -webkit-box-shadow: -5px 5px 0px #ffc41d;
    box-shadow: -5px 5px 0px #ffc41d;
    border-radius: 5px;
    max-width: 380px;
    padding-top: 40px;
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 49px;
    -webkit-transition-timing-function: ease-in-out;
    -o-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-transition-duration: .33s;
    -o-transition-duration: .33s;
    transition-duration: .33s;
    -webkit-transition-property: opacity transform;
    -o-transition-property: opacity transform;
    transition-property: opacity transform;
    -webkit-transform: translateY(100%) scale(.7);
    -ms-transform: translateY(100%) scale(.7);
    transform: translateY(100%) scale(.7);
    opacity: 0;
    pointer-events: none;
}

.contacts-form.form-active {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    opacity: 1;
    pointer-events: all;
}

.thanks-form {
    position: absolute;
}

.thanks-form .button {
    width: 100%;
}

.form-title {
    font-family: 'robotobold', sans-serif;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: #000;
    margin: 0;
    margin-bottom: 29px;
}

.input {
    background: #F8F8F8;
    border: none;
    -webkit-box-shadow: inset 0px 3px 10px rgba(199, 199, 199, 0.25);
    box-shadow: inset 0px 3px 10px rgba(199, 199, 199, 0.25);
    border-radius: 5px;
    padding: 18px 20px;
    padding-left: 50px;
    width: 100%;
    font-size: 14px;
    line-height: 28px;
}

.input-name {
    margin-bottom: 17px;
    background-image: url('../img/contacts/user-icon.svg');
    background-repeat: no-repeat;
    background-position: center left 20px;
}

.input-phone {
    margin-bottom: 17px;
    background-image: url('../img/contacts/phone-icon.svg');
    background-repeat: no-repeat;
    background-position: center left 20px;
}

.form-button {
    width: 100%;
}

.contacts-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 70px;
    position: relative;
}

.contacts-text {
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
}

.contacts-data {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.contacts-phone,
.contacts-mail {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    margin-bottom: 53px;
}

.text-message {
    resize: none;
    margin-bottom: 20px;
    margin-bottom: 17px;
    background-image: url('../img/sliders/slide-icon/feedback-icon.svg');
    background-repeat: no-repeat;
    background-position: center left 10px;
}

.contacts-social {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
}
.contacts-title {
    font-family: 'robotobold', sans-serif;
    font-size: 24px;
    line-height: 28px;
    margin: 0;
    margin-bottom: 15px;
}

.contacts-link {
    -webkit-text-decoration: transparent;
    text-decoration: transparent;
    color: inherit;
    margin-right: 37px;
    -webkit-transition-duration: .5s;
    -o-transition-duration: .5s;
    transition-duration: .5s;
}

.contacts-link:last-child {
    margin-right: 0;
}

.contacts-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: #FFBB01;
}

.contacts-policy {
    display: block;
    font-size: 15px;
    line-height: 18px;
    color: #a5a5a5;
    text-align: center;
}

.spin-loader {
    display: none;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 30px;
    top: 9px;
}

.spin-loader::after {
    content: " ";
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    -webkit-animation: spin-loader 1.2s linear infinite;
    animation: spin-loader 1.2s linear infinite;
}

.form-button:hover .spin-loader::after {
    border: 6px solid #B68500;
    border-color: #B68500 transparent #B68500 transparent;
}

@-webkit-keyframes spin-loader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin-loader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    to {
        -webkit-transform:rotate(1turn);
        transform:rotate(1turn);
    }
}

@keyframes rotate {
    to {
        -webkit-transform:rotate(1turn);
        transform:rotate(1turn);
    }
}
  
@-webkit-keyframes uprise {
    from {
      top: 100%; 
    }
    to {
      top: 0; 
    } 
}
  
@keyframes uprise {
    from {
      top: 100%; 
    }
    to {
      top: 0; 
    } 
}

@-webkit-keyframes jump {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    75% {
        -webkit-transform: translateY(-25px);
        transform: translateY(-25px);
    } 
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes jump {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    75% {
        -webkit-transform: translateY(-25px);
        transform: translateY(-25px);
    } 
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
/* responsive */
@media (max-width: 1100px) {
    .hero-avatar {
        width: 300px;
        height: 300px;
        border-width: 10px;
    }
}

@media (max-width: 836px) {
    .hero-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .hero-description {
        text-align: left;
    }
    .hero-avatar {
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
        width: 300px;
        height: 300px;
        border-width: 10px;
        margin-bottom: 17px;
    }
    .hero-text {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
        text-align: center;
    }
    .projects-slide {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .portfolio-box {
        margin-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .project-image {
        width: 450px;
        height: 285px;
    }
    .project-text {
        margin-top: 30px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .contacts-block {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .contacts-form {
        margin-bottom: 58px;
    }
}
@media (max-width: 564px) {
    .hero {
        padding-top: 20px;
        padding-bottom: 75px;
    }
    .hero-header {
        margin-bottom: 38px;
    }
    .hero-subtitle {
        font-size: 16px;
        line-height: 27px;
        margin-bottom: 5px;
    }
    .hero-avatar {
        width: 250px;
        height: 250px;
        border-width: 4px;
        background-size: 100%;
    }
    .social-link {
        margin-left: 10px;
    }
    .hero-title {
        font-size: 34px;
        line-height: 38px;
    }
    .hero-description {
        font-size: 14px;
        line-height: 140%;
    }
    .button {
        width: 100%;
    }
    .section {
        padding: 30px 0;
    }
    .section-title {
        font-size: 19px;
        line-height: 22px;
        margin-bottom: 60px;
    }
    .features-item {
        margin-bottom: 30px;
    }
    .features-title {
        font-size: 18px;
        line-height: 28px;
    }
    .features-text {
        font-size: 14px;
        line-height: 28px;
    }
    .project-title {
        font-size: 18px;
        line-height: 150%;
    }
    .project-time, 
    .project-cost,
    .project-feedback {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    .project-paragraph {
        font-size: 14px;
    }
    .projects-pagination {
        margin-top: 0;
    }
    .contacts-form {
        padding: 40px 19px;
    }
    .form-title {
        font-size: 15px;
        line-height: 140%;
    }
    .form-button {
        font-size: 10px;
    }
    .contacts-phone,
    .contacts-mail {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    .contacts-title {
        font-size: 18px;
        line-height: 21px;
    }
    .contacts-link {
        display: block;
        font-size: 14px;
        line-height: 16px;
        margin-bottom: 13px;
    }
    .contacts-block {
        margin-bottom: 20px;
    }
}
@media (max-width: 474px) {
    .project-image {
        width: 350px;
        height: 250px;
    }
}