@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('../fonts/inter.woff2') format("woff2");
}

/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #181820;
    /* Темный фон сайта */
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
}

input,
textarea {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero */
.top-background {
    background-image: url(../img/top-back.webp);
    background-repeat: no-repeat;
    /* Увеличиваем размер больше 100%, чтобы было пространство для движения */
    background-size: cover;
    height: 756px;

    /* Подключаем анимацию: 25 секунд, плавно, бесконечно, туда-обратно */
    animation: cosmicFlow 10s ease-in-out infinite alternate;
    will-change: background-position, filter;
    transform: translateZ(0);
}

/* Сама анимация движения и переливания */
@keyframes cosmicFlow {
    0% {
        /* Начальная позиция (слева) и стандартный цвет */
        background-position: 0% 50%;
        filter: brightness(1) hue-rotate(0deg);
    }

    50% {
        /* Картинка на середине, слегка светлеет и меняет оттенок (эффект переливания) */
        filter: brightness(1.15) hue-rotate(15deg);
    }

    100% {
        /* Конечная позиция (справа), цвет немного уходит в другую сторону */
        background-position: 100% 50%;
        filter: brightness(0.9) hue-rotate(-10deg);
    }
}

/* Класс для картинки */
.moving-icon {
    display: block;
    /* Центрируем, если она стоит в hero секции */
    animation: moveLeftRight 4s ease-in-out infinite;
}

/* Сама анимация движения слева направо */
@keyframes moveLeftRight {
    0% {
        transform: translateX(-30px);
        /* Сдвиг влево на 30 пикселей */
    }

    50% {
        transform: translateX(30px);
        /* Сдвиг вправо на 30 пикселей */
    }

    100% {
        transform: translateX(-30px);
        /* Возврат влево */
    }
}

.header {
    padding: 20px 16px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Розовая G */

.login-btn {
    border: 1px solid #FFF;
    border-radius: 20px;
    padding: 8px 24px;
    color: #FFF;
    font-size: 14px;
    transition: 0.3s;
}

.login-btn:hover {
    background: #FFF;
    color: #000;
}

.hero {
    text-align: center;
    padding: 40px 0px 10px 0px;
}

.hero-container {
    background: #2D2E2E3B;
    border: 1px solid #9A9A9A96;
    backdrop-filter: blur(10.199999809265137px);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}


.hero h1 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 64px;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
    max-width: 747px;
}

.hero-text {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
}

/* Общие стили заголовков секций */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.titblock-sec {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-header h2 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    color: #FFFFFF;
}

.arrow-line {
    display: inline-block;
    width: 100px;
    height: 1px;
    background: #FFF;
    vertical-align: middle;
    position: relative;
}

.arrow-line::after {
    content: '>';
    position: absolute;
    right: -5px;
    top: -10px;
    color: #FFF;
}

.section-desc {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    color: #FFFFFFB2;
}

/* Секция Подсказки */
.hints-section {
    padding: 100px 16px 0px 16px;
}

.hints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hint-card {
    background: #1C2128;
    border: 1px solid #30363D;
    border-radius: 12px;
    padding: 30px;
}

.hint-number {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    line-height: 1;
    color: #FFFFFF4D;
}

.hint-title {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 1;
    color: #FFFFFF;
}

.hint-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hint-text p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    color: #FFFFFF;
}

.str-txt {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    color: #FFFFFF;
}

/* Подготовка секции для абсолютных планет */
.hints-section {
    position: relative;
    overflow: hidden;
    /* Чтобы планеты не вылезали за пределы секции (особенно нижняя) */
    padding: 80px 16px 150px;
    /* Увеличил нижний отступ, чтобы было место для нижней планеты */
}

/* Контейнер должен быть поверх планет */
.relative-container {
    position: relative;
    z-index: 2;
}

/* --- ОБЩИЕ СТИЛИ ДЛЯ ПЛАНЕТ --- */
.hint-planet {
    position: absolute;
    z-index: 1;
    /* Планеты позади карточек */
    pointer-events: none;
    /* Чтобы картинки не мешали выделять текст или кликать */
}

