@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #24201a;
    color: #f3efe6;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid #c8c793;
    outline-offset: 6px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid #7c679e;
}

.logo {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

nav a {
    font-size: 15px;
}

nav a:hover,
.contacts a:hover {
    color: #c8c793;
}

section {
    margin-bottom: 85px;
    scroll-margin-top: 30px;
}

.hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 25px;
    padding-top: 75px;
}

.eyebrow,
.section-label {
    color: #baa4d3;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 20px;
}

h1,
h3,
.about-title,
.contacts h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
}

h1 {
    margin: 0;
    font-size: clamp(54px, 7.5vw, 98px);
    line-height: 0.98;
    letter-spacing: -2px;
}

h1 span {
    color: #c8c793;
}

.intro {
    max-width: 530px;
    margin: 28px 0;
    font-size: 21px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.button {
    display: inline-block;
    padding: 13px 27px;
    border: 1px solid;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.primary {
    color: #24201a;
    background: #c8c793;
    border-color: #c8c793;
}

.primary:hover {
    background: #e0dfaf;
}

.secondary {
    border-color: #baa4d3;
}

.secondary:hover {
    background: #3f2548;
}

/* Декоративная композиция справа */

.decoration {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 360px;
    justify-self: center;
}

.shape {
    position: absolute;
    width: 65%;
    height: 230px;
    border-radius: 24px;
}

.shape-back {
    top: 5px;
    left: 5%;
    background: #3f2548;
}

.shape-front {
    right: 0;
    bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #35369c;
    color: #c8c793;
    font-size: 75px;
    font-weight: 500;
}

.orbit {
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    height: 155px;
    border: 2px solid #a88dc3;
    border-radius: 50%;
    transform: rotate(-35deg);
}

/* Обо мне */

.about {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 35px;
    align-items: start;
}

.section-label {
    margin: 0 0 28px;
}

.about .section-label {
    padding-top: 12px;
}

.about-title {
    margin: 0;
    font-size: 46px;
    line-height: 1.1;
}

.about p:not(.about-title) {
    margin-bottom: 0;
    font-size: 18px;
}

/* Навыки */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 25px;
    background: #3f2548;
    border-radius: 14px;
}

.card:first-child {
    background: #35369c;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.2;
}

.card p {
    margin: 0;
}

/* Проекты */

.project {
    display: grid;
    grid-template-columns: 65px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 25px 0;
    border-bottom: 1px solid #7c679e;
}

.project-number {
    color: #c8c793;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 46px;
}

.project h3 {
    margin: 0;
    font-size: 36px;
    line-height: 1.2;
}

.project p {
    margin: 8px 0 0;
    color: #d2c9d5;
    font-size: 14px;
}

.tag {
    padding: 4px 12px;
    border-radius: 6px;
    background: #baa4d3;
    color: #24201a;
    font-size: 13px;
}

/* Контакты и нижняя часть страницы */

.contacts {
    margin-bottom: 45px;
}

.contacts h2 {
    margin: 0 0 12px;
    font-size: 58px;
    line-height: 1.1;
}

.contacts a {
    font-size: 22px;
    overflow-wrap: anywhere;
}

footer {
    padding: 20px 0;
    border-top: 1px solid #7c679e;
    color: #d2c9d5;
    font-size: 13px;
}

/* Отображение на небольших экранах */

@media (max-width: 800px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    nav {
        gap: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    .decoration {
        max-width: 320px;
        margin-top: 25px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .project {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }

    .tag {
        grid-column: 2;
        justify-self: start;
    }

    .about-title {
        font-size: 36px;
    }

    .contacts h2 {
        font-size: 44px;
    }

    section {
        margin-bottom: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}

.card:nth-child(3) {
    background: #f3efe6;
    color: #7c679e;
}