:root {
  --accent: #ffa901;
  --spacing: 2.5em;
}

body {
  margin: 0;
  font-family: Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-content: center;

}

* { box-sizing: broder-box;
}

a {
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 1px;
  transition: 0.3s;
}

span{
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 700;
  transition: 0.3s;
}

p0{
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 700;
  transition: 0.3s;
}

p1{
  font-size: 0.7em;
  font-weight: 700;
  transition: 0.3s;
}

p2 {
  color: #949494;
  font-size: 0.8em;
  line-height: 30px;
  letter-spacing: 1px;
  
}

p {
  color: #949494;
  font-size: 0.8em;
  line-height: 30px;
  letter-spacing: 1px;
  padding-left: 20px;
  border-left-style: solid;
  border-color: var(--accent);
}

p3 {
  color: #949494;
  font-size: 0.8em;
  line-height: 30px;
  letter-spacing: 1px;
  padding-left: 20px;
  border-left-style: solid;
  border-color: #ffff;
}


ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

h1 {
  font-size: 3.3em;
  line-height: 1.3em;
}

header {
  padding: var(--spacing);
  background: #fff;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  max-width: 1350px;
  height: 100%;
  margin: 0 auto;
}

/**NAVBAR**/
nav {
  display: flex;
  justify-content:space-between;
  align-items: center;
  margin-bottom: var(--spacing);
  width: 100%;
}

