* {
  padding: 0;
  margin: 0;
  font-family: "Century Gothic", sans-serif;
  box-sizing: border-box;
  scrollbar-color: #ccc #fff; 
	scrollbar-width: thin;
}

body {
  background: linear-gradient(to bottom, #fffdfc, #fffafa);
}

::-webkit-scrollbar-track {
	background-color: #fff;
} 
::-webkit-scrollbar-thumb { 
	border-radius: 5px; 
	background-color: #ccc;
} 
::-webkit-scrollbar{ 
	width: 6px;
}

/* Шапка */
header {
  padding: 20px 10px;
  background: #2f3129;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 2px solid #c54141;
  color: #fff;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 203px;
}
.nav {
  display: none;
}
header ul {
  display: flex;
  list-style-type: none;
  margin-left: auto;
  margin-right: auto;
}
header ul li a {
  padding: 10px 20px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  margin-left: 3px;
}
header ul li a:hover {
  border-bottom: 2px solid white;
}

.logo img {
  margin-left: 1.3em;
  width: auto;
  height: 80px;
}
/* Оформление иконок */

.icon {
  width: 30px;
  height: 30px;
  fill: white;
  margin-left: 30px;
}
.icon:hover {
  cursor: pointer;
}

.icon_link {
  position: relative;
  display: inline-block;
  font-size: 45px;
  left: 15px;
}
.icon_link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  margin-left: -5%;
  background: #fff;
}
.ocn {
  text-align: center;
}
/* Иконка телефона */
.adap_tel {
  position: relative;
  right: 30px;
}
.telp {
  cursor: pointer;
  position: relative;
  width: 45px;
  height: 45px;
  overflow: hidden;
}
.telp::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  transition: all 0.25s ease;
  border-radius: 30px;
}

.telp-expand::before {
  box-shadow: inset 0 0 0 60px #fff;
}
.telp-expand:hover::before {
  box-shadow: inset 0 0 0 1px #fff;
}

/* Главная страница */
.rewq {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  background-color: #b4b4b4;
  background: black url(decor/123.jpg) center bottom no-repeat;
  background-size: cover;
  color: white;
  font-weight: bolder;
  font-size: 100px;
}
.reqwp {
  text-shadow: 2px 0 2px #000, 0 2px 2px #000, -2px 0 2px #000, 0 -2px 2px #000;
  text-align: center;
}

/* Слайдер */
.box {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  margin-top: 50px;
}
.slider {
  width: auto;
  height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 2px solid black;
  box-shadow: 0px 8px 16px #00000069;
}
.slides {
  width: 400%;
  height: 100%;
  display: flex;
}
.slide {
  width: 25%;
  transition: all 0.5s ease;
}
.slide a > img {
  width: 100%;
  height: 100%;
}

#r1:checked ~ .s1 {
  margin-left: 0%;
}
#r2:checked ~ .s1 {
  margin-left: -25%;
}
#r3:checked ~ .s1 {
  margin-left: -50%;
}
#r4:checked ~ .s1 {
  margin-left: -75%;
}

/* Кнопки навигации круглые */
input[name="r"] {
  display: none;
}
.navigation {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}
.bar {
  width: 15px;
  height: 15px;
  cursor: pointer;
  background: white;
  border: 2px solid rgba(68, 68, 68, 0.6);
  border-radius: 50%;
  margin: 6px;
  transition: border 0.2s ease-out;
}
.bar:hover {
  transform: scale(1.2);
  border: 2px solid #000000;
}
#r1:checked ~ .navigation label.bar:nth-of-type(1) {
  transform: scale(1.2);
  border: 2px solid #000000;
}
#r2:checked ~ .navigation label.bar:nth-of-type(2) {
  transform: scale(1.2);
  border: 2px solid #000000;
}
#r3:checked ~ .navigation label.bar:nth-of-type(3) {
  transform: scale(1.2);
  border: 2px solid #000000;
}
#r4:checked ~ .navigation label.bar:nth-of-type(4) {
  transform: scale(1.2);
  border: 2px solid #000000;
}

