/* FONT-FACE  */
@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Light.woff2") format("woff2"),
    url("/fonts/Comfortaa-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Medium.woff2") format("woff2"),
    url("/fonts/Comfortaa-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Bold.woff2") format("woff2"),
    url("/fonts/Comfortaa-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-SemiBold.woff2") format("woff2"),
    url("/fonts/Comfortaa-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("/fonts/Comfortaa-Regular.woff2") format("woff2"),
    url("/fonts/Comfortaa-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CUSTOM-PROPS */
:root {
  /* FONTS  */
  --comfortaa: "Comfortaa", "Arial", cursive;

  /* COLOR */
  --white: #fff;
  --light-gray: #eeecec;
  --black: #111517;
  --gray: rgba(132, 132, 132, 1);
  --dark-blue: #2b3844;
  --link: transparent;
  --link-more: #40a7e3;
  --light-black: rgba(51, 50, 61, 0.15);
  --slider: rgba(51, 50, 61, 0.05);

  /* SHADOWS  */
  --shadow: rgba(0, 0, 0, 0.03) 0px 1px 2px, rgba(0, 0, 0, 0.03) 0px 2px 4px,
    rgba(0, 0, 0, 0.03) 0px 4px 8px, rgba(0, 0, 0, 0.03) 0px 8px 16px,
    rgba(0, 0, 0, 0.03) 0px 16px 32px, rgba(0, 0, 0, 0.03) 0px 32px 64px;
  --shadow-card: 0px 15px 20px -5px rgb(13 113 130 / 15%);
  --shadow-img: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

  /* TRANSITION  */
  --transform: transform 0.2s ease;
  --box-shadow: box-shadow 0.2s ease;
}

.dark {
  --white: #2b3844;
  --light-gray: #22303a;
  --black: #fff;
  --dark-blue: var(--black);
  --link: var(--dark-blue);
  --light-black: rgba(255, 255, 255, 0.3);
  --slider: rgba(255, 255, 255, 0.1);
}

/* GLOBAL-STYLES  */
html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}

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

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--light-gray);
  color: var(--black);
  font-family: var(--comfortaa);
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* FOCUS-STYLES  */
*:focus {
  outline: 3px dashed var(--black);
  outline-offset: 3px;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #99a4a8;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
}

/* CONTAINER  */
.container {
  max-width: 1150px;
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
  margin-right: auto;
  margin-left: auto;
}

/* TOGGLER  */
.toggler {
  display: none;
  padding: 0;
  border: none;
  background-color: transparent;
  transition: var(--transform);
  cursor: pointer;
}

.toggler--block {
  display: block;
}

.toggler:hover {
  opacity: 0.8;
}

.toggler:active {
  transform: scale(0.9);
}

