:root {
  --accent-dark-color: #4a452a;
  --border: 1px solid var(--accent-dark-color);
  --accent-light-color: #c4bd97;
  --content-sharing: 2px dotted rgb(74, 69, 42);
  --white-accent: #ffffff;
}
html,
body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #fafafa;
  font-weight: 400;
}

.wrapper {
  display: flex;
  flex-direction: row;
  width: 1000px;
  min-height: 100%;
  flex: 1 1 auto;
  margin: 40px auto;
  background-color: var(--white-accent);
  box-shadow: 8px 8px 12px rgba(24, 16, 16, 0.25);
}

.main-content {
  width: 65%;
  padding: 40px;
  border-top: var(--border);
  border-right: var(--border);
  border-bottom: var(--border);
}

.sidebar {
  width: 35%;
  padding: 20px 15px;
  border: var(--border);
  background-color: var(--accent-light-color);
  color: var(--accent-dark-color);
}

.user-photo {
  width: 100%;
  height: auto;
}
.sidebar-title {
  margin: 10px 0 5px;
  padding: 5px 10px;
  font-size: 18px;
  background-color: var(--accent-dark-color);
  border-radius: 5px;
  color: var(--white-accent);
}

.contacts-link {
  font-size: 16px;
  color: var(--accent-dark-color);
}
.contacts-list {
  margin: 5px;
}

.sidebar-list {
  margin: 0 25px;
  list-style: disc;
  height: auto;
}

.sidebar-list-item {
  color: var(--white-accent);
  margin: 5px 0;
}

.sidebar-contacts-list-item {
  display: inline-block;
  width: 16px;
  margin: 0px 5px 0 0;
}

.sidebar-li-text {
  display: inline-block;
  width: 70%;
  font-size: 16px;
  margin: 0px 5px;
  color: var(--accent-dark-color);
}
.sidebar-li-text-circle {
  color: var(--accent-dark-color);
}
header {
  display: flex;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light-color);
  margin: 0;
}

.position {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark-color);
  margin: 15px 0;
}

.address,
.date-of-birth {
  margin: 0 0 5px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  border-top: var(--border);
  border-bottom: var(--border);
  color: var(--accent-dark-color);
  padding: 5px 0;
  margin: 15px 0 0;
}

.list-item {
  list-style-type: decimal;
  margin: 10px 25px 20px;
}
.project-tech {
  height: 1px;
  overflow: hidden;
  margin: 5px 15px;
  list-style-type: disc;
  color: var(--accent-dark-color);
}

.tech-list {
  margin: 5px 0;
}
.project-list-links {
  color: var(--accent-dark-color);
}
.arrow {
  width: 16px;
  height: 16px;
  float: right;
  margin-right: 30%;

  border-top: 16px solid #4a452a;
  border-bottom: none;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  transition: 0.3s;
}
.arrow:hover{
  cursor: pointer;
}
.arrow-rotate {
  rotate: 180deg;
}
.company-title {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light-color);
}

.company-year {
  margin: 10px 0;
  color: var(--accent-light-color);
}

.content-sharing {
  border-top: var(--content-sharing);
}

.dots {
  color: var(--accent-light-color);
}

.text-content {
  margin: 10px 0;
}
.print {
  width: 40px;
  height: 40px;
  padding: 0 0 3px 0;
  margin-left: auto;
  background-color: var(--white-accent);
  border: var(--border);
  border-radius: 5px;
  transition: 0.3s;
}
.print:hover {
  scale: 1.1;
  cursor: pointer;
  box-shadow: 0px 0px 4px var(--accent-light-color),
  0px 0px 8px var(--accent-light-color),
  0px 0px 12px var(--accent-light-color);
}

