:root {
  --main-bg-color: #faf2f0;
  --main-accent-color: red;
  --border: #dcdbdb;
  --block-title: #ff8934;

  --text-main-title-color: #242424;
  --text-main-color: #242424;
  --text-title-block: #af4f37;

  --left-bg-color: #252525;
  --left-text: white;

  --right-bg-color: white;
  --right-text: black;

  --icon-main-color: var(--text-title-block);
  --icon-adv-color: var(--main-bg-color);

  --avatar-color1: #243271;
  --avatar-color2: #af4f37;

  --main-font-size: 18px;
  --animation: 250ms linear;
  --animation-block: 1000ms linear;
  --transition-block: transform var(--animation-block), opacity var(--animation-block);
  --transition-block-d1: transform var(--animation-block) 300ms, opacity var(--animation-block) 300ms;
  --transition-block-d2: transform var(--animation-block) 600ms, opacity var(--animation-block) 600ms;
  --transition-block-d3: transform var(--animation-block) 900ms, opacity var(--animation-block) 900ms;
  --transition-block-d3: transform var(--animation-block) 1200ms, opacity var(--animation-block) 1200ms;

}

body {
  margin: 0;
  font-style: normal;
  font-family: "Lora", Sans-serif;
  color: var(--text-main-color);
  /* font-size: 18px; */
  font-size: var(--main-font-size);
  line-height: 1.5em;
  background-color: var(--main-bg-color);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

address {
  font-style: normal;
}

._anime-item{
  /* transform: translate(0, -180%); */
  /* opacity: 0; */
  transition: transform var(--animation-block), opacity var(--animation-block);
  
}


._anime-item._active, ._anime-item._active > ._anime-show{
  opacity: 1;
  transform: translate(0, 0);
}

.section {
  padding-top: 40px;
  padding-bottom: 30px;
  /* background-color: var(--main-bg-color); */
}

.container {
  /* padding-left: 20px; */
  /* padding-right: 20px; */
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  /* width: 1440px; */
  /* width: 100%; */
  max-width: 768px;
  display: flex;
}

.container > :nth-child(2) {
  flex-grow: 1;
}

.addition-padding {
  padding: 10px;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 1440px;
  }

  .container > :nth-child(1) {
    flex-basis: 10%;
  }

  .container > :nth-child(2) {
    flex-basis: 90%;
  }
}

.container-widget {
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  /* outline: 1px solid red; */
  display: none;
}

@media screen and (min-width: 768px) {
  .container-widget {
    display: flex;
    order: 10;
  }
}

@media screen and (min-width: 992px) {
  .container-widget {
    order: inherit;
  }
}

.container-widget-border {
  width: 2px;
  height: 100%;
  background-color: var(--border);
}

.widget-social{
  display: flex;
  padding: 0 10px;
  gap: 20px;
  justify-content: center;
  align-items: center;

}

@media screen and (min-width: 768px){
  .widget-social{
    flex-direction: column;
  }
}

.widget-social.footer{
  /* padding: 10px 0; */
}

@media screen and (min-width: 768px) {
  .widget-social.footer, .section.footer{
    display: none;
  }
}


.icon-wraper{
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 50px;
  height: 50px;

}

.hero {
  font-family: "Corben", Sans-serif;
  text-transform: capitalize;
  padding-top: 10px;
  padding-bottom: 10px;
  /* padding: 10px; */
  overflow: hidden;


}

.hero-title{
  transform: translate(0, -100%);
  opacity: 0;
  /* transition: transform var(--animation-block), opacity var(--animation-block); */
  
}


/* .hero-title._active{
  opacity: 1;
  transform: translate(0, 0);
} */

.hero.section{
  padding-bottom: 0;
  padding-top: 0;
}

.hero > .container{
align-items: center;
}

.hero h1{
  font-size: 2rem;
  font-weight: 700;
  line-height: 1em;
}

@media screen and (min-width: 768px) {
  .hero h1{
    font-size: 2.7rem;
  }
}
@media screen and (min-width: 1024px) {
  .hero h1{
    /* font-size: 4.3rem; */
  }
}

.personal-data {
  flex-wrap: wrap;
  gap: 10px;
}

.block-title h2 {
  font-size: 1.5rem;
  font-style: normal;
  padding-bottom: 20px;
  font-family: "Corben", Sans-serif;
  color: var(--text-title-block);
}

@media screen and (min-width: 768px) {
  .block-title h2 {
    font-size: 1.7rem;
  }
}

.personal-data {
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .personal-data {
    display: flex;
    gap: 30px;
  }
}

.avatar {
  position: relative;
  /* margin: 30px; */
  margin-bottom: 20px;

  transform: translate(-120%, 0);
  opacity: 0;
  /* transition: transform var(--animation-block), opacity var(--animation-block); */

}

/* .avatar._active{
  opacity: 1;
  transform: translate(0, 0);
} */

@media screen and (min-width: 768px) {
  .avatar {
    max-width: 215px;
    max-height: 215px;
  }
}

.avatar-back1 {
  background-color: var(--avatar-color1);
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 90%;
}

.avatar-back2 {
  background-color: var(--avatar-color2);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 90%;
}

.avatar-img-wraper {
  padding: 5%;
}

.avatar-img {
  position: relative;
  /* width: 95%; */
}

.address {
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translate(120%, 0);

}

.address .block-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.address h2{
  padding-bottom: 0;

}

.block-title.bot-border {
  border-bottom: 2px solid var(--border);
}

.address-item .address-link {
  display: flex;
  align-items: center;
}

.address-item-text {
  font-size: 1rem;
  font-family: "Lora", Sans-serif;
  font-weight: 400;
  line-height: 2;
}

