/* 1. Базовые настройки и сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цвета */
    --bg-blue: #EBF1FD;
    --text: #333333;
    --text-grey: #666666;
    --secondary: #7EA8FF;
    --bg-card: ##F6F2F2;
    --stroke-card: #F1DFDF;
    
    /* Шрифты */
    --font-primary: 'Manrope';
    --font-size-body: 16px;
    --font-size-h3: 18px;
    --font-size-h2: 20px;
    --font-size-h1: 34px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-blue);
    color: var(--text);
    line-height: normal;    
    justify-items: center;
}

/* 2. Основной контейнер */
.container {
    margin: 0 auto;
    position: relative;
}

/* 3. Навигация */
.header {
    display: flex;
    width: 1440px;
    padding: 20px 40px;
    justify-content: space-between;
    align-items: center;
}

.header__sun {
    width: 55px;
    height: 56px;
    flex-shrink: 0;
    aspect-ratio: 55/56;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 500px;
    top: 32px;
}

.nav__link {
    display: flex;
    text-decoration: none;
    color: var(--text);
    flex-direction: column;
    align-items: flex-start;
    height: 30px;
}

.nav__link:hover {
    font-weight: 700;
}

.nav__separator {
    color: #999;
    display: flex;
    height: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* 4. Главная секция (герой) */
.main {
    width: 1440px;
    height: 127px;
    margin: 60px 0 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.main_block1 {
    display: flex;
    width: 440px;
    padding: 0 40px;
    height: 121px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.main_block1__content {
    display: flex;
    height: 89px;
    align-items: flex-start;
    gap: 78px;
    flex-shrink: 0;
    align-self: stretch;
}
.main_block1__greeting {
    font-size: var(--font-size-h3);
    color: var(--text_grey, #6F6F6F);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    align-self: stretch;
}

.main_block1__title {
    font-size: var(--font-size-h1);
    align-self: stretch;
    font-family: 'Unbounded';
    color: var(--secondary, #7EA8FF);
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 44.2px */
}

.main__description {
    font-size: var(--font-size-h3);
    width: 440px;
    height: 83px;
    flex-shrink: 0;
    margin-top: 38px;
    margin-bottom: 6px;
    color: var(--text_grey, #6F6F6F);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: absolute;
    left: 500px;
}



/* 5. Контакты */
.contacts {
    display: flex;
    position: absolute;
    right: 89px;
    width: 235px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.vectors{
    width: 270px;
    height: 107px;
    position: absolute;
    left: -19px;
    top: -9px;
    pointer-events: none;
}

.vector_TR{
    top: 0;
    right: 0;
    position: absolute;
}

.vector_BL{
    bottom: 0;
    left: 0;
    position: absolute;
}

.vector_BR{
    bottom: 0;
    right: 0;
    position: absolute;
}

.contacts__link {
    color: var(--text-grey);
    text-decoration: none;
    font-size: var(--font-size-h3);
    transition: color 0.3s ease;
    font-style: normal;
}

.contacts__link:hover {
    color: var(--secondary);
}

/* 6. Секция проектов */
.projects {
    margin-bottom: 80px;
}

.projects__title {
    display: flex;
    font-size: var(--font-size-h2);
    font-weight: 500;
    line-height: 150%; /* 30px */
    margin: 220px 0px 0px 500px;
    align-items: center;
    gap: 16px;
}

/* 7. Карточка проекта */
.project-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1410px;
    height: 458px;
    flex-shrink: 0;
    border-radius: 40px;
    border: 1px solid var(--stroke_card, #F1DFDF);
    background: var(--bg_card, #F6F2F2);
    margin: 32px 0px 0px 20px;
    gap: 20px;
}

.project-card__image {
    position: absolute;
    left: 500px;
    width: 556px;
    height: 400px;
    flex-shrink: 0;
    aspect-ratio: 139/100;
    border-radius: 20px;
    margin-top: 28px;
    transition: transform .3s;
}
.project-card__images:hover .project-card__image{
    transform: scale(1.025);
}

.project-card_arrow {
    position: absolute;
    left: 433px;
    bottom:28px;
    transition: transform .3s;
    transform-origin: left bottom;
}
.project-card__images:hover .project-card_arrow {
    transform: scale(1.35);
}

.project-card__content {
    display: flex;
    width: 253px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0px 0px 20px;
}

.project-card__name {
    color: var(--text);
    /* h3 */
    font-family: Manrope;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.project-card__tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag {
    /* Настройки для самого тега */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tag .tag-text {
    z-index: 2; /* Текст поверх картинки */    
    position: absolute;
}

.tag img {
    z-index: 1; /* Картинка под текстом */
}

.project-card__description {
    position: absolute;
    left: 1074px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 28px 0px 0px 0px;
    width: 327px;
    height: 400px;
    align-items: flex-start;
    flex-shrink: 0;
}

.bg_vector{
    position: absolute;
    top: 350px;
    z-index: -10;
}
/* 8. Секция "Обо мне" */
.about {
    padding: 60px 0;
    text-align: center;
}