body {
  margin: 0;

  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: black;

  background-color: #e3e7de;
  background-image: linear-gradient(to bottom, transparent, white);
  background-size: 100% auto;
  /* background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto; */
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}


/* PAGE
====================== */
.page {
  width: 100%;
  /*max-width: 1600px;*/
}

/* HEADER
====================== */
.header {
  height: 255.7px;

  /* background-color: #000; */
  text-align: center;
}

.logo {
  width: 300px;
  padding: 10px 0;
}

.logo:hover {
  animation: bounce 1s;
}


/* NAV
====================== */
.nav-container {
  width: 100%;
  padding: 15px;
  /* margin-bottom: 110px; */

  background: black;
}

.nav-inner {
  /* display: flex; */
 
  align-items: center;
  justify-content: flex-start;
}

.nav-inner-link {
  margin-right: 30px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: #f2f2f2;
  text-decoration: none;
}

.nav-inner-link:hover {
  color: #979797;

  transition: 0.2s color linear;
}

.nav-inner-link.active {
  position: relative;
}

.nav-inner-link.active:after {
  content: "";
  width: 100%;
  height: 1.5px;

  background-color: #f2f2f2;

  position: absolute;
  left: -1.3px;
  bottom: -5px;
}


/* INDEX
====================== */
/* main {
  min-height: calc(100vh - 395px);
  
} */


.full-width {
  width: 100%;
  /*max-width: 1600px;*/
  margin-bottom: 30px;
}

.main-buttons {
  display: flex;
  justify-content: center;
}


/* ABOUT
====================== */
.about-container {
  margin: 100px 100px 0px;
}

.about-container-content {
  display: flex;
  height: 100%;
  width: 100%;
  /* max-width: 565px; */
}

.content-header {
  margin: auto;
}

.h1-text-about {
  width: 500px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
}

.span-about-text {
  width: 500px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
}

.p-text-about {
  margin: 0;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  line-height: 40px;
  text-indent: 50px;
  /* text-align: justify; */
}

.carousel-about {
  width: 800px;
  margin: 40px auto;
}


/* BUTTON
====================== */
.service-contacts-button {
  display: flex;
  justify-content: center;
  margin: 30px 20px;
}

.service-contacts-button a {
  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  text-transform: uppercase;
  border: 2px solid black;
  padding: 11px 13px;
  color: black;
  text-decoration: none;

  border-radius: 8px;
}

.service-contacts-button a:hover {
  color: white;

  background-color: black;

  transition: 0.2s background-color linear, 0.1s color linear;
}


/* SERVICES
====================== */
.services-container {
  width: 800px;
  margin: 40px auto;
}

.h1-text-services {
  margin-bottom: 40px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
}

.h3-text-services {
  margin: 0;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  line-height: 40px;
  text-indent: 50px;
  text-align: justify;
}

.p-text-services {
  margin: 0;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  line-height: 40px;
  text-indent: 50px;
  text-align: justify;
}

.carousel-services {
  width: 500px;
  margin: 40px auto;
}


/* GALLERY
====================== */
.main-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  max-width: 877px;
  min-width: 480px;
  min-height: 100px;
  padding: 16px 32px;
  margin: auto;
}

.main-gallery img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.main-gallery img:hover {
  -webkit-transform: scale(1.08);
  -ms-transform: scale(1.08);
  transform: scale(1.08);
}

.gallery-left>div {
  height: 200px;
  margin: 0 16px 16px 0;

  background: #fff;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.gallery-middle>div {
  height: 200px;
  margin: 0 16px 16px 0;

  background: #fff;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.gallery-right>div {
  height: 200px;
  margin: 0 16px 16px 0;

  background: #fff;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}


/* CONTACTS
====================== */
.container-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-row-gap: 50px;

  margin: 0 100px 50px;
}

.contacts-image {
  margin: 50px 0;

  justify-content: center;
  display: flex;
}

.contacts-image img {
  width: 500px;
  min-width: 100px;
}

