/* Общие настройки */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Шапка */
.main-header {
    text-align: center;
    padding: 40px 20px;
}
.header-title {
    font-size: 50px;
    font-weight: 900;
    font-style: italic;
    margin: 10px 0;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.fire-label {
    color: #ff3c00;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 3px;
}
.header-desc {
    color: #aaa;
    font-size: 14px;
}
.header-desc span {
    color: #e20613;
    font-weight: bold;
}

/* Сетка */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
}

/* Сайдбары */
.sidebar {
    background: #111;
    padding: 15px;
    border-radius: 12px;
}
.side-title {
    color: #e20613;
    font-size: 14px;
    font-weight: 900;
    border-bottom: 2px solid #e20613;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Карточки статей */
.article-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    transition: 0.3s;
    cursor: pointer;
}
.article-card:hover {
    border-color: #e20613;
    transform: translateY(-3px);
}
.article-card img {
    width: 100%;
    border-radius: 8px;
}
.article-card h4 {
    font-size: 13px;
    margin: 10px 0 5px;
    font-weight: 800;
}
.read-btn {
    background: #e20613;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 6px;
    text-align: center;
    border-radius: 20px;
    display: block;
    text-decoration: none;
    margin-top: 10px;
}

/* Газета */
.magazine-frame {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    border-radius: 20px;
    border: 1px solid #222;
    box-shadow: 0 20px 50px rgba(0,0,0,1);
    overflow: hidden;
}
.magazine-canvas {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}
.magazine-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Для ПК оставляем фиксированную высоту и обрезку */
.magazine-inner img {
    width: 100%;
    height: 800px; /* фиксированная высота для ПК */
    object-fit: cover; /* обрезка по размеру контейнера */
    display: block;
    flex-shrink: 0;
    background: #111;
}

/* Для мобильных устройств */
@media (max-width: 1000px) {
    .magazine-inner img {
        height: auto;         /* высота подстраивается под экран */
        max-height: 90vh;     /* максимум 90% высоты экрана */
        object-fit: contain;   /* сохраняем пропорции без обрезки */
    }
}

/* Управление слайдером */
.magazine-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.control-btn {
    background: #222;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.control-btn:hover {
    background: #e20613;
}
.auto-btn {
    background: #e20613;
    min-width: 100px;
}
.page-indicator {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 10px;
    font-weight: bold;
}

/* Кнопки слайдера */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.arrow-btn:hover {
    background: #e20613;
}
.arrow-btn.left { left: 10px; }
.arrow-btn.right { right: 10px; }

/* Telegram промо */
.tg-promo-link {
    display: flex;
    justify-content: center;
    margin: 20px auto 0 auto;
}
.tg-promo-content {
    background: linear-gradient(90deg, #004a99 0%, #001a33 100%);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    max-width: 100%;
    width: 100%;
}
.tg-promo-content:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0,74,153,0.5);
}
.tg-icon-circle {
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.tg-icon-circle i {
    color: #004a99;
    font-size: 30px;
}
.tg-text h3 {
    margin: 0;
    font-size: 20px;
    font-style: italic;
    font-weight: 900;
}
.tg-text p {
    margin: 5px 0 0;
    color: #8cb7ff;
    font-size: 13px;
}
.tg-btn {
    margin-left: auto;
    background: #e20613;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}

/* Футер */
.site-footer {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid #222;
    background: #050505;
}
.footer-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.f-item {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}
.f-item i {
    color: #e20613;
    margin-right: 8px;
}
.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 10px;
    letter-spacing: 2px;
}

/* Адаптив */
@media (max-width: 1000px) {
    .grid-layout { grid-template-columns: 1fr; }
    .side-left, .side-right { display: none; }
}

/* Верхняя кнопка Telegram */
.top-telegram-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 999;
    background: #000;
    padding: 10px 0;
}

/* Сама кнопка */
.top-telegram-btn a {
    background: linear-gradient(90deg, #e20613, #ff3c00);
    color: #fff;
    font-weight: 900;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(226,6,19,0.6);
    transition: 0.3s;

    /* ВАЖНО — для 2 строк */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Основной текст */
.tg-main {
    font-size: 14px;
}

/* Подтекст */
.tg-sub {
    font-size: 12px;
    margin-top: 4px;
    color: #ffdede;
    font-weight: 600;
    opacity: 0.9;
}

/* Ховер эффект */
.top-telegram-btn a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255,60,0,0.8);
}