* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'InterVariable';
  src: url('InterVariable.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'InterVariable', Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
}

.ids {
  & a {
    color: rgb(var(--ids__link-RGB));
    text-decoration: underline;
    will-change: color;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
    text-decoration-color: rgba(var(--ids__link-RGB), 0.2);
    transition:
      color 0.5s ease,
      text-decoration 0.5s ease;

    &:hover {
      color: rgb(var(--ids__hover-RGB));
      text-decoration-color: rgba(var(--ids__hover-RGB), 0.2);
      transition:
        color 0s ease,
        text-decoration 0s ease;
    }
  }

  .ids__promo-link {
    display: flex;

    & a {
      display: inline-block;
      padding: 0.45em 0.6em 0.5em;
      border: 1px solid rgba(var(--ids__text-RGB), 0.5);
      border-right: 0;

      &:hover {
        background-color: rgba(var(--ids__hover-RGB), 0.1);
      }

      &:first-child {
        border-radius: 0.3em 0 0 0.3em;
        padding-left: 1em;
      }

      &:last-child {
        border-radius: 0 0.3em 0.3em 0;
        padding-right: 1em;
        border-right: 1px solid rgba(var(--ids__text-RGB), 0.5);
      }

      &.active {
        color: RGB(var(--ids__text-RGB));
        background-color: rgba(var(--ids__text-RGB), 0.05);
        -webkit-text-decoration: none;
        text-decoration: none;
        cursor: default;
      }

      &.active::after {
        content: " ↓";
      }
    }
  }

  & p {
    margin-top: 0;
    margin-bottom: calc(var(--ids__density) * 0.4em);

    &.loud {
      font-size: 2em;
      line-height: 1.2;
    }

    &.huge {
      font-size: 6em;
      line-height: 1;

      @media (max-width: 767px) {
        &.huge {
          font-size: 3.2em;
        }
      }

      @media (max-width: 549.98px) {
        &.huge {
          font-size: 2.8em;
        }
      }
    }
  }

  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    margin: 0;
    font-weight: 600;
  }

  & h1 {
    font-size: 3.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: calc(var(--ids__density) / 1.3);
    color: white;
    margin-bottom: 0.4em;

    @media (width < 768px) {
      font-size: 2.6em;
    }
  }
}

.name {
    padding: 10px;
}

& h2 {
  font-size: 1.5em;
  line-height: calc(var(--ids__density) / 1.1);
  margin-bottom: 0.6em;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
}

.video-item {
  position: relative;
  width: 100%;
  padding-bottom: calc(100% / 9 * 16); /* 9:16 */
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  background: #797878; /* фон под карточкой, если poster не загрузился */
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  background: transparent;
}

.video-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.15)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.video-item:hover .video {
  transform: scale(1.05);
}

.video-item:hover::before {
  opacity: 1;
}
