:root {
    --orange: #f39c12;
    --dark-gray: #2d3436;
    --light-gray: #7f8c8d;
    --sidebar-bg: #f2f4f5;
    --main-bg: #ffffff;
    --border-color: #e0e0e0;
}

* { box-sizing: border-box; }
body { background-color: #e9ecef; font-family: 'Segoe UI', Tahoma, sans-serif; margin: 0; padding: 20px; color: var(--dark-gray); }

.resume-wrapper { max-width: 1100px; margin: 0 auto; background: var(--main-bg); box-shadow: 0 0 50px rgba(0,0,0,0.1); display: flex; flex-direction: column; }

.left-col { width: 30%; padding: 50px 40px; text-align: right; background-color: var(--sidebar-bg); }
.right-col { width: 70%; padding: 50px; background-color: var(--main-bg); }

/* Header Changes */
.main-header { display: flex; border-bottom: 1px solid var(--border-color); }
.header-top { display: flex; justify-content: space-between; align-items: flex-start; }

.profile-circle { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; margin-left: auto; background: #fff; border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.profile-circle img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

/* Name Block */
.name-block h1 { 
    font-size: 2.8rem; /* Однаковий розмір */
    margin: 0; 
    color: var(--orange); 
    font-weight: 800; 
    line-height: 1; 
}

.job-title { font-size: 1.1rem; color: var(--dark-gray); margin-top: 10px; font-weight: 400; text-transform: uppercase; }

/* Top Button */
.btn-download-top {
    border: 2px solid var(--orange);
    color: var(--orange);
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-download-top:hover { background: var(--orange); color: white; }

.contact-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 25px; font-size: 0.85rem; border-top: 1px solid #eee; padding-top: 20px; }

/* Sections */
.resume-section { display: flex; border-bottom: 1px solid var(--border-color); }
.section-label { font-size: 1.1rem; letter-spacing: 3px; margin: 0; color: var(--dark-gray); font-weight: 700; }
.section-sub { font-size: 0.8rem; color: var(--light-gray); margin-top: 8px; font-style: italic; }
.main-text { font-size: 1rem; line-height: 1.8; color: #444; }

/* Expertise & Skills Grid (12 items) */
.grid-expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.exp-item h3 { font-size: 0.9rem; margin-bottom: 8px; color: var(--dark-gray); font-weight: 700; }
.exp-item h3 span { color: var(--orange); margin-right: 10px; font-size: 1.1rem; }
.exp-item p { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.5; }

/* Footer */
.resume-footer { display: flex; background-color: var(--sidebar-bg); }
.footer-left { width: 30%; }
.footer-right { width: 70%; padding: 30px 50px; background-color: var(--main-bg); border-left: 1px solid var(--border-color); text-align: center; color: var(--light-gray); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
    .main-header, .resume-section, .resume-footer { flex-direction: column; }
    .left-col, .right-col { width: 100%; text-align: left; padding: 30px 40px; }
    .header-top { flex-direction: column; gap: 20px; }
    .grid-expertise { grid-template-columns: 1fr; }
    .footer-left { display: none; }
}