*, *:before, *:after {
  box-sizing: border-box;
}

html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: none;
}

footer, header, nav, section, main {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input {
  -webkit-appearance: none;
  border-radius: 0;
}

html, body {
  height: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, select, option, textarea {
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.4);
  width: 100%;
  padding: 5px 5px;
  font-size: 1rem;
}

select {
  border: none;
  height: 30px;
}

textarea {
  min-height: 20VH;
  resize: vertical;
}

button {
  width: 100%;
  border: none;
  background-color: #031968;
  color: #FFF;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 5px 0;
  cursor: pointer;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
@media screen and (min-width: 600px) {
  button {
    width: auto;
    padding: 5px 20px;
  }
}

button:hover {
  background-color: #042495;
}

.footer-copyright, .profile, .contact, .login, .services, .post-content, .post, .header, .head-title-form {
  padding-left: calc(50% - 585px);
  padding-right: calc(50% - 585px);
}
@media screen and (max-width: 1230px) {
  .footer-copyright, .profile, .contact, .login, .services, .post-content, .post, .header, .head-title-form {
    padding-left: 30px;
    padding-right: 30px;
  }
}

html, body {
  box-sizing: border-box;
  height: 100%;
  overflow-x: hidden;
  line-height: 1.4;
}

main {
  position: revert;
  margin-bottom: 50px;
  background-color: #FFF;
  padding-bottom: 2px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

p {
  padding-top: 20px;
  padding-bottom: 20px;
}

.head-title {
  font-weight: bold;
  font-size: 1.2rem;
  background-color: #C1C1C1;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 20px;
}

.head-title-form input {
  text-align: center;
  background: none;
  border: none;
}

#js-form-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: #FFF;
  margin-top: 74px;
  padding: 0 15px;
}

.form-group-item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.header {
  background-color: #031968;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.header a {
  color: #FFF;
  text-decoration: none;
}

.header-logo-link {
  font-family: "Rock Salt", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.7rem;
}

.header-lists {
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #031968;
}
@media screen and (min-width: 720px) {
  .header-lists {
    display: flex;
    flex-direction: row;
    position: static;
  }
}

.header-nav-sprite {
  fill: #FFF;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
@media screen and (min-width: 720px) {
  .header-nav-sprite {
    display: none;
  }
}

.header-lists {
  z-index: 1;
}

.header-lists[data-state="0"] {
  right: -180px;
}

.header-lists[data-state="1"] {
  right: 0;
}

.header-list-sprite {
  width: 35px;
  height: 35px;
}

.header-list-link {
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: initial;
  font-size: 1.2rem;
  gap: 10px;
}

.header-list-subnav .header-list-sprite {
  width: 25px;
  height: 25px;
}

.header-list-path {
  fill: #FFF;
}

.header-list-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-list-avatar {
  width: 50px;
  height: 50px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  cursor: pointer;
  object-position: right top;
}

.header-list-nav {
  position: relative;
}

.header-list-subnav[data-state="0"] {
  display: none;
}

.header-list-subnav[data-state="1"] {
  display: block;
  position: absolute;
  top: 65px;
  background: #031968;
  z-index: 1;
  -webkit-box-shadow: 1px 1px 1px 1px #C1C1C1;
  -moz-box-shadow: 1px 1px 1px 1px #C1C1C1;
  box-shadow: 1px 1px 1px 1px #C1C1C1;
  left: -80px;
  width: 220px;
}

@-webkit-keyframes scale {
  to {
    position: absolute;
    top: 83px;
    left: 0;
    right: 173px;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }
}
.side-overflow[data-state="1"] {
  animation: scale 1s forwards;
}

.posts a {
  color: #000;
  text-decoration: none;
}

.post {
  padding-top: 35px;
  padding-bottom: 35px;
  gap: 20px;
  flex-direction: column;
}
@media screen and (min-width: 600px) {
  .post {
    display: grid;
    grid-template-columns: 2fr 5fr;
    grid-template-areas: "postImage postContent";
    align-items: center;
  }
  .post:nth-child(2n) {
    grid-template-areas: "postContent postImage";
    grid-template-columns: 5fr 2fr;
    background-color: #031968;
    color: #FFF;
  }
}

.post-image {
  grid-area: postImage;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-area: postContent;
}

.post-content-title {
  font-weight: bold;
  font-size: 1.4rem;
}

.post-content-description {
  font-size: 1.1rem;
}

.services {
  display: grid;
  gap: 20px;
}
@media screen and (min-width: 600px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 800px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  position: relative;
  background-color: #031968;
  color: #FFF;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  padding: 0 20px;
  text-decoration: none;
  height: 100%;
}
.service p {
  padding-top: 10px;
  padding-bottom: 10px;
}

.service-dropdown {
  position: absolute;
  top: 0;
  right: 6px;
  cursor: pointer;
}

.service-dropdown-logo {
  width: 40px;
  height: 40px;
  fill: #FFF;
}

.service-dropdown-lists {
  display: none;
  position: absolute;
  top: 42px;
  right: -7px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid #626060;
  background: #3C3B3B;
  width: 52px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
}
.service-dropdown-lists[data-state="1"] {
  display: flex;
}

.service-dropdown-list-logo {
  width: 30px;
  height: 30px;
  fill: #FFF;
}

.service-section-form {
  display: flex;
}

.service-draft {
  background: #B00;
  width: 80px;
  font-weight: normal;
  font-size: 1.1rem;
  text-align: center;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.service-draft:after {
  display: block;
  content: "";
  zoom: 1;
}

.profile-form-close {
  width: 20px;
  height: 20px;
  display: block;
}

@keyframes testing {
  0% {
    right: -590px;
  }
  100% {
    right: 0;
  }
}
@keyframes remove {
  0% {
    right: 0;
  }
  100% {
    right: -590px !important;
  }
}
.form-service-remove {
  animation: remove 500ms forwards !important;
}

.service-form-file {
  display: none;
}

.service-form-picture {
  width: 75px;
  height: 75px;
  -webkit-border-radius: 75px;
  -moz-border-radius: 75px;
  border-radius: 75px;
  cursor: pointer;
}

.form-service-add {
  position: fixed;
  top: 0;
  border: 0;
  background: #FFF;
  height: 100%;
  padding: 20px;
  right: -590px;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  animation: testing 500ms forwards;
}
@media screen and (min-width: 680px) {
  .form-service-add {
    width: 590px;
  }
}
.form-service-add .svg {
  display: flex;
  flex-direction: row;
  justify-content: right;
  cursor: pointer;
}

.form-service-overflow {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.login {
  margin-top: 30px;
}
@media screen and (min-width: 680px) {
  .login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.login-text {
  font-weight: bold;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  align-self: center;
}

@media screen and (min-width: 800px) {
  .contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "contactInfo contactForm";
    gap: 50px;
  }
}

.contact-info {
  background-color: #f3f3f3;
  grid-area: contactInfo;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  padding: 20px 40px;
  position: relative;
}

.contact-info a {
  color: inherit;
}

.contact-form {
  grid-area: contactForm;
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.profile-head {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.profile-thumb {
  position: relative;
  width: 100px;
}

.profile-thumb-image {
  width: 100px;
  height: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  border-radius: 100px;
  object-position: right top;
}

.profile-thumb-form {
  height: 100px;
  width: 100%;
  position: absolute;
  top: 0;
}

.profile-thumb-form input {
  display: none;
  cursor: pointer;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  border-radius: 100px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.profile-thumb:hover {
  cursor: pointer;
}

.profile-thumb:hover > .profile-thumb-cloud {
  top: 80px !important;
}

.profile-thumb-cloud {
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  width: 100%;
  height: 20px;
  fill: #FFF;
  background-color: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 100px;
  z-index: 1;
}

.profile-form {
  margin-top: 20px;
  width: 100%;
  display: grid;
  gap: 20px;
}

@media screen and (min-width: 680px) {
  .profile-form-user {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-form-password .form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-form-information {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-row, .form-row .form-group {
  display: grid;
  gap: 20px;
}

.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f3f3f3;
  z-index: -1;
}

.footer-copyright a {
  color: #000;
  text-decoration: none;
}
