/* ================== ОБЩИЙ СТИЛЬ КНОПОК (PILLS) ================== */
.btn {
    position: relative;
    isolation: isolate;
    min-width: 0;
    height: auto;
    padding: 14px 26px;
    border: 1px solid var(--line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: var(--r-pill);
    clip-path: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

/* Стрелка-подсказка после текста кнопки */
.btn::after {
    content: "→";
    margin-left: 4px;
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text);
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn:hover::after {
    transform: translateX(3px);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(244, 228, 188, 0.14), rgba(244, 228, 188, 0.04));
    border-color: var(--line-strong);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(244, 228, 188, 0.20),
        0 0 0 4px rgba(212, 175, 55, 0.22);
}

.btn:active {
    transform: translateY(0);
}

/* "Войти в мир" — основная: со звёздным конико-градиентным бордером */
.btn:not(.dark) {
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.20), rgba(180, 130, 70, 0.10));
    border-color: transparent;
}

.btn:not(.dark)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--sb-angle, 0deg),
        rgba(244, 228, 188, 0.95),
        rgba(212, 175, 55, 0.95),
        rgba(180, 130, 70, 0.95),
        rgba(244, 228, 188, 0.95));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: starRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.btn:not(.dark):hover {
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.32), rgba(180, 130, 70, 0.18));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(212, 175, 55, 0.25),
        0 0 30px rgba(212, 175, 55, 0.35);
}

/* "Скачать лаунчер" (.btn.dark) — стеклянная вторичная */
.btn.dark {
    background: linear-gradient(180deg, rgba(244, 228, 188, 0.06), rgba(244, 228, 188, 0.02));
    color: var(--accent-3);
}

.btn.dark:hover {
    background: linear-gradient(180deg, rgba(244, 228, 188, 0.12), rgba(244, 228, 188, 0.04));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(244, 228, 188, 0.18),
        0 0 0 4px rgba(212, 175, 55, 0.20);
}

/* Скрываем старую SVG-рамку (vote-frame) — теперь у нас star-border */
.vote-frame {
    display: none !important;
}

.vote-btn {
    /* Уравниваем со стилем .btn — никакого clip-path */
    clip-path: none;
}

/* Отдельный класс на текст внутри кнопки — оставляем без особых стилей */
.btn span {
    position: relative;
    z-index: 1;
}

/* ================== ОБЩИЙ ЗАГОЛОВОК СЕКЦИИ ================== */
.section-head {
    max-width: 980px;
    margin: 0 auto 56px;
    padding: 0 24px;
    text-align: left;
}

/* Eyebrow-метка перед заголовком — добавим через ::before к .section-head */
.section-head::before {
    content: attr(data-eyebrow);
}

.section-head .news-title,
.section-head .gallery-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #fff;
    text-shadow: none;
    text-align: left;
}

/* Преобразуем обёртку .section-head в flex для центровки + eyebrow */
.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 0;
}

/* Eyebrow поверх каждого заголовка — добавляем через ::before на .news-title и .gallery-title */
.news-title::before,
.gallery-title::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.65);
}

/* Полный eyebrow-блок в виде маленькой подписи */
.news-title,
.gallery-title {
    position: relative;
}

.news-title::after,
.gallery-title::after {
    content: "";
}

/* Маленький числовой индекс перед заголовками секций */
.section-head {
    position: relative;
}

.section-head::after {
    display: none;
}

/* ================== РАЗДЕЛИТЕЛЬ ПОД ЗАГОЛОВКОМ ================== */
.section-divider {
    display: none;
}

/* Замена .section-divider на тонкую линию-полоску под группой section-head */
.section-head + * {
    /* первая дочерняя секция получает тонкий отступ */
}

.user-button-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 228, 188, 0.35);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
  flex-shrink: 0;
}
