* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-family: "Montserrat", sans-serif;
}
div {
  border: solid 0px;
  transition: 1s opacity;
}
:root {
  --primari-color: rgb(228, 0, 0);
  --second-color: rgb(245, 217, 126);
  --width-pc: 960px;
  --border: 1px solid rgb(204, 204, 204);
  --black: #2f2f2f;
  --white: #fff;
  --red: #f83038;
}
body{
  background: #eaebdf;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 900;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 500;
}
h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

p,
li {
  font-family: "Roboto", sans-serif;
  font-size: 19px;
  font-weight: 300;
  list-style-type: none
}
a {
  font-family: "Roboto", sans-serif, bold;
  font-size: 19px;
  font-weight: 300;
  color: black;
}

/**nahuy
**/
.nahuy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  align-items: center;
  width: 100%;
  height: 150px;
  background: url(img/nahuybg.jpg);
  background-position: center;
  background-size: cover;
}
/***** Section 
.menu ul{
    display: none;
    position:absolute;
}
.menu p:hover + ul{
    display: flex;
    height: 100vh;
}
.nav{
    display: none;
}
.btn{
    display: inline-block;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    padding: 16px 36px;
    margin-top: 20px;
    border-radius: 50px;
    font-size: 1.25em;
    transition: 0.25s;
}

.btn :hover + .nav{
    letter-spacing: 4px;
    display: flex;
}
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 600px;
    background: url(img/bg1.jpg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    color: whitesmoke;
}
header section{
    width: 1300px;
    
}

header .item{
    max-width: 450px;
}

header h4{
    color: white;
}
End Section *****/

section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 1300px;
  margin: auto;
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 20px;
  padding-right: 20px;
}
.lines {
  width: 60%;
  height: 1vh;
  border-top: var(--border);
  margin: auto;
}
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(#1c1c1c, #323232);
}
header:before {
  content: "АВТОСЕРВІС";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
}
.menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100vw;
  min-height: 50px;
  background: #1c1c1c;
  z-index: 1100;
}
.logo {
  position: relative;
  background: url("img/new-zs-logo.png");
  background-position: left;
  background-repeat: no-repeat;
  background-size: contain;
  width: 70px;
  height: 40px;
  padding: 10px;
  margin: 10px 40px;
}
.nav ul {
  display: flex;
  flex-direction: row;
  margin: 10px 40px;
}
.nav ul li a {
  margin: 0 10px;
  transition: 0.24s;
  color: var(--white);
  text-decoration: none;
}
.nav ul li a:hover {
  color: var(--red);
}
.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 100px;
  z-index: 1;
  color: var(--white);
}
.content h2 {
  font-size: 5em;
  font-weight: 200;
  color: var(--white);
  text-align: center;
}
.content h2 span {
  font-weight: 700;
}
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 16px 36px;
  margin-top: 20px;
  border-radius: 50px;
  font-size: 1.25em;
  transition: 0.25s;
}
.btn:hover {
  letter-spacing: 4px;
}
.car {
  max-width: 80%;
  max-height: 400px;
}
.sochead {
  position: absolute;
  bottom: 20px;
  left: 30px;
  z-index: 998;
  padding-top: 20px;
  overflow: hidden;
}
.sochead i {
  color: var(--white);
  font-size: 36px;
  transition: 0.25s;
  margin: 10px;
}
.sochead i:hover {
  color: var(--red);
  transform: translateY(-10px);
}
.intro {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.intro .item {
  max-width: 450px;
}
.intro .item .items {
  padding: 50px;
}
.intro .item .title {
  padding-top: 30px;
}
.intro .item .items h1,
h2,
h3,
p {
  padding-top: 10px;
}
.line {
  width: 200px;
  border-top: var(--border);
  margin-top: 10px;
  margin-bottom: 10px;
}
.perevagy {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.perevagy-right,
.perevagy-left,
.kont,
.soc {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-basis: 50%;
}
.perevagy-right {
  border-left: var(--border);
  margin-right: 30px;
}
.perevagy-right .img {
  background: url("img/mercedes_PNG80135.png");
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
}
.poslugy{
  background:  white;
  padding: 20px;
}
.poslugy .items {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  margin: 50px 0;
}
.poslugy a {
  text-decoration: none;
}
.poslugy .items .item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: var(--border);
  border-radius: 20px;
  width: 200px;
  padding: 20px;
  margin: 20px;
  transition: 0.25s;
}
.poslugy .items .item:hover {
  box-shadow: 0px 0px 5px rgb(189, 188, 188);
  transition: 0.25s;
  transform: translateY(-10px);
}
.poslugy .items .item:hover img {
  filter: blur(2px);
  opacity: 0.5;
  transition: 0.5s;
}
.poslugy .items .item:hover h3 {
  transform: translateY(-50px);
  transition: 1s;
}

.to {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}
.to .right {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 600px;
  flex: 1;
}
.to .left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-basis: 50%;
  border-top: var(--border);
  margin-right: 30px;
}
.to .left .img {
  background: url("img/action-2-before.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  min-height: 400px;
}
.track{
  margin: auto;
}
.track-text{
  margin: auto;
  text-align: center;
}
.icon {
  width: 20px;
}
footer {
  display: flex;
  flex-direction: column;
  background-color: rgb(31, 31, 31);
}
.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: flex-start;
  align-content: flex-start;
  margin: auto;
  
}
.kont {
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 90%;

}

