/* ============================================
   CSS СТИЛИ ДЛЯ ФОНОВЫХ ИЗОБРАЖЕНИЙ МЕНЮ
   Сайт: www.woodroll.ru
   Версия: 5.0 АБСОЛЮТНО ОКОНЧАТЕЛЬНАЯ
   Дата: 28 января 2026
   ============================================ */

/* ===== ВЕРХНЕЕ МЕНЮ - DESKTOP ВЕРСИЯ ===== */
.uc-top-menu-desktop,
.uc-top-menu-desktop .t280,
.uc-top-menu-desktop .t280__container,
.uc-top-menu-desktop .t280__positionfixed,
.uc-top-menu-desktop .t280__container__bg,
.uc-top-menu-desktop .t280__menu__content {
    background-image: url('https://static.tildacdn.com/tild6432-6637-4332-b934-636463366464/woodroll-bg-topmenu-.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.uc-top-menu-desktop .t280__container__bg,
.uc-top-menu-desktop .t280__menu__content {
    background-color: transparent !important;
    opacity: 1 !important;
}

/* ===== ВЕРХНЕЕ МЕНЮ - MOBILE ВЕРСИЯ ===== */
.uc-top-menu-mobile,
.uc-top-menu-mobile .t280,
.uc-top-menu-mobile .t280__container,
.uc-top-menu-mobile .t280__positionfixed,
.uc-top-menu-mobile .t280__container__bg,
.uc-top-menu-mobile .t280__menu__content {
    background-image: url('https://static.tildacdn.com/tild6432-6637-4332-b934-636463366464/woodroll-bg-topmenu-.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* КРИТИЧЕСКИ ВАЖНО: opacity и background-color */
.uc-top-menu-mobile .t280__container__bg,
.uc-top-menu-mobile .t280__menu__content {
    background-color: transparent !important;
    opacity: 1 !important;
}

/* ===== OVERLAY МЕНЮ (ГАМБУРГЕР) ===== */
.t280__menu__container {
    background-image: url('https://static.tildacdn.com/tild3137-6462-4231-a233-323732373638/woodroll-background.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Desktop версия overlay меню (≥980px) */
@media (min-width: 980px) {
    .t280__menu__container {
        background-position: center center !important;
    }
}

/* Mobile версия overlay меню (<980px) */
@media (max-width: 979px) {
    .t280__menu__container {
        background-position: center 30% !important;
    }
}

/* Убираем подчёркивание у ссылок в блоке со списком статей (FD201) */
.uc-blog-list a,
.uc-blog-list .t-feed__link {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Убираем подчёркивание при наведении */
.uc-blog-list a:hover,
.uc-blog-list .t-feed__link:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Фоновое изображение для модального окна статьи */
.t-feed__post-popup {
  background-image: url('https://static.tildacdn.com/tild3137-6462-4231-a233-323732373638/woodroll-background.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Фоновое изображение для верхнего фиксированного блока с "Статьи о самомассаже" */
.t-feed__post-popup__close-wrapper {
  background-image: url('https://static.tildacdn.com/tild3137-6462-4231-a233-323732373638/woodroll-background.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

/* Убираем белый фон с контейнера статьи */
.t-feed__post-popup__container {
  background: transparent !important;
}

/*
 * Tilda Blog - Custom CSS для вставленного HTML
 * Применяет стили нативных элементов Tilda к HTML-контенту, вставленному в статьи блога
 * 
 * Использование: Добавьте этот файл в настройки сайта Tilda (Настройки сайта > Дополнительно > Вставить код > HEAD)
 */

/* ============================================
   ОГРАНИЧЕНИЕ ОБЛАСТИ ПРИМЕНЕНИЯ
   Стили применяются ТОЛЬКО к статьям блога
   ============================================ */

/* Селектор для вставленного HTML внутри статей блога */
.t-feed__post-popup .t-redactor__embedcode > * {
  /* Базовые стили унаследованы от родителя */
}

/* ============================================
   ПАРАГРАФЫ (P)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode > p {
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 20px;
  line-height: 31px;
}

/* Первый параграф без верхнего отступа */
.t-feed__post-popup .t-redactor__embedcode > p:first-child {
  margin-top: 0;
}

/* Последний параграф без нижнего отступа */
.t-feed__post-popup .t-redactor__embedcode > p:last-child {
  margin-bottom: 0;
}

/* ============================================
   ЗАГОЛОВКИ
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode > h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 30px;
  line-height: 39px;
  font-weight: 700;
  font-family: Ubuntu, Arial, sans-serif;
}

.t-feed__post-popup .t-redactor__embedcode > h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 24px;
  line-height: 33px;
  font-weight: 700;
  font-family: Ubuntu, Arial, sans-serif;
}

.t-feed__post-popup .t-redactor__embedcode > h4 {
  margin-top: 20px;
  margin-bottom: 12px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  font-family: Ubuntu, Arial, sans-serif;
}

/* Первый заголовок без верхнего отступа */
.t-feed__post-popup .t-redactor__embedcode > h2:first-child,
.t-feed__post-popup .t-redactor__embedcode > h3:first-child,
.t-feed__post-popup .t-redactor__embedcode > h4:first-child {
  margin-top: 0;
}

/* ============================================
   СПИСКИ (UL, OL)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode > ul,
.t-feed__post-popup .t-redactor__embedcode > ol {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 20px;
}

.t-feed__post-popup .t-redactor__embedcode > ul > li,
.t-feed__post-popup .t-redactor__embedcode > ol > li {
  margin-bottom: 8px;
  padding-left: 5px;
  line-height: 31px;
}

/* Последний элемент списка без нижнего отступа */
.t-feed__post-popup .t-redactor__embedcode > ul > li:last-child,
.t-feed__post-popup .t-redactor__embedcode > ol > li:last-child {
  margin-bottom: 0;
}

/* Первый список без верхнего отступа */
.t-feed__post-popup .t-redactor__embedcode > ul:first-child,
.t-feed__post-popup .t-redactor__embedcode > ol:first-child {
  margin-top: 0;
}

/* Последний список без нижнего отступа */
.t-feed__post-popup .t-redactor__embedcode > ul:last-child,
.t-feed__post-popup .t-redactor__embedcode > ol:last-child {
  margin-bottom: 0;
}

/* ============================================
   ВЛОЖЕННЫЕ СПИСКИ
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode ul ul,
.t-feed__post-popup .t-redactor__embedcode ul ol,
.t-feed__post-popup .t-redactor__embedcode ol ul,
.t-feed__post-popup .t-redactor__embedcode ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ============================================
   ЖИРНЫЙ ТЕКСТ (STRONG, B)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode strong,
.t-feed__post-popup .t-redactor__embedcode b {
  font-weight: 700;
}

/* ============================================
   КУРСИВ (EM, I)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode em,
.t-feed__post-popup .t-redactor__embedcode i {
  font-style: italic;
}

/* ============================================
   BLOCKQUOTE (Цитаты)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode > blockquote {
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid #ccc;
  font-style: italic;
}

.t-feed__post-popup .t-redactor__embedcode > blockquote p {
  margin-bottom: 10px;
}

.t-feed__post-popup .t-redactor__embedcode > blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   КОД (CODE, PRE)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.t-feed__post-popup .t-redactor__embedcode pre {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 5px;
  overflow-x: auto;
}

.t-feed__post-popup .t-redactor__embedcode pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* ============================================
   ССЫЛКИ (A)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode a {
  color: inherit;
  text-decoration: underline;
}

.t-feed__post-popup .t-redactor__embedcode a:hover {
  opacity: 0.8;
}

/* ============================================
   ГОРИЗОНТАЛЬНАЯ ЛИНИЯ (HR)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode > hr {
  margin-top: 30px;
  margin-bottom: 30px;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* ============================================
   ТАБЛИЦЫ (TABLE)
   ============================================ */

.t-feed__post-popup .t-redactor__embedcode table {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  border-collapse: collapse;
}

.t-feed__post-popup .t-redactor__embedcode table th,
.t-feed__post-popup .t-redactor__embedcode table td {
  padding: 10px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.t-feed__post-popup .t-redactor__embedcode table th {
  background-color: #f5f5f5;
  font-weight: 700;
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ============================================ */

/* Изображения */
.t-feed__post-popup .t-redactor__embedcode img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

/* Видео и iframe */
.t-feed__post-popup .t-redactor__embedcode iframe,
.t-feed__post-popup .t-redactor__embedcode video {
  max-width: 100%;
  margin: 20px 0;
}

/* ============================================
   АДАПТИВНОСТЬ (мобильные устройства)
   ============================================ */

@media screen and (max-width: 768px) {
  .t-feed__post-popup .t-redactor__embedcode > p {
    font-size: 18px;
    line-height: 28px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h2 {
    font-size: 26px;
    line-height: 34px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h3 {
    font-size: 22px;
    line-height: 30px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h4 {
    font-size: 18px;
    line-height: 26px;
  }
}

@media screen and (max-width: 480px) {
  .t-feed__post-popup .t-redactor__embedcode > p {
    font-size: 16px;
    line-height: 26px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h2 {
    font-size: 22px;
    line-height: 30px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h3 {
    font-size: 20px;
    line-height: 28px;
  }
  
  .t-feed__post-popup .t-redactor__embedcode > h4 {
    font-size: 18px;
    line-height: 26px;
  }
}