/* Обнуление */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
ul,
ol,
li {
    list-style: none;
}
img {
    vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: inherit;
    font-size: inherit;
}
/**/
html,
body {
    height: 100%;
    line-height: 1;
}
body {
  font-family: "Open Sans";
  font-size: 16px;
  color: #dae4c3;
  background-color: #073850;
}
.wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.main {
  flex: 1 1 auto;
}
[class*="__container"] {
  max-width: 1087px;
  margin: 0 auto;
  padding: 65px 15px;
}
h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 40px;
}
p {
  font-size: 16px;
  line-height: 160%;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
/*Header*/
.header {
  position: fixed;
  background-color: #073850;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
}
.header__container {
  display: flex;
  min-height: 100px;
  align-items: center;
  padding: 20px 15px;
}
.header__menu {
  flex: 1 1 auto;
}
.menu {
  display: flex;
  justify-content: end;
}
.menu__list {
  display: flex;
}
.menu__item:not(:last-child) {
  margin-right: 40px;
}
.menu__link {
  font-family: "Open Sans";
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #dae4c3;
}
.menu__link:hover {
  text-decoration: underline;
  font-weight: 800;
}
/*PC*/
@media (max-width: 1087px) {
  [class*="__container"] {
      max-width: 970px;
  }
}
/*Tablet*/
@media (max-width: 991.98px) {
  [class*="__container"] {
      max-width: 750px;
  }
}
/*Mobile*/
@media (max-width: 767.98px) {
  [class*="__container"] {
      max-width: 750px;
  }
  .header__logo {
    display: none;
  }
}
/*small mobile*/
@media (max-width: 479.98px) {
  [class*="__container"] {
    max-width: 460px;
  }
  .header__logo {
    display: none;
  }
}
/*Introduction*/
.introduction {}
.introduction__container {
  padding: 150px 15px 50px 15px;
}
.introduction__content {  
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}
.introduction__block-text {
  max-width: 410px;
  flex: 0 1 50%;
}
.introduction__title {
  font-weight: 700;
  font-size: 54px;
  line-height: 130%;
  color: #dae4c3;
  margin-bottom: 16px;
}
.introduction__text {
  margin-bottom: 34px;
}
.introduction__button {

}
.button {
  display: inline-block;
  font-family: "Open Sans";
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 1px;
  color: #dae4c3;
  padding: 18px 46px;
  background-color: #073850;
  border: 1px solid #dae4c3;
  border-radius: 6px;
  transition: background-color 0.3s ease 0s;
}
.button:not(:last-child) {
  margin-right: 40px;  
}
.button:hover {
  background-color: #dae4c3;
  color: #073850;

}
.introduction__image {
  flex: 0 1 50%;
}
.introduction__image img {
  border-radius: 50%;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .introduction__title {
      font-size: 34px;
  }
  .introduction__container {
    padding: 100px 15px 50px;
  }
  .introduction__content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .introduction__image {
    width: 400px;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .introduction__block-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 479.98px) {
  
  
}
/*Contacts*/
.contacts__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact__item-link {
  font-family: "Open Sans";
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #dae4c3;
  display: flex;
  align-items: center;
}
.contact__item-link:hover {
  text-decoration: underline;
  font-weight: 800;
}
.contact__item-link_img {
  margin-right: 14px;
  vertical-align: middle;
}
@media (max-width: 767.98px) {
  .contact__item-link h3 {
    display: none;
  }
}

/*About me*/
.about-me {}
.about-me__container {
}
.about-me__body {
  padding: 50px 0;
}
.about-me__content {
  display: flex;
  align-items: center;
}
.about-me__content_text {
  flex: 0 1 50%;
  margin-right: 20px;
}
.about-me__content_video {
  flex: 0 1 50%;
  
  position: relative;
}
.about-me__content_video iframe {
  height: 100%;
  top: 0;
  left: 0;
  /*position: absolute;*/
  border-radius: 8px;
}
.about-me__skills {
  padding: 50px 0;
}
.skills__list {
  display: flex;
  justify-content: space-between;
}
.about-me__education {
  padding: 50px 0;
}
.education__list {}
.education__list-item {
  border-bottom: 0.5px solid #dae4c3;
  margin: 12px 0;
}
.education__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.education__item + input[type='radio'] {
  display: none;
}

.education__content{
  display: flex;
  justify-content: space-between;
}

.education__certificate {
  padding: 0 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.education__certificate img {
  max-width: 50%;
  max-height: 50%;
}

.education__item + input[type='radio']:checked + .education__certificate {
  max-height: 400px;
}


.close-icon {
  color: #dae4c3;
  margin-left: 30px;
  display: inline-block;
  font-size: 36px;
  font-weight: 500;
  transition: transform 0.5s ease-out;
}

.education__item:hover .close-icon {
  transform: rotate(45deg);
}

.education__place {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.about-me__language {
  padding: 50px 0;
}
.languages__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.languages__list-item {
  border-bottom: 0.5px solid #dae4c3;
}
.language__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.language__level {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
@media (max-width: 767.98px) {
  .about-me__body {
    padding: 0;
  }
  .about-me__content {
    flex-direction: column;
  }
  .skills__list {
    flex-direction: column;
  }
  .skill__list-item {
    border-bottom: 0.5px solid #dae4c3;
    margin-bottom: 14px;
  }
  .education__list-item {
    flex-direction: column;
  }
  .languages__list {
    flex-direction: column;
  }
  .languages__list-item {
    margin-bottom: 14px;
  }

}
/*MyWorks*/
.my-works {}
.my-works__container {
}
.my-works__container p {
  margin-bottom: 8px;
}
.works {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}
.works__item {
  width: 46%;
  margin-bottom: 16px;
}
.works__item:not(:last-child) {
  margin-right: 20px;
}
.works__item-link {}
.works__item-img {
  width: 100%;
  border-radius: 8px;
}
@media (max-width: 767.98px) {
  .works {
    flex-direction: column;
    align-items: center;
  }
  .works__item:not(:last-child) {
    margin-bottom: 30px;
    margin-right: 0px;
  }
}
/*MyCode*/
.mycode {
}
.mycode__container {
}
.mycode__container p {
  margin-bottom: 8px;
}
.mycode__example {
  background-color: #1e1e1e;
}
pre {
  width: 100%;
  padding-left: 0;
  white-space: normal;
  display: flex;
  justify-content: flex-start;
}
pre code {
  white-space: pre-wrap;
}
.mycode__example_blue {
  color: #4d86b5;
}
.mycode__example_yellow {
  color: #ffd700;
}
.mycode__example_light-blue {
  color: #97cadc;
}
.mycode__example_green {
  color: #b3c393
}
.mycode__example_white {
  color: #d4d4d4
}
.mycode__example_violet {
  color: #be86c0
}
.mycode__example_orange {
  color: #e79f4d
}
/*Footer*/
.footer {
}
.footer__container {
  padding: 20px 15px;
}
.footer__items {
  display: flex;
  justify-content:space-between;
  align-items: center;
}
.footer__item-mylink {}
.footer__item-mylink_github {}
.footer__item-rslink {
  align-items: center;
  display: flex;
}
.footer__item-text {
  font-size: 16px;
  color: #dae4c3;
}
.footer__item-text:not(:last-child) {
  margin-right: 12px;
}
.footer__item-rslink_link-school  img {
  width: 100px;
  margin-right: 12px;
}
@media (max-width: 767.98px) {
  .footer__item-text {
    font-size: 10px;
  }
}
