:root {
  --color-dark: #21243d;
  --color-light: #8695a4;
  --color-white: #fafafa;
  --color-bgprimary: #fafafa;
  --color-bgsecond: #edf7fa;
  --color-primary: #174d87;
  --color-secondary: #29c7bd;
}

.dark-theme {
  --color-dark: #8695a4;
  --color-light: #464d8d;
  --color-bgprimary: #000;
  --color-bgsecond: #191c21;
}

* {
  margin: 0;
  padding: 0;
  transition: all 0.25s;
}

a {
  text-decoration: none;
  color: var(--color-primary);
}

body {
  font-family: "Noto Sans", sans-serif;
  font-style: normal;
  color: var(--color-dark);
  line-height: 1.5;
  font-size: 18px;
  background-color: var(--color-bgprimary);
}

.center {
  padding-left: calc(50% - 430px);
  padding-right: calc(50% - 430px);
}

.header {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 140px;
  background-color: var(--color-bgsecond);
  padding-bottom: 16px;
}
.header__logo {
  height: 35px;
}

.switcher {
  width: 50px;
  height: 25px;
  border-radius: 13px;
  position: relative;
  transition: all 1s;
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
}
.switcher__toggler {
  transition: all 0.4s ease;
  position: absolute;
  left: 2%;
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--color-dark);
  z-index: 2;
}
.switcher__toggler_dark {
  left: 55%;
}
.switcher__sun {
  height: 15px;
  z-index: 1;
  position: absolute;
  right: 6%;
  fill: #ffa801;
}
.switcher__moon {
  height: 15px;
  z-index: 1;
  position: absolute;
  left: 6%;
  fill: #84ffff;
}

.nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.nav__link {
  transition: all 0.25s;
  border-radius: 9px;
}
.nav__link:hover {
  box-shadow: 0 0.5em 0.5em -0.4em var(--color-secondary);
  transform: translateY(-0.25em) translateX(-0.25em);
}

.nav-mobile {
  display: none;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.nav-mobile__burger {
  margin: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  width: 30px;
  height: 30px;
}
.nav-mobile__line {
  transition: all 0.25s;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}
.nav-mobile__line:nth-child(2) {
  width: 20px;
}
.nav-mobile__burger.active .nav-mobile__line:nth-child(1) {
  transform: rotate(-45deg) translate(-10px, 10px);
}
.nav-mobile__burger.active .nav-mobile__line:nth-child(2) {
  opacity: 0;
}
.nav-mobile__burger.active .nav-mobile__line:nth-child(3) {
  transform: rotate(45deg) translate(-10px, -10px);
}
.nav-mobile__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
  visibility: hidden;
  margin: 0;
  padding-right: calc(50vw - 155px);
  padding-top: 16px;
  position: absolute;
  top: 100%;
  right: calc(155px - 50vw);
  width: 100vw;
  background-color: var(--color-bgsecond);
  transition: all 1s ease;
  transform: translateY(-5px);
  opacity: 0;
  z-index: 1;
}
.nav-mobile__list_active {
  visibility: visible;
  opacity: 100;
  transform: translateY(0);
}

.top {
  padding-bottom: 50px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
}
.top__title {
  max-width: 520px;
  font-size: 44px;
  font-weight: 700;
  line-height: 60px;
  margin-bottom: 40px;
  color: var(--color-primary);
}
.top__text {
  max-width: 520px;
  font-weight: 400;
}
.top__img {
  height: 250px;
  width: 250px;
  border-radius: 125px;
}
.top__img_dark {
  filter: brightness(70%);
}

