@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Exo+2&family=Noto+Serif:ital,wght@0,300;1,400&display=swap");

* {
  box-sizing: border-box;
  justify-content: center;
}

html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: "Exo 2", sans-serif;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  color: #fff;

  flex-direction: column;
}

.kat {
  margin-left: 40px;
}

.kat21 {
  margin-left: 40px;
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: right;
}

main {
  display: flex;
  flex-direction: row;
  flex: 2 2 auto;
}

article {
  background-color: #f29325;
  flex: 2 2 40em;
  padding: 1em;
}

nav,
aside {
  flex: 1;
  background-color: #d94f04;
}

nav {
  order: -1;
}

header {
  flex: 0 0 2em;
  /* background-color: #007172; */
  background: linear-gradient(
    to right,
    rgba(14, 9, 56, 0.85) 0%,
    rgba(100, 76, 155, 0.85) 100%
  );
  display: flex;

  align-items: center;
}

ul li {
  list-style-type: none;
  flex-direction: row;
}

li {
  background-color: #fe9a28;
  border-radius: 30px;
  padding: 5px;
  margin-right: 20px;
  margin-top: 20px;
  text-decoration: none;
  padding: 8px;
}

h1 {
  text-align: center;
}

/* .container {
    display: flex;
    justify-content: right;
}  */
/* останавился очень нужний контейнер */
a {
  color: #fff;
  text-decoration: none;
}

#sea {
  padding: 20px;
  height: 300px;
  border-radius: 30px;
}

.ppp {
  margin-left: 16px;
  text-align: justify;
}

.con1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.con2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

a:hover {
  color: #007172;
}

ul.menu li a {
  display: block;
  padding-left: 10px;
}

h2 {
  margin-left: 20px;
  margin-top: 24px;
}

input {
  display: block;
  margin: 20px 20px;
}

input:focus:invalid {
  background: pink;
  outline: 2px #f00 solid;
}

input:focus:valid {
  outline: 2px #0f0 solid;
}

input:valid {
  background: white;
  outline: none;
}

input:invalid {
  background: white;
  outline: 2px #f00 solid;
}

#form {
  display: flex;
  /* flex-direction: row; */
  justify-content: left;
}

.styled {
  border: 0;

  padding: 10px;
  height: 40px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgb(220 0 0 / 100%);
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 20%),
    rgb(0 0 0 / 20%) 30%,
    rgb(0 0 0 / 0%)
  );
  box-shadow: inset 2px 2px 3px rgb(255 255 255 / 60%),
    inset -2px -2px 3px rgb(0 0 0 / 60%);
}

.styled:hover {
  background-color: rgb(255 0 0 / 100%);
}

.styled:active {
  box-shadow: inset -2px -2px 3px rgb(255 255 255 / 60%),
    inset 2px 2px 3px rgb(0 0 0 / 60%);
}

.img4 {
  border-radius: 30px;
}

.demo {
  position: relative;
  height: 600px;
  width: 500px;

  margin: 40px;
}

.demo input {
  display: none;
}

.demo img {
  position: absolute;
}

.demo label {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: 3s;
}

.demo #on1:checked ~ [for="on1"],
.demo #on2:checked ~ [for="on2"],
.demo #on3:checked ~ [for="on3"],
.demo #on4:checked ~ [for="on4"],
.demo #on5:checked ~ [for="on5"] {
  visibility: hidden;
  opacity: 0;
}

.demo #on1:checked ~ [for="on2"],
.demo #on2:checked ~ [for="on3"],
.demo #on3:checked ~ [for="on4"],
.demo #on4:checked ~ [for="on5"],
.demo #on5:checked ~ [for="on1"] {
  visibility: visible;
  opacity: 1;
}

#menu_toggle {
  display: none;
  visibility: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-style: double;
  padding: 40px;
  margin: 40px;
  background: linear-gradient(
    to right,
    rgba(23, 17, 90, 0.85) 0%,
    rgba(118, 96, 163, 0.85) 100%
  );
  row-gap: 36px;
  column-gap: 24px;
}

.efect {
  transition: all 0.5s ease;
  width: 100%;
  object-fit: cover;
}