/* Кнопки влево и вправо */
.strelka-left,
.strelka-right {
  border-radius: 50%;
  border: 2px solid rgba(68, 68, 68, 0.6);
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: border 0.2s ease-out;
}
.strelka-left path,
.strelka-right path {
  fill: rgba(68, 68, 68, 0.6);
  transition: fill 0.2s ease-out;
}
.strelka-left:hover path,
.strelka-right:hover path {
  fill: #000000;
}
.strelka-left:hover,
.strelka-right:hover {
  border: 2px solid #000000;
}
.strelka-right {
  transform: rotate(180deg);
}
.arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  margin-top: -25px;
}
.arrow label {
  display: none;
  cursor: pointer;
}

.next {
  right: 1%;
}
.previous {
  left: 1%;
}

#r1:checked ~ .previous .numb4,
#r2:checked ~ .previous .numb1,
#r3:checked ~ .previous .numb2,
#r4:checked ~ .previous .numb3,
#r1:checked ~ .next .numb2,
#r2:checked ~ .next .numb3,
#r3:checked ~ .next .numb4,
#r4:checked ~ .next .numb5 {
  display: block;
}

/* Подвал */
footer {
  margin-top: 20vh;
  padding: 20px 10px;
  background-size: cover;
  background-repeat: no-repeat;
  background: #1f1e1e;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  min-height: 20vh;
}
.f_menu {
  color: white;
  margin-left: 15vh;
  text-align: center;
}
.f_menu a {
  color: white;
}
.a_foot {
  margin-bottom: 10px;
  list-style-type: none;
}
.socs {
  width: 50px;
  height: 50px;
  margin-left: 20px;
}
.soc_marg {
  margin-left: 55px;
}
.info_footer {
  margin-right: 55px;
}

/* Кнопка вверх */
.top {
  position: fixed;
  font-size: 45px;
  bottom: 0;
  left: 5px;
  color: #c54141;
  text-decoration: none;
  opacity: 0.8;
}
.top:hover {
  opacity: 1;
}

/* плавная прокрутка */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Корзина иконка */
.korz::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  margin-left: -5%;
  background: #fff;
}

/* Контакты */
.container_kontakt {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  margin-left: 40px;
  margin-right: 40px;
}
.info_k {
  margin-right: 40vh;
}
.info_k p {
  font-size: 25px;
}
.m_yandex {
  position: relative;
  overflow: hidden;
  display: none;
}

