html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    color: #161616;
    font-weight: 400;
    max-width: 1320px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    padding: 0 20px;

    @media screen and (max-width: 960px) {
        padding: 0 24px;
    }
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #161616;
}

button {
    cursor: pointer;
}

p {
    margin: 0;
    font-size: 16px;

    @media screen and (max-width: 960px) {
        font-size: 20px;
    }
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 500;
}

h1 {
    font-size: 48px;

    @media screen and (max-width: 960px) {
        font-size: 24px;
    }
}

h2 {
    font-size: 40px;

    @media screen and (max-width: 960px) {
        font-size: 14px;
        color: #723CA1;
    }
}

h3 {
    font-size: 36px;

    @media screen and (max-width: 960px) {
        font-size: 20px;
    }
}

h4 {
    font-size: 32px;

    @media screen and (max-width: 960px) {
        font-size: 16px;
    }
}

.text {
    font-size: 24px;
    font-weight: 400;

    @media screen and (max-width: 960px) {
        font-size: 16px;
    }
}

.text0 {
    font-size: 20px;
    font-weight: 400;

    @media screen and (max-width: 960px) {
        font-size: 16px;
    }
}

.text1 {
    font-size: 16px;
    font-weight: 500;
}

.textWrap {
    white-space: pre-line;
}

.block {
    display: block;
}

.bold {
    font-weight: 500;
}

.header {
    margin-top: 28px;
    background-color: #E7DCF4;
    border-radius: 40px;

    @media screen and (max-width: 960px) {
        background-color: transparent;
    }
}

.headerContent {
    padding: 28px;
    display: flex;
    align-items: center;

    @media screen and (max-width: 960px) {
        gap: 20px;
        padding: 0;
    }
}

.headerContentLeft {
    display: flex;
    align-items: center;
    gap: 12px;
}

.headerContentCenter {
    margin: auto;
    display: flex;
    gap: 40px;

    @media screen and (max-width: 960px) {
        display: none;
    }
}

.headerContentRight {
    margin-right: 0;
}

.menuWrapper {
    margin-left: auto;
    display: none;

    @media screen and (max-width: 960px) {
        display: block;
    }
}

#menuToggle {
    display: none;
}

.burger {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-left: auto;

    @media screen and (max-width: 960px) {
        display: block;
    }
}

.burger span, .burger::before, .burger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: black;
    left: 0;
    transition: 0.3s;
}

.burger span {
    top: 50%;
    transform: translateY(-50%);
}

.burger::before {
    top: 0;
}

.burger::after {
    bottom: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);

    display: flex;
    justify-content: flex-end;
    align-items: flex-start;

    padding: 100px 30px;

    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 1000;

}

.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
    transform: translateY(20px);
    transition: 0.3s ease;
}

#menuToggle:checked ~ .overlay {
    opacity: 1;
    pointer-events: all;
}

#menuToggle:checked ~ .overlay .menu {
    transform: translateY(0);
}

#menuToggle:checked + .burger span {
    opacity: 0;
}

#menuToggle:checked + .burger::before {
    transform: rotate(45deg);
    top: 10px;
}

#menuToggle:checked + .burger::after {
    transform: rotate(-45deg);
    top: 10px;
}

.resumeBtn {
    border-radius: 20px;
    background-color: #F9F5FF;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;

    @media screen and (max-width: 960px) {
        background-color: transparent;
        padding: 0;
    }
}

.resumeBtnArrow {
    margin-left: 10px;
}

main {
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    gap: 132px;

    @media screen and (max-width: 960px) {
        margin-top: 52px;
        gap: 100px;
    }
}

.mainMobileContent {
    display: none;

    @media screen and (max-width: 960px) {
        display: flex;
        flex-direction: column;
        gap: 20px;
        order: 1;
    }
}

.mainContent {
    display: flex;
    gap: 20px;

    @media screen and (max-width: 960px) {
        flex-direction: column-reverse;
        align-items: center;
        gap: 28px;
    }
}

.heroContent {
    flex-grow: 1;

    @media screen and (max-width: 960px) {
        width: 100%;
    }
}

.heroContentTitle {
    max-width: 522px;
}

