/* Шрифты сайта */
@font-face {
    font-family: Montserrat;
    src: url("assets/Montserrat.ttf");
}
@font-face {
    font-family: Klyakson;
    src: url("assets/Klyakson.ttf");
}

/* Общий вид страницы */
body {
    margin: 0;
    background: white;
    color: #252525;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #dc4825;
}
a:active {
    color: #a12c13;
}
p {
    margin: 0 0 18px;
}
h1, h2 {
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
}
h1 {
    font-size: 96px;
    letter-spacing: -5px;
}
h2 {
    font-size: 40px;
    letter-spacing: -1px;
}
em {
    font-family: Klyakson, sans-serif;
    font-style: normal;
    font-weight: normal;
    color: #ea5029;
}
main, footer, header {
    width: 1000px;
    margin: auto;
}
.small {
    font-size: 10px;
    letter-spacing: 1px;
}
.orange {
    color: #ea5029;
}
.button {
    display: inline-block;
    background: #ed5129;
    color: white;
    padding: 16px 26px;
    border-radius: 6px;
    font-size: 12px;
}
.button:hover {
    background: #cc3c1a;
    color: white;
}
.dark {
    background: #242424;
}
.text-link {
    border-bottom: 1px solid #bdbdbd;
    padding-bottom: 4px;
    font-size: 12px;
}

/* Шапка */
header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff0e9;
    border-radius: 12px;
    padding: 16px 28px;
    margin-top: 24px;
}
.logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -3px;
}
.logo span {
    display: inline-block;
    font-size: 20px;
    margin-left: 7px;
    color: #ed5129;
    vertical-align: top;
}
nav a {
    margin-left: 30px;
    font-size: 12px;
}
nav .active {
    border-bottom: 1px solid #252525;
    padding-bottom: 5px;
}

/* Главная страница */
.intro {
    position: relative;
    padding: 55px 0 45px;
}
.intro .small {
    margin-bottom: 30px;
}
.heart {
    position: absolute;
    top: 105px;
    right: 45px;
    font-size: 150px;
    line-height: 1;
    color: #ed5129;
    transform: rotate(10deg);
}
.intro-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.intro-bottom p {
    margin: 0;
}
.about {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 55px 0;
    border-top: 1px solid #ededed;
}
.portrait {
    width: 320px;
    height: 320px;
    object-fit: cover;
}
.about h2 {
    margin-bottom: 22px;
}
.about .small {
    margin-bottom: 20px;
}
.about p {
    font-size: 13px;
}
.interests {
    display: flex;
    align-items: center;
    gap: 70px;
    border-top: 1px solid #ededed;
    padding: 45px 0 60px;
}
.interests > div:first-child {
    width: 320px;
    flex-shrink: 0;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tags span {
    border: 1px solid #dedede;
    border-radius: 25px;
    padding: 9px 18px;
    font-size: 12px;
}
.contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: #ed5129;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 35px;
}
.contact h2 {
    font-size: 46px;
    color: white;
}
.contact em {
    color: white;
}
.contact .small {
    color: white;
}

/* Портфолио: картинки одного размера, не больше 220 пикселей */
.work-heading {
    padding: 55px 0 35px;
}
.work-heading h1 {
    font-size: 76px;
}
.gallery {
    width: 100%;
    border-spacing: 0 25px;
    table-layout: fixed;
}
.gallery td {
    width: 50%;
    padding: 0 20px 25px 0;
    vertical-align: top;
}
.gallery td + td {
    padding-left: 20px;
    padding-right: 0;
}
.project-pictures {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f3f3f3;
    margin-bottom: 20px;
}
.project-pictures a {
    width: 50%;
}
.project-pictures img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.project-pictures.camellia {
    background: #f3e8e0;
}
.project-pictures.atom {
    background: #242727;
}
.project-pictures.tuzhi {
    background: #f3e9c5;
}
.project-pictures.antifate {
    background: #ece7df;
}
.project-pictures.wind {
    background: #e4e8df;
}
.gallery .small {
    margin-bottom: 10px;
    color: #777;
    font-size: 9px;
}
.gallery h2 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.gallery td > p:not(.small) {
    font-size: 12px;
    color: #646464;
}
.project-details {
    font-size: 11px;
}
summary {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.case {
    width: 100%;
    margin: 18px 0 10px;
}
.next-project {
    box-sizing: border-box;
    padding: 35px !important;
    background: #fff0e9;
    border-radius: 8px;
}
.next-project > span {
    color: #ed5129;
    font-size: 70px;
}
.next-project h2 {
    margin: 20px 0;
}
footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 35px;
    border-top: 1px solid #ededed;
    font-size: 11px;
    color: #707070;
}
footer p {
    margin: 0;
}

/* Для небольших экранов */
@media (max-width: 1060px) {
    main, footer, header {
    width: 92%;
}
    h1 {
    font-size: 80px;
}
    .about {
    gap: 40px;
}
    .project-pictures img {
    height: 185px;
}
}
@media (max-width: 700px) {
    header {
    padding: 12px 18px;
}
    nav a {
    margin-left: 15px;
    font-size: 10px;
}
    nav a:last-child {
    display: none;
}
    h1, .work-heading h1 {
    font-size: 52px;
    letter-spacing: -3px;
}
    .heart {
    font-size: 45px;
    top: 52px;
    right: 5px;
}
    .intro-bottom {
    gap: 15px;
}
    .intro-bottom p {
    font-size: 11px;
}
    .button {
    padding: 14px 18px;
}
    .about, .interests, .contact {
    display: block;
}
    .portrait {
    margin-bottom: 25px;
    max-width: 100%;
    height: auto;
}
    .tags {
    margin-top: 25px;
}
    .contact .button {
    margin-top: 25px;
}
    .gallery, .gallery tbody, .gallery tr, .gallery td {
    display: block;
    width: 100%;
}
    .gallery td, .gallery td + td {
    padding: 0 0 35px;
}
    .project-pictures img {
    height: 170px;
}
    footer {
    gap: 15px;
    font-size: 9px;
}
}