.about {
  background-color: var(--color-bgsecond);
  padding-top: 32px;
  padding-bottom: 32px;
}
.about__title, .contacts__title, .works__title {
  text-align: center;
  width: 300px;
  margin-inline: auto;
  margin-bottom: 32px;
  font-size: 32px;
  font-weight: 400;
  line-height: 60px;
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.about__text {
  margin-bottom: 32px;
}
.about__box {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  justify-items: center;
}
.about__skill-box {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__skill-box:last-child .about__img_dark {
  filter: invert(70%);
}
.about__img {
  height: 100px;
}
.about__img_dark {
  filter: brightness(70%);
}

.works {
  padding-top: 32px;
}
.works__box {
  display: block;
}

.work {
  display: flex;
  gap: 32px;
  border-bottom: solid 1px var(--color-light);
  margin-bottom: 32px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.work:nth-child(even) {
  flex-direction: row-reverse;
}
.work:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.work__screen {
  height: 230px;
}
.work__description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: calc(50% - 16px);
}
.work__title {
  font-size: 26px;
  font-weight: 700;
  text-align: left;
}
.work__info {
  display: flex;
  gap: 26px;
  align-items: baseline;
}
.work__year {
  border-radius: 16px;
  width: 62px;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  flex-shrink: 0;
}
.work__tag {
  font-size: 20px;
  font-weight: 400;
  line-height: 29px;
  color: var(--color-light);
}
.work__text, .contacts__text {
  -webkit-hyphens: auto;
          hyphens: auto;
}
.work__btn-box {
  display: flex;
  gap: 26px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.work__link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  border: 1px solid;
  height: 48px;
  width: 180px;
  border-color: var(--color-primary);
  color: var(--color-dark);
  box-sizing: border-box;
  transition: all 0.25s, border-width 0s;
}
.work__link:hover {
  box-shadow: 0 0.5em 0.5em -0.4em var(--color-secondary);
  border-color: var(--color-secondary);
  border-width: 2px;
  transform: translate(-0.25em, -0.25em);
}

.contacts {
  padding-top: 16px;
  background-color: var(--color-bgsecond);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 16px;
}
.contacts__box {
  width: 414px;
}
.contacts__title {
  width: 370px;
}
.contacts__buttons {
  margin-top: 32px;
  display: flex;
  gap: 48px;
  justify-content: center;
}
.contacts__img {
  height: 32px;
  fill: var(--color-primary);
  transition: all 0.25s;
}
.contacts__img:hover {
  fill: var(--color-secondary);
  box-shadow: 0 0.5em 0.5em -0.4em var(--color-secondary);
  transform: translate(-0.25em, -0.25em);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 16px;
  width: 414px;
  align-items: center;
}
.form__secred {
  display: none;
  height: 0;
  overflow: hidden;
}
.form__input, .form__textarea {
  box-sizing: border-box;
  width: 300px;
  padding: 8px;
  background: var(--color-bgprimary);
  border: 1px solid var(--color-secondary);
  border-radius: 5px;
  font-family: inherit;
  color: var(--color-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  outline: none;
}
.form__input::-moz-placeholder, .form__textarea::-moz-placeholder {
  color: var(--color-light);
}
.form__input::placeholder, .form__textarea::placeholder {
  color: var(--color-light);
}
.form__textarea {
  height: 180px;
  resize: none;
}
.form__button {
  border-radius: 16px;
  height: 48px;
  width: 180px;
  border: 1px solid var(--color-primary);
  background-color: transparent;
  font-family: inherit;
  font-size: 18px;
  color: var(--color-dark);
}
.form__button:hover, .form__button:focus-visible {
  box-shadow: 0 0.5em 0.5em -0.4em var(--color-secondary);
  transform: translate(-0.25em, -0.25em);
  border-color: var(--color-secondary);
  border-width: 2px;
  transition: all 0.25s, border-width 0s;
}

.footer {
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer__text {
  text-align: center;
}

@media (width <= 900px) and (width > 768px) {
  .center {
    padding-left: calc(50% - 369px);
    padding-right: calc(50% - 369px);
  }
  body {
    font-size: 17px;
  }
  .header {
    margin-bottom: 80px;
  }
  .top__title {
    font-size: 40px;
    max-width: 472px;
  }
  .top__text {
    max-width: 472px;
  }
  .top__img {
    height: 230px;
    width: 230px;
  }
  .about__title, .works__title, .contacts__title {
    font-size: 28px;
    width: 320px;
  }
  .work__screen {
    height: 200px;
  }
  .work__title {
    font-size: 24px;
  }
  .work__tag {
    font-size: 18px;
    line-height: 26px;
  }
  .work__btn-box {
    gap: 20px;
  }
  .work__link {
    height: 42px;
    width: 165px;
  }
  .contacts__box {
    width: 356px;
  }
  .form {
    width: 356px;
  }
}
@media (width <= 768px) {
  body {
    font-size: 16px;
  }
  .center {
    padding-left: calc(50% - 155px);
    padding-right: calc(50% - 155px);
  }
  .header {
    margin-bottom: 32px;
  }
  .nav {
    display: none;
  }
  .nav-mobile {
    display: flex;
  }
  .top {
    gap: 16px;
    justify-content: center;
    padding-bottom: 32px;
  }
  .top__title {
    font-size: 32px;
    line-height: 48px;
    text-align: center;
  }
  .top__text {
    text-align: center;
  }
  .about__title, .works__title, .contacts__title {
    font-size: 24px;
    line-height: 50px;
  }
  .about__box {
    grid-template-columns: repeat(6, 1fr);
  }
  .work__screen {
    height: auto;
    width: 100%;
  }
  .work__description {
    max-width: 100%;
  }
  .work__btn-box {
    gap: 16px;
    justify-content: center;
  }
  .work__link {
    height: 40px;
  }
  .contacts {
    flex-wrap: wrap;
  }
  .contacts__box {
    width: 100%;
  }
  .contacts__title {
    width: 100%;
  }
}/*# sourceMappingURL=style.css.map */