/* Пример базовых переменных, чтобы упростить изменение стилей */
:root {
    --main-bg: #ffffff;         /* Основной фон */
    --text-color: #000000;      /* Основной цвет текста */
    --accent-color: #0088cc;    /* Акцентный цвет (например, для ссылок или градиента) */
    --card-bg: #ffffff;         /* Цвет фона для карточек */
    --card-shadow: 0 0 20px rgba(0,0,0,0.1);
    --font-family: roboto;  /* Основной шрифт */
}

/* Сброс и базовая типографика */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--main-bg);
    color: var(--text-color);
}

/* Верхняя панель */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .logo {
    display: flex;
    align-items: center;
}

.top-bar .logo img {
    height: 25px;
    margin-right: 10px;
}

/* Кнопка загрузки в виде PNG */
.download-btn-img {
    height: 32px;
    width: auto;
    /* При необходимости можно менять размер, используя медиазапросы */
}

/* Фон и градиент */
.background {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('bg.png') center center no-repeat;
    background-size: cover;
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(#b3d994, #a3cf8c);
    opacity: 0.5;
    z-index: 1;
}

/* Карточка */
.card {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    width: 90%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Аватар */
.card img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Заголовок и текст */
.card .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card .subscribers {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
}

.card .description {
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Кнопка VIEW IN TELEGRAM в виде PNG */
.view-btn-img {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
}

/* Ссылка preview */
.card .preview-link {
    display: block;
    font-size: 14px;
    color: #555555;
    text-decoration: none;
}

.card .preview-link:hover {
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 430px) {
    .card {
        width: 95% !important;
        padding: 10px !important;
    }

    .download-btn-img {
        height: 28px;
    }

    .view-btn-img {
        width: 150px;
    }
}