footer h1,
footer h2,
footer h3,
footer p,
footer a,
footer i {
  color: white;
}
.made {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: auto;
  padding: 20px;
 
}
.made a {
  font-size: 12px;
}

/***** карусель *****/

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.slick-list:focus {
  outline: none;
}
.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
}
.slick-track:before,
.slick-track:after {
  display: table;
  content: "";
}
.slick-track:after {
  clear: both;
}
.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}
[dir="rtl"] .slick-slide {
  float: right;
}
.slick-slide img {
  display: block;
}
.slick-slide.slick-loading img {
  display: none;
}
.slick-slide.dragging img {
  pointer-events: none;
}
.slick-initialized .slick-slide {
  display: block;
}
.slick-loading .slick-slide {
  visibility: hidden;
}
.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
  display: none;
}
/***** End карусель *****/




.withimg{
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  gap:30px;
  margin: 50px 0;
}
.withimg img{
  width: 100%;
}


@media screen and (max-width: 900px) {
  .nav {
    display: none;
  }
  header {
    min-height: 100vh;
  }
  /*menu кнопка меню и крестик*/
  .toggle {
    position: relative;
    width: 32px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    margin: 10px 40px;
  }
  .toggle.active {
    position: fixed;
    top: 10px;
    right: 2px;
  }
  .toggle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: translateY(-10px);
    transition: 0.25s;
    box-shadow: 0 10px 0 var(--white);
  }
  .toggle.active::before {
    transform: translateY(0) rotate(45deg);
    box-shadow: 0 0 0 var(--white);
  }
  .toggle::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: translateY(10px);
    transition: 0.25s;
  }
  .toggle.active::after {
    transform: translateY(0) rotate(-45deg);
  }
  /*menu кнопка меню и крестик*/
  .nav.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    background: var(--black);
  }
  .nav ul li a {
    font-size: 1.5em;
    margin: 10px 0;
    display: inline-block;
  }
  /*menu */
  .nav ul {
    flex-direction: column;
  }

  .content {
    margin: 20px;
  }
  .content h2 {
    font-size: 2em;
  }

  h1 {
    font-size: 2em;
  }
  .intro,
  .perevagy,
  .footer-content {
    flex-direction: column;
  }
  .footer-content {
    align-content: flex-start;
  }
  section {
   
    margin: auto;
  }
  header section {
    width: 450px;
  }
  .to .left .img {
    width: 80vw;
  }
  .perevagy-right .img {
    height: 50vh;
  }
  .to {
    flex-direction: column;
  }
  .slick-slide img {
    width: 70%;
  }
  .withimg{
    display: flex;
    flex-direction: column;
    margin: 20px;
  }
  .withimg img{
    width: 90%;
  }
  .withimg div{
  
    max-width: 90%;
  }
}
