body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f9;
    margin: 0;
    padding: 0;
    text-align: center;
    color: #333;
}

h1 { 
    margin: 20px 0; 
    color: #333; 
}

/* ======================
   Современный хедер
====================== */
header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    max-width: 900px;
    margin: 20px auto; /* центрируем на странице */
}

header .logo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

header h1 {
    font-size: 1.6rem;
    color: #d63384;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    font-family: 'Poppins', sans-serif; /* современный шрифт */
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.3rem;
        margin-top: 8px;
    }
}
/* ======================
   Блок интро-текста
====================== */
.intro-container {
    text-align: center;
    margin: 10px auto 20px auto;
    max-width: 550px;
    width: 90%;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.intro-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
}
/* кнопки внутри хедера */
header a.btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #d63384;
}

header a.btn:hover {
    background: #a0276b;
}

/* ======================
   далее
====================== */

a.btn {
    display: inline-block; 
    padding: 10px 20px; 
    margin: 15px 0;
    background: #007bff; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 5px;
    transition: background 0.2s;
}

a.btn:hover { background: #0056b3; }

.channels { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    padding: 10px; 
}

.card {
    width: 250px; 
    background: #fff; 
    border-radius: 10px; 
    margin: 10px; 
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.card:hover { 
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); 
}

.card h2 { 
    margin: 0 0 10px; 
    font-size: 18px; 
    color: #007bff; 
}

.card p { 
    margin: 0 0 5px; 
    font-size: 14px; 
    color: #555; 
}

.card span { 
    font-size: 12px; 
    color: #888; 
}

/* Общий контейнер формы */
form {
    display: block;
    max-width: 500px;
    margin: 30px auto;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    text-align: left;
}

/* Заголовок формы (если есть h1 внутри) */
form h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Поля ввода и textarea */
form input[type="text"],
form input[type="file"],
form select,
form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* Поля при фокусе */
form input[type="text"]:focus,
form textarea:focus,
form select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Текстовые области */
form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Подписи к полям */
form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Кнопка отправки */
form button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    background: #28a745;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover и активная кнопка */
form button[type="submit"]:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Ссылка назад */
form .back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

form .back-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

a.back-link { 
    display: inline-block; 
    margin-top: 15px; 
    color: #007bff; 
    text-decoration: none; 
    transition: color 0.2s; 
}

a.back-link:hover { color: #0056b3; }

footer {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

footer p {
  margin: 5px 0;
}


/* ======================
   Адаптивные стили
====================== */
@media (max-width: 768px) {
    .card {
        width: 90%;
        margin: 10px auto;
    }

    form input, form textarea {
        width: 90%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 22px; }
    .card h2 { font-size: 16px; }
    .card p { font-size: 13px; }
    form input, form textarea { font-size: 13px; padding: 8px; }
    form button, a.btn, .btn-approve { padding: 8px 16px; font-size: 14px; }
}

.share-buttons {
    margin-top: 10px;
}

.share-buttons a {
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    transition: background 0.2s;
}

.share-tg { 
    background: #0088cc; 
}

.share-tg:hover { 
    background: #006699; 
}

.share-vk { 
    background: #4c75a3; 
}

.share-vk:hover { 
    background: #355069; 
}

.share-wa { 
    background: #25d366; 
    color: #fff; 
}

.share-wa:hover { 
    background: #128c52; 
}

.share-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: center;
}

/* ======================
   Страница канала
====================== */
.channel-page {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.channel-card {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
}

.channel-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.channel-card a.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #d63384;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.channel-card a.btn:hover {
    background: #a0276b;
}

.channel-card .back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #007bff;
    text-decoration: none;
}

.channel-card .back-link:hover {
    color: #0056b3;
}

.avatar-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px; /* центрируем и отступ снизу */
    border-radius: 50%;   /* делаем кружком */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* мягкая тень */
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* подгонка изображения */
    display: block;
}

.btn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #0088cc; /* Telegram-синий */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-more:hover {
    background-color: #006fa3;
}


/* === Ads (MVP) === */
.ad { display:block; text-decoration:none; border:1px solid #e5e7eb; border-radius:12px; padding:10px; background:#fff; }
.ad--banner img { display:block; max-width:100%; height:auto; border-radius:8px; }
.ad--text .ad__title { display:block; font-weight:600; margin-bottom:4px; }
.ad--text .ad__body { color:#555; }
.ad--html { position:relative; }
.ad--html .ad__overlay { position:absolute; inset:0; z-index:5; }
