/* App Fonts */

@font-face {
    font-family: "TTNorms";
    src: url("../fonts/TTNorms-Regular.otf") format("openType");
}
@font-face {
    font-family: "TTNorms Medium";
    src: url("../fonts/TTNorms-Medium.otf") format("openType");
}
@font-face {
    font-family: "TTNorms Light";
    src: url("../fonts/TTNorms-Light.otf") format("openType");
}

@font-face {
    font-family: "Times Roman Italic";
    src: url("../fonts/Times-new-roman-italic.ttf") format("truetype");
}

/* Normalize Css */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

img {
    border-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0; /* 3 */
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

button, 
input {
    border: none;
    outline: none;
}
/* Start Project */

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: "TTNorms";
}

.container {
    max-width: 80rem;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Header Start*/

.header__top {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__nav__top {
    display: flex;
    align-items: center;
}

.header__nav__img {
    margin-right: 2rem;
}

/* .header__list {
    display: none;
    position: fixed;
    top: 0;
    left: -256px;
    bottom: 0;
    background: #3f70e1;
    width: 16rem;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: 0.3s all;
} */

.header__list {
    list-style: none;
    padding-left: 0;
    display: flex;
   margin: 0;
}

.list__links {
    text-decoration: none;
    color: #081D43;
    padding: 0 1rem;
}
.header__btn {
    text-decoration: none;
    background-color: #0050C8;
    color: #FFFFFF;
    padding: 0.8rem 1.5em;
    border-radius: 0.3rem;
}
.header__icon {
    font-size: 1.8rem;
    display: none;
    cursor: pointer;
}
.buttom {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}
.header-buttom__left {
    flex-basis: 50%;
}
.buttom__wrapper {
    max-width: 28rem;
}
.header-buttom__right {
    flex-basis: 50%;
}
.buttom-header__title {
    font-family: "TTNorms Medium";
    font-weight: normal;
    color: #081D43;
}
.buttom-header__text {
    line-height: 1.8rem;
    color: #6C7890;
}
.header-buttom__links {
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
}
/* .header-buttom__links:first-child {
    background-color: #87BC25;
} */
.buttom__links:nth-child(1) {
    background-color: #87BC25;
}
.buttom__links {
    background-color: #0050c8;
    padding: 0.8rem 1.5em;
    color: #fff;
    border-radius: 0.3rem;
    text-decoration: none;
    margin-right: 0.8rem;
    display: block;
    width: 10rem;
    text-align: center;
}
.buttom__liks {
    display: block;
    margin-right: 0.8rem;
    padding: 0.8rem 1.5em;
    width: 10rem;
    text-align: center;
}
.header-buttom__img {
    width: 100%;
}
/* Header End*/
/* Main Start*/
.main {
    padding-top: 3rem;
}
/* Works Section*/
.works {
    text-align: center;
    padding: 5rem 0px;
}
.section__text {
    color: #6C7890;
    margin-bottom: 0;
    text-transform: uppercase;
    margin-top: 0;
}
.section__title {
    color: #081D43;
    font-family: "TTNorms Medium";
    margin-top: 0.8rem;
    font-weight: normal;
}
.works__content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 3rem 0;
}
.works-content__item {
    flex-basis: 16rem;
    flex-shrink: 0;
}
.works-content__title {
    color: #081D43;
}
.works-content__text {
    color: #707070;
    line-height: 1.8rem;
}
.works-content__img {
    max-width: 31rem;
    margin: 0 auto;
}
.works-content__image {
    width: 100%;
}
/* Person Comments Section*/
.person__comments {
    background-color: #2F5BEA;
    text-align: center;
    color: #fff;
    padding: 5rem 0;
}
.person-coments__title {
    font-family: "TTNorms Medium";
    font-weight: normal;
    margin-top: 0;
}

.person-coments__text {
    font-family: "TTNorms Light";
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.8rem;
}
.comments-container {
    max-width: 65rem;
    margin: 3.5rem auto 0 auto;
}
.comments-comments {
    display: flex;
    justify-content: space-around;
}
.commnet {
    background-color: #fff;
    color: #000;
    border-radius: 0.3rem;
    min-height: 18rem;
    flex-basis: 20rem;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.comments-text {
    font-family: "Times Roman Italic";
    color: #7E8085;
    line-height: 1.5rem;
    margin: 0;
    text-align: left;
    padding: 1.2rem;
}
.person__info {
    display: flex;
    align-items: center;
    border-top: 1px solid #E8EBEF;
    padding: 0.8rem 1.2rem;
}
.person-info__text {
    margin: 0 0 0 0.5rem;
}
.companies__ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem 0 0 0;
    list-style: none;
    padding-left: 0;
}
.companies__li {
    display: block;
    margin: 1rem;
}
/* Portfolio Start */
.portfolio {
    text-align: center;
    padding: 5rem 0;
}
.portfolio__images {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.portfolio__content {
    border-radius: 0.3rem;
    flex-basis: 23rem;
    margin-bottom: 2rem;
}
.portfolio-content__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
/* Main End*/
/* Fotter Start*/
.footer-end-of-the-page {
    color: rgb(255, 255, 255);
    background-color: #2C57E4;
    padding: 6.5rem 0px;
}
.top__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-footer__text {
    font-size: 1.6rem;
}
.top-footer__wraper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    flex-basis: 22rem;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    border-radius: 0.3rem;
}
.footer__input {
    width: 100%;
}
.footer__button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(47, 91, 234);
    padding: 1rem 1.5rem;
    border-radius: 0.3rem;
}
.buttom-footer__copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.copyright__text {
    color: #6C7890;
    font-size: 0.8rem;
    padding: 1rem 0px;
}
/* Fotter End*/
/* Project Responsive */

@media only screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .portfolio__content {
        flex-basis: 28rem;
    }
    .top-footer__text {
        max-width: 28rem;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .header__btn {
        display: none;
    }
    .buttom {
        flex-direction: column-reverse;
        margin-top: 3rem;
    }
    .header-buttom__right {
        flex-basis: 100%;
    } 
    .buttom__wrapper {
        max-width: 100%;
    }
    .header-buttom__links {
        flex-wrap: wrap;
    }
    .buttom__links {
        margin-bottom: 1rem;
    }
    .companies__ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .comments-comments {
        flex-wrap: wrap;
    }
    .commnet {
        margin: 0 0 2rem 0;
    }
    .portfolio__content {
        flex-basis: 21rem;
    }
    .top-footer__text {
        max-width: 20rem;
    }
}

@media only screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    .header__list {
        position: fixed;
        top: 0;
        left: -256px;
        bottom: 0;
        background: #3f70e1;
        width: 16rem;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: 0.3s all;
    }
    .header__icon {
        display: block;
    }
    .list__items {
        margin-bottom: 2rem;
        font-size: 1.2rem;
    }
    .list__links {
        color: #fff;
    }
    .commnet {
        flex-basis: 15rem;
    }
    .portfolio__content {
        flex-basis: 100%;
    }
    .top__footer {
        flex-direction: column;
    }
    .top-footer__text {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .top-footer__wraper {
        flex-basis: auto;
        width: 100%;
    }
}

@media only screen and (max-width: 576px) {
    * {
        cursor: default !important;
    }
    .container {
        max-width: 100%;
    }
    .works-content__item {
        flex-basis: 14rem;
    }
    .commnet {
        flex-basis: 100%;
        margin: 0 2rem 2rem 2rem;
    }
}