.print img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .wrapper {
    width: 100%;
    margin: 0 auto;
  }
  .main-content {
    padding: 20px 10px;
    width: 60%;
  }
  .sidebar {
    width: 40%;
    padding: 10px;
  }
  .sidebar-title {
    position: relative;
    margin: 5px 0 0;
    padding: 5px;
  }

  .sidebar-title::after {
    position: absolute;
    display: block;
    top: 5px;
    right: 2%;
    content: '';
    float: right;

    border-top: 16px solid var(--accent-light-color);
    border-bottom: none;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    transition: 0.3s;
  }
  .sidebar-title.click::after {
    border-top: none;
    border-bottom: 16px solid var(--accent-light-color);
  }

  .contacts-list {
    margin: 0 5px;
  }
  .contacts-list,
  .sidebar-list {
    height: 1px;
    overflow: hidden;
  }

  .contacts-link {
    font-size: 14px;
  }
  .sidebar-list {
    margin: 0 0 0 25px;
  }

  .sidebar-contacts-list-item {
    width: 14px;
  }

  .sidebar-li-text {
    width: 66%;
    font-size: 14px;
    margin: 0;
  }

  h1 {
    font-size: 28px;
  }
  .position {
    margin: 10px 0;
  }
  .company-title {
    font-size: 16px;
  }
  .list-item {
    margin: 10px 0 10px 20px;
  }
  .arrow {
    margin-right: 2%;
  }
  .section-title {
    position: relative;
  }

  .section-title::after {
    position: absolute;
    display: block;
    top: 5px;
    right: 2%;
    content: '';
    float: right;
    border-top: 16px solid var(--accent-light-color);
    border-bottom: none;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    transition: 0.3s;
  }

  .section-title.click::after{
        border-top: none;
    border-bottom: 16px solid var(--accent-light-color);
  }

  section > ul,
  section > ol {
    display: none;
    overflow: hidden;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .wrapper {
    width: 100%;
    flex-direction: column;
    margin: 0 auto;
  }

  .main-content {
    width: 100%;
    padding: 10px;
    border-left: var(--border);
    border-top: none;
  }
  .sidebar {
    width: 100%;
    padding: 10px;
  }
  .sidebar-title {
    margin: 5px 0 0;
    padding: 5px;
  }
  .contacts-link {
    font-size: 16px;
  }

  .sidebar-contacts-list-item {
    width: 16px;
  }
}
@media print {
  html,
  body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #fafafa;
    font-weight: 400;
  }

  .wrapper {
    display: flex;
    flex-direction: row;
    width: 1000px;
    min-height: 100%;
    flex: 1 1 auto;
    margin: 0;
    background-color: var(--white-accent);
    box-shadow: 8px 8px 12px rgba(24, 16, 16, 0.25);
  }

  .main-content {
    width: 65%;
    padding: 40px;
    border-top: var(--border);
    border-right: var(--border);
    border-bottom: var(--border);
  }

  .sidebar {
    width: 35%;
    padding: 20px 15px;
    border: var(--border);
    background-color: var(--accent-light-color);
    color: var(--accent-dark-color);
  }

  .user-photo {
    width: 100%;
    height: auto;
  }
  .sidebar-title {
    margin: 10px 0 5px;
    padding: 5px 10px;
    font-size: 18px;
    background-color: var(--accent-dark-color);
    border-radius: 5px;
    color: var(--white-accent);
  }

  .contacts-link {
    font-size: 18px;
    color: var(--accent-dark-color);
  }
  .contacts-list {
    margin: 5px;
  }

  .sidebar-list {
    margin: 0 25px;
    list-style: disc;
    height: auto;
  }

  .sidebar-list-item {
    color: var(--white-accent);
    margin: 5px 0;
  }

  .sidebar-contacts-list-item {
    display: inline-block;
    width: 18px;
    margin: 0px 5px 0 0;
  }

  .sidebar-li-text {
    display: inline-block;
    width: 70%;
    font-size: 18px;
    margin: 0px 5px;
    color: var(--accent-dark-color);
  }
  .sidebar-li-text-circle {
    color: var(--accent-dark-color);
  }
  header {
    display: flex;
  }

  h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-light-color);
    margin: 0;
  }

  .position {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-dark-color);
    margin: 15px 0;
  }

  .address,
  .date-of-birth {
    margin: 0 0 5px;
  }

  .section-title {
    font-size: 18px;
    font-weight: 700;
    border-top: var(--border);
    border-bottom: var(--border);
    color: var(--accent-dark-color);
    padding: 5px 0;
    margin: 15px 0 0;
  }

  .list-item {
    list-style-type: decimal;
    margin: 10px 25px 20px;
  }

  .project-tech {
    height: auto;
    margin: 5px 15px;
    list-style-type: disc;
    color: var(--accent-dark-color);
  }

  .tech-list {
    margin: 5px 0;
  }
  .project-list-links {
    color: var(--accent-dark-color);
  }

  .sidebar-title::after,
  .section-title::after,
  .print,
  .print img,
  .arrow {
    display: none;
  }
  .work-experiense {
    margin-top: 70px;
  }
  .company-title {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light-color);
  }

  .company-year {
    margin: 10px 0;
    color: var(--accent-light-color);
  }

  .content-sharing {
    border-top: var(--content-sharing);
  }

  .dots {
    color: var(--accent-light-color);
  }

  .text-content {
    margin: 10px 0;
  }
  .contacts-list,
  section > ul,
  section > ol {
    display: block;
    height: auto;
    overflow: visible;
  }
}
.active {
  display: block;
  height: auto;
  overflow: visible;
}
