* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  background-image: url(../images/header.png);
  background-size: cover;
  background-position-x: 50%;
  background-repeat: no-repeat;
  padding-top: 40px;
  height: 100vh;
}

.header__menu {
  font-family: "Lato", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__nav a {
  text-decoration: none;
  text-transform: uppercase;
  color: #4d4959;
  font-size: 0.812rem;
  cursor: pointer;
  margin-right: 50px;
}

.header__nav a:hover {
  color: #64c29e;
  transition: 1s;
}

.header__nav a:last-child {
  margin: 0;
}

.header__work::before {
  position: relative;
  left: -25px;
  content: ".";
  cursor: default;
}

.header__contact::before {
  position: relative;
  left: -25px;
  content: ".";
  cursor: default;
}

@media screen and (max-width: 970px) {
  .header {
    padding-top: 20px;
  }
  .header__nav a {
    font-size: 0.7em;
  }
  .header__nav a img {
    width: 90%;
  }
  .header__nav a:nth-child(3) {
    margin-right: 40px;
  }
  .header__work::before {
    display: none;
  }
  .header__contact::before {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .header {
    padding-top: 10px;
  }
}

@media screen and (max-width: 520px) {
  .header {
    padding-top: 25px;
  }
  .header__nav a {
    font-size: 0.8em;
    margin-right: 30px;
  }
  .header__img {
    display: none;
  }
}

@media screen and (max-width: 380px) {
  .header__nav a {
    padding: 10px 0;
    font-size: 0.6em;
    margin-right: 20px;
  }
}

.generation {
  padding: 120px 0;
  background-color: #f7f7f7;
  width: 100%;
}

.generation__block {
  margin: auto;
  font-size: 0.8em;
  line-height: 2em;
  font-family: "Lato", sans-serif;
  text-align: center;
  color: #848789;
  width: 70%;
}

.generation__title {
  color: #353738;
  font-size: 1em;
  margin-bottom: 20px;
  letter-spacing: 0.2em;
  position: relative;
}

.generation__title::before {
  content: '';
  width: 52px;
  height: 43px;
  background-image: url(../images/generation_icon.png);
  position: absolute;
  top: -50px;
  left: 48%;
}

@media screen and (max-width: 800px) {
  .generation {
    padding: 80px 0;
  }
}

@media screen and (max-width: 500px) {
  .generation {
    padding: 70px 0;
  }
  .generation__title::before {
    left: 40%;
  }
}

.work {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.bicycle {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.bicycle__image {
  width: 66.7%;
}

.bicycle__image img {
  display: block;
  width: 100%;
}

.textblock {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  background-image: url("../images/workOne_min.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.textblock:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  border: 25px solid transparent;
  border-top: 25px solid #fff;
}

.textblock:before {
  content: '';
  height: 1px;
  width: 40px;
  background-color: #d7d7d7;
  position: absolute;
  top: 60%;
  left: 45%;
}

.textblock-vintage {
  background-image: url("../images/workTwo_sm.png");
}

.textblock-bike {
  background-image: url("../images/workThree_sm.png");
}

.textblock__back {
  position: relative;
  z-index: 2;
  height: 300px;
  padding: 55px 10% 50px;
  background-color: #fff;
  transition: 1s;
}

.textblock__back:hover {
  height: 450px;
  cursor: pointer;
}

.textblock__back:hover:after {
  display: none;
}

.textblock__back:hover:before {
  display: none;
}

.textblock__back:hover .textblock__text {
  max-height: 350px;
}

.textblock__back:hover .textblock__cont {
  max-height: 300px;
}

.textblock__text {
  padding-top: 30px;
  max-height: 400px;
  overflow: hidden;
  background-image: url("../images/work_iconOne.png");
  background-position: 50% 0%;
  background-repeat: no-repeat;
  transition-duration: 1s;
  font-family: "Lato", sans-serif;
  color: #848789;
  position: relative;
}

.textblock__text-boriosa {
  background-image: url("../images/work_iconTwo.png");
}

.textblock__text-retro {
  background-image: url("../images/work_iconThree.png");
}

.textblock__title {
  text-transform: uppercase;
  text-align: center;
  color: #353738;
  position: relative;
  font-size: 1.1em;
  margin: 20px 0;
}

.textblock__cont {
  max-height: 125px;
  overflow: hidden;
  display: block;
  text-align: justify;
  line-height: 2em;
  font-size: 0.8em;
  margin: 0 auto;
  cursor: pointer;
  transition: 2s;
  z-index: 5;
}

.bycicles {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.bycicles__image {
  width: 33.3333333333%;
}

.bycicles__image img {
  width: 100%;
  display: block;
}

@media screen and (min-width: 1430px) {
  .textblock::after {
    bottom: 31.5%;
  }
  .textblock__text-retro {
    padding-top: 40px;
  }
}

@media screen and (min-width: 925px) and (max-width: 1194px) {
  .textblock:after {
    bottom: 22.5%;
    border: 25px solid transparent;
    border-top: 25px solid #fff;
  }
  .textblock__back {
    height: inherit;
    padding: 25px 10% 25px;
    height: 230px;
  }
  .textblock__back:hover {
    height: 300px;
  }
  .textblock__back:hover .textblock__text {
    height: inherit;
  }
  .textblock__back:hover .textblock__cont {
    height: 160px;
    font-size: 0.65em;
    transition: 0s;
  }
  .textblock__text {
    height: 185px;
  }
}

@media screen and (min-width: 561px) and (max-width: 924px) {
  .textblock {
    height: 450px;
  }
  .textblock__title {
    font-size: 0.85em;
  }
  .textblock__back {
    padding: 20px 10% 30px;
  }
  .textblock__cont {
    max-height: 195px;
    font-size: 0.75em;
  }
  .bicycle__image,
  .bycicles__image {
    display: none;
  }
  .work {
    flex-direction: row;
  }
}

@media screen and (max-width: 560px) {
  .bicycle__image,
  .bycicles__image {
    display: none;
  }
  .work {
    flex-direction: column;
  }
  .textblock {
    height: 455px;
  }
  .textblock__title {
    font-size: 1.1em;
  }
}

.twitter {
  padding: 120px 0 60px 0;
  background-color: #f7f7f7;
  width: 100%;
}

.twitter__controls {
  position: relative;
  display: block;
  padding: 50px 0;
  background: url("../images/icon_twitter.png") 50% 0 no-repeat;
  overflow: hidden;
  margin: 0 auto;
}

.twitter__user {
  color: #353738;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  font-family: "Lato", sans-serif;
  text-align: center;
  display: block;
}

.twitter__time {
  color: #848789;
  font-weight: 400;
  font-family: "Lato", sans-serif;
  font-size: 0.7em;
}

.twitter__text {
  font-size: 0.9em;
  font-style: italic;
  line-height: 2em;
  font-family: "Lato", sans-serif;
  text-align: center;
  color: #848789;
  width: 70%;
  margin: 0 auto;
  word-spacing: 0.1em;
  display: block;
}

.twitter__controler {
  margin: 0 auto;
  width: 80px;
}

.twitter__check {
  position: relative;
  margin: 0 auto;
}

.twitter__check::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  background-color: #f7f7f7;
  border: 1px solid #848789;
  border-radius: 50%;
  cursor: pointer;
}

.twitter__check:checked::before {
  background-color: #848789;
}

.shop {
  display: flex;
}

.shop__couple {
  display: flex;
}

.shop__item {
  flex-grow: 1;
}

.shop__image, .shop__image-big {
  width: 100%;
  display: block;
}

.shop__hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: visibility 1s, opacity 1s ease-in-out;
}

.shop__block {
  position: relative;
  flex-grow: 1;
}

.shop__block:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: 1s;
}

.shop__block:hover::after {
  background-color: #58a589;
  opacity: 0.7;
  cursor: pointer;
}

.shop__block:hover > .shop__hover {
  visibility: visible;
  opacity: 1;
}

@media screen and (max-width: 450px) {
  .shop {
    flex-direction: column;
  }
}

.control-panel {
  background-color: #282f35;
  width: 100%;
  padding: 80px 0;
}

.control-panel__button {
  width: 70%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.control-panel__button a {
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid #64c29e;
  font-family: "Lato", sans-serif;
  color: #64c29e;
  padding: 10px 60px;
  transition: 1s;
}

.control-panel__button a:nth-child(2) {
  border-color: #fff;
  color: #fff;
}

.control-panel__button a:hover {
  color: #fff;
  border-color: #fff;
}

.control-panel__button a:nth-child(2):hover {
  color: #64c29e;
  border-color: #64c29e;
}

@media screen and (max-width: 1000px) {
  .control-panel {
    padding: 60px 0;
  }
  .control-panel__button {
    width: 80%;
  }
  .control-panel__button a {
    padding: 10px 40px;
  }
}

@media screen and (max-width: 800px) {
  .control-panel {
    padding: 60px 0;
  }
  .control-panel__button {
    width: 40%;
    flex-direction: column;
  }
  .control-panel__button a {
    padding: 10px 40px;
    margin: 10px 0;
  }
}

@media screen and (max-width: 400px) {
  .control-panel {
    padding: 30px 0;
  }
  .control-panel__button {
    width: 70%;
    flex-direction: column;
  }
  .control-panel__button a {
    font-size: 0.8em;
  }
}

.mail {
  padding: 95px 0;
}

.mail__block {
  width: 33%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mail__text {
  margin: 20px 0;
  font-family: "Lato", sans-serif;
  font-style: italic;
  color: #848789;
}

.mail__form {
  width: 100%;
}

.mail__input {
  padding: 13px 20px;
  width: 70%;
  border: 1px solid #d3d3d3;
  color: #848789;
  margin: 10px 0;
}

.mail__input::placeholder {
  color: #d3d3d3;
  font-style: italic;
}

.mail__button {
  padding: 14px 30px;
  text-transform: uppercase;
  color: #fff;
  background-color: #64c29e;
  border: none;
  cursor: pointer;
  margin: 10px 0;
  transition: 1s;
}

.mail__button:hover {
  background-color: #89d0b5;
}

@media screen and (max-width: 860px) {
  .mail {
    padding: 70px 0;
  }
  .mail__block {
    width: 50%;
  }
}

@media screen and (max-width: 570px) {
  .mail {
    padding: 40px 0;
  }
  .mail__block {
    width: 80%;
  }
}

@media screen and (max-width: 370px) {
  .mail {
    padding: 20px 0;
  }
  .mail__block {
    width: 100%;
  }
  .mail__block img {
    display: none;
  }
}

.footer {
  background-color: #f7f7f7;
  width: 100%;
  padding: 90px 130px;
  display: flex;
  justify-content: space-between;
  font-family: "Lato", sans-serif;
  color: #848789;
  font-size: 0.8em;
  font-style: italic;
}

.footer a {
  text-decoration: none;
}

.footer__address {
  width: 40%;
  display: block;
  text-align: left;
}

.footer__address a {
  color: #848789;
}

.footer__social {
  width: 20%;
  text-align: center;
}

.footer__bold {
  font-style: normal;
  font-weight: 600;
}

.footer__logo {
  width: 40%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.footer__offset {
  margin-right: 10px;
}

@media screen and (max-width: 960px) {
  .footer {
    padding: 60px 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .footer__address, .footer__social {
    padding: 10px 0;
    width: 80%;
    text-align: center;
  }
  .footer__logo {
    justify-content: center;
    width: 40%;
  }
}

@media screen and (max-width: 700px) {
  .footer__logo {
    width: 50%;
  }
}

@media screen and (max-width: 570px) {
  .footer {
    flex-direction: column;
    padding: 40px 10px;
  }
  .footer__address, .footer__social {
    width: 100%;
  }
}

@media screen and (max-width: 370px) {
  .footer__logo {
    width: 55%;
  }
}
