

/* Start:/bitrix/templates/empty/components/bitrix/news/main_news/bitrix/news.detail/.default/style.css?175766105013490*/
/* Заголовок новости */
.news-detail-title, h1.news-detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #183e7a;
  line-height: 1.2;
}

/* Дата под заголовком */
.news-detail-date {
  color: #7a7a7a;
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* Изображение */
.news-detail-image {
  display: block;
  max-width: 100%;
  margin: 0 auto 24px auto;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(24,62,122,0.07);
  border: 1px solid #e7e7e7;
}

/* Основной текст */
.news-detail-text {
  font-size: 1.14rem;
  line-height: 1.65;
  margin-bottom: 24px;
  color: #232323;
}

.news-detail-article {
  background: #fff;
  border-radius: 7px;
  max-width: 780px;
  margin: 24px auto  auto;
  box-shadow: 0 3px 30px rgba(24,62,122,0.06);
  padding: 30px 28px 38px 28px;
}

/* Ссылки */
.news-detail-text a {
  color: #1679fa;
  text-decoration: underline;
}

.news-detail-text a:hover {
  text-decoration: none;
}

/* Блок "Подписывайтесь на нас!" */
.social-share-block {
    margin: 20px 0;
    padding: 15px;
    background: #183e7a;
    border-radius: 5px;
}

.social-share-block p {
    margin-bottom: 10px;
    font-weight: bold;
    color: white;
}
.social-share-block h3 {
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}
/* Иконки */
.subscribe-block {
  background: #1679fa;
  color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 22px rgba(22, 121, 250, 0.12);
}

.subscribe-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
}

.subscribe-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: white;
  font-size: 1.4rem;
  opacity: 0.9;
  transition: opacity 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  opacity: 1;
}


/* Кнопка возврат к новостям */
.news-detail-back-btn {
  padding: 13px 28px 13px 18px;
  background-color: #183e7a;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(22,121,250,0.12);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.news-detail-back-btn:hover,
.news-detail-back-btn:focus {
  background-color: #235bb3;
  box-shadow: 0 6px 28px rgba(22,121,250,0.15);
  color: #fff;
  text-decoration: none;
}

/* Общий стиль контента новости */
.news-detail-content {
    background: #fff;
    border-radius: 7px;
    padding: 30px 28px 38px 28px;
    box-shadow: 0 3px 30px rgba(24,62,122,0.06);
    max-width: 780px;
    box-sizing: border-box;
}

/* Сетка: основной контент + сайдбар */
.news-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px; /* основное содержимое + реклама */
    gap: 40px;
    max-width: 1200px;
    margin: 24px auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Обертка с сеткой, фон */
.news-detail-article {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 24px auto 24px auto;
    padding: 30px 28px 38px 28px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 3px 30px rgba(24,62,122,0.06);
}

/* Полная ширина контента статьи */
.news-detail-content {
    width: 100%;
}

/* Заголовок новости */
.news-detail-title, h1.news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #183e7a;
    line-height: 1.2;
}

/* Дата новости */
.news-detail-date {
    color: #7a7a7a;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Контейнер изображений */
.news-detail-image-wrap {
    margin-bottom: 24px;
}
.news-detail-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(24,62,122,0.07);
  border: 1px solid #e7e7e7;
  object-fit: cover;
}
/* Изображения: адаптивные */
.news-detail-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(24,62,122,0.07);
    border: 1px solid #e7e7e7;
    object-fit: cover;
}

/* Подписи к изображениям */
.news-image-caption {
    color: #7a7a7a;
    font-size: 0.85rem;
    text-align: right;
    margin-top: -18px;
    margin-bottom: 24px;
    font-style: italic;
}