.toggler__img {
  display: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.toggler__img--active {
  display: block;
}

/* BACK  */
.back {
  display: none;
  padding: 5px;
  text-decoration: none;
  color: var(--black);
  border-radius: 5px;
  white-space: nowrap;
  transition: var(--transform);
}

.back--view {
  display: block;
}

.back:hover {
  opacity: 0.8;
}

.back:active {
  transform: scale(0.9);
}

.back__inner {
  display: flex;
  align-items: center;
}

.back__icon {
  margin-right: 7px;
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
  fill: var(--black);
}

/* VISUALLY-HIDDEN  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* SCROLL-TOP  */
.scroll-site-top {
  display: none;
  position: fixed;
  top: 80%;
  right: 8%;
  z-index: 50;
  box-shadow: var(--shadow);
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.scroll-site-top--block {
  display: block;
}

.scroll-site-top:active {
  opacity: 0.8;
}

.scroll-site-top:focus {
  outline: none;
}

.scroll-site-top svg {
  fill: var(--black);
}

/* MAIN-CONTENT  */
.main-content {
  flex-grow: 1;
}

.main-content--project {
  background-color: var(--white);
}

/* SITE-HEADER  */
.site-header {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: var(--white);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 500;
  transition: var(--box-shadow);
}

.site-header--scroll {
  box-shadow: var(--shadow);
}

.site-header__container {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.site-header__img-content-wrapper {
  display: flex;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
}

.site-header__img-content-wrapper--none {
  display: none;
}

.site-header__img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 30px;
}

.site-header__text {
  margin: 0;
  font-size: 27px;
  line-height: 35px;
  font-weight: 600;
}

.site-header__text > i {
  font-style: normal;
}

.site-header__project-name {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 300;
  color: var(--black);
}

.site-header__link-wrapper {
  display: flex;
  padding-top: 10px;
}

.site-header__link-wrapper--none {
  display: none;
}

.site-header__link {
  padding: 5px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  background-color: var(--link);
  color: #fff;
  transition: box-shadow 0.2s ease;
  white-space: nowrap;
}

.site-header__link:not(:last-child) {
  margin-right: 20px;
}

.site-header__link:hover {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
    rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.site-header__link:active {
  opacity: 0.6;
}

.site-header__link--github {
  background-color: #171515;
}

.site-header__link--telegram {
  background-color: #229ed9;
}

.site-header__link--phone {
  display: block;
  background-color: #70c370;
}

.site-header__toggler {
  margin-left: auto;
}

/* SOCIAL  */
.social {
  display: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__item {
  flex-shrink: 0;
}

.social__item:not(:last-child) {
  margin-right: 20px;
}

.social__link {
  display: flex;
}

.social__img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* HAMBURGER  */
.hamburger__bar {
  display: none;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.hamburger__bar--block {
  position: relative;
  z-index: 666;
  display: block;
}

.hamburger__bar-inner {
  display: flex;
}

.hamburger__img {
  display: block;
  width: 30px;
  height: 30px;
  fill: var(--black);
}

/* SITENAV  */
.hamburger__sitenav {
  display: flex;
  justify-content: center;
  position: fixed;
  top: -100%;
  bottom: 0;
  /* right: 0; */
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  overflow: auto;
  transition: all 0.3s ease-in-out;
  transform: scale(0);
}

.hamburger__sitenav--active {
  top: 0;
  transform: scale(1);
}

/* SITE NAVIGATOR  */
.sitenav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  list-style: none;
}

.sitenav__item:not(:last-child) {
  margin-bottom: 15px;
}

.sitenav__item:last-child {
  padding-bottom: 50px;
}

.sitenav__link {
  text-decoration: none;
  font-weight: 500;
  color: var(--black);
  display: block;
  transition: var(--transform);
}

.sitenav__link:hover {
  color: #229ed9;
  transform: scale(1.1) translateX(-10px);
}

.sitenav__link:focus {
  outline: none;
}

/* PROJECTS  */
.section-projects {
  padding-top: 250px;
  padding-bottom: 100px;
}

.section-projects__container {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.sectio-projects__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
  color: var(--black);
}

.section-projects__title {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

.section-projects__description {
  margin: 0;
  text-align: justify;
}

.section-projects__description-link {
  color: var(--link-more);
}

.projects {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects__item {
  width: 100%;
  box-shadow: var(--shadow-card);
  background-color: var(--white);
  color: var(--black);
  border-radius: 15px;
  overflow: hidden;
}

.projects__item:not(:last-child) {
  margin-bottom: 40px;
}

.projects__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

.projects__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  min-height: 250px;
}

.projects__title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 32px;
  font-weight: 500;
}

.projects__info {
  margin-top: 0;
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  margin-top: auto;
  margin-left: auto;
}

.project-links__link {
  padding: 5px;
  color: #fff;
  font-size: 20px;
  line-height: 27px;
  font-weight: 100;
  text-decoration: none;
  border-radius: 4px;
}

.project-links__link:hover {
  text-decoration: underline;
}

.project-links__link:not(:last-child) {
  margin-right: 20px;
}

.project-links__link--more {
  text-decoration: underline;
  color: var(--link-more);
}

.project-links__link--more:hover {
  text-decoration: none;
}

.project-links__link--github {
  background-color: #171515;
}

.project-links__link--netlify {
  background-color: #41a5bd;
}

/* LOADER  */
.lds-spinner-wrapper {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background-color: var(--light-gray);
  transition: transform 0.6s ease;
}

.lds-spinner-wrapper--none {
  transform: translateY(-100%);
  overflow: hidden;
}

.lds-spinner {
  display: inline-block;
  position: relative;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  width: 80px;
  height: 80px;
}

.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background-color: var(--dark-blue);
}

.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

/* PROJECT-INFO  */
.project-info {
  display: flex;
  flex-direction: column;
  padding-top: 240px;
  padding-bottom: 50px;
}

.project-info__container {
  max-width: 900px;
}

.project-info__img {
  display: block;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow-img);
}

.project-info__title-time-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-info__title {
  margin: 0;
  font-weight: 600;
  color: var(--black);
}

.project-info__content {
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  padding-bottom: 50px;
}

.project-info__text {
  text-align: justify;
  margin-top: 0;
  margin-bottom: 20px;
}

.project-info__text-link {
  color: var(--link-more);
}

.project-info__challenge {
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  padding-bottom: 50px;
}

.project-info__part-title {
  font-weight: 600;
  line-height: 34px;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--black);
}

.project-info__time-table-wrapper {
  padding-top: 50px;
  padding-bottom: 50px;
}

.project-info__time-table-wrapper > i {
  color: var(--black);
}

.project-info__challenge-description {
  margin: 0;
}

.project-info__time-table {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  box-shadow: var(--shadow-img);
}

/* SLIDER  */
.slider {
  padding-top: 50px;
  padding-bottom: 200px;
  background-color: var(--white);
}

.slider__container {
  max-width: 900px;
  display: flex;
  align-items: center;
}

.slider__page-title {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  width: 50%;
  text-align: left;
  border-top: 1px solid var(--light-black);
  border-bottom: 1px solid var(--light-black);
}

.slider__page-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  fill: var(--black);
}

