:root {
    --color-fg-default: #222229;
    --color-fg-soft: #6a6e7e;
    --color-bg: #ffffff;
    --color-stroke: #D7D7E0;
    --color-fg-accent: #dead70;

    --color-btn-bg: var(--color-fg-accent);
    --color-btn-bg-hover: var(--color-fg-default);
    --color-btn-on: #fff;
    --color-btn-on-hover: #fff;
}

.txt-style-cond {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    text-transform: uppercase;
    line-height: 100%;
}

.btn {
    display: flex;
    width: 300px;
    height: 80px;
    justify-content: center;
    align-items: center;
    font-family: 'Cormorant Garamond';
    font-style: italic;
    line-height: 100%;
    font-size: 24px;
    line-height: 24px;
    font-weight: 400;
    color: var(--color-fg-default);
    border: 1px solid var(--color-fg-accent);
    transition: all .2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    color: var(--color-btn-on-hover);
    background-color: var(--color-btn-bg-hover);
    border: var(--color-fg-accent);
    transition: all .2s ease-in-out;
}

.nav__link {
    font-size: 32px;
    color: var(--color-fg-default);
    transition: all .2s ease-in-out;
}

.nav__link:hover {
    color: var(--color-fg-accent);
    transition: all .2s ease-in-out;
}

body {
    background-color: var(--color-bg);
    color: var(--color-fg-default);
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    line-height: 24px;
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    display: grid;
    gap: 64px;
    grid-template-columns:  minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    margin: 84px 64px;
}   

/* H2 DECOR */

.title-decor__h2 {
    font-size: 64px;
    text-shadow:
    -1px -1px 0 var(--color-stroke),
     1px -1px 0 var(--color-stroke),
    -1px  1px 0 var(--color-stroke),
     1px  1px 0 var(--color-stroke);
    color: var(--color-bg);
}

.title-decor__h2--span {
    font-size: 64px;
    text-shadow: none;
    color: var(--color-fg-default);
}

.title-decor {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: 1 / span 5;
    justify-content: center;
    align-items: center;
    height: 320px;
}

.title-decor__row {
    display: flex;
    flex-direction: row;
    max-width: fit-content;
    width: fit-content;
    margin: auto;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--color-stroke);
    background-color: var(--color-bg);
    position: absolute;
}

.title-decor__row--pre {
    transform: rotate(6deg);
    z-index: 1;
}

.title-decor__row--sec {
    transform: rotate(-6deg);
    z-index: -1;
}


/* HEADER */

.header {
    display: flex;
    flex-direction: row;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-stroke);
    background-color: var(--color-bg);
}

/* 
.header--mob {
    display: none;
} */

.label--descript {
    width: 100%;
    justify-content: space-between;
    text-shadow:
    -1px -1px 0 var(--color-stroke),
     1px -1px 0 var(--color-stroke),
    -1px  1px 0 var(--color-stroke),
     1px  1px 0 var(--color-stroke);
    color: var(--color-bg);
}

.label {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0px 64px;
    width: fit-content;
    height: 100%;
    align-self: stretch;
    font-size: 48px;
    line-height: 48px;
}


/* MAIN */

.main .container {
    position: relative;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
}

.main__title {
    grid-column: 2;
    width: 678px;
    z-index: 1;
    padding-top: 400px;
}

.main__pretitle {
    font-size: 40px;
    line-height: 48px;
}

.h1 {
    font-size: 84px;
    line-height: 84px;
}

.main__content {
    display: flex;
    grid-column: 3;
    width: 678px;
    flex-direction: column;
    gap: 48px;
}

.main__avatar {
    height: fit-content;
    border: 1px solid var(--color-stroke);
    border-radius: 100%;
}

.main__content-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main__text {
    max-width: 480px;
    font-family: 'Roboto Flex';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-fg-soft);
}

.main__buttons {
    display: flex;
    z-index: 4;
    gap: 16px;
}

.main__bg {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    z-index: -1;
}

.main__bg__text {
    text-shadow:
    -1px -1px 0 var(--color-stroke),
     1px -1px 0 var(--color-stroke),
    -1px  1px 0 var(--color-stroke),
     1px  1px 0 var(--color-stroke);
    font-size: 240px;
    color: var(--color-bg);
}

.sas {
    text-align: end;
}

section {
    overflow: hidden;
}

/* ABOUT */

.about {
    overflow: hidden;
}

.quote {
    grid-column: 1 / span 3;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: -1;
}

.quote__text {
    gap: 24px;
    font-size: 64px;
    text-indent: 128px;
    color: var(--color-fg-accent);
}

.quote__text--span {
    color: var(--color-fg-accent);
}

.block-decor__text {
    position: absolute;
    font-size: 640px;
    text-shadow:
    -1px -1px 0 var(--color-stroke),
     1px -1px 0 var(--color-stroke),
    -1px  1px 0 var(--color-stroke),
     1px  1px 0 var(--color-stroke);
    color: var(--color-bg);
    z-index: -2;
}