/* 1. Планета слева (planet-small.svg) */
.planet-top-left {
    top: 25%;
    left: 34px;
    /* Примерный размер */
    animation: floatPlanet1 5s ease-in-out infinite alternate;
}

/* 2. Планета справа (planet-rainbow.svg) */
.planet-mid-right {
    top: 50%;
    right: 35px;
    animation: floatPlanet2 6s ease-in-out infinite alternate;
}

/* 3. Огромная планета снизу (planet-obrez.svg) */
.planet-bottom-center {
    bottom: -50px;
    /* Сильно опускаем вниз */
    left: 50%;
    /* У нижней планеты центрирование через transform, учтем это в анимации */
    animation: floatPlanetBottom 7s ease-in-out infinite alternate;
}

/* --- АНИМАЦИИ ПАРЕНИЯ (ПОДРЫГИВАНИЯ) --- */
@keyframes floatPlanet1 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }

    /* Легкое движение вверх и наклон */
}

@keyframes floatPlanet2 {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(25px) rotate(-3deg);
    }

    /* Движение вниз */
}

@keyframes floatPlanetBottom {
    0% {
        transform: translateX(-50%) translateY(0px);
    }

    100% {
        transform: translateX(-50%) translateY(-15px);
    }

    /* Слегка поднимается и опускается */
}