/* Форма связи */
section.kont {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.box_login {
  position: relative;
}
.container_kont {
  position: relative;
  width: 400px;
  min-height: 400px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.formkont {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px;
}
.formkont h2 {
  position: relative;
  color: #575757;
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 40px;
  border-bottom: 5px solid #575757;
}
.formkont .inputkont {
  width: 100%;
  margin-top: 10px;
}
.formkont .inputkont input {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.formkont .inputkont select {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.formkont .inputkont textarea {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  resize: vertical;
}
.container_kont .inputkont {
  position: relative;
  width: 300px;
  margin-top: 30px;
  height: auto;
}
.container_kont .inputkont span {
  position: absolute;
  top: 1px;
  left: 1px;
  padding: 10px;
  display: inline-block;
  font-size: 16px;
  color: #575757;
  font-weight: 600;
  transition: 0.5s;
  pointer-events: none;
}
/* Кнопка отправки */
.formkont .inputkont input[type="submit"] {
  background: #eeeeee;
  color: #666;
  font-weight: 600;
  cursor: pointer;
}
.formkont .inputkont input[type="submit"]:hover {
  color: black;
  background: #ffeeee;
}
.obr {
  color: #585858;
  font-weight: 600;
}

/* О нас */
.o_nas {
  text-align: center;
  margin-right: 4vh;
  margin-left: 4vh;
  margin-top: 7vh;
}
/* .shaped {
  background: black url(../decor/dom-onas.jpg) center top no-repeat;
  background-size: cover;
  height: 75vh;
  width: 40vw;
  background-size: cover;
  float: right;
  shape-outside: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
  shape-margin: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
} */
.shaped img {
    width: 1600px;
    height: 700px;
    border-radius: 20px;
}
.shaped {
    text-align: center;
    margin-top: 60px;
}

/* Новости */
.zag_novs {
  text-align: center;
  margin-top: 5vh;
}
.novs {
  text-align: center;
  margin-left: 30vh;
  margin-right: 30vh;
  margin-top: 5vh;
}
.novs h3 {
  margin-bottom: 10px;
}
.date_author {
  text-align: right;
  font-style: italic;
}
.img_novs {
  width: 600px;
  margin-top: 1vh;
  margin-bottom: 1vh;
}



.imagd {
    width: 400px;
    height: 300px;
}
.imagesd {
    text-align: center;
}



/* Услуги */
.imagg {
    width: 350px;
    height: 300px;
}
.imagg img {
    width: 350px;
    height: 300px;
}
.u_ned {
  margin-top: 4vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uslug {
  display: flex;
  flex-wrap: wrap;
}
.uslug2 {
  display: flex;
  flex-wrap: wrap;
}
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 350px;
  text-align: center;
  margin-left: 40px;
  margin-right: 40px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ИСПРАВИТЬ ДЛИНУ СТОЛБЦОВ!!!! ЧИТАТЬ height: 100%; */
}
.blocke {
    display: block;
}
.price {
  color: rgb(0, 0, 0);
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0 10px 0;
}
button.zakaz {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}
button.podr {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #c54141;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}
button.podr2 {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #d89400;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}
.tofo {
    margin-top: 40px;
    text-align: center;
}
.tofo a {
    color: black;
}

.korze {
  text-align: center;
  margin-top: 4vh;
}
.butk {
  margin-top: 5vh;
}
.card button:hover {
  opacity: 0.7;
}

@media screen and (max-width: 1500px) {
    .container_kontakt {
        display: block;
    }
    .info_k {
        margin: auto;
    }
    .twogis {
        display: none;
    }
    .m_yandex {
        display: block;
        text-align: center;
    }
    .ifrya {
        width: 600px;
        height: 400px;
    }
}

@media screen and (max-width: 710px) {
    .ifrya {
        width: 300px;
        height: 300px;
    }
}

@media screen and (max-width: 400px) {
    .ifrya {
        width: 200px;
        height: 300px;
    }
}

@media screen and (max-width: 1050px) {
  /* Шапка */
  footer,
  header {
    display: block;
  }
  header ul,
  .logo {
    display: none;
  }
  header div.ic {
    text-align: center;
  }
  header a.icon_link {
    display: inline-block;
    left: 0;
    margin-right: 20px;
  }
  .adap_tel {
    display: none;
  }

  /* Подвал */
  .f_menu {
    margin: 0;
  }
  .soc_marg {
    text-align: center;
    margin: 0 0 20px 0;
  }
  .info_footer {
    margin: 0;
    text-align: center;
    margin-top: 50px;
  }

  /* Новости */
  .novs {
    text-align: center;
    margin: 0;
    margin-top: 20vh;
  }
  .img_novs {
    width: 300px;
  }
  .zag_novs {
    margin-bottom: -80px;
  }

  /* Страница входа и регистрации */
  section {
    display: block;
  }
  .square {
    display: none;
  }
  .container_acc {
    display: block;
    width: auto;
    backdrop-filter: blur(0);
  }
  .container_acc .inputBox {
    width: auto;
  }

  /* Главная страница */
  .rewq p {
    font-size: 30px;
  }

  /* Слайдер */
  .slider {
    height: 40vh;
    border-radius: 0;
  }
  .bar {
    width: 10px;
    height: 10px;
  }
  .strelka-left,
  .strelka-right {
    width: 35px;
    height: 35px;
  }

  /* Страница О нас */
  .shaped {
    display: none;
  }
  .shaped img {
    display: none;
  }
  .migo {
    font-size: 20px;
    margin-bottom: 100px;
  }
  .logo div h2 {
    font-size: 15px;
    margin-bottom: -100px;
  }

  /* Страница Контакты */
  /* Закоментированно, т.к. были добавлены новый текст и новая адаптация */
  /*.container_kontakt {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .twogis {
    display: none;
  }
  .info_k {
    margin: 0;
  }
  .info_k h1 {
    font-size: 25px;
  }
  .info_k p {
    font-size: 15px;
  }
  .m_yandex {
    position: relative;
    overflow: hidden;
    display: block;
    margin-top: 40px;
  }*/
  section.kont {
    display: block;
  }
  .container_kont {
    display: block;
    width: auto;
  }
  .container_kont .inputkont {
    width: auto;
  }

  /* Переключаемая боковая панель навигации * выдвигающаяся справа */
  .nav {
    width: 320px;
    min-width: 320px;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    right: -320px;
    padding: 15px 20px;
    transition: right 0.3s;
    background: #1c1d1a;
    z-index: 2000;
  }

  /* Кнопка переключения панели, тег <label> */
  .nav-toggle {
    position: absolute;
    right: 320px;
    top: 1em;
    padding: 0.5em;
    background: inherit;
    color: #dadada;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    z-index: 2001;
  }

  /* определяем текст кнопки */
  .nav-toggle:after {
    content: "\2630";
    text-decoration: none;
  }

  /* Скрытый чекбокс */
  [id="nav-toggle"] {
    position: absolute;
    display: none;
  }

  /* изменение положения переключателя. при просмотре на мобильных устройствах. когда навигация раскрыта, распологаем внутри панели */
  [id="nav-toggle"]:checked ~ .nav > .nav-toggle {
    left: auto;
    right: 2px;
    top: 1em;
  }

  /* Когда флажок установлен, открывается панель */
  [id="nav-toggle"]:checked ~ .nav {
    right: 0;
    box-shadow: -4px 0px 20px 0px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  /* изменение символа переключателя */
  [id="nav-toggle"]:checked ~ .nav > .nav-toggle:after {
    content: "\2715";
  }

  /* Формируем стиль заголовка (логотип) панели */
  .nav h2 {
    width: 90%;
    padding: 0;
    margin: 10px 0;
    text-align: center;
    font-size: 1.3em;
    line-height: 1.3em;
    opacity: 0;
    display: block;
  }

  .nav h2 a {
    color: #dadada;
    text-decoration: none;
    text-transform: uppercase;
  }

  /*плавное появление заголовка (логотипа) при раскрытии панели */
  [id="nav-toggle"]:checked ~ .nav h2 {
    opacity: 1;
    transform: scale(1, 1);
  }

  /**
     * формируем непосредственно само меню
     * используем неупорядоченный список для пунктов меню
     * прикрутим трансфомации и плавные переходы
     */
  .nav > ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav > ul > li {
    margin-top: 10px;
    line-height: 2.5;
    opacity: 0;
  }

  [id="nav-toggle"]:checked ~ .nav > ul > li {
    opacity: 1;
    transform: translateX(0);
  }

  /* оформление ссылок пунктов меню */
  .nav {
    display: inline-block;
  }
  .nav > ul > li > a {
    display: inline-block;
    position: relative;
    padding: 0;
    font-weight: 300;
    font-size: 1.2em;
    color: #dadada;
    width: 100%;
    text-decoration: none;
  }

  /* состояние ссылок меню при наведении */
  .nav > ul > li > a:hover,
  .nav > ul > li > a:focus {
    color: white;
    padding-left: 15px;
  }

  /* линия подчеркивания ссылок меню */
  .nav > ul > li > a:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: #ffffff;
  }
}
