@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
	--index: calc(1vw + 1vh);
}



label {
  margin-bottom: 8px;
  font-size: 13px;
}

input[type="checkbox"]:checked, 
input[type="checkbox"]:not(:checked)
{
	position: absolute;
	left: -9999px;
}

input[type="checkbox"]:checked + label, 
input[type="checkbox"]:not(:checked) + label{
	display: inline-block;
	position: relative;
	padding-left: 20px;
	line-height: 1;
	cursor: pointer;
}

input[type="checkbox"]:checked + label:before, 
input[type="checkbox"]:not(:checked) + label:before {
	content: "";
	position: absolute;
	left: 0px;
	top: 0px;
	width: 12px;
	height: 12px;
	background-color: #ababab;
}


input[type="checkbox"]:checked + label:after, 
input[type="checkbox"]:not(:checked) + label:after {
	content: "";
	position: absolute;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
}

input[type="checkbox"]:checked + label:after, 
input[type="checkbox"]:not(:checked) + label:after {
	left: 5px;
	top: 1px;
	width: 5px;
	height: 5px;
	border: 4px solid #9B2D30;
}

input[type="checkbox"]:not(:checked) + label:after {
	opacity: 0;
}

input[type="checkbox"]:checked + label:after {
	opacity: 1;
}
.check-policy {
	font-size: 13px;
}
.btn {
	padding: 1.75em 1.75em;
	display: inline-block;
	line-height: 1;
	margin: 2em 0;
  color: #fff;
  background-color: #9B2D30;
  border: none;
}
.btn:hover {
  cursor: pointer;
}
.btn:disabled, .btn:hover:disabled {
	background-color: rgba(0,0,0,.1);
	border: 1px solid rgba(0, 0, 0, .1);
  cursor: not-allowed;
}






.f-c-c {
  display: flex;
  justify-content: center;
  align-items: center;
}

.f-b-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.col {
  flex-direction: column;
}

.gap10 {gap: 10px;}
.gap30 {gap: 30px;}
.gap50 {gap: 50px;}

.pad10 {padding: 10px;}
.pad30 {padding: 30px;}
.pad50 {padding: 50px;}

.hidden {
  display: none;
  color: #9B2D30;
  font-size: 18px;
}

*, *:after, *:before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.header {
  width: 100%;
  height: 400px;
  background: url('/content/img/bg.jpg') no-repeat center center / cover;
  padding: 15px;
}

.top {
  width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 3px solid #9B2D30;
  padding: 10px;
}

.footer {
  width: 100%;
  height: 100px;
  background-color: #a0787a44;
  gap: 50px;
  border-top: 1px dashed #9B2D30;
}

.logo {
  width: 150px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  column-gap: 10px;
  align-items: center;
}

.logo > img {
  display: block;
  width: 65px;
  height: 65px;
}

.name {
  font-size: calc(var(--index) * 1);
  color: white;
}

.name p {
  font-size: calc(var(--index) * 0.5);
  color: white;
}

.name:hover, .logo:hover {
  cursor: pointer;
}

.menu {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
}

.menu-mobile {
  display: none;
}

a, a:active, a:hover,
.dropdown > span, .dropdown > span:active, .dropdown > span:hover,
.dropdown-list > a, .dropdown-list > a:active, .dropdown-list > a:hover {
  text-decoration: none;
}

.menu > a,
.menu > .dropdown > span {
  color: #ffffff;
  padding: 5px 0px;
  font-size: calc(var(--index) * .7);
  padding: 5px 7px;
}