.efect:hover {
  border-radius: 50%;

  filter: grayscale(100%);
  transform: rotate(360deg);
}

#textarea {
  margin-left: 20px;
}

.vvirrob {
  display: none;
  display: inline-block;
}

.sos1 {
  margin: 0 auto;
  width: 70%;
  object-fit: cover;
}

footer {
  flex: 0 0 4em;
  background-color: #007172;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 1024px) {
  header {
    width: 100%;
  }

  main {
    display: block;
  }

  #wrap {
    width: 100%;
  }

  nav {
    height: 0;
    margin-top: 0;
  }

  ul.menu {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -9999px;
    width: 200px;
    height: 400px;
    margin: 0;
    padding: 60px 0;
    background-color: #007172;
    box-shadow: 1px 0 6px rgba(244, 241, 241, 0.2);
  }

  ul.menu li {
    display: block;
    margin-bottom: 15px;
    margin-left: 20px;
  }

  li {
    background-color: #fe9a28;

    margin-right: 20px;
    margin-top: 20px;
    text-decoration: none;
    padding: 4px;
  }

  nav ul.menu a:hover {
    color: #c8c3c3;
    background-color: none;
  }

  .menu_btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 24px;
    height: 24px;
    z-index: 2;
  }

  .menu_btn > span,
  .menu_btn > span::before,
  .menu_btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #f5efef;
  }

  .menu_btn > span::after {
    content: "";
    position: absolute;
    top: 8px;
  }

  #meny_toggle:checked ~ .menu {
    display: block;
  }

  */ .menu_btn > span,
  .menu_btn > span::before,
  .menu_btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #f5efef;
  }

  .menu_btn > span::before {
    content: "";
    position: absolute;
    top: -8px;
  }

  .menu_btn > span::after {
    content: "";
    position: absolute;
    top: 8px;
  }

  #menu_toggle {
    display: none;
    visibility: hidden;
  }

  #menu_toggle:checked ~ .menu {
    display: block;
    visibility: visible;
    left: 0;
  }

  #menu_toggle:checked ~ .menu_btn > span {
    transform: rotate(45deg);
  }

  #menu_toggle:checked ~ .menu_btn > span::before {
    top: 0;
    transform: rotate(0);
  }

  #menu_toggle:checked ~ .menu_btn > span::after {
    top: 0;
    transform: rotate(90deg);
  }

  .menu_btn > span,
  .menu_btn > span::before,
  .menu_btn > span::after {
    transition: all 0.25s;
  }

  .menu {
    transition: all 0.25;
  }

  article {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
  }

  img {
    width: 100%;
    height: 100%;
  }

  .con1 {
    display: flex;
    flex-direction: column;
  }

  .con2 {
    display: flex;
    flex-direction: column;
  }

  .demo {
    margin: 0 auto;
    width: 90%;
    object-fit: cover;
  }

  .ppp {
    display: flex;
    flex-direction: column;
    text-align: justify;
    margin: 0 auto;
    margin-top: 20px;
  }

  h1 {
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  header {
    flex: content;
    width: 100%;
  }

  main {
    display: block;
  }

  #sea {
    flex: content;
    width: 100%;
  }

  article {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  nav {
    display: flex;
  }

  .grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
  }

  .demo {
    position: relative;
    height: 300px;
    width: 300px;

    margin: 40px;
  }

  img {
    flex: content;
    width: 100%;
  }

  .con1 {
    display: flex;
    flex-direction: column;
  }

  .con2 {
    display: flex;
    flex-direction: column;
  }

  .ppp {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 500px) {
  header {
    width: 100%;
  }

  main {
    display: block;
    background-color: #f29325;
  }

  article {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  nav {
    display: flex;
  }

  .grid {
    display: grid;

    grid-template-columns: repeat(1, 1fr);
  }

  img {
    flex: content;
    width: 100%;
  }

  .con1 {
    display: flex;
    flex-direction: column;
  }

  .con2 {
    display: flex;
    flex-direction: column;
  }

  .ppp {
    display: flex;
    flex-direction: column;
  }

  .sos1 {
    opacity: 1;
    overflow: hidden;
  }

  footer {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .sos1 {
    opacity: 0;
  }
}