.slider__page-title--next {
  text-align: right;
  justify-content: end;
  border-left: 1px solid var(--light-black);
}

.slider__page-title--next > .slider__point-page-link-wrapper {
  order: -1;
}

.slider__point-page-link-wrapper {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.slider__page-link {
  display: flex;
  flex-direction: column;
  color: var(--black);
  text-decoration: none;
  font-size: 25px;
  font-weight: 400;
}

.slider__point {
  display: inline-block;
  order: 2;
  color: var(--link-more);
  font-size: 16px;
}

.slider__page-link:hover.slider__page-link::before {
  background-color: var(--slider);
}

.slider__page-link:focus.slider__page-link::before {
  background-color: var(--slider);
}

.slider__page-link:active {
  opacity: 0.6;
}

.slider__page-link:focus {
  outline: none;
}

.slider__page-link::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
}

/* ANIMATION  */
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* MAX-670px */
@media (max-width: 670px) {
  .site-header__img-content-wrapper {
    align-items: center;
  }

  .site-header__text {
    max-width: 220px;
    width: 100%;
    font-size: 23px;
    line-height: 27px;
    margin-bottom: 2px;
  }

  .site-header__project-name {
    font-size: 16px;
    line-height: 20px;
  }

  .social {
    display: flex;
    padding-top: 8px;
  }

  .social__img {
    width: 30px;
    height: 30px;
  }

  .site-header__link-wrapper {
    display: none;
  }

  .section-projects {
    padding-top: 250px;
    padding-bottom: 50px;
  }

  .project-info {
    padding-top: 200px;
    padding-bottom: 30px;
  }

  .project-info__content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .project-info__title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .project-info__title-time-wrapper {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .project-info__challenge {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .project-info__part-title {
    font-size: 25px;
  }

  .project-info__time-table-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .project-info__challenge-description {
    text-align: justify;
  }

  .slider {
    padding-top: 30px;
    padding-bottom: 100px;
  }

  .slider__point-page-link-wrapper {
    padding: 20px 15px;
  }

  .slider__page-link {
    font-size: 20px;
  }

  .slider__point {
    font-size: 11px;
  }
}

/* MAX-436px */
@media (max-width: 436px) {
  .site-header__img {
    width: 90px;
    height: 90px;
    margin-left: 0;
    margin-right: 15px;
    order: -1;
  }

  .site-header__text {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 6px;
  }

  .site-header__text > i {
    display: none;
  }

  .site-header__project-name {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 8px;
  }

  .section-projects {
    padding-top: 180px;
  }

  .projects__inner {
    padding: 30px;
  }

  .projects__title {
    margin-bottom: 5px;
  }

  .project-links__link {
    font-size: 14px;
  }

  .project-links__link:not(:last-child) {
    margin-right: 0;
  }

  .project-links__link--more {
    margin-right: 0;
    margin-left: 10px;
    order: 3;
  }

  .project-links__link--netlify {
    margin-left: 10px;
  }

  .social {
    padding-top: 0;
  }

  .social__img {
    width: 25px;
    height: 25px;
  }

  .project-info {
    padding-top: 170px;
  }

  .project-info__content {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .project-info__title {
    font-size: 30px;
  }

  .project-info__part-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .project-info__title-time-wrapper {
    margin-bottom: 10px;
  }

  .project-info__time {
    font-size: 14px;
  }

  .project-info__text {
    font-size: 14px;
  }

  .project-info__challenge {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .project-info__challenge-description {
    font-size: 14px;
  }

  .project-info__time-table-wrapper {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .project-info__time-table-wrapper > i {
    font-size: 14px;
  }

  .slider {
    display: none;
  }
}

/* MAX-350px */
@media (max-width: 350px) {
  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .social__img {
    width: 20px;
    height: 20px;
  }

  .section-projects__description {
    font-size: 14px;
  }

  .section-projects {
    padding-top: 150px;
  }

  .site-header__project-name {
    font-size: 12px;
  }

  .projects__title {
    font-size: 20px;
  }

  .projects__info {
    font-size: 14px;
  }

  .project-links__link {
    line-height: 19px;
  }
}

/* MAX-301px */
@media (max-width: 301px) {
  .site-header__text {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .site-header__project-name {
    font-size: 10px;
  }

  .section-projects__description {
    font-size: 13px;
  }

  .projects__item {
    border-radius: 10px;
  }

  .projects__inner {
    padding: 25px;
  }

  .projects__info {
    font-size: 13px;
    line-height: 17px;
  }

  .project-links__link {
    padding: 4px;
    font-size: 12px;
  }
}
