* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
*::selection {
  color: white;
  background-color: rgb(115, 107, 216);
}
#main {
  padding: 0 120px;
  margin-bottom: 120px;
}
#second {
  padding: 0 120px;
  background-color: #eee;
  padding-bottom: 120px;
}
#last {
  padding: 0 120px;
}

header {
  background-color: black;
  color: white;
  width: 100%;
  height: 12vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 120px;
  position: fixed;
  z-index: 2;
}
.name {
  font-family: sans-serif;
}
.heading {
  list-style-type: none;
  display: flex;
  gap: 50px;
}
.heading li {
  font-family: sans-serif;
}
.firstlink {
  text-decoration: none;
  color: white;
  transition: 0.5s;
  font-weight: 700;
}
.firstlink:hover {
  color: rgb(115, 107, 216);
}
.main {
  background-color: rgb(115, 107, 216);
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
}
h1 {
  font-weight: 700;
  width: 65%;
  margin-left: 120px;
  line-height: 50px;
}
.headlink {
  text-decoration: none;
  display: inline-block;
  color: rgb(115, 107, 216);
  background-color: white;
  width: 10vw;
  height: 7vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 7px;
  transition: 0.5s all;
}
.thirdl {
  display: inline-block;
  margin-left: 100px;
}
.links {
  display: flex;
}
.thirdl1 {
  margin-left: 50px;
}
.headlink:hover {
  background-color: rgb(115, 107, 216);
  color: white;
}
.contentT {
  margin-top: 10vh;
}
.firstP {
  line-height: 35px;
  font-size: 18px;
}
.content2 {
  padding-top: 10vh;
}
.photos1 {
  margin-top: 50px;
  display: flex;
  gap: 25px;
}
img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}
.secondP {
  line-height: 35px;
  font-size: 18px;
}
.secondphotos {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.fotka {
  width: 600px;
  height: 400px;
  object-fit: cover;
}
.content3 {
  padding-top: 10vh;
}
.lastp {
  line-height: 35px;
  font-size: 18px;
}
#input {
  padding: 0 120px;
}
input {
  width: 450px;
  height: 40px;
  border-radius: 5px;
  background-color: #eee;
  padding-left: 30px;
  box-sizing: border-box;
  border: 1px solid #eee;
  transition: 0.5s;
  outline: none;
  border: 2px solid #eee;
}
textarea {
  width: 100%;
  border-radius: 5px;
  background-color: #eee;
  padding-left: 30px;
  outline: none;
  transition: 0.5s all;
  border: 2px solid #eee;
}
.form {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
button {
  width: 12vw;
  margin-top: 10px;
  margin-bottom: 100px;
  height: 5vh;
  background-color: rgb(115, 107, 216);
  color: white;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid rgb(115, 107, 216);
  border-radius: 5px;
  margin-top: 40px;
  padding: 10px;
  transition: 0.5s all;
}
button:hover {
  background-color: white;
  color: rgb(115, 107, 216);
}
input:focus {
  border: 2px solid rgb(115, 107, 216);
}
textarea:focus {
  border: 2px solid rgb(115, 107, 216);
}
textarea:hover {
  border: 2px solid rgb(115, 107, 216);
}
input:hover {
  border: 2px solid rgb(115, 107, 216);
}
footer {
  background-color: black;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 12vh;
}
.sonlink {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  transition: 0.5s;
}
.sonul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: 120px;
}
h3 {
  margin-right: 120px;
}
.sonlink:hover {
  color: rgb(115, 107, 216);
}
img {
  transition: all 0.5s;
}
img:hover {
  transform: scale(1.1);
}
.inputs {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

@media screen and (max-width: 576px) {
  * {
    width: 100vw;
    box-sizing: border-box;
  }
  header {
    width: 100vw;
    height: 10vh;
    gap: 0px;
    display: flex;
    justify-content: flex-start;
    padding: 0px;
    margin: 0px;
    font-size: 20px;
    gap: 5vw;
    padding: 0px 20px;
  }
  .heading ul {
    width: 400px;
  }
  .name {
    padding: 0;
    margin: 0;
    font-size: 16px;
    width: 100px;
  }
  .heading {
    gap: 0px;
    font-size: 15px;
    gap: 5px;
  }
  .heading li:nth-child(1) {
    display: none;
  }
  .heading li:nth-child(2) {
    width: 20%;
    margin-right: 10px;
  }
  .heading li:nth-child(3) {
    width: 35%;
    margin-right: 10px;
  }
  .heading li:nth-child(4) {
    width: 20%;
  }
  .main {
    width: 100vw;
    height: 50vh;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
  }
  .main h1 {
    width: 100%;
    height: 150px;
    margin-top: 130px;
    margin-left: 0px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    display: block;
  }

  .links {
    width: 100%;
    display: block;
    gap: 0px;
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
  }
  .thirdl {
    width: 100vw;
    height: 50px;
    margin: 0;
    padding: 0;
    gap: 0;
    margin-bottom: 20px;
  }
  .thirdl1 {
    width: 100vw;
    height: 50px;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
  }
  .headlink {
    width: 100vw;
    margin-bottom: 20px;
  }
  #main {
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  #main h2 {
    width: 100vw;
    text-align: center;
  }
  #main .firstP {
    width: 100vw;
    padding: 10px;
  }
  #main .photos1 {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  #second {
    width: 100vw;
    margin: 0;
    padding: 0;
  }
  #second .content2 {
    width: 100vw;
    font-size: 20px;
    text-align: center;
  }
  #second .secondP {
    width: 100vw;
    padding: 10px;
  }
  .secondphotos img{
    width: 100vw;
    height: 300px;
  }
  #last{
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  #last h2{
    width: 100vw;
    text-align: center;
    padding: 10px;
    margin-top: 50px;
  }
  #last p{
    width: 100vw;
    text-align: center;
    padding: 10px;
  }
  #input{
    width: 100vw;
    padding: 0;
    margin: 0;
  }
  .form{
    width: 100vw;
  }
  .inputs{
    width: 100vw;
    justify-content: flex-start;
    gap: 40%;
  }
  .nameinput{
    width: 30%;
  }
  textarea{
    padding: 0;
    margin: 10px;
    width: 90vw;
    height: 20vh;
  }
  .lastB{
    width: 100vw;
    margin-bottom: 150px;
  }
  .photos1 span img{
    width: 100vw;
    padding: 0;
    margin: 0;
  }
  .photos1{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
  }
  footer{
    width: 100vw;
    display: block;

  }
  footer .sonul{
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
  }
  .sonlink{
    margin: 0;
    padding: 0;
    font-size: 14px;
    display: flex;
    justify-content: center;

  }
  footer h3{
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    padding-right: 5px;
  }
  footer .sonul li{ 
    width: 100px;
    display: flex;
  }
}
