@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600&display=swap');

html {
  --white-color: #fff;
  --dark-main-color: #202020;
  --white-color: #f0e7cf;
  --accent-color: #9353d3;
}
* {
  padding: 0px;
  margin: 0px;
  border: 0px;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  min-width: 320px;
}
body {
  color: var(--white-color);
  line-height: 1;
  font-family: 'Montserrat', 'Montserrat Alternates', sans-serif;
  font-weight: normal;
  font-size: 18px;
  background: var(--dark-main-color);
  height: 100%;
  text-rendering: optimizeLegibility;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
input,
button,
textarea {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
input::placeholder {
  font-weight: 700;
  font-size: 18px;
  line-height: 21px;
  color: #a3adbf;
}
button {
  cursor: pointer;
  color: inherit;
  background-color: inherit;
}
a {
  color: inherit;
  display: inline-block;
}
a:link,
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul {
  margin-bottom: 20px;
  list-style: decimal;
}
li::marker {
  font-weight: bold;
}
li:not(:last-child) {
  margin-bottom: 10px;
}
li a:hover {
  text-decoration: underline;
}
img {
  vertical-align: top;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}
sub,
sup {
  line-height: 0;
}

.wrapper {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* background: linear-gradient(0deg, rgba(32, 32, 32, 0.3), rgba(32, 32, 32, 0.3)), url('img/bg-sharp-blue.jpg') no-repeat center center / cover; */
  position: relative;
}

.wrapper::before {
  content: '';
  /* background-image: url(img/bg-3-min.jpg); */
  background: url('img/bg-sharp-blue.jpg') no-repeat center center / cover;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  top: -70px;
  transform: translateY(70px);
}
.wrapper > main {
  flex: 1 1 auto;
  overflow: hidden;
  z-index: 2;
}
.wrapper > * {
  min-width: 0;
}
[class*='__container'] {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  border-bottom: 1px solid var(--white-color);
  z-index: 2;
}
.header__body {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.header__logo {
  max-width: 244px;
  max-height: 56px;
}
.header__logo img {
  max-width: 100%;
  object-fit: cover;
}
.wrapper:not(.wrapper__main) .header__logo {
  max-width: 180px;
  max-height: 56px;
}
.footer {
  font-size: 14px;
  border-top: 1px solid var(--white-color);
  z-index: 2;
}
.footer__body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 12px 0;
}
.footer__body small {
  font-size: inherit;
}

.main-title {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
  font-size: 48px;
  text-align: center;
  color: var(--white-color);
  margin-bottom: 15px;
  margin-top: 20px;
}
.main__list {
  display: grid;
  gap: 40px;
}
ul {
  list-style-type: none;
  counter-reset: num;
  margin: 0;
  padding: 15px 0 5px 0;
  font-size: 16px;
}
ul li {
  position: relative;
  margin: 0 0 0 0;
  padding: 0 0 10px 0;
}
ul li::before {
  content: counter(num);
  z-index: -1;
  counter-increment: num;
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  left: 10px;
  color: #52b3ff;
  text-align: center;
  opacity: 0.65;
  font-size: clamp(6.25rem, 3.068rem + 15.91vw, 15rem);
  font-weight: bold;
}
.main__item-link {
  transition: transform 1s ease 0s;
  cursor: url('img/cursor.png'), pointer;
}
.main__item-link:hover {
  transform: scale(1.02);
}
.main__item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.main__links-group {
  background: rgba(255, 255, 255, 0.33);
  padding: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(32, 32, 32, 0.33);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.main__link {
  font-size: clamp(1.125rem, 1.034rem + 0.45vw, 1.375rem);
  margin-bottom: 10px;
  grid-column: span 4;
  color: var(--white-color);
  font-weight: bold;
}

.main__github-link {
  color: #a4a4a4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.main__github-link:hover {
  color: #d6d6d6;
}

.main__github-icon {
  width: 20px;
  height: 20px;
}

.main__img-container {
  position: relative;
  overflow: hidden;
  background-color: #2c2f35;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 16px;
  grid-column: span 8;
  transition: all 0.3s ease 0s;
}
.skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;

  /* background: linear-gradient(-90deg, #f0f0f0 0%, #bdbdbd 50%, #f0f0f0 100%);
  background-size: 400% 400%;
  animation: pulse 1.2s ease-in-out infinite;
  -webkit-animation: pulse 1.2s ease-in-out infinite; */

  background: linear-gradient(
    -90deg,
    #333333 0%,
    #444444 50%,
    #333333 100%
  ); /* Темные цвета */
  background-size: 400% 400%;
  animation: pulse 1.5s ease-in-out infinite; /* Плавная анимация */
  -webkit-animation: pulse 1.5s ease-in-out infinite; /* Плавная анимация */
}

@-webkit-keyframes pulse {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -135% 0%;
  }
}
@keyframes pulse {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -135% 0%;
  }
}

.main__img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
._lazy-loaded {
  opacity: 1;
}

@media (max-width: 778px) {
  .main__item {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }
  .main-title {
    font-size: 32px;
  }
  .main__links-group {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
  ul li:before {
    top: 0;
    transform: translate(0, -30%);
    right: 0px;
    left: auto;
    font-weight: bold;
  }
}
