@font-face {
  font-family: "AGFriquer";
  src: url("../fonts/agfriquer.woff2") format("woff2"),
       url("../fonts/agfriquer.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-nav: #9B9CA6;
  --c-nav-active: #CCCDDC;
  --c-title-dark: #2A2B31;
  --c-body: #989898;
  --c-online-label: #E8DACB;
  --c-online-value: #CFDADC;
  --c-post-title: #CFC2B5;
  --c-post-date: #939497;
  --c-footer: #3E3F46;
  --c-footer-active: #626270;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: min(0.390625vw, 10px);
}

body {
  margin: 0;
  background: #0F0E15;
  font-family: "AGFriquer", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h2 {
  margin: 0;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.canvas {
  position: relative;
  flex: none;
  width: 256rem;
  height: 250.7rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #0F0E15 0%, #0F0E15 50%, #121118 55%, #121118 100%);
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.backdrop__layer {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.backdrop__layer--hero {
  left: 0;
  top: -19.2rem;
  width: 256rem;
  height: 143.9rem;
  background-image: url("../img/hero-bg.jpg");
}

.backdrop__layer--ground {
  left: 0;
  top: 151.4rem;
  width: 256rem;
  height: 101.9rem;
  background-image: url("../img/ground.webp");
}

.backdrop__layer--clouds {
  left: 0;
  top: 83.5rem;
  width: 256rem;
  height: 110.5rem;
  background-image: url("../img/clouds.webp");
}

.backdrop__layer--vine-right {
  left: 122rem;
  top: 98.8rem;
  width: 134rem;
  height: 47.6rem;
  background-image: url("../img/vine-right.webp");
}

.backdrop__layer--vine-left {
  left: -9.6rem;
  top: 82.6rem;
  width: 129.9rem;
  height: 51.5rem;
  background-image: url("../img/vine-left.webp");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 7.9rem;
  background: rgba(14, 12, 15, 0.57);
}

.nav {
  display: flex;
  align-items: flex-start;
  gap: 18.5rem;
  width: 256rem;
  height: 100%;
  margin: 0 auto;
  padding-left: 42.8rem;
}

.nav__link {
  padding-top: 1.85rem;
  font-size: 4rem;
  line-height: 1.081;
  text-transform: uppercase;
  color: var(--c-nav);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--c-nav-active);
  text-shadow: 0 0 2rem rgba(204, 205, 220, 0.45);
}

.hero {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 256rem;
  height: 124.7rem;
}

.hero__logo {
  position: absolute;
  left: 29.4rem;
  top: 11.9rem;
  width: 93rem;
  height: 62.1rem;
  background: url("../img/logo.webp") no-repeat center / 100% 100%;
}

.hero__scroll {
  position: absolute;
  left: 67rem;
  top: 93.9rem;
  width: 26rem;
  height: 20.9rem;
  background: url("../img/scroll-arrow.webp") no-repeat center / 100% 100%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(1.4rem);
  }
}

.main {
  position: relative;
  z-index: 3;
}

.about {
  position: absolute;
  left: 44.2rem;
  top: 138.6rem;
  width: 83.8rem;
  height: 84.8rem;
}

.about__panel {
  position: absolute;
  left: 3.9rem;
  top: 12.1rem;
  width: 79.4rem;
  height: 72.7rem;
  border-radius: 2.2rem;
  background: linear-gradient(90deg, rgba(26, 26, 33, 1) 0%, rgba(22, 21, 28, 0.185) 100%);
}

.about__frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 83.8rem;
  height: 67.3rem;
  background: url("../img/about-frame.webp") no-repeat center / 100% 100%;
}

.about__title {
  position: absolute;
  left: 38.5rem;
  top: 12.91rem;
  font-size: 5.4rem;
  line-height: 1.081;
  color: var(--c-title-dark);
}

.about__text {
  position: absolute;
  left: 7.35rem;
  top: 27.2rem;
  width: 72.3rem;
  font-size: 3.2rem;
  line-height: 4.8rem;
  color: var(--c-body);
}

.socials {
  position: absolute;
  left: 5.8rem;
  top: 55.8rem;
  display: flex;
  gap: 0.8rem;
}

.social {
  display: block;
  width: 24.8rem;
  height: 25.5rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.social--tg {
  background-image: url("../img/soc-tg.webp");
}

.social--vk {
  background-image: url("../img/soc-vk.webp");
}

.social--ds {
  background-image: url("../img/soc-ds.webp");
}

.social--tg:hover {
  background-image: url("../img/soc-tg-hover.webp");
}

.social--vk:hover {
  background-image: url("../img/soc-vk-hover.webp");
}

.social--ds:hover {
  background-image: url("../img/soc-ds-hover.webp");
}

.feed {
  position: absolute;
  left: 127.6rem;
  top: 149.9rem;
  width: 91.4rem;
  height: 73.3rem;
}

.online {
  position: absolute;
  left: 23rem;
  top: -0.77rem;
  display: flex;
  gap: 5rem;
  font-size: 5.4rem;
  line-height: 1.081;
}

.online__label {
  color: var(--c-online-label);
}

.online__value {
  color: var(--c-online-value);
  text-shadow: 0 0 1rem rgba(180, 215, 230, 0.55);
}

.feed__divider {
  position: absolute;
  left: 8.2rem;
  top: 4.3rem;
  width: 70.9rem;
  height: 7.5rem;
  background: url("../img/online-line.webp") no-repeat center / 100% 100%;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.55));
}

.posts {
  position: absolute;
  left: 0;
  top: 10.5rem;
  width: 87.3rem;
}

.post {
  position: relative;
  display: block;
  height: 15.7rem;
}

.post::before {
  content: "";
  position: absolute;
  left: 4.5rem;
  top: 1.6rem;
  width: 79.4rem;
  height: 12.4rem;
  border-radius: 2.2rem;
  background: linear-gradient(90deg, rgba(103, 97, 103, 0.196) 0%, rgba(26, 27, 33, 0.349) 100%);
  box-shadow: inset 0 0 2.8rem rgba(255, 255, 255, 0.07);
  transition: width 0.3s ease, left 0.3s ease;
}

.post:hover::before {
  left: 4.6rem;
  width: 82.8rem;
}

.post__icon {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10.9rem;
  height: 14.5rem;
  background: url("../img/post-icon.webp") no-repeat center / 100% 100%;
}

.post__orn {
  position: absolute;
  left: 54.4rem;
  top: 0;
  width: 32.9rem;
  height: 15.7rem;
  background: url("../img/post-orn.webp") no-repeat center / 100% 100%;
  transition: left 0.3s ease;
}

.post:hover .post__orn {
  left: 58.5rem;
}

.post__title {
  position: absolute;
  left: 11.8rem;
  top: 4.46rem;
  font-size: 4.15rem;
  line-height: 1.081;
  color: var(--c-post-title);
}

.post__date {
  position: absolute;
  left: 11.9rem;
  top: 9.33rem;
  font-size: 2.088rem;
  line-height: 1.081;
  color: var(--c-post-date);
}

.footer {
  position: absolute;
  left: 44.2rem;
  top: 227.9rem;
  z-index: 3;
  width: 170rem;
  height: 18.3rem;
}

.footer__logo {
  position: absolute;
  left: 0.2rem;
  top: 0;
  width: 23.5rem;
  height: 16.9rem;
  background: url("../img/logo-min.webp") no-repeat center / 100% 100%;
}

.footer__copy {
  position: absolute;
  left: 0;
  top: 14.97rem;
  font-size: 2.8rem;
  line-height: 1.081;
  color: var(--c-footer);
}

.footer__col {
  position: absolute;
  top: 5.9rem;
  font-size: 2.8rem;
  line-height: 4.375rem;
}

.footer__col--1 {
  left: 72.5rem;
}

.footer__col--2 {
  left: 94.5rem;
}

.footer__col--3 {
  left: 120.9rem;
}

.footer__link {
  color: var(--c-footer);
  transition: color 0.25s ease;
}

.footer__link:hover,
.footer__link--active {
  color: var(--c-footer-active);
}

.footer__author {
  position: absolute;
  left: 162.8rem;
  top: 9.1rem;
  width: 7.2rem;
  height: 7.1rem;
  background: url("../img/feverart.webp") no-repeat center / 100% 100%;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.footer__author:hover {
  opacity: 1;
}
