/* === БАЗОВІ НАЛАШТУВАННЯ === */
body {
    background: #F6F6FA;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

.wrapper {
    background-color: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* === ДЕСКТОП (за замовчуванням) === */
@media (min-width: 992px) {
    .wrapper {
        display: flex;
        flex-direction: row-reverse;
    }

    .main-content {
        flex: 1;
        padding: 80px 40px 80px 88px;
    }

    .sidebar {
        width: 370px;
        background: #E0EBFE;
        padding: 40px 0;
    }

    .sidebar img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .sidebar-content {
        padding: 40px;
    }
}

/* === ПЛАНШЕТИ ТА МОБІЛЬНІ === */
@media (max-width: 991px) {
    .wrapper {
        display: block;
    }

    .main-content {
        padding: 40px 24px;
    }

    .sidebar {
        background: #E0EBFE;
        padding: 40px 24px;
        text-align: center;
    }

    .sidebar img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 20px;
        display: block;
    }

    .sidebar-content {
        padding: 0;
    }

    .contacts-container,
    .skills-container {
        text-align: left;
        margin-bottom: 32px;
    }
}

/* === ДУЖЕ МАЛЕНЬКІ ЕКРАНИ (мобільні) === */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .main-content {
        padding: 32px 16px;
    }

    .my-name {
        font-size: 36px;
        line-height: 44px;
    }

    .my-profession {
        font-size: 13px;
    }

    .my-description,
    .my-project-item,
    .my-projects-item-tech,
    .work-experience-duties-list-item,
    .skills-list-item {
        font-size: 13px;
        line-height: 22px;
    }

    .work-experience-title,
    .my-projects-title,
    .education-title,
    .contacts-title,
    .skills-title {
        font-size: 20px;
    }

    .work-experience-company,
    .education-place {
        font-size: 15px;
    }

    .sidebar img {
        width: 150px;
        height: 150px;
    }
}

/* === ЗАГАЛЬНІ СТИЛІ === */
.contacts-title,
.skills-title,
.work-experience-title,
.my-projects-title,
.education-title {
    color: #161D2A;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.contacts-type {
    color: #161D2A;
    font-weight: 700;
    margin-right: 8px;
}

.contact-link {
    color: #2979FF;
    font-size: 14px;
    text-decoration: underline;
}

.contacts-item {
    margin: 4px 0;
    font-size: 14px;
}

.skills-list,
.work-experience-duties-list,
.my-projects-list {
    padding-left: 18px;
    list-style: disc;
}

.skills-list-item,
.work-experience-duties-list-item {
    color: #595959;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 4px;
}

.my-profession {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.my-name {
    color: #000;
    font-size: 45px;
    font-weight: 700;
    line-height: 55px;
    margin: 0 0 12px 0;
}

.my-description {
    color: #595959;
    font-size: 14px;
    line-height: 24px;
    margin: 0 0 16px 0;
}

.my-info {
    margin-bottom: 40px;
}

.my-projects-container,
.work-experience-container {
    margin-bottom: 40px;
}

.my-project-item {
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.my-projects-item-link {
    color: #005FFF;
    text-decoration: underline;
}

.my-projects-item-tech {
    color: #595959;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.work-experience-company {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.work-experience-company-name {
    color: #6D9BF5;
}

.work-experience-period {
    color: #A8A8A8;
    font-size: 12px;
    margin-bottom: 8px;
}

.work-experience-separator {
    color: #000;
    margin: 0 4px;
}

.education-place {
    color: #6D9BF5;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.education-specialization {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.education-period {
    color: #A8A8A8;
    font-size: 12px;
    margin: 0 0 16px 0;
}

/* Приховуємо крапки в проектах на мобільних */
@media (max-width: 768px) {
    .my-projects-item-tech {
        display: none;
    }
    .my-project-item::after {
        content: " [AppSheet, GAS, Java, etc.]";
        color: #888;
        font-weight: normal;
        font-size: 12px;
    }
}



/* === ВІДСТУПИ МІЖ РОЗДІЛАМИ В SIDEBAR === */
.skills-container,
.contacts-container {
    margin-bottom: 20px !important; /* Чіткий відступ між блоками */
    /* padding-bottom: 8px; */
}

/* Останній блок — без нижнього відступу (щоб не було зайвого простору) */
.skills-container:last-of-type,
.contacts-container:last-of-type {
    margin-bottom: 0 !important;
}

/* На мобільних — трохи менше, але все одно чітко */
@media (max-width: 991px) {
    .skills-container,
    .contacts-container {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .skills-container,
    .contacts-container {
        margin-bottom: 15px !important;
    }
}