.about__content {
    grid-column: 3 / span 2;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about__title {
    font-size: 32px;
    color: var(--color-fg-soft);
}

.about__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.about__item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about__item__title {
    font-size: 48px;
}

.about__item__text {
    color: var(--color-fg-soft);
}


/* EXP */

.about__content {
    grid-column: 3 / span 2;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about__title {
    font-size: 32px;
    color: var(--color-fg-soft);
}

.about__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.about__item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about__item__title {
    font-size: 48px;
}

.about__item__text {
    color: var(--color-fg-soft);
}

/* EXP */

.exp {
    overflow: hidden;
}

.exp__content {
    grid-column: 2 / span 3;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.exp__list {
    display: flex;
    flex-direction: column;
}

.card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px;
}

.card__years {
    font-size: 48px;
    display: flex;
    justify-content: end;
    padding: 0 32px;
    border-right: 1px solid var(--color-stroke);
    color: var(--color-fg-soft);
}

.card__body {
    grid-column: 2 / span 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 64px;
}

.card__title {
    font-size: 32px;
}

.card__descr {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card__par {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
}

.card__type {
    color: var(--color-fg-soft);
}


/* MYCOMP */

.about__item__text strong {
    color: var(--color-fg-accent);
}

.mycomp__list {
    display: wrap;
}

.mycomp__item {
    font-size: 32px;
}



/* WORKS */

.works {
    overflow: hidden;
}

.works__row {
    display: flex;
    gap: 64px;
}

.works__row--odd {
    grid-column: 2 / span 4;
}

.works__row--even {
    grid-column: 1 / span 4;
}

.project {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--color-fg-default);
}

.project:hover {
    transition: all .2s ease-in-out;
    cursor: pointer;
}


.project__cover {
    height: 480px;
    border: 1px solid var(--color-stroke);
    overflow: hidden;
}


.project:hover .project__img {
    transform: scale(1.05);
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.project__img {
    display: block;
    width: 100%;
    height: 100%;
    transition: all .3s ease-in-out;
    object-fit: cover;
}

.project__btn {
    font-size: 24px;
    font-weight: 500;
    transition: all .2s ease-in-out;
}

.project__btn:hover {
    color: var(--color-fg-accent);
    transition: all .2s ease-in-out;
    cursor: pointer;
}

.project:hover .project__btn {
    color: var(--color-fg-accent);
    transition: all .2s ease-in-out;
    cursor: pointer;
}




/* FOOTER */

.footer {
    background-color: var(--color-bg);
    padding: 64px 0;
}

.footer__quote__text {
    color: var(--color-fg-default);
}

.footer__content {
    grid-column: 3 / span 2;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer__quote {
    z-index: 1;
}

.footer__buttons {
    display: flex;
    gap: 16px;
}

@media (max-width: 480px) { 
    .container {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 24px;
    }

    .title-decor {
        height: 240px;
    }

    .title-decor__row {
        gap: 16px;
    }

    .title-decor__h2 {
        font-size: 32px;
    }

    .title-decor__h2--span {
        font-size: 32px;
    }

    .quote {
        height: fit-content;
    }

    .block-decor__text {
        display: none;
    }

    .header {
        display: flex;
        flex-direction: row;
        font-size: 24px;
        height: 80px;
        align-items: center;
        border: none;
    }

    .label {
        padding: 0 24px;
    }

    .label--descript {
        font-size: 24px;
        text-align: right;
        line-height: 24px;
    }

    .main__title {
        width: 100%;
        position: absolute;
        top: 360px;
        padding: 0;
    }

    .main__avatar {
        height: 400px;
        object-fit: cover;
        position: relative;
    }

    .main__pretitle {
        font-size: 16px;
        line-height: 24px;
    }

    .h1 {
        font-size: 56px;
        line-height: 56px;
    }

    .main__bg__text {
        display: none;
    }

    .main__content {
        width: 100%;
        gap: 120px;
    }

    .main__buttons {
        flex-direction: column;
    }

    .main__btn {
        width: 100%;
    }

    .about__content {
        gap: 24px;
    }

    .quote__text {
        gap: 24px;
        font-size: 36px;
        text-indent: 0;
    }

    .about__list {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .about__item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .about__item__title {
        font-size: 48px;
    }



    .card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .card__years {
        font-size: 32px;
        display: flex;
        justify-content: start;
        padding: 0;
        border-right: none;
        padding-top: 16px;
        border-top: 1px solid var(--color-stroke);
    }
    
    .card__body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-bottom: 24px;
    }
    
    .card__title {
        font-size: 32px;
    }
    
    .card__descr {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .card__par {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .card__type {
        color: var(--color-fg-soft);
    }

    .works__row {
        flex-direction: column;
        gap: 24px;
    }

    .project {
        gap: 8px;
    }

    .project__cover {
        height: 320px;
    }
    
    .project__btn {
        font-size: 14px;
        line-height: 20px;
    }
}