/* Общие стили */
body {
  background: #efeffc;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.wrapper {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar {
  width: 350px;
  background: #f7e1e5;
  border-radius: 8px;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 20px;
}

/* Sidebar Sections */
.sidebar .section-title {
  font-weight: 700;
  font-size: 22px;
  color: #161d2a;
  margin-bottom: 12px;
  border-bottom: 2px solid #f104a2;
  padding-bottom: 4px;
}

.contacts p, .skills-list li {
  font-size: 14px;
  color: #595959;
  line-height: 1.7;
  margin: 0 0 6px 0;
}

.skills-list, .languages-list {
  padding-left: 1px;
  list-style: none;
  width: 100%;
}

.skills-list li::before, .languages-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #595959;
}

a {
  color: #f104a2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 20px 40px;
}

/* My Info */
.my-name {
  font-weight: 700;
  font-size: 42px;
  margin-bottom: 4px;
}

.my-profession {
  font-weight: 500;
  font-size: 24px;
  color: #f104a2;
  margin-bottom: 16px;
}

.my-dscrp {
  font-weight: 400;
  font-size: 14px;
  color: #595959;
  line-height: 1.7;
  margin-bottom: 32px;
}

.main-content > section {
  margin-top: 32px; /* одинаковый отступ сверху для всех секций */
}

.main-content > section:first-child {
  margin-top: 0; /* убираем отступ у самого первого блока (My Info) */
}

/* Section Titles */
.section-title {
  font-weight: 700;
  font-size: 22px;
  color: #161d2a;
  margin-bottom: 12px;
  border-bottom: 2px solid #f104a2;
  padding-bottom: 4px;
}

/* Lists */
ul, ol {
  list-style: none;
  padding-left: 0;
}

ul li, ol li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 20px;
}

ul li::before, ol li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #595959;
}

/* Projects */
.my-projects-item-link {
  font-weight: 700;
  font-size: 14px;
  color: #f104a2;
  text-decoration: underline;
}

.my-projects-item-desc {
  font-weight: 400;
  font-size: 14px;
  color: #595959;
  margin-top: 6px;
  margin-top: 20px;
}

/* Вложенные списки внутри описания проекта */
.my-projects-item-desc ul {
  padding-left: 20px; /* отступ слева */
  list-style-type: disc; /* стандартные точки */
  margin: 6px 0;
}

/* Убираем глобальные ::before для вложенного списка */
.my-projects-item-desc ul li {
  position: static; /* чтобы не добавлялась вторая точка */
  padding-left: 0;
  margin-bottom: 4px;
}

/* Список проектов без точки перед заголовком проекта */
.my-projects-list {
  padding-left: 0;
  margin-left: 0;
}

.my-projects-list li {
  padding-left: 0; /* убрать лишний отступ */
  list-style-type: none; /* убрать точку перед названием проекта */
}


/* Work Experience */
.work-company {
  font-weight: 700;
  font-size: 16px;
  
}

.company-name {
  color: #e6a4f4;
}

.work-period {
  font-size: 12px;
  color: #db9d9d;
  margin-bottom: 8px;
}

.duties-list, .achievements-list {
  margin-bottom: 16px;
  font-size: 14px;
  color: #595959;
  line-height: 1.7;
}

.achievements-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: #6a0dad;
}

/* Education */
.edu-school {
  font-weight: 700;
  font-size: 16px;
}

.school-name, .highlight {
  color: #e6a4f4;
  font-weight: 700;
}

.edu-degree, .edu-class {
  font-size: 14px;
  color: #595959;
  margin-bottom: 4px;
}

.edu-period {
  font-size: 12px;
  color: #db9d9d;
  margin-bottom: 16px;
}

/* Languages */
.languages-list li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 20px;
}

.languages-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #595959;
}

/* Responsive */
@media (max-width: 992px) {
  .wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  .main-content {
    padding: 20px;
  }
}

/* --- Стили для печати --- */
@media print {
  body {
    background: #efeffc; /* голубой фон всей страницы */
    margin: 0;
    padding: 20px; /* оставить отступ сверху/снизу */
  }

  .wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px; /* внутренние отступы */
    border-radius: 8px;
    background: #fff; /* белый фон резюме */
    page-break-inside: avoid;
    box-sizing: border-box;
  }

  .sidebar {
    width: 320px;
    background: #f7e1e5;
    border-radius: 8px;
    padding: 20px;
    flex-shrink: 0;
    page-break-inside: avoid;
    box-sizing: border-box;
    margin: 0;
  }

  .main-content {
    flex: 1;
    padding: 20px 40px;
    page-break-inside: avoid;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
  }

  .section-title {
    border-bottom: 2px solid #f104a2;
  }

  ul li::before, ol li::before {
    content: '•';
    color: #595959;
  }

  a {
    color: #f104a2;
    text-decoration: none;
  }
}