/* Текст новости */
.news-detail-text {
    font-size: 1.14rem;
    line-height: 1.65;
    margin-bottom: 24px;
    color: #232323;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Отступы для абзацев в тексте */
.news-detail-text p {
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ссылки в тексте */
.news-detail-text a {
    color: #1679fa;
    text-decoration: underline;
}

/* При наведении на ссылки */
.news-detail-text a:hover {
    text-decoration: none;
}

/* Блок подписки */
.subscribe-block {
    background: #1679fa;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 22px rgba(22, 121, 250, 0.12);
    flex-wrap: wrap;
    gap: 15px;
}

.subscribe-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.subscribe-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    color: white;
    font-size: 1.4rem;
    opacity: 0.9;
    transition: opacity 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
}

/* Блок "поделиться" */
.news-detail-share {
    margin: 30px 0;
}

/* Кнопка "Вернуться ко всем новостям" */
.news-detail-back-btn {
    padding: 13px 28px 13px 18px;
    background-color: #183e7a;
    color: #fff;
    font-size: 1.07rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(22,121,250,0.12);
    transition: background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
}

.news-detail-back-btn:hover,
.news-detail-back-btn:focus {
    background-color: #235bb3;
    box-shadow: 0 6px 28px rgba(22,121,250,0.15);
    color: #fff;
    text-decoration: none;
}

/* Сайдбар с рекламой */
.news-detail-sidebar {
    width: 350px;
    flex-shrink: 0;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Контейнер рекламы */
.ad-banner-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    min-height: 400px;
    position: relative;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ad-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Контейнер для видео с адаптивным соотношением сторон */
.video-embed-container {
    position: relative;
    width: 100%;
    max-width: 720px;               /* Максимальная ширина на десктопе */
    padding-bottom: 56.25%;        /* Отношение 16:9 (9 / 16 * 100%) */
    height: 0;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(24,62,122,0.1);
}

/* Адаптивное видео */
.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 12px;
}

/* --- Адаптивные стили --- */

/* Верстка под планшеты и экраны до 1024px */
@media screen and (max-width: 1024px) {
    .news-detail-container,
    .news-detail-article {
        grid-template-columns: 1fr !important; /* одна колонка */
        gap: 15px;
        padding: 15px 20px;
        margin: 15px auto;
        max-width: 720px;
        box-sizing: border-box;
    }

    .news-detail-sidebar {
        position: static !important; /* снимаем sticky */
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px;
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        order: 2; /* ставим сайдбар после основного контента */
    }

    .ad-banner-container {
        position: static !important;
        width: 100% !important;
        max-width: 350px;
        min-height: 250px;
        height: auto !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .ad-banner-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .news-detail-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .news-detail-text {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .news-detail-date {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .news-detail-content {
        padding: 20px 15px 25px 15px;
        box-shadow: 0 2px 15px rgba(24,62,122,0.04);
        border-radius: 7px;
    }

    /* Для видео задаём адаптива */
    .video-embed-container {
        max-width: 100%; /* растягиваем на всю ширину контейнера */
    }
    .video-embed-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 720px;
        border-radius: 12px;
    }
}

/* Более компактная версия для экранов до 768px */
@media screen and (max-width: 768px) {
    .news-detail-container,
    .news-detail-article {
        max-width: 100%;
        padding: 10px 15px;
        gap: 12px;
        margin: 0 auto;
    }

    .news-detail-sidebar {
        margin-top: 15px;
        padding: 0 10px;
        max-width: 100%;
    }

    .ad-banner-container {
        max-width: 100%;
        min-height: 200px;
        border-radius: 8px;
        box-shadow: none;
        height: auto !important;
    }

    .news-detail-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .news-detail-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .news-detail-date {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .news-detail-content {
        padding: 15px 12px 20px 12px;
        box-shadow: none;
        border-radius: 5px;
    }

    /* Видео адаптация */
    .video-embed-container iframe {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Финальная мобильная версия для экранов до 480px */
@media screen and (max-width: 480px) {
    /* Заголовок новости */
    .news-detail-title {
        font-size: 1.3rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 6px;
    }

    /* Текст новости */
    .news-detail-text {
        font-size: 0.9rem !important;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Дата */
    .news-detail-date {
        font-size: 0.75rem !important;
        margin-bottom: 10px;
    }

    /* Контейнер контента */
    .news-detail-content {
        padding: 12px 10px 15px 10px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Сайдбар с рекламой */
    .news-detail-sidebar {
        margin-top: 20px !important;
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Рекламный баннер */
    .ad-banner-container {
        max-width: 100% !important;
        min-height: 150px !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        height: auto !important;
    }

    /* Видео контейнер для адаптивности */
    .video-embed-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 0 !important;
        padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
        overflow: hidden !important;
        margin-bottom: 24px !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 15px rgba(24,62,122,0.1) !important;
    }

    .video-embed-container iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 0 !important;
        border-radius: 12px !important;
    }
}
/* End */
/* /bitrix/templates/empty/components/bitrix/news/main_news/bitrix/news.detail/.default/style.css?175766105013490 */
