/* ========================================
   СТРАНИЦА РОЛИ
======================================== */

.roles-page {
    position: relative;
  
    width: 100%;
    min-height: 100svh;
  
    padding: 0 22px 60px;
  
    color: #fff;
  
    background:
      radial-gradient(
        circle at 50% 20%,
        rgba(255,255,255,0.035),
        transparent 34%
      ),
      #050505;
  
    box-sizing: border-box;
  }
  
  
  /* ШАПКА */
  
  .roles-header {
    position: relative;
  
    height: 84px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .roles-back {
    position: absolute;
    left: 0;
  
    color: rgba(255,255,255,0.7);
    text-decoration: none;
  
    font-size: 22px;
  }
  
  .roles-logo {
    font-size: 18px;
    letter-spacing: 0.22em;
  }
  
  
  /* ВВОДНЫЙ БЛОК */
  
/* =========================
   ЗАГОЛОВОК РОЛИ
========================= */

.roles-intro {
    padding-top: 35px;
    text-align: left;
  }
  
  /* БОЛЬШОЕ РОЛИ */
  
  .roles-intro h1 {
    margin: 0;
  
    font-size: 54px;
    line-height: 0.95;
  
    font-weight: 400;
    letter-spacing: 0.08em;
  
    color: #e8e8e8;
  }
  
  /* ФРАЗА */
  
  .roles-description {
    margin: 20px 0 0;
  
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: 0.25em;
  
    color: rgba(255,255,255,0.48);
  }
  

  /* =========================
   ФИЛЬТР РОЛЕЙ
========================= */

.roles-filter {
    display: flex;
    align-items: center;
    gap: 8px;
  
    margin-top: 28px;
  
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .roles-filter::-webkit-scrollbar {
    display: none;
  }
  
  .roles-filter-btn {
    flex-shrink: 0;
  
    min-height: 34px;
    padding: 0 14px;
  
    border: 0;
    border-radius: 999px;
  
    background: transparent;
  
    color: rgba(255,255,255,0.38);
  
    font: inherit;
    font-size: 9px;
    letter-spacing: 0.16em;
  
    cursor: pointer;
  }
  
  .roles-filter-btn.is-active {
    color: rgba(255,255,255,0.88);
  
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.015)
      ),
      #080808;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 0 1px rgba(255,255,255,0.055);
  }

  /* =========================
   СЕТКА РОЛЕЙ
========================= */

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  
    margin-top: 28px;
  }
  
  
  /* КАРТОЧКА */
  
  .role-card {
    position: relative;
  
    min-width: 0;
    overflow: hidden;
  
    border-radius: 14px;

    color: #fff;
text-decoration: none;
  
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.035) 0%,
        rgba(255,255,255,0.012) 38%,
        rgba(0,0,0,0.25) 100%
      ),
      #080808;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      0 10px 24px rgba(0,0,0,0.38),
      0 0 0 1px rgba(255,255,255,0.045);
  }
  
  
  /* ИЗОБРАЖЕНИЕ */
  
  .role-card-image {
    position: relative;
  
    width: 100%;
    aspect-ratio: 3 / 4;
  
    overflow: hidden;
  }
  
  .role-card-image img {
    width: 100%;
    height: 100%;
  
    display: block;
  
    object-fit: cover;
    object-position: center top;
  }
  
  
  /* ПЛАВНОЕ ЗАТЕМНЕНИЕ СНИЗУ */
  
  .role-card-image::after {
    content: "";
  
    position: absolute;
    inset: 0;
  
    background:
      linear-gradient(
        to bottom,
        transparent 50%,
        rgba(8,8,8,0.45) 75%,
        #080808 100%
      );
  }
  
  
  /* ТЕКСТ */
  
  .role-card-content {
    padding: 0 12px 14px;
  }
  
  .role-card h2 {
    margin: 0;
  
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
  }
  
  .role-card p {
    margin: 8px 0 0;
  
    font-size: 8px;
    line-height: 1.55;
    letter-spacing: 0.12em;
  
    color: rgba(255,255,255,0.42);
  }

  .role-card:visited,
.role-card:hover,
.role-card:active {
  color: #fff;
  text-decoration: none;
}

.roles-intro h1 {
    transform: translateY(-30px);
  }
  
  .roles-description {
    transform: translateY(-30px);
  }

  .roles-logo {
    color: inherit;
    text-decoration: none;
  }