.heroBlockContent {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.heroBlockText {
    line-height: 160%;
    max-width: 460px;
}

.heroBlockBtn {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 16px;
    background: none;
    border: none;

    @media screen and (max-width: 960px) {
        margin-top: 0;
        justify-content: center;
        background: #8362B0;
        border-radius: 20px;
        color: #ffffff;
        padding: 16px;
    }
}

.heroBlockBtnImg {
    display: inline;
}

.heroBlockImgContainer {
    position: relative;
    align-self: start;

    @media screen and (max-width: 960px) {
        align-self: auto;
    }
}

.heroImg {
    width: 100%;
    object-fit: contain;
    height: auto;
}

.heroBlockCircle {
    position: absolute;
    bottom: -12px;
    left: -12px;
}

.projects {
    margin-top: 28px;
    display: grid;
    grid-template-areas: 
    "a b"
    "a c";
    grid-gap: 20px;

    @media screen and (max-width: 960px) {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

.projectsTitle {
    display: flex;
    justify-content: space-between;

    @media screen and (max-width: 960px) {
        flex-direction: column;
    }
}

.projectsFavourite {
    margin-top: 28px;
    display: none;

    @media screen and (max-width: 960px) {
        display: block;
    }
}

.projectsMobileBtn {
    display: none;
    margin-top: 28px;

    @media screen and (max-width: 960px) {
        display: block;
    }
}

.projectCard {
    border-radius: 20px;
    overflow: hidden;

    @media screen and (max-width: 960px) {
        display: grid;
        grid-template-columns: 285fr 345fr;
        align-items: center;
    }
}

.projectA {
    grid-area: a;
    background-color: #FDF2F7;

    @media screen and (max-width: 960px) {
        background-color: #FFE4F0;
    }
}

.projectAImg {
    width: 100%;

    @media screen and (max-width: 960px) {
        height: 134px;
    }
}

.dariTexts {
    margin-top: 20px;
    margin-left: 28px;

    @media screen and (max-width: 960px) {
        margin: 28px 12px 28px 0;
    }
}

.dariTitle {
    font-size: 36px;

    @media screen and (max-width: 960px) {
        font-size: 16px;
    }
}

.dariText {
    margin-top: 12px;
}

.dariTextMobile {
    margin-top: 12px;
}

.dariLink {
    display: block;
    margin-top: 32px;
    color: #723CA1;

    @media screen and (max-width: 960px) {
        margin-top: 16px;
    }
}

.projectCardLittle {
    display: grid;
    grid-template-columns: 285fr 345fr;
    overflow: hidden;

    @media screen and (max-width: 960px) {
        align-items: center;
    }
}

.projectB {
    background-color: #EFEEEE;
}

.cardLink {
    margin-top: auto;
    color: #723CA1;

    @media screen and (max-width: 960px) {
        margin-top: 16px;
    }
}

.cardLinkArrow {
    margin-left: 12px;

    @media screen and (max-width: 960px) {
        margin-left: 4px;
    }
}

.projectBImg {
    padding: 20px 32px;
    background: #E8E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    @media screen and (max-width: 960px) {
        padding: 20px 24px 24px 12px;
        background: transparent;
        height: 110px;
    }
}

.projectCardLittleText {
    margin-top: 12px;
}

.projectCardLittleImage {
    max-width: 100%;
    object-fit: contain;
}

.projectCardLittleTextContainter {
    margin: 60px 20px;
    display: flex;
    flex-direction: column;

    @media screen and (max-width: 960px) {
        margin: 28px 12px 28px 0;
    }
}

.projectC {
    background-color: #EAF2FF;
}

.projectCImg {
    padding: 44px 28px;
    background: #DBE9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    @media screen and (max-width: 960px) {
        padding: 32px 10px 32px 20px;
        background: transparent;
        height: 110px;
    }
}

.aboutContent {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;

    @media screen and (max-width: 960px) {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 28px;
    }
}

.aboutImg {
    min-width: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.aboutSubtitle {
    color: #723CA1;
}

.aboutLine {
    margin: 34px 0 52px;
}

.aboutTextContainer {
    display: flex;
    flex-direction: column;
    gap: 48px;

    @media screen and (max-width: 960px) {
        gap: 20px;
    }
}

.aboutTextTitle {
    line-height: 150%;
    font-weight: 500;

    @media screen and (max-width: 960px) {
        font-weight: 400;
    }
}

.aboutTextSubtitle {
    line-height: 150%;
    max-width: 600px;
}

.line::before {
    content: '';
    display: block;
    border-bottom: 1px solid #723CA157;

    @media screen and (max-width: 960px) {
        max-width: 68px;
    }
}

footer {
    margin-top: 200px;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 52px 0;

    @media screen and (max-width: 960px) {
        margin-top: 108px;
        flex-direction: column;
        gap: 24px;
        padding: 36px 0 20px 0;
    }
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;

    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    background-color: #E7DCF433;
    z-index: -1;
}

.footerSubtitle {
    margin-top: 4px;
    color: #977BB0;

    @media screen and (max-width: 960px) {
        font-size: 14px;
    }
}

.footerName {
    display: flex;
    flex-direction: column;

    @media screen and (max-width: 960px) {
        flex-direction: row;
    }
}

.footerCreatorText {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;

    @media screen and (max-width: 960px) {
        margin-top: 0;
        margin-left: auto;
    }
}

.footerContacts {
    display: flex;
    flex-direction: column;
    justify-content: stretch;

    @media screen and (max-width: 960px) {
        margin-top: 12px;
        flex-direction: row;
        justify-content: space-between;
    }
}

.contactLink {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #723CA12E;
    padding: 12px;
    gap: 84px;

    @media screen and (max-width: 960px) {
        border-bottom: 0;
        padding: 0;
        gap: 8px;
    }
}

.footerLink {
    margin-left: auto;
}

.footerText {
    text-align: center;

    @media screen and (max-width: 960px) {
        margin-top: 24px;
        text-align: start;
    }
}

.showOnlyDesktop {
    @media screen and (max-width: 960px) {
        display: none;
    }
}

.showOnlyMobile {
    display: none;

    @media screen and (max-width: 960px) {
        display: block;
    }
}