ul a, ul span {
  font-weight: 700;
  background-image: linear-gradient(0deg, #111, #111);
  background-repeat: no-repeat;
  background-size: 0 2px;
  padding-bottom: 10px;
  background-position: 50% bottom;
}

ul a: hover,
ul span: hover,
.controls span: hover,
.controls span: hover,
.search: focus {
  background-size: 100% 2px;
  background-image: linear-gradient(0deg, var(--accent), var(--accent));
}

/*effect-underline*/
.hover-underline-animation {
  display: inline-block;
  position: relative;
  color: #0087ca;
}

.hover-underline-animation:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2.3px;
  bottom: -10px;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

nav span {cursor: pointer;}

.brand {
  text-transform: capitalize;
  font-size: 1.2em;
}

nav li {
  display: inline-block;
  margin: 0 0.7em;
}

.search {
  text-align: center;
  border: none;
  outline: none;
  width: 8em;
  transition; 0.3s;
}

.search.
.controls span,
.active {
  background-image: linear-gradient(0deg, #111, #111);
  background-size: 50% 2px;
  padding-bottom: 10px;
  background-position: 50% bottom;
}

.search::placeholder {
  color: #111;
  font-size: 0.8em;
  letter-spacing: 1px;
  font-weight: 700;
}

.search: focus {
  background-size: 120% 2px;
}

.form-mobile {
  display: none;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/**HEADER BODY**/
.header-body {
  display: grid;
  grid-template-columns: 1fr 1fr 3em;
  justify-content: center;
  align-content: center;
}

.header-body > div {
  margin: 0 var(--spacing);
}

.slider {
  position: relative;
}

.slider img {
  width: 100%;
  height: 30em;
}


.decoration-left,
.deecoration-right {
  background: var(--accent);
  position: absolute;
  z-index: 1;
}

.decoration-left {
  top: 50%;
  left: -8%;
  width: 16%;
  height: 70%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slide1;
}

.decoration-right {
  bottom: 0;
  right; -8%;
  width: 16%;
  height: 12em;
  animation: slide2;
}

.overlay {
  position: absolute;
  background: #fff;
  bottom: 0;
  left: 0;
  width: 100%;
  animation: slide3;
  z-index: 0;
}

.anim {
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(.39,.08,.93,.42);
}

.text {
  display: fley;
  justify-content: center;
  align-items: center;
}

.text > div {
  max-width: 27em;
}

.text p {
  background-image: linear-gradient(0deg, var(--accent));
  background-repeat: no-repeat;
  background-size: 3px 100%;
  padding-left: var(--spacing);
  background-position: 0 0;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social li {
  margin: 1.5em 0;
  writing-mode: vertical-rl;
  font-weight: 700;
}

/**HEADER BOTTOM**/
.header-bottom {
  margin: var(--spacing) 0 0 0;
  justify-content: center;
}

p1{
  font-size: 0.7em;
  font-weight: 700;
  transition: 0.3s;
}

.active {
  color: var(--accent);
  background-image: linear-gradient(0deg, var(--accent));
}

.controls span {
  margin: 0 0.5em;
}

/***kontakt btn**/
.custom-btn {
  margin: 20px;
  outline: none;
  width: 127px;
  height: 40px;
  padding: 10px 25px;
  border: 2.3px solid #000;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.btn-15 {
  color: #000;
  z-index: 1;
}
.btn-15:after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
   background: var(--accent);
  transition: all 0.3s ease;
}
.btn-15:hover {
  color: white;
  border: 2px solid var(--accent);
}
.btn-15:hover:after {
  left: 0;
  width: 100%;
}

.btn-15:active {
  top: 2px;
}

/***kontakt btn-inactive**/
.custom-btninactive {
  margin: 20px;
  outline: none;
  width: 127px;
  height: 40px;
  padding: 10px 25px;
  border: 2.3px solid lightgrey;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.btninactive-50 {
  color: #D3D3D3;
  z-index: 1;
}
.btninactive-50:after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  z-index: -1;
   background: #D3D3D3;
  transition: all 0.3s ease;
}
.btninactive-50:hover {
  color: white;
  border: 2px solid #D3D3D3;
}
.btninactive-50:hover:after {
  left: 0;
  width: 100%;
}

.btninactive-50:active {
  top: 2px;
}

/**ANIMATION**/
@keyframes slide1 {
  0% { height: 0; }
  100% { height: 70%; }
}

@keyframes slide2 {
  0% { height: 0; }
  100% { height: 12em; }
}

@keyframes slide3 {
  0% { height: 100%; }
  100% { height: 0 }
}

/**responsive**/
@media screen and (max-width: 1000px) {
  .menu-btn {
    display: block;
  }
  nav .menu {
    background: #fff;
    position: absolute;
    left: 0;
    top: 5em;
    top: 5em;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: 0.6s;
    overflow: hidden;
    z-index: 9;
  }
  /**openclass for js toggle**/
  nav .menu-open {
    opacity: 1;
    height: 85%;
    overflow: visible;
  }
  nav .menu li {
    margin: 1em 0;
  }
  form:not(.form-mobile) {
    display: none;
  }
  .form-mobile {
    display: block;
    margin-top: 1.6em;
  }
}


@media screen and (max-width: 850px) {
  header {
    height: initial;
  }
  .header-body {
    grid-template-columns: 1fr;
  }
  .header-body > div:not(.slider) {
    margin: var(--spacing) 0;
  }
  .slider {
    margin: var(--spacing) 0;
  }
  .pagination {
    display: none;
  }
  .social {
    flex-direction: row;
  }
  .social li {
    margin: 0 1.5em;
    writing-mode: initial;
  }
}

@media screen and (max-height: 430px) {
  header .menu-open {
    height: 600px;
  }

}


}

 @media (max-width: 60em) {
	 body {
		 padding: 1rem;
     align-items: center;
	}
}
 .grid {
	 display: grid;
	 width: 60rem;
	 grid-gap: 6rem;
	 grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	 align-items: start;
}
 @media (max-width: 59em) {
	 .grid {
		 grid-gap: 3rem;
     width: 13rem;
     grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
     align-items: center;
	}
}
 .grid__item {
	 background-color: #fff;
	 border-radius: 1px;
	 overflow: hidden;
	 box-shadow: 0 3rem 6rem rgba(0, 0, 0, .1);
	 cursor: pointer;
	 transition: 0.2s;
}
 .grid__item:hover {
	 transform: translateY(-0.5%);
	 box-shadow: 0 4rem 8rem rgba(0, 0, 0, .2);
}
 .card__img {
	 display: block;
	 width: 100%;
	 height: 18rem;
	 object-fit: cover;
}
 .card__content {
	 padding: 1rem 1.5rem;
}
 .card__header {
	 font-size: .9rem;
	 font-weight: 700;
	 color: #0d0d0d;
	 margin-bottom: 1.5rem;
}
 .card__text {
	 
	 margin-bottom: 1rem;
}
 .card__btn {
	 display: block;
	 width: 50%;
	 padding: .5rem;
	 font-size: .7rem;
	 text-align: center;
	 color: #000;
	 background-color: transparent;
	 border: 2px solid #000;
	 border-radius: 0px;
	 transition: 0.2s;
	 cursor: pointer;
}
 .card__btn span {
	 margin-left: .1rem;
	 transition: 0.2s;
}
 .card__btn:hover, .card__btn:active {
	 background-color: var(--accent);
   border: var(--accent);
   color: #fff;
}

.card__btn_inactive {
	 display: block;
	 width: 50%;
	 padding: .5rem;
	 font-size: .7rem;
	 text-align: center;
	 color: #D3D3D3;
	 background-color: transparent;
	 border: 2px solid #D3D3D3;
	 border-radius: 0px;
	 transition: 0.2s;
	 cursor: pointer;
}
 .card__btn_inactive span {
	 margin-left: .1rem;
	 transition: 0.2s;
}
 .card__btn_inactive:hover, .card__btn_inactive:active {
	 background-color: #D3D3D3;
   border: #D3D3D3;
   color: #fff;
}


