
/* === TVS Media — Кастомные стили (v1.0) === */
/* Подходит для шаблона на базе Helix Ultimate */
/* Цвета: #003366 (основной), #0055a4 (акцент), #f8f9fa (фон) */

/* --- 1. Основные стили сайта --- */

body, .site {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* --- 2. Заголовки --- */

h1, h2, h3, h4, h5, h6,
.com-content article h2,
.com-content article h3 {
    color: #003366;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.com-content article h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #003366;
    padding-bottom: 8px;
    display: inline-block;
}

.com-content article h3 {
    font-size: 1.4em;
    color: #0055a4;
}

/* --- 3. Кнопка "Подробнее" (прямоугольник) --- */

.btn-tvs,
.readmore,
a.readmore {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFFFFF;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #002a52;
    text-align: center;
    min-width: 120px;
    margin-top: 10px;
}

.btn-tvs:hover,
.readmore:hover {
    background-color: #0055a4;
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.3);
    transform: translateY(-1px);
    border-color: #004080;
}

/* --- 4. Карточки новостей --- */

.blog-item {
    background: #d1d1d1;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    margin-bottom: 30px;
}

.blog-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-title a {
    color: #003366 !important;
    font-weight: 600;
    font-size: 1.3em;
    text-decoration: none;
}

.blog-title a:hover {
    color: #0055a4 !important;
    text-decoration: underline;
}

.blog-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.blog-intro {
    color: #555;
    font-size: 1em;
    margin: 12px 0;
}

/* --- 5. Изображения в статьях --- */

.com-content img,
.blog-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --- 6. Хлебные крошки --- */

.mod-breadcrumbs {
    background: #e9ecef;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 10px 0 20px 0;
    font-size: 0.9em;
}

.mod-breadcrumbs a {
    color: #0055a4;
}

/* --- 7. Рекламные блоки --- */

.ad-block {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}

.ad-block img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s;
}

.ad-block img:hover {
    transform: scale(1.02);
}

.ad-banner {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* --- 8. Карусель баннеров --- */

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin: 15px auto;
    max-width: 300px;
    text-align: center;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    position: relative;
    opacity: 1;
    display: block;
}

.banner-dots {
    text-align: center;
    margin-top: 8px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active, .dot:hover {
    background: #003366;
}

/* --- 9. Тёмная тема --- */

body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .com-content article h2,
body.dark-mode .blog-title a {
    color: #bbdefb !important;
}

body.dark-mode .blog-item {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mod-breadcrumbs {
    background: #2d2d2d;
    color: #bbb;
}

body.dark-mode .ad-block img {
    border-color: #444;
}

/* --- 10. Адаптив (мобильные) --- */

@media (max-width: 768px) {
    .blog-item {
        padding: 15px;
    }

    .btn-tvs,
    .readmore {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }

    .com-content article h2 {
        font-size: 1.5em;
    }

    .banner-carousel {
        max-width: 280px;
    }
}

/* --- 11. Кнопка переключения темы (создаётся через JS) --- */

#theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #0055a4;
}
/* --- 12. Архив газеты --- */
{
      font-family: Arial, sans-serif;
      background: #f7f7f7;
      margin: 0;
      padding: 20px;
    }
    .container {
      max-width: 900px;
      margin: 0 auto;
      background: white;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .header {
      text-align: center;
      margin-bottom: 20px;
    }
    .header h1 {
      font-size: 28px;
      color: #0000FF;
      font-family: 'Arial Narrow', sans-serif;
      margin: 0;
    }
    .header .logo {
      width: 406px;
      height: 106px;
      margin: 10px 0;
    }
    .year-nav {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin: 20px 0;
    }
    .year-nav a, .year-nav span {
      padding: 8px 16px;
      background: #000;
      color: #FFF;
      text-decoration: none;
      border-radius: 4px;
      font-size: 14px;
    }
    .year-nav span {
      opacity: 0.7;
      pointer-events: none;
    }
    .issues-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 12px;
      margin-top: 20px;
    }
    .issue-item {
      text-align: center;
    }
    .issue-item a {
      display: block;
      padding: 10px;
      background: #e0f7ff;
      color: #0066cc;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      font-size: 14px;
    }
    .issue-item a:hover {
      background: #b3e5fc;
      transform: scale(1.03);
      transition: 0.2s;
    }
    .issue-item .date {
      font-size: 12px;
      color: #555;
      margin-top: 4px;
    }
    .month-divider {
      grid-column: 1 / -1;
      text-align: center;
      font-weight: bold;
      color: #333;
      margin: 15px 0;
      font-size: 16px;
      padding: 10px;
      background: #f0f0f0;
      border-radius: 6px;
    }