.main-contacts {
  margin: auto 10px;
}

.h1-text-contacts {
  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
}

.p-text-contacts {
  display: flex;
  flex-direction: column;
  margin: 0 10px 0 0;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  line-height: 40px;
}

.contact-me {
  padding: 20px 100px 100px;
  /* margin: auto 100px; */
}

.form {
  width: 100%;
  padding: 12px;
  margin: 6px 0 4px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .05em;
  color: #000;

  box-sizing: border-box;
  border-radius: 2px;
}

.map {
  display: flex;
  align-items: center;
  grid-column-start: 1;
  grid-column-end: 3;
  justify-content: center;
}

#name {
  width: 100%;
  padding: 12px;
  margin: 4px 0 20px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .05em;
  color: #000;

  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-sizing: border-box;
}

#email {
  width: 100%;
  padding: 12px;
  margin: 4px 0 20px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .05em;
  color: #000;

  background: #fafafa;
  box-sizing: border-box;
  border-radius: 2px;
  border: 1px solid #ccc;
}

#message {
  width: 100%;
  padding: 12px;
  margin: 4px 0 20px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .05em;
  color: #000;

  background: #fafafa;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 2px;
}

#button {
  width: 100px;
  height: 80px;

  font-family: Rubik;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  letter-spacing: .05em;

  background: white;
  border: 2px solid black;
  border-radius: 0;
}

#button:hover {
  color: white;

  background: black;
  
  transition: 0.2s background-color linear, 0.1s color linear;
}


/* FOOTER
====================== */
.footer-line {
  width: 1000px;
  margin: auto;

  border-top: 1px solid #0f0f0f;
}

.footer img:hover {
  transform: scale(1.08);
  transition: 0.2s transform linear;
}

.follow-us {
  margin-bottom: 5px;

  font-size: 17px;
  text-align: center;
}

.social-icons-center {
  display: flex;
  justify-content: center;
}

.social-icons-center img {
  width: 35px;
  padding: 5px;
  margin-bottom: 20px;
}


/* ANIMATIONS
====================== */
/* LOGO BOUNCE
====================== */
@keyframes bounce {

  0%,
  20%,
  60%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }

  80% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}


/* BACK TO TOP
====================== */
.arrow-up {
  display: block;
  height: 40px;
  width: 40px;

  
  border: 1px solid #666;
  cursor: pointer;
  overflow: hidden;

  position: relative;

  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 1.5);
}

.arrow-slide {
  display: block;
  width: 100%;
  height: 100%;

  background: #666;

  position: absolute;
  left: 0;
  top: -100%;
  z-index: 0;
}

.left-arm {
  display: block;
  width: 20px;

  background-color: transparent;
  
  position: absolute;
  top: 19px;
  left: 3px;
  z-index: 1;
 
  transform: rotate(-45deg);
}

.left-arm:after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;

  background-color: #666;
  border-radius: 1px;
  transform-origin: right center;

  z-index: -1;

  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 1.5);
}

.right-arm {
  display: block;
  width: 20px;

  background-color: transparent;
  border-radius: 2px;
  transform: rotate(45deg);

  position: absolute;
  top: 19px;
  left: 17px;
  z-index: 1;
}

.right-arm:after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  
  background-color: #666;
  border-radius: 1px;
  transform-origin: left center;

  z-index: -1;

  transition: all 0.5s cubic-bezier(0.25, 1.7, 0.35, 1.5);
}

.arrow-up:hover {
  transition: all .1s;
}

.arrow-up:hover .left-arm:after {
  transform: rotate(-10deg);
}

.arrow-up:hover .right-arm:after {
  transform: rotate(10deg);
}

.arrow-up:hover .arrow-slide {
  transition: all .4s ease-in-out;
  transform: translateY(200%);
}

.arrow-up {
  position: fixed;
  right: 260px;
  bottom: 150px;
}


/* MEDIA
====================== */
/* @media(max-width: 800px) {
  .nav-inner {
    flex-basis: 100%;
  }
} */


