:root {
  --light: #f3f3f3;
  --green: #7e9268;
  --light-green: #cacebc;
  --dark-green: #536344;
  --grey: #707070;
  --light-grey: #979797;
  --dark-grey: #303030;
  --basic-font-family: "PT Sans", sans-serif;
  --title-font-family: "Questrial", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  color: var(--dark-grey);
  border: 0;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.body {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 100vh;
  font-size: 110%;
  font-family: var(--basic-font-family);
  line-height: 1.8;
  transition: all 0.2s ease-in-out;
}

a {
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--green);
}

h1,
h2 {
  font-weight: normal;
  font-family: var(--title-font-family);
}

h1 {
  font-size: 450%;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--green);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  max-width: 1600px;
  background: var(--light);
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 350px;
  padding: 50px;
  background-color: var(--light-green);
}

.right-column {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  flex-grow: 1;
  padding: 0 50px;
}

.left-column h2,
.left-column li,
.left-column a,
.left-column b {
  color: var(--dark-grey);
}

.header,
.main {
  display: flex;
  width: 100%;
}

.main > div {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main .right-column {
  padding: 10px 50px 50px;
}

.section {
  width: 100%;
}

.list_dots,
.list_nums {
  padding-left: 20px;
}

.list_nums > li {
  padding-left: 5px;
}

.menu {
  z-index: 1;
  width: 100%;
  margin: 50px 0 20px;
}

.menu__checkbox {
  display: none;
}

.menu__label {
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 2;
  display: none;
}

.menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  padding-bottom: 25px;
  font-family: var(--title-font-family);
  font-size: 110%;
  list-style: none;
  border-bottom: solid 1px var(--green);
  transition: max-height 0.2s ease-out;
}

.menu__list a {
  text-decoration: none;
  color: var(--green);
}

.menu__list a:hover {
  color: var(--dark-green);
}

.menu__list li:first-child {
  display: none;
}

.heading__name {
  font-size: 50%;
  color: var(--grey);
}

.heading__description {
  padding-left: 4px;
  font-family: var(--title-font-family);
  font-size: 120%;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--grey);
}

h2 {
  margin-bottom: 10px;
  font-size: 200%;
  letter-spacing: 0.02em;
  color: var(--green);
}

h3 {
  font-size: 130%;
}

.photo {
  width: 95%;
  border-radius: 50%;
}

#contacts li {
  margin: 0;
  list-style: none;
}

#profile p {
  margin-bottom: 15px;
}

.footer a:hover {
  color: var(--dark-green);
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  background: var(--green);
}

.footer > p {
  margin: 2px auto;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.experience-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-item:last-child {
  margin-bottom: 10px;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
}

.portfolio-item {
  width: 100%;
  color: var(--dark-grey);
  text-decoration: none;
  background-color: #e2e2e2;
  opacity: 1;
}

.portfolio-item:hover {
  opacity: 0.8;
}

.portfolio-item__description {
  padding: 30px 40px 20px;
}

.portfolio-item__description p {
  margin: 5px 0 15px;
}

.portfolio-item img {
  display: block;
  width: 100%;
}

.education-info {
  margin-bottom: 20px;
}

.date {
  font-style: italic;
}

@media screen and (max-width: 1600px) {
  .container {
    width: 80%;
  }
}

@media screen and (max-width: 1280px) {
  .container {
    width: 100%;
  }
}

@media screen and (max-width: 960px) {
  .container {
    width: 100%;
  }

  .left-column {
    width: 320px;
  }

  .left-column,
  .right-column {
    padding: 40px;
  }

  h1 {
    font-size: 350%;
  }

  .heading__description {
    font-size: 110%;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
  }

  .header,
  .main {
    flex-direction: column;
    width: 100%;
  }

  .left-column,
  .right-column {
    align-items: center;
    width: 100%;
    background-color: var(--light);
  }

  .header .right-column {
    text-align: center;
    padding: 0 40px 10px;
  }

  .photo {
    max-width: 240px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 300%;
    line-height: 1;
  }

  .left-column h2 {
    color: var(--green);
  }

  .menu {
    position: fixed;
    top: 15px;
    right: 15px;
  }

  .menu__label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60px;
    height: 54px;
    padding: 15px;
    opacity: 0.8;
    cursor: pointer;
  }
  
  .menu__checkbox {
    display: none;
  }

  .label__lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
  }

  .label__line {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 1px;
    background: var(--dark-green);
  }

  .menu__label:hover {
    opacity: 1;
  }

  .menu__label .label__line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .menu__label .label__line2 {
    transition: transform 0.2s ease-in-out;
  }

  .menu__label .label__line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .menu__checkbox:checked + .menu__label .label__line1 {
    transform: rotate(45deg);
  }

  .menu__checkbox:checked + .menu__label .label__line2 {
    transform: scaleY(0);
  }

  .menu__checkbox:checked + .menu__label .label__line3 {
    transform: rotate(-45deg);
  }

  .menu__list {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    height: 0%;
    padding: 0;
    font-size: 150%;
    text-align: center;
    background-color: var(--light);
    border: 0;
    transition: 0.2s;
    transition-delay: 0.2s;
  }

  .menu__list li {
    opacity: 0;
    transition: 0.4s;
    transition-delay: 0s;
  }

  .menu__list li:first-child {
    display: block;
    padding-top: 15%;
  }

  .menu__list li:last-child {
    padding-bottom: 15%;
  }

  .menu__checkbox ~ .menu__list > li > a {
    display: block;
    transition-delay: 0s;
  }

  .menu__checkbox:checked ~ .menu__list {
    height: 100%;
    transition-delay: 0s;
  }

  .menu__checkbox:checked ~ .menu__list > li {
    opacity: 1;
    transition-delay: 0.2s;
  }

  .heading__description {
    font-size: 100%;
  }
}
