body {
    /*font-family: Arial, Helvetica, sans-serif;*/
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    flex-direction: column;
    margin: 0;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

.resume-wrapper {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    max-width: 764px;
    width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

}

.top-row,
.bottom-row {
    display: flex;
}

.bottom-row {
    height: 100%;
}

.top-left-col,
.bottom-left-col {
    width: 30%;
}

.top-right-col,
.bottom-right-col {
    width: 70%;
}

.top-row {
    align-items: stretch;
}

.top-left-col,
.top-right-col {
    display: flex;
    flex-direction: column;
}

h2 {
    margin-top: 0;
}

.topLeftPanel {
    background-color: #0a335c;
    display: flex; /* Добавляем flex */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    width: 100%;
    height: 100%; /* Или конкретная высота, например 250px */
    padding: 20px; /* Добавляем отступы */
    box-sizing: border-box; /* Чтобы padding не влиял на общие размеры */
}

.photoWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.photoSection {
    text-align: center;
    margin: 0;
}

.profilePhoto {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/*TOP RIGHT PANEL START*/

.topRightPanel {
    background-color: #0a335c;
    color: whitesmoke;
    width: 100%;
    height: 100%;
}

.topRightPanel h1 {
    padding: 10px 0 0 15px;
}

.topRightPanel h2 {
    position: relative;
    color: white;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px 15px 4px 15px;
    border-bottom: none;
}

.topRightPanel h2::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.topRightPanel h2:hover::after {
    transform: scaleX(0.85);
}

.topRightPanel h3 {
    padding: 0 0 4px 15px;
}

.topRightPanel p {
    color: white;
    font-size: 1em;
    line-height: 1.4;
    padding: 0 15px 10px 15px;
}

.topContent {
    display: flex;
    align-items: center;
    gap: 20px;
}

.resumeHeader {
    text-align: right;
    color: whitesmoke;
    padding-right: 20px;
}

/*LEFT PANEL START*/
.leftPanel {
    background-color: #0a335c;
    width: 100%;
    height: 100%;
    color: whitesmoke;
    padding-top: 10px;
    padding-bottom: 20px;
}

.stickyContainer {
    position: sticky;
    top: 20px;
}

.leftPanel h2 {
    position: relative;
    color: whitesmoke;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px 15px 4px 15px;
    border-bottom: none;
}

.leftPanel h2::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 1px;
    background: rgba(245, 245, 245, 0.5);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.leftPanel h2:hover::after {
    transform: scaleX(0.85);
}

.leftPanel p {
    color: whitesmoke;
    font-size: 1em;
    line-height: 1.6;
    padding: 0 15px 10px 15px;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 15px;
    padding: 8px 15px;
    line-height: 1.2;
    min-height: 17px;
}

.contactIcon {
    font-size: 17px;
    flex-shrink: 0;
}

.skillsSection {
    margin: 30px 0;
    padding-right: 10px;
}

.skillsList {
    padding-left: 15px;
    line-height: 1.6;
}

.skillsList p {
    margin-bottom: 12px;
}

.leftPanel a {
    color: whitesmoke;
    text-decoration: none;
    padding: 4px 0;
    display: inline-block;
}

.leftPanel a:hover {
    text-decoration: underline;
}

/*RIGHT PANEL START*/
.rightPanel {
    background-color: whitesmoke;
    width: 100%;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 20px;
}

.rightPanel h2 {
    position: relative;
    color: #0a335c;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px 15px 4px 15px;
    border-bottom: none;
}

.rightPanel h2::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 1px;
    background: rgba(10, 51, 92, 0.5);
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.rightPanel h2:hover::after {
    transform: scaleX(0.85);
}

.experienceItem {
    position: relative;
    padding-left: 35px;
    padding-right: 15px;
    margin-bottom: 8px;
}

.experienceDates {
    margin-bottom: 3px;
    font-weight: bold;
}

.experienceProject {
    margin: 1px 0 3px 0;
}

.experienceItem::before {
    content: "";
    position: absolute;
    margin-left: 15px;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0a335c;
    z-index: 2;
    transition: all 0.2s ease;
}

.experienceItem:hover::before {
    transform: scale(1.1);
    background-color: #1a5c9e;
}

.experienceSection::after,
.experienceItem:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 4px;
    width: 2px;
    background-color: #0a335c;
    z-index: 1;
    margin-left: 15px;
}

.experienceSection::after {
    top: 15px;
    bottom: calc(100% - 15px);
}

.experienceItem:not(:last-child)::after {
    top: 20px;
    bottom: -15px;
}

.experienceDescription {
}

.techLine {
}


@media print {
    .stickyContainer {
        position: static !important;
        top: auto !important;
    }

    .leftPanel {
        position: relative !important;
        top: 0 !important;
    }

    .leftPanel a {
        color: whitesmoke !important;
        text-decoration: none !important;
    }
}

@media print {
    @page {
        size: A4;
        margin: 2cm 1.5cm;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }

    a {
        color: black !important;
        text-decoration: none !important;
    }

    .resume-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 640px) {
    .top-row,
    .bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .top-left-col,
    .top-right-col,
    .bottom-left-col,
    .bottom-right-col {
        width: 100%;
        height: 100%;
    }

    .stickyContainer {
        position: static;
        top: auto;
    }
}