.address-item-text .title {
  font-weight: 700;
  /* color: var(--text-main-title-color); */
  text-decoration: double;
}

.address-qr{
  max-width: 250px;
  /* display: flex; */
  /* align-items: center; */

}

@media screen and (min-width: 768px ) {
  .address-qr{

  }
}

.qr-icon{
  /* margin-left: 10px; */
  width: 30px;
  height: 30px;

}

@media screen and (min-width: 768px) {
  .qr-icon{
    width: 40px;
    height: 40px;
    /* margin-left: 30px; */
  }
}


.card-container{
  perspective: 1000px;

}

.card{
  position: relative;
  transform-style: preserve-3d;
}

.card-front{
  position: relative;
  /* z-index: 1; */
  backface-visibility: hidden;
  position: relative;
  transition: transform 1s linear ;

}

.card-back{
  position: absolute;
  /* z-index: 0; */
  top: 50%;
  left: 50%;

  backface-visibility: hidden;
  transform: rotateX(-180deg)  translate(-50%, -50%);
  transition: transform 1s linear ;
}

.card-front.rotate{
  /* z-index: -1; */
  transform: rotateX(180deg);

}

.card-back.rotate{
  /* z-index: 1; */
  /* left: 50%; */

  transform: rotateX(0deg)   translate(-50%, -50%);

}
.cv {
  display: flex;
  align-items: center;
}

.cv .icon {
  width: 25px;
  height: 25px;
  fill: var(--text-title-block);
  padding: 5px;
  margin-right: 10px;
}


.biografy-text {
  margin-top: 10px;
}

.biografy-text p {
  margin-bottom: 1rem;
}

.education {
  overflow: hidden;
}

.education-list {
  /* display: flex; */
  /* flex-direction: column; */

  margin-top: 10px;
}

.education-item{
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;

}

.education .education-item {

  opacity: 0;
  transform: translate(120%, 0);
  transition: var(--transition-block);
}


.education .education-item:nth-child(2){
  transition: var(--transition-block-d1);
}

.education .education-item:nth-child(3){
  transition: var(--transition-block-d2);
}

.education-item > * {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.5em;
}

.education-title {
  width: 100%;
}

.education-item .education-text {
  width: 70%;
}

.education-title{
  /* font-family: "Lora", Sans-serif; */
  /* margin-bottom: 10px; */
  color: var(--text-main-color);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

@media screen and (min-width: 1024px) {
  .education-title{
    font-size: 1.5rem;
  }
}

.education-period {
  /* margin-bottom: 10px; */
}

.experience{
  overflow: hidden;
}

.experience .education-item {
  text-align: right;
  align-items: end;

  opacity: 0;
  transform: translate(-120%, 0);
  transition: var(--transition-block);
}

.skill {
  font-size: 1rem;
  line-height: 1.5em;
}

.skill-content {
  opacity: 0;
}

@media screen and (min-width: 768px) {
  .skill-content {
    display: flex;
  }

  .skill-content > :first-child {
    width: 80%;
  }

  .skill-content > :last-child {
    /* flex-grow: 1; */
    /* flex-shrink: 1; */
    width: 20%;
  }
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  /* gap: 10px; */
  align-items: center;
}

.skill-item {
  width: 45%;
  padding-left: 10px;
}

@media screen and (min-width: 768px) {
  .skill-item {
    /* width: 20%; */
    /* width: calc(100% / 5 ); */
    /* flex-shrink: 0; */
    flex-grow: 1;
  }
}

.skill-title {
  margin-top: 20px;
  margin-bottom: 5px;
}

@media screen and (min-width: 768px) {
  .skill-title {
    /* text-align: center; */
  }
}

/* utils */

.link {
  color: var(--text-title-block);
  color: inherit;
  text-decoration: underline;
}

/* .link-hover svg{
  fill: inherit;
} */

.link-hover, .link-hover svg, .link-hover .link, .link-hover .title{
  transition: color var(--animation), fill var(--animation);

}
.link-hover:hover, .link-hover:hover svg, .link-hover:hover p{
  cursor: pointer;
  color: var(--block-title);
  fill: var(--block-title);
  --icon-main-color: currentColor;
  
}

.upper-case {
  text-transform: uppercase;
}

.no-pt {
  padding-top: 0;
}


.btn-wrapper{
  margin-top: 10px;
  margin-right: 15px;
  margin-left: 15px;
  width: 60px;
  height: 60px;
  /* border-radius: 50%; */
  background-color: #ffcabc;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--animation);
}

.btn-wrapper svg {
  /* stroke:  red;
  stroke-width: 1px; */
  transition: all var(--animation);

}

.btn-wrapper.pressed{
  box-shadow:  -1px -1px 4px #fdeeeb  inset, 1px 1px 4px #d28e8e  inset;
  /* transition: all var(--animation); */
}

.btn-wrapper:hover {
  /* box-shadow: 10px 10px 10px #222, -5px -5px 10px #e2e2e2; */
  box-shadow: 5px 5px 10px #9f9f9f, -5px -5px 17px #fff, 3px 3px 5px #fdeeeb  inset, -3px -2px 5px #d28e8e  inset;
}

.btn-wrapper:active {
  box-shadow: 5px 5px 10px #9f9f9f, -5px -5px 17px #fff, -3px -3px 7px #fdeeeb  inset, 3px 3px 7px #d28e8e  inset;
  
}

.btn-wrapper:hover svg{
  /* color: var(--block-title); */
  /* fill: var(--block-title); */
  --icon-main-color: var(--block-title);
  stroke: #ffaf49;
  stroke-width: 1px;
}
