:root {
    --light-color: #e8e8ea;
    --dark-color: #17161c;
    --second-color: #dadadc;
}


html, body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Минимальная высота — весь экран */
  justify-content: center;
  align-items: center;
  background-color: var(--second-color);
}

main {
    width: 100%;
    box-shadow: 7px 7px 40px #17161c50;
    position: relative;
    background-color: var(--light-color);
}

ul {
    list-style-type: square;
}

.background-info {
    height: 160px;
    width: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: end;
    overflow: hidden;
}

.background-info .info {
    width: 55%;
    position: absolute;
    color: var(--light-color);
    text-shadow: 4px 4px 20px var(--dark-color);
}

.background-info .info .fio {
    font-size: 2rem;
    font-weight: bold;
}

.background-info .info .profession {
    font-size: 1rem;
}

/* DECORATION */

.icon-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start; /* держит всё по левому краю */
}

.icon-wrapper span {
    height: 1.6rem;
    font-size: 1.6rem;
    color: var(--dark-color);
    font-weight: bold;
}

.icon-wrapper .icon {
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    /* border-radius: 12px 0px 0 0; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon-wrapper .icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.separator {
    height: 2px;
    background-color: var(--dark-color);
    width: 100%;
}

/* TIMELINE */

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin: 10px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
    z-index: 0;
}

.timeline li {
    padding: 10px 0 0 30px;
    position: relative;
    margin: 10px 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--dark-color);
    /* border: 2px solid #000; */
    /* border-radius: 50%; */
    z-index: 1;
}

.timeline li .position {
    font-size: 1.1rem;
    font-weight: bold;
}

.timeline li .dates {
    font-weight: bold;
}

/* IMAGES */
.header-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: opacity(80%);
}

.avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 12px;
}


/* FLEX COLUMN */

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.half-content {
    padding: 20px;
    margin-bottom: 20px;
}

/* LEFT */

.left-half { 
    /* background-color: rgba(137, 43, 226, 0.281); */
    /* background-color: var(--light-color); */
}

.left-card {
    margin-top: 10%;
    width: 100%;
    height: auto;
    background-color: var(--second-color);
    border-radius: 12px;
    
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.half-hobbies {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hobbies-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    overflow: hidden;
}

.dark_subcard {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 0 0 12px 12px;
}

/* RIGHT */

.right-half {
    /* background-color: rgba(127, 255, 212, 0.219); */
}


/* MEDIA */

/* Если ширина экрана 600px и больше */
@media (min-width: 600px) {


}


/* Если ширина экрана 900px и больше */
@media (min-width: 900px) {
    html, body { height: 100%; }

    main {
        width: 900px;
        height: 90%;
        border-radius: 12px;
    }

    .background-info {
        height: 220px;
        border-radius: 12px 12px 0 0;
    }

    .background-info .info .fio {
        font-size: 3rem;
        font-weight: bold;
    }

    .background-info .info .profession {
        font-size: 2rem;
    }

    /* IMAGES */


    .avatar-img {
        width: 248px;
        height: 248px;
    }

    /* FLEX COLUMN */

    .main-content {
        flex-direction: row;
        align-items: end;
        gap: 6%;
        height: 100%;
    }

    /* LEFT */

    .left-half {
        height: 95%;
        width: 32%;
        background-color: var(--light-color);
    }

    .left-card {
        max-height: 69%;
    }

    /* RIGHT */

    .right-half {
        height: 70%;
        width: 50%;
    }
}