.menu > a:hover,
.menu > .dropdown > span:hover {
  background: #9B2D30;
  border-radius: 7px;
  color: white;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-list {
  display: none;
  position: absolute;
  left: 0;
  background-color: #ffffff;
  border-radius: 0 0 5px 5px;
  min-width: 100px;
  text-align: center;
  border: 2px solid white;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-list > a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-list {display: block;}
.dropdown-list > a:hover {background-color: #9B2D30; color: white;}
.dropdown-list > a:last-child:hover {border-radius: 0 0 5px 5px;}

.content {
  width: 100%;
}

.bg {
  gap: 15px;
  width: 100%;
  height: 300px;
}

.bg > p {
  font-family: "Roboto Condensed";
  color: white;
  font-size: calc(var(--index) * 1);
  font-weight: 200;
  text-align: center;
}

.bg > p:first-child {
  font-size: calc(var(--index) * 1.7);
  font-weight: 700;
}

.footer > a {
  color: #9B2D30;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card--content {
  width: 100%;
}

.card--content .space {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
  grid-auto-rows: 350px;
  column-gap: 30px;
  row-gap: 50px;
  justify-content: center;
  padding: 50px 0;
}

.card {
  display: grid;
  grid-template-rows: 250px 1fr;
  background-color: #9B2D30;
  border: 5px solid #9B2D30;
  border-radius: 10px;
  color: white;
  filter: drop-shadow(1px 1px 4px #999999);
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 240px;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.label {
  font-size: calc(var(--index) * .7);
  text-align: center;
  padding: 0px 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: none;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr 170px;
  align-items: center;
  left: calc(50% - 250px);
  top: calc(50% - 150px);
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 550px;
  height: 350px;
  text-align: center;
}

.modal-content > h1,
.modal-content > p {
  color: #9B2D30;
}

.modal-content form {
  width: 100%;
  height: 80%;
}

.modal-content form input,
.modal-content form button {
  width: 90%;
  height: 35px;
  padding: 5px;
  font-size: 18px;
  outline: none;
}

.close {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #aaaaaa;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.space--big {
  width: 75%;
  display: grid;
  grid-auto-columns: auto;
  grid-template-rows: repeat(5, 1fr);
  row-gap: 50px;
  justify-content: center;
  padding: 50px 0;
}

.card--big {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 300px 200px;
  column-gap: 6px;
  background-color: #9B2D30;
  border-radius: 15px;
  overflow: hidden;
  border: 6px solid #9B2D30;
}

.card--big > .card--big-img {
  align-self: center;
  justify-self: center;
}

 img {
  width: 300px;
  height: auto;
}

.card--big > .card--big-sch {
  grid-area: 1 / 2 / 2 / 2;
}

.card--big > .card--big-sch img {
  height: 500px;
  width: auto;
}

.card--big > .card--big-name {
  align-self: center;
  justify-self: center;
  font-size: calc(var(--index) * 1.2);
  line-height: calc(var(--index) * 2);
  color: white;
  text-align: center;
}

.about-us {
  width: 75%;
  text-align: justify;
  box-shadow: 0 0 10px gray;
  border-radius: 15px;
  padding: 35px 65px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  gap: 30px;
}

.about-us::before{
  z-index: -1;
  position: absolute;
  left: 0;
  bottom: 0;
  content: url('/content/img/wirtgen/wirtgen.jpg');
  opacity: 0.1;
}

.A, .B {
  font-size: calc(var(--index) * .8);
}

.pictures {
  width: 520px;
  grid-area: e;
  border: 1px solid #9B2D30;
  border-radius: 15px;
  background-color: #9B2D30;
  padding: 6px;
  gap: 6px;
  align-self: self-start;
}

.pictures > a > img {
  display: block;
  width: 250px;
  border-radius: 15px;
}

.full {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  padding: 8%;
  background: #8a8a8a center no-repeat;
  background: rgba(0, 0, 0, 0.712) center no-repeat;
  background-size: contain;
  background-origin: content-box;
}

.full:target {
  display: block;
}

.burger {
  display: none;
  position: relative;
  z-index: 50;
  align-items: center;
  justify-content: flex-end;
  width: 30px;
  height: 18px;
}

.burger span {
  height: 2px;
  width: 80%;
  transform: scale(1);
  background-color: white;
}

.burger::before, .burger::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: white;
  transition: all .3s ease 0s;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger.active span {
  transform: scale(0);
}

.burger.active::before {
  top: 50%;
  transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after {
  bottom: 50%;
  transform: rotate(45deg) translate(0, 50%);
}

.open {
  display: flex !important;
}

.tel--and--menu {
  display: none;
}



/* Мобильная версия */
@media only screen and (max-width: 800px) {
  .header {
    height: 230px;
    width: 100%;
    justify-content: center;
    padding: 5px;
    gap: 0px;
  }
  .header .name {
    width: 70%;
    font-size: calc(var(--index) * 1.1)
  }
  .name p {
    font-size: calc(var(--index) * 2);
  }
  .menu {
    display: none;
  }
  .menu-mobile {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 49;
    gap: 15px;
    overflow-y: auto;
  }
  .menu-mobile > a, .menu-mobile > a:active {
    font-size: calc(var(--index) * 3);
    color: white;
  }
  .bg {
    height: 150px;
  }
  .card--content .space {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    grid-auto-rows: 230px;
    column-gap: 15px;
    row-gap: 25px;
    padding: 25px 0;
  }
  .card {
    grid-template-rows: 140px 1fr;
    border-radius: 10px;
    filter: drop-shadow(1px 1px 4px #999999);
  }
  .card img {
    width: 140px;
  }
  .label {
    font-size: calc(var(--index) * 1.1);
    word-break: break-word;
  }
  .footer {
    height: 250px;
    flex-direction: column;
    gap: 10px;
  }
  .space--big {
    width: 100%;
    padding: 25px;
  }
  .card--big {
    grid-template-columns: 350px;
    grid-template-rows: 350px 270px 150px;
    row-gap: 6px;
  }
   img {
    width: 350px;
    height: auto;
  }
  .card--big > .card--big-sch {
    grid-area: 2 / 1 / 2 / 1;
  }
  .card--big > .card--big-sch img {
    width: 350px;
    height: auto;
  }
  .card--big > .card--big-name {
    font-size: calc(var(--index) * 3);
    line-height: calc(var(--index) * 4);
  }
  .top {
    width: 100%;
    backdrop-filter: none;
    grid-template-columns: 1fr auto;
  }
  .name p {
    display: none;
  }
  .burger {
    display: flex;
    align-self: center;
    justify-self: flex-end;
  }
  .contact {
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    height: 35px;
    width: 35px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
  }
  .tel--and--menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
  }
  .modal-content {
    width: 300px;
    height: 400px;
    left: calc(50% - 150px);
    top: calc(50% - 155px);
  }
  .logo {
    width: 100%;
  }
  .header .name {
    font-size: calc(var(--index) * 2);
  }
  .pictures {
    width: 320px;
    align-self: center;
  }
  .pictures > a > img {
    width: 150px;
  }
  .content {
    padding: 10px;
  }
  .about-us {
    width: 100%;
    padding: 15px 25px;
  }
  .about-us::before {
    content: "";
  }
  .A, .B {
    font-size: calc(var(--index) * 1.2);
  }
}