/* --- ЭФФЕКТ СТЕКЛА ДЛЯ КАРТОЧЕК --- */
/* Чтобы планеты было видно сквозь карточки (как на макете) */
.glass-card {
    background: radial-gradient(85.86% 85.86% at 14.14% 26.23%, rgba(61, 61, 75, 0.8) 0%, rgba(42, 42, 52, 0.8) 100%)
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */
    ;
    border: 1px solid #535353;
    padding: 20px 40px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line {
    border: 1px solid #FFFFFF33;
}

/* Секция Карта заданий */
.map-section {
    padding: 100px 16px 150px 16px;
    background-image: url('../img/phone-back2.webp');
    background-position: center;
    background-size: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.value-card {
    background: #2A2A34CC;
    backdrop-filter: blur(7px);
    border-radius: 5px;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.value-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #FFFFFF;
}

.value-text {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
}

.tasks-interactive {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- 3D СЛАЙДЕР С ПЛАНЕТАМИ --- */
.planet-slider {
    flex: 1.2;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.planet-track {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Базовый слайд: по умолчанию ВСЕ карточки спрятаны (сзади) */
.planet-slide {
    position: absolute;
    width: 374px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;

    /* Скрываем неактивные карточки */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    z-index: 0;
    pointer-events: none;
    /* Нельзя кликнуть по скрытым */
}

/* Планета над карточкой */
.planet-img {
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-bottom: -70px;
    /* Наезжает на карточку */
    transition: all 0.6s ease;
}

/* Стеклянная карточка слайдера */
.planet-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 80px 20px 20px 20px;
    width: 100%;
    text-align: center;
}

.planet-light1 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(255, 92, 92, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light2 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(61, 179, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light3 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(160, 61, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light4 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(216, 255, 244, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light5 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(61, 200, 107, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light6 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(160, 61, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light7 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(216, 255, 244, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light8 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(61, 179, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light9 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(61, 179, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light10 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(191, 200, 61, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light11 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(61, 200, 107, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.planet-light12 {
    background: radial-gradient(71.02% 71.02% at 50% 28.98%, rgba(160, 61, 200, 0.37) 0%, rgba(45, 49, 62, 0.37) 100%);
}

.dep-title {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.2;
    color: #FFFFFF80;
    padding-bottom: 10px;
}

.dep-title strong {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    text-align: center;
    color: #FFFFFF;
}

.dep-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    text-align: left;
}

.text-card-sl {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1;
}

.stat-item:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 10px;
}

.stat-item:last-child {
    padding-left: 10px;
}

.stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #FFF;
    display: block;
}

.stat-label {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 11px;
    color: #FFFFFF;
}

/* Позиционирование 3D (АКТИВНАЯ, ЛЕВАЯ, ПРАВАЯ) */
.planet-slide.active {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.planet-slide.active .planet-img {
    box-shadow: 0 0 50px rgba(0, 200, 255, 0.3);
    /* Легкое свечение */
}

.planet-slide.prev {
    transform: translateX(-65%) scale(0.8) rotate(10deg);
    z-index: 1;
    opacity: 0.9;
    width: 270px;
    visibility: visible;
    pointer-events: auto;
}

.planet-slide.next {
    transform: translateX(65%) scale(0.8) rotate(-10deg);
    z-index: 1;
    opacity: 0.9;
    width: 270px;
    visibility: visible;
    pointer-events: auto;
}

/* Затеняем неактивные планеты */
.planet-slide.prev .planet-img,
.planet-slide.next .planet-img {
    filter: brightness(0.4);
}

/* Кнопки управления слайдером */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    z-index: 5;
}

/* =========================================
   ИСПРАВЛЕННЫЙ 3D СЛАЙДЕР С ПЛАНЕТАМИ
   ========================================= */

/* Базовый слайд */
.planet-slide {
    position: absolute;
    width: 374px;
    /* Оставляем ширину неизменной ВСЕГДА */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;

    /* АНИМАЦИЯ: анимируем только GPU-оптимизированные свойства (убрали all, чтобы width не анимировался) */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.6s ease,
        visibility 0.6s;

    /* По умолчанию карточка спрятана сзади */
    opacity: 0;
    visibility: hidden;
    transform: translateX(0) scale(0.5);
    z-index: 0;
    pointer-events: none;
}

/* АКТИВНАЯ (ЦЕНТРАЛЬНАЯ) КАРТОЧКА */
.planet-slide.active {
    transform: translateX(0) scale(1) rotate(0deg);
    z-index: 3;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ЛЕВАЯ КАРТОЧКА */
.planet-slide.prev {
    /* Поскольку ширина теперь не сужается, отодвигаем чуть дальше: -75% */
    transform: translateX(-75%) scale(0.8) rotate(10deg);
    z-index: 1;
    opacity: 0.7;
    /* Чуть снизили прозрачность для глубины */
    visibility: visible;
    pointer-events: auto;
}

/* ПРАВАЯ КАРТОЧКА */
.planet-slide.next {
    transform: translateX(75%) scale(0.8) rotate(-10deg);
    z-index: 1;
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
}

/* Анимация самой планеты сверху */
.planet-img {
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin-bottom: -70px;
    /* Ограничиваем анимацию, чтобы не грузила систему */
    transition: box-shadow 0.6s ease, filter 0.6s ease;
}

.planet-slide.active .planet-img {
    box-shadow: 0 0 50px rgba(0, 200, 255, 0.3);
}

.planet-slide.prev .planet-img,
.planet-slide.next .planet-img {
    filter: brightness(0.4);
}

@media (max-width: 900px) {

    /* Прячем боковые слайды без изменения их ширины */
    .planet-slide.prev,
    .planet-slide.next {
        transform: translateX(0) scale(0.5) rotate(0deg);
        z-index: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}



/* --- ПРАВАЯ ДОСКА ЗАДАНИЙ --- */
.tasks-board {
    background: linear-gradient(180deg, rgba(99, 99, 99, 0.37) 0%, rgba(17, 35, 38, 0.37) 100%);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(9.6px);
    border: 1px solid skyblue;
    flex: 1;
    min-width: 0;
}

.tasks-board-header {
    display: flex;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #FFFFFF33;
    padding-bottom: 10px;
}

/* Каждая карточка задания — полноценный блок с отступами (ТОЛЬКО в аккордеоне главной) */
.tasks-accordion .task-item {
    padding: 18px 16px;
    border-radius: 16px;
    position: relative;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
    cursor: pointer;
}

/* Разделитель между карточками — через псевдоэлемент */
.tasks-accordion .task-item:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background: #FFFFFF1A;
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
}

/* Ховер — фон на ВСЕЙ карточке (без transform чтобы не растягивать при раскрытии) */
.tasks-accordion .task-item:hover {
    background: radial-gradient(85.86% 85.86% at 14.14% 26.23%, rgba(61, 61, 75, 1) 0%, rgba(42, 42, 52, 1) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* При ховере убираем разделитель */
.tasks-accordion .task-item:hover::after {
    opacity: 0;
}

/* Бейдж "Не активно" */
.task-inactive-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #A0AAB5;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 0;
}

/* Строка вознаграждения */
.task-reward-line {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 15px !important;
}

/* Заблокированная кнопка задания */
.take-task-btn--locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #A0AAB5 !important;
    color: #A0AAB5 !important;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    flex-wrap: wrap;
    gap: 10px;
}

.task-header p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 15px;
    flex: 1;
}

.task-badge {
    color: #FFF;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    line-height: 1;
}

.pink-badge {
    background: #FF007A;
}

.green-badge {
    background: #00D26A;
}

.orange-badge {
    background: #FF5A5F;
}

.blue-badge {
    background: #0098FF;
}

.task-body {
    padding-top: 10px;
}

.task-body p {
    font-size: 14px;
    color: #A0AAB5;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.take-task-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    border-radius: 100px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.3s;
}

.take-task-btn:hover {
    background: #FFF;
    color: #000;
}

/* Секция Энергия благодарностей */
.gratitude-section {
    padding: 100px 16px;
    text-align: center;
    background-image: url('../img/phone-back3.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gratitude-header h2 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    text-align: center;
    color: #FFFFFF;
    line-height: 1;
    padding-bottom: 30px;
}

.gratitude-header p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 1;
    color: #FFFFFF;
    text-align: center;
}

.energy-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 34px;
}

.gratitude-form {
    max-width: 610px;
    margin: 0 auto 30px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 20px;
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 15px;
    color: #FFFFFF;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: 5px;
    border: none;
    background: #FFFFFF99;
    color: #111;
    font-weight: 500;
}

.gratitude-form .form-group input::placeholder,
.gratitude-form .form-group textarea::placeholder {
    color: #4a4a4a;
    opacity: 1;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.submit-gratitude-btn {
    width: 100%;
    padding: 17px;
    background: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    border-radius: 100px;
    font-weight: 600;
}

.submit-gratitude-btn:hover {
    background: #FFF;
    color: #000;
}

.pleasures-title {
    margin-bottom: 30px;
    text-align: center;
}

.pleasures-title h2 {
    font-size: 24px;
}

.gratitude-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.grat-card {
    background: radial-gradient(85.86% 85.86% at 14.14% 26.23%, rgba(61, 61, 75, 0.8) 0%, rgba(42, 42, 52, 0.8) 100%)
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */
    ;
    border-radius: 20px;
    padding: 20px;
}

.grat-msg {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.grat-users {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #A0AAB5;
    margin-bottom: 15px;
    background: #0D1117;
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
}

.grat-coins {
    border-top: 1px solid #FFFFFF26;
    border-bottom: 1px solid #FFFFFF26;
    padding: 15px 0;
    margin-bottom: 15px;
    font-size: 12px;
    color: #A0AAB5;
}

.coin-bl {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.grat-time {
    font-size: 12px;
    color: #768390;
}

/* Анимация стрелочки */
@keyframes flyArrow {
    0% {
        transform: translateX(-5px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(5px);
        opacity: 0;
    }
}

.animated-arrow {
    display: inline-block;
    animation: flyArrow 1.5s infinite;
    color: #FFF;
    font-weight: bold;
}

/* Секция Пункт обмена */
.shop-section {
    padding: 70px 16px;
}

.shop-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.shop-header h2 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    text-align: center;
    color: #FFFFFF;
    line-height: 1;
}

.shop-header p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    line-height: 1;
}

.p-down-gray {
    font-family: Inter;
    font-weight: 700 !important;
    font-style: Bold;
    font-size: 15px !important;
    text-align: center;
    color: #FFFFFF80 !important;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shop-item {
    background: #2A2A34CC;
    border: 1px solid #474747;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-price {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    gap: 10px;
}

.shop-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0098FF;
    color: #FFF;
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 11px;
    text-align: center;
    text-transform: capitalize;
    padding: 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.shop-img-placeholder {
    background: transparent;
    height: 166px;
    border-radius: 10px;
}

.shop-img-placeholder img {
    object-fit: contain;
}

.shop-price {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    color: #FFFFFF;
}



.buy-btn {
    width: 100%;
    padding: 17px;
    border: 1px solid #FFFFFF;
    border-radius: 100px;
    color: #FFF;
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0px 0px 4px 0px #FFFFFF;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #30363D;
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background-color: #1A1A24;
    /* Темно-синий фон как на макете */
    padding: 80px 16px;
    /* Отступ сверху, снизу 0, чтобы планета уперлась в край */
    position: relative;
    overflow: hidden;
    /* Обрезаем нижнюю часть планеты */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #FFFFFF26;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    /* Контент поверх планеты */
    width: 100%;
}

/* Логотип */
.footer-logo {
    font-family: Inter, sans-serif;
    font-size: 40px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 4px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.footer-logo span {
    color: #E20074;
    /* Розовая буква G */
}

/* Контейнер для карточек */
.footer-blocks {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    margin-bottom: 150px;
    /* Отступ вниз, чтобы дать место вылезающей планете */
}

/* Сами карточки */
.footer-card {
    background: #252530;
    /* Цвет карточки чуть светлее фона */
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Верхняя часть карточки с иконкой и заголовком */
.fc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.fc-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
}

/* Тонкая линия-разделитель */
.fc-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Полупрозрачная белая линия */
    margin-bottom: 20px;
}

/* Ссылка внизу карточки */
.fc-link {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #A0AAB5;
    /* Сероватый текст */
    text-decoration: underline;
    transition: color 0.3s;
}

.fc-link:hover {
    color: #FFFFFF;
    /* При наведении текст становится белым */
}

/* ========================
   ВЫГЛЯДЫВАЮЩАЯ ПЛАНЕТА
   ======================== */
.footer-planet {
    position: absolute;
    bottom: -20px;
    /* Сдвигаем планету вниз, чтобы она выглядывала только наполовину */
    left: 50%;
    transform: translateX(-50%);
    /* Размер планеты из макета */
    z-index: 1;
    /* Планета под контентом */
    pointer-events: none;
    /* Не кликабельна */

    /* Добавляем легкое парение, как в секции "Подсказки" */
    animation: floatFooterPlanet 6s ease-in-out infinite alternate;
}

@keyframes floatFooterPlanet {
    0% {
        transform: translateX(-50%) translateY(0px);
    }

    100% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* ========================
   АДАПТИВ ФУТЕРА
   ======================== */
@media (max-width: 768px) {
    .footer-blocks {
        flex-direction: column;
        /* Карточки друг под другом на телефоне */
        align-items: center;
        gap: 20px;
        margin-bottom: 200px;
    }

    .footer-card {
        width: 100%;
    }

    .footer-planet {
        width: auto;
    }
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #1C2128;
    border: 1px solid #30363D;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 1040px;
    position: relative;
    text-align: center;
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-size: 14px;
    color: #A0AAB5;
    margin-bottom: 30px;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #A0AAB5;
    font-size: 20px;
}

#auth-form {
    text-align: left;
}

.submit-auth-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #FFF;
    color: #FFF;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    border-radius: 100px;
}

.special-p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    text-decoration: underline;
    line-height: 1;
    color: #FFFFFF;
    padding-top: 30px;
}

.submit-auth-btn:hover {
    background: #FFF;
    color: #000;
}

.popup-links {
    margin-top: 20px;
}

.popup-links button {
    color: #007AFF;
    font-size: 14px;
    text-decoration: underline;
}

.success-box {
    background: #0D1117;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.success-box p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #FFF;
}

/* --- СТИЛИ ДЛЯ ВАЛИДАЦИИ ФОРМЫ В ПОПАПЕ --- */

/* Серый фон инпутов как на макете */
#reg-fields input,
#reg-fields select,
#admin-fields input {
    width: 100%;
    background: #FFFFFF99;
    padding: 16px;
    border-radius: 5px;
    color: #111;
    font-weight: 500;
}

#reg-fields input::placeholder,
#admin-fields input::placeholder {
    color: #555;
}

/* Красный текст ошибки */
.error-msg {
    display: none;
    color: #EF4444;
    /* Красный цвет */
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.error-msg.active {
    display: block;
}

/* Стиль заблокированной кнопки */
.submit-auth-btn:disabled {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #FFFFFF;
    box-shadow: 0px 0px 4px 0px #FFFFFF;
    padding: 17px;
    color: #FFFFFF;
    border-radius: 100px;
    cursor: not-allowed;
    background: transparent;
}

.p-save {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 15px;
    text-align: center;
    padding-top: 30px;
    color: #FFFFFF80;
}

.submit-auth-btn:disabled:hover {
    background: transparent;
    color: #4B5563;
}

@media (max-width: 1110px) {
    .gratitude-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .hints-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .values-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .planet-slider {
        min-height: auto;
    }

    .tasks-interactive {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-direction: column;
    }

    .planet-slide.prev {
        transform: translateX(-65%) scale(0.8) rotate(0deg);
        z-index: 1;
        opacity: 0.9;
        width: auto;
        visibility: hidden;
        pointer-events: auto;
    }

    .planet-slide.next {
        transform: translateX(-65%) scale(0.8) rotate(0deg);
        z-index: 1;
        opacity: 0.9;
        width: auto;
        visibility: hidden;
        pointer-events: auto;
    }

    .shop-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gratitude-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        text-align: left;
    }

}

@media (max-width: 765px) {
    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 600px) {
    .hero {
        text-align: center;
        padding: 10px 0px 10px 0px;
    }

    .hero-container {
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .moving-icon {
        width: 240px;
        display: block;
        animation: moveLeftRight 4s ease-in-out infinite;
    }


    .top-background {
        height: 709px;
        animation: cosmicFlow 10s ease-in-out infinite alternate;
    }

    .planet-slide {
        position: absolute;
        width: auto;
    }

    .popup-content {
        background: #1C2128;
        border: 1px solid #30363D;
        border-radius: 16px;
        padding: 20px;
        width: 100%;
        max-width: 1040px;
        position: relative;
        text-align: center;
        margin: 10px;
    }
}

@media (max-width: 600px) {
    .shop-grid {
        display: grid;

        /* Увеличили отступ между рядами до 30px, чтобы плашке было место, а между колонками оставили 20px */
        gap: 30px 20px;

        /* ДОБАВЛЕНО: Отступ сверху, чтобы скролл-контейнер не обрезал выпирающие синие кнопки первого ряда */
        padding-top: 25px;
        padding-bottom: 10px;
        /* Немного места снизу для красоты */

        grid-template-rows: repeat(3, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(80% - 10px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        grid-template-columns: none;
    }

    .shop-grid::-webkit-scrollbar {
        display: none;
    }

    .shop-item {
        scroll-snap-align: start;
    }

    .grat-users .email {
        display: inline-block;
        /* Выделяем место примерно под 5-6 букв + 3 точки */
        max-width: 8ch;

        /* Запрещаем перенос на новую строку */
        white-space: nowrap;

        /* Скрываем всё, что выходит за рамки max-width */
        overflow: hidden;

        /* Добавляем многоточие в конце */
        text-overflow: ellipsis;

        /* Выравниваем ровно по центру относительно стрелочки */
        vertical-align: middle;
    }
}

@media (max-width: 900px) {

    .gratitude-grid {
        display: grid;
        gap: 20px;

        /* Делаем ровно 2 ряда */
        grid-template-rows: repeat(2, 1fr);

        /* Заставляем карточки идти сверху-вниз (заполняя 2 ряда), а затем уходить вправо */
        grid-auto-flow: column;

        /* Ширина одной колонки (50% экрана минус половина отступа), чтобы влезало ровно 2 карточки */
        grid-auto-columns: calc(90% - 10px);

        /* Включаем скролл и убираем жесткие колонки из предыдущих медиа-запросов */
        overflow-x: auto;
        grid-template-columns: none;

        /* Магнитный скролл */
        scroll-snap-type: x mandatory;

        /* Скрываем скроллбар */
        scrollbar-width: none;
        -ms-overflow-style: none;

        /* Небольшой отступ снизу, чтобы тень/границы не обрезались */
        padding-bottom: 10px;
    }

    /* Скрываем ползунок для Chrome/Safari/Opera */
    .gratitude-grid::-webkit-scrollbar {
        display: none;
    }

    /* Прилипание при скролле для карточек благодарностей */
    .grat-card {
        scroll-snap-align: start;
        height: 100%;
        /* Чтобы карточки в разных рядах были одной высоты */
    }

    .gratitude-section {
        padding: 100px 0px;
    }

    .gratitude-header {
        padding: 0px 16px;
    }

    .gratitude-form {
        padding: 0px 16px;
    }


}

@media (max-width: 350px) {
    .titblock-sec {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        flex-direction: column;
    }

}

/* ========================
   АДАПТИВ СЛАЙДЕРА (МАКС 768px)
   ======================== */
@media (max-width: 900px) {

    /* Делаем так, чтобы уходящая карточка растворялась быстрее */
    .planet-slide {
        transition: transform 0.4s ease-in-out, opacity 0.25s ease !important;
    }

    /* Полностью прячем боковые карточки (прозрачность 0) */
    .planet-slide.prev,
    .planet-slide.next {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    /* Уводим предыдущую карточку далеко влево, чтобы она не просвечивала */
    .planet-slide.prev {
        transform: translateX(-5%) scale(0.8) !important;
    }

    /* Уводим следующую карточку далеко вправо */
    .planet-slide.next {
        transform: translateX(5%) scale(0.8) !important;
    }

    /* Активная карточка остается по центру */
    .planet-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) scale(1) !important;
        z-index: 10;
    }
}

/* Global Preloader */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #181820;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #0098FF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================
   АВТО-СЛАЙДЕР ПРИЯТНОСТЕЙ (ДЕСКТОП)
   ======================== */

.grat-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 8px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.grat-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: gratSlide 55s linear infinite;
    will-change: transform;
}

/* Второй ряд — едет в обратную сторону */
.grat-slider-track-reverse {
    animation-name: gratSlideReverse;
}

.grat-slider-track:hover,
.grat-slider-track-reverse:hover {
    animation-play-state: paused;
}

@keyframes gratSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes gratSlideReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.grat-slider-track .grat-card {
    width: 300px;
    flex-shrink: 0;
    cursor: default;
    list-style: none;
}

/* На десктопе: состояниями управляет JS через display */

/* На мобилке: ручной скролл-список скрыт (слайдер работает и там) */
@media (max-width: 768px) {
    .gratitude-grid.as-slider {
        display: none !important;
    }

    /* Карточки в слайдере — чуть уже для мобилки */
    .grat-slider-track .grat-card {
        width: 260px;
    }

    /* Убираем маску по краям на мобилке (меньше места) */
    .grat-slider-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    }
}

/* Десктоп: статичная сетка (когда карточек мало) */
@media (min-width: 769px) {
    .gratitude-grid.as-slider.grat-static {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        overflow: visible;
        flex-wrap: unset;
    }
}

/* ========================
   ЗАБЫЛ ПАРОЛЬ — кнопка и подсказка в попапе
   ======================== */
.forgot-pass-btn {
    background: none;
    border: none;
    color: #8B8B9E;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-top: 2px;
    transition: color 0.2s;
    font-family: inherit;
}

.forgot-pass-btn:hover {
    color: #fff;
}

.forgot-pass-hint {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 12px;
    text-align: center;
}

.forgot-pass-hint p {
    font-size: 13px;
    color: #C0C0C9;
    margin-bottom: 10px;
    line-height: 1.5;
}

.slack-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4A154B;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.slack-reset-link:hover {
    background: #611f69;
    transform: translateY(-1px);
}