/* ==================================================
   🔔 БЛОК ПОДПИСКИ НА УВЕДОМЛЕНИЯ
================================================== */

.subscribe-box{
  display:flex;
  align-items:center;
  background:var(--bg-subscribe);
  border:1px solid var(--border-subscribe);
  border-radius:16px;
  padding:16px 20px;
  gap:14px;
  flex-wrap:wrap;
}

.subscribe-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:12px;
  flex-wrap:wrap;
}

.subscribe-box-text{
  font-size:15px;
  font-weight:500;
  color:var(--text-primary);
  flex:1;
  min-width:160px;
}

/* Кнопка подписки */
.subscribe-box-button .elementor-button{
  display:inline-block;
  background:var(--main-color);
  color:#fff;
  border:none;
  border-radius:50px;
  padding:10px 22px;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.2s;
}

.subscribe-box-button .elementor-button:hover{
  background:var(--main-color-hover);
}

.subscribe-instruction{
  width:100%;
  font-size:14px;
  color:var(--text-secondary);
  line-height:1.6;
}

.subscribe-box .subscribe-instruction{
  display:none;
}

@media(max-width:768px){
  .subscribe-box{
    padding:14px 16px;
    border-radius:14px;
  }

  .subscribe-box-text{
    font-size:14px;
  }
}

/* ==================================================
   🎯 БАЗОВЫЕ ПЕРЕМЕННЫЕ
================================================== */
:root{
  --main-color:#0088CC;
  --main-color-hover:#006fa3;
  --bg-light:#F4FCFF;
  --bg-page:#ffffff;
  --bg-card:#ffffff;
  --bg-card-hover:#ffffff;
  --bg-secondary:#f1f3f5;
  --bg-header:#ffffff;
  --text-primary:#1a1a1a;
  --text-secondary:#444444;
  --text-muted:#6c757d;
  --border-color:#e0e0e0;
  --shadow-card:0 5px 15px rgba(0,0,0,0.05);
  --shadow-card-hover:0 10px 25px rgba(0,0,0,0.1);
  --gradient-fade:linear-gradient(180deg, rgba(245,245,245,0) 0%, rgba(245,245,245,0.82) 55%, #ffffff 100%);
  --bg-subscribe:linear-gradient(135deg,#e8f7ff 0%,#f0faff 100%);
  --border-subscribe:#c2e8ff;
  --bg-sidebar:#fff;
  --bg-tag:#ffffff;
  --border-tag:#d0d7de;
  --bg-tag-hover:#f8fbff;
  --bg-expand:rgba(255,255,255,0.94);
}

[data-theme="dark"]{
  --main-color:#3daadb;
  --main-color-hover:#5bc0eb;
  --bg-light:#1a1a2e;
  --bg-page:#121212;
  --bg-card:#1e1e2e;
  --bg-card-hover:#252538;
  --bg-secondary:#2a2a3c;
  --bg-header:#1a1a2e;
  --text-primary:#e0e0e0;
  --text-secondary:#b0b0b0;
  --text-muted:#888;
  --border-color:#333;
  --shadow-card:0 5px 15px rgba(0,0,0,0.3);
  --shadow-card-hover:0 10px 25px rgba(0,0,0,0.5);
  --gradient-fade:linear-gradient(180deg, rgba(30,30,46,0) 0%, rgba(30,30,46,0.82) 55%, #1e1e2e 100%);
  --bg-subscribe:linear-gradient(135deg,#1a2a3a 0%,#1e2e3e 100%);
  --border-subscribe:#2a4a5a;
  --bg-sidebar:#1e1e2e;
  --bg-tag:#1e1e2e;
  --border-tag:#444;
  --bg-tag-hover:#2a2a3c;
  --bg-expand:rgba(30,30,46,0.94);
}

/* ==================================================
   📰 ЛЕНТА ПОСТОВ
================================================== */
.posts-feed{
  display:flex;
  flex-direction:column;
  gap:40px;
  padding:0;
}

/* ==================================================
   🧱 КАРТОЧКА ПОСТА
================================================== */
.post-card{
  background:var(--bg-card);
  border-radius:25px;
  overflow:hidden;
  width:calc(100% - 32px);
  margin:0 auto;
  box-shadow:var(--shadow-card);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-card-hover);
}

.post-card-image{
  display:block;
  max-height:none;
}

.post-card-image img{
  width:100%;
  max-width:none;
  height:auto;
  max-height:none;
  display:block;
}

.post-card-body{
  padding:25px;
}

.post-card-title{
  font-size:22px;
  font-weight:700;
  margin-bottom:15px;
}
.post-card-title a{
  color:inherit;
  text-decoration:none;
}
.post-card-title a:hover{
  color:#0088cc;
}

.post-card-content{
  font-size:16px;
  line-height:1.6;
}

.post-card-content.is-collapsible{
  position:relative;
  overflow:hidden;
  transition:max-height 0.25s ease;
}

.post-card-content.is-collapsed{
  max-height:300px;
}

.post-card-expand-toggle{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  position:sticky;
  bottom:0;
  height:96px;
  width:100%;
  margin-top:-96px;
  padding:0 0 14px;
  border:none;
  background:var(--gradient-fade);
  cursor:pointer;
  z-index:2;
}

.post-card-expand-toggle-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--bg-expand);
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
  color:#7a7a7a;
  font-size:22px;
  line-height:1;
}

.post-card-extra-content{
  margin-top:28px;
}

.post-card-extra-content .post-footer-cta{
  margin-top:20px;
}

.post-card-extra-content .post-footer-cta-text{
  display:none;
}


.post-card-extra-content .single-related-block{
  margin-top:24px;
}

/* Скрываем пустой Elementor-контейнер (нужен для layout) */
.elementor-element-9598d04{
  display:none !important;
}

/* ==================================================
   🔘 ТАБЫ ФИЛЬТРОВ (единый стиль, PHP-рендер)
================================================== */
#filter-tabs-bar{
  display:flex;
  background:var(--bg-card);
  padding:0 10px;
}

.filter-tab{
  border-bottom:2px solid transparent;
  transition:border-color 0.3s;
}

.filter-tab-link{
  display:flex;
  align-items:center;
  gap:5px;
  padding:12px 15px;
  font-family:"Inter", sans-serif;
  font-size:16px;
  font-weight:400;
  color:#0088CC;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.filter-tab-link:hover{
  color:#006699;
}

.filter-tab-link svg{
  vertical-align:middle;
}

.filter-tab-active{
  border-bottom-color:#0088CC;
}

.posts-filter-active{
  border-bottom-color:#0088CC;
}

/* ==================================================
   📄 СТРАНИЦА ПОСТА
================================================== */
.single-post-container{
  max-width:900px;
  margin:auto;
  padding:40px 20px;
}

.single-post-image img{
  width:100%;
  border-radius:12px;
  margin-bottom:30px;
}

.single-post-title{
  font-size:34px;
  margin-bottom:20px;
}

.single-post-content{
  font-size:18px;
  line-height:1.7;
}

/* === Single post as feed card === */
.single-as-feed{
  max-width:700px;
  margin:0 auto;
  padding:24px 0 40px;
}

.single-as-feed .post-card{
  width:calc(100% - 32px);
  margin:0 auto;
}

.single-as-feed .post-card-title{
  font-size:22px;
}

.single-as-feed .expired-post-banner{
  margin:0;
  border-radius:0;
}

.expired-post-banner{
  margin:0 0 24px;
  padding:14px 18px;
  border-radius:12px;
  background:var(--bg-secondary);
  color:var(--text-muted);
  font-size:16px;
  font-weight:700;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.expired-post-banner-text{
  display:block;
}

.expired-post-banner-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:var(--bg-card)fff;
  border:1px solid var(--border-tag);
  color:#0088CC;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}

.expired-post-banner-link:hover{
  background:var(--bg-tag-hover);
  border-color:#0088CC;
}

.single-related-block{
  margin-top:36px;
}

.single-related-title{
  font-size:26px;
  line-height:1.3;
  margin:0 0 18px;
}

.single-related-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.single-related-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:var(--bg-card);
  box-shadow:0 4px 16px rgba(0,0,0,0.06);
  text-decoration:none;
  color:var(--text-primary);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.single-related-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(0,0,0,0.1);
}

.single-related-thumb img{
  display:block;
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:12px;
}

.single-related-content{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.single-related-card-title{
  margin:0;
  font-size:18px;
  line-height:1.4;
}

.single-related-expiry{
  font-size:13px;
  color:var(--text-muted);
  font-weight:600;
}

/* ==================================================
   🚫 УБИРАЕМ ФУТЕР
================================================== */
#site-footer{
  display:none;
}

/* ==================================================
   🧢 ХЭДЕР (контейнер cf05f94)
================================================== */
.elementor-element-cf05f94.e-con.e-flex{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  --flex-wrap:nowrap;
  --flex-wrap-mobile:nowrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background-color:var(--bg-light);
  padding:10px 15px;
}

/* Логотип */
.elementor-element-9dd8aab{
  flex-shrink:0;
}

.elementor-element-9dd8aab img{
  width:50px;
  height:50px;
  border-radius:50%;
  display:block;
  background:transparent;
}

/* Название + подзаголовок */
.elementor-element-3682cd9{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}

.elementor-element-dae253b{
  text-align:left;
}

.elementor-element-dae253b .elementor-heading-title{
  font-family:"Roboto Mono", Sans-serif;
  font-size:40px;
  font-weight:400;
  color:#0088CC;
}

.elementor-element-dae253b .elementor-heading-title a{
  color:#0088CC;
  text-decoration:none;
}

/* Подзаголовок мобайл (под названием) — скрыт на десктопе */
.elementor-element-9046708{
  display:none;
}

.elementor-element-9046708 .elementor-heading-title{
  font-family:"Inter", Sans-serif;
  font-size:10px;
  font-weight:400;
  color:#000;
}

/* Описание (только десктоп) */
.elementor-element-85b95ad{
  display:flex;
  flex-direction:column;
}

.elementor-element-35aad81{
  text-align:center;
  font-family:"Inter", Sans-serif;
  font-size:21px;
  font-weight:600;
  text-transform:uppercase;
  color:var(--main-color);
}

.elementor-element-3e7a090{
  text-align:center;
}

.elementor-element-3e7a090 .elementor-heading-title{
  font-family:"Inter", Sans-serif;
  font-size:20px;
  font-weight:400;
  color:#000;
}

/* Кнопка поиска — скрыта на десктопе */
.elementor-element-8027757{
  display:none;
}

.elementor-element-8027757 .elementor-button{
  background-color:transparent !important;
  fill:#2c3e50 !important;
  color:#2c3e50 !important;
  border:1.5px solid #2c3e50 !important;
  border-radius:8px !important;
  padding:6px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  flex-shrink:0;
}

.elementor-element-8027757 .e-font-icon-svg{
  width:20px !important;
  height:20px !important;
  fill:#2c3e50 !important;
}

/* Десктоп */
@media (min-width:768px){
  .elementor-element-cf05f94.e-con.e-flex{
    padding:15px 20px;
    position:relative;
  }

  .elementor-element-9dd8aab img{
    width:70px;
    height:70px;
  }

  .elementor-element-3682cd9{
    flex:0 0 auto;
  }

  /* Центрируем текст хедера по всей ширине */
  .elementor-element-85b95ad{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    max-width:55%;
    text-align:center;
    gap:2px;
  }

  .elementor-element-9046708{
    display:none;
  }
}

/* Мобайл */
@media (max-width:767px){
  .elementor-element-cf05f94.e-con.e-flex{
    padding:10px 10px;
    gap:10px;
    position:sticky;
    top:0;
    z-index:9999;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
  }

  .elementor-element-9dd8aab img{
    width:40px;
    height:40px;
  }

  .elementor-element-dae253b .elementor-heading-title{
    font-size:18px;
  }

  /* Показать подзаголовок на мобиле */
  .elementor-element-9046708{
    display:block;
  }

  /* Скрыть десктопное описание на мобиле */
  .elementor-element-85b95ad{
    display:none !important;
  }

  /* Показать кнопку поиска на мобиле */
  .elementor-element-8027757{
    display:block;
    flex-shrink:0;
  }
}

/* Модалка поиска */
.search-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:10001;
}

.search-modal-overlay.open{
  display:block;
}

.search-modal{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:10002;
  background:var(--bg-card);
  border-radius:20px 20px 0 0;
  padding:20px 20px 36px;
  transform:translateY(100%);
  transition:transform 0.3s ease;
  box-sizing:border-box;
}

.search-modal.open{
  transform:translateY(0);
}

.search-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.search-modal-title{
  font-size:18px;
  font-weight:700;
}

.search-modal-close{
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:#888;
  line-height:1;
  padding:0;
}

.search-modal form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.search-modal .search-modal-input{
  width:100%;
  box-sizing:border-box;
  padding:14px 16px;
  border:1px solid var(--main-color);
  border-radius:10px;
  font-size:16px;
  outline:none;
}

.search-modal .search-modal-submit{
  width:100%;
  background:var(--main-color);
  color:#fff;
  border:none;
  padding:14px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:background 0.2s;
}

.search-modal .search-modal-submit:hover{
  background:var(--main-color-hover);
}

/* ==================================================
   🎟 ПРОМОКОДЫ
================================================== */
.promo-box{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:#f5f7fb;
  padding:10px 16px;
  border-radius:8px;
  border:1px dashed #2b7cff;
}

.promo-code{
  font-weight:bold;
  font-size:14px;
  letter-spacing:1px;
}

.promo-copy-btn{
  background:var(--main-color);
  color:#fff;
  border:none;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
  transition:0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.promo-copy-btn:hover{
  background:var(--main-color-hover);
}

.promo-copy-btn svg{
  display:block;
}


/* ==================================================
   🔍 ФОРМА ФИЛЬТРОВ (DESKTOP)
================================================== */

.elementor-element-dca5ca8{
  position: sticky;
  top: auto;
  bottom: 20px;
  align-self: flex-start;
}

#custom-filter-form{
  display:flex;
  flex-direction:column;
  gap:20px;
  font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;
  background:#F4FCFF;
  padding:20px;
  border-radius:15px;
}

/* строка поиска */
.filter-row{
  display:flex;
  gap:20px;
  align-items:center;
}

/* поле поиска */
#custom-filter-form .filter-search{
  flex:1;
  padding:12px 16px;
  border:1px solid #0088CC;
  border-radius:10px;
  font-size:16px;
  outline:none;
}

/* кнопка */
.filter-submit{
  background:#0088CC;
  color:#fff;
  border:none;
  padding:12px 20px;
  border-radius:10px;
  font-size:16px;
  cursor:pointer;
  transition:0.2s;
}

.filter-submit:hover{
  background:#006fa3;
}

/* строка с фильтрами */
.filter-row:nth-of-type(2){
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

#custom-filter-form .filter-select{
  padding:12px 16px;
  border:1px solid #0088CC;
  border-radius:10px;
  font-size:15px;
  background:var(--bg-card);
  cursor:pointer;
  outline:none;
}

/* при клике (focus) */
#custom-filter-form .filter-select:focus{
  border:1px solid #0088CC;
  box-shadow:0 0 0 2px rgba(0,136,204,0.15);
}





/* ==================================================
   🔎 SEARCHABLE SELECT (Бренды / Банки)
================================================== */

.searchable-select{
  position:relative;
  width:100%;
  box-sizing:border-box;
  max-width:100%;
}

.searchable-select-display{
  padding:12px 16px;
  border:1px solid #0088CC;
  border-radius:10px;
  font-size:16px;
  background:var(--bg-card);
  cursor:pointer;
  color:#757575;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.searchable-select-display::after{
  content:"";
  border:5px solid transparent;
  border-top-color:#0088CC;
  margin-left:8px;
  flex-shrink:0;
}

.searchable-select-display.has-value{
  color:var(--text-primary);
}

.searchable-select-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  background:var(--bg-card);
  border:1px solid #0088CC;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  z-index:100;
  overflow:hidden;
  box-sizing:border-box;
  max-width:100%;
}

.searchable-select-dropdown.open{
  display:block;
}

.searchable-select-search{
  width:100%;
  box-sizing:border-box;
  padding:10px 14px;
  border:none;
  border-bottom:1px solid #e0e0e0;
  font-size:16px;
  outline:none;
}

.searchable-select-list{
  max-height:200px;
  overflow-y:auto;
}

.searchable-select-item{
  padding:10px 14px;
  font-size:16px;
  cursor:pointer;
  transition:background 0.15s;
}

.searchable-select-item:hover{
  background:#e8f7ff;
}

.searchable-select-item.selected{
  background:#d0efff;
  font-weight:600;
}

/* ==================================================
   📌 STICKY CATEGORY PANEL
================================================== */

.sticky-category-panel{
  position:fixed;
  top:16px;
  left:50%;
  transform:translate(-50%, calc(-100% - 24px));
  width:min(1120px, calc(100vw - 24px));
  padding:10px 12px;
  border-radius:18px;
  background:var(--bg-expand);
  border:1px solid rgba(0,136,204,0.12);
  box-shadow:0 18px 40px rgba(22,67,89,0.14);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  z-index:999;
  opacity:0;
  pointer-events:none;
  transition:transform 0.22s ease, opacity 0.22s ease;
}

.sticky-category-panel.is-visible{
  transform:translate(-50%, 0);
  opacity:1;
  pointer-events:auto;
}

.sticky-category-panel-main{
  display:flex;
  align-items:center;
  gap:12px;
}

.sticky-category-panel-scroll{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  }

.sticky-category-panel-scroll::-webkit-scrollbar{
  display:none;
}

.sticky-category-chip{
  flex:0 0 auto;
  border:none;
  border-radius:999px;
  background:#eef8fc;
  color:#24526b;
  padding:10px 16px;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  transition:background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sticky-category-chip:hover{
  background:#dff2fb;
  transform:translateY(-1px);
}

.sticky-category-chip.is-active{
  background:#0088CC;
  color:#fff;
}

.sticky-category-more{
  position:relative;
  flex:0 0 auto;
}

.sticky-category-chip-more::after{
  content:"";
}

.sticky-category-more-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:320px;
  max-height:420px;
  overflow:auto;
  display:none;
  flex-wrap:wrap;
  gap:10px;
  padding:14px;
  border-radius:18px;
  background:var(--bg-card);
  border:1px solid rgba(0,136,204,0.12);
  box-shadow:0 20px 40px rgba(22,67,89,0.16);
}

.sticky-category-more.is-open .sticky-category-more-dropdown{
  display:flex;
}

/* ==================================================
   📱 МОБИЛЬНАЯ АДАПТАЦИЯ
================================================== */
@media (max-width:768px){

  .sticky-category-panel{
    top:calc(var(--header-height, 0px) + 8px);
    width:calc(100vw - 12px);
    padding:8px 8px;
    border-radius:16px;
  }

  .sticky-category-panel-main{
    gap:8px;
  }

  .sticky-category-panel-scroll{
    gap:8px;
    overflow-x:auto;
    flex:1 1 auto;
    scrollbar-width:none;
  }

  .sticky-category-panel-scroll::-webkit-scrollbar{
    display:none;
  }

  .sticky-category-chip{
    padding:9px 14px;
    font-size:13px;
  }

  .sticky-category-more-dropdown{
    right:0;
    left:auto;
    width:min(320px, calc(100vw - 24px));
    max-height:55vh;
  }

  .posts-feed{
    gap:25px;
    padding:0 16px;
  }

  .post-card{
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    border-radius:18px;
    margin:0;
  }

  .post-card-body{
    padding:18px;
  }

  .post-card-image{
    display:block;
    max-height:none;
  }

  .post-card-image img{
    display:block;
    width:100%;
    max-width:none;
    max-height:none;
    height:auto;
  }

  .post-card-title{
    font-size:18px;
    margin-bottom:10px;
    line-height:1.3;
  }

  .post-card-content{
    font-size:15px;
    line-height:1.6;
  }

  .post-card-extra-content{
    margin-top:16px;
  }

  .post-card-extra-content .post-footer-cta{
    margin:0;
    padding:0;
    background:none;
    border:none;
    border-radius:0;
  }

  .post-card-extra-content .post-footer-cta-buttons{
    display:flex;
    gap:8px;
    align-items:stretch;
  }

  .post-card-extra-content .post-footer-btn{
    flex:1;
    justify-content:center;
    padding:10px 8px;
    border-radius:12px;
    font-size:13px;
    font-weight:600;
    border:none;
    box-shadow:none;
  }
  .post-card-extra-content .post-footer-btn:hover{
    transform:none;
    box-shadow:none;
    opacity:0.85;
  }
  .post-card-extra-content .post-footer-btn svg{
    width:14px;
    height:14px;
  }

  .post-card-extra-content .post-footer-btn-tg{
    background:#e8f4fd;
    color:#229ED9 !important;
  }
  .post-card-extra-content .post-footer-btn-max{
    background:#f0ecfd;
    color:#7B68EE !important;
  }
  .post-card-extra-content .post-footer-btn-home{
    background:#0088CC;
    color:#fff !important;
  }

  .post-card-extra-content .single-related-block{
    margin-top:18px;
  }

  .post-card-extra-content .single-related-title{
    margin:0 0 10px;
    font-size:16px;
    line-height:1.35;
  }

  .post-card-extra-content .single-related-list{
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .post-card-extra-content .single-related-card{
    flex-direction:row;
    align-items:flex-start;
    gap:10px;
    padding:8px 0;
    border-radius:0;
    background:none;
    box-shadow:none;
    border-bottom:1px solid #edf1f5;
  }

  .post-card-extra-content .single-related-card:last-child{
    border-bottom:none;
  }

  .post-card-extra-content .single-related-card:hover{
    transform:none;
    box-shadow:none;
  }

  .post-card-extra-content .single-related-thumb{
    width:56px;
    flex-shrink:0;
  }

  .post-card-extra-content .single-related-thumb img{
    width:56px;
    height:56px;
    border-radius:10px;
    object-fit:cover;
  }

  .post-card-extra-content .single-related-content{
    gap:4px;
    min-width:0;
  }

  .post-card-extra-content .single-related-card-title{
    font-size:14px;
    line-height:1.35;
    margin:0;
  }

  .post-card-extra-content .single-related-expiry{
    font-size:12px;
    line-height:1.3;
  }

  /* Страница поста */
  .single-post-container{
    padding:25px 15px;
  }

  .single-post-title{
    font-size:26px;
    line-height:1.3;
    margin-bottom:15px;
  }

  .single-as-feed{
    padding:16px 0 30px;
  }

  .single-post-content{
    font-size:16px;
    line-height:1.7;
  }

  .single-post-image img{
    border-radius:10px;
    margin-bottom:20px;
  }

  /* Липкий верх — subscribe под хедером */
  .elementor-element-575d04e.site-top{
    position:sticky;
    top:var(--header-height, 56px);
    z-index:9998;
    background:var(--bg-card)fff;
    width:100%;
  }

  body{
    overflow-x:hidden;
  }

}

/* ==================================================
   📱 МОБИЛЬНЫЕ ФИЛЬТРЫ
================================================== */

/* Кнопка-триггер */
.mobile-filter-btn{
  display:none;
}

@media (max-width:768px){

  .mobile-filter-btn{
    display:flex;
    align-items:center;
    gap:8px;
    position:fixed;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:10000;
    background:var(--main-color);
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:50px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 20px rgba(0,136,204,0.45);
    white-space:nowrap;
    transition:background 0.2s, box-shadow 0.2s;
  }

  .mobile-filter-btn:hover{
    background:var(--main-color-hover);
  }

  /* Затемнение */
  .mobile-filter-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    z-index:10001;
  }

  .mobile-filter-overlay.open{
    display:block;
  }

  /* Панель */
  .mobile-filter-panel{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:10002;
    background:var(--bg-card);
    border-radius:20px 20px 0 0;
    padding:20px 20px 36px;
    transform:translateY(100%);
    transition:transform 0.3s ease;
    max-height:85vh;
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
  }

  .mobile-filter-panel *{
    max-width:100%;
    box-sizing:border-box;
  }

  .mobile-filter-panel.open{
    transform:translateY(0);
  }

  /* Шапка панели */
  .mobile-filter-panel-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
  }

  .mobile-filter-panel-title{
    font-size:18px;
    font-weight:700;
  }

  .mobile-filter-close{
    background:none;
    border:none;
    font-size:24px;
    cursor:pointer;
    color:#888;
    line-height:1;
    padding:0;
  }

  /* Форма внутри панели */
  .mobile-filter-panel #mobile-filter-form{
    display:flex;
    flex-direction:column;
    gap:14px;
    width:100%;
    max-width:calc(100vw - 40px);
    overflow:hidden;
    box-sizing:border-box;
  }

  .mobile-filter-panel .searchable-select{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .mobile-filter-panel .searchable-select-display{
    width:100%;
    box-sizing:border-box;
  }

  .mobile-filter-panel .searchable-select-dropdown{
    position:relative;
    top:0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .mobile-filter-panel .filter-search,
  .mobile-filter-panel .filter-select{
    width:100%;
    box-sizing:border-box;
    padding:12px 16px;
    border:1px solid var(--main-color);
    border-radius:10px;
    font-size:15px;
    background:var(--bg-card);
    outline:none;
  }

  .mobile-filter-panel .filter-submit{
    width:100%;
    background:var(--main-color);
    color:#fff;
    border:none;
    padding:14px;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    margin-top:4px;
    transition:background 0.2s;
  }

  .mobile-filter-panel .filter-submit:hover{
    background:var(--main-color-hover);
  }

}

/* ==================================================
   📅 ДАТА ИСТЕЧЕНИЯ В КАРТОЧКЕ
================================================== */
.post-card-expiry{
  display:inline-block;
  font-size:13px;
  color:#e67e22;
  font-weight:600;
  margin-bottom:10px;
}

/* ==================================================
   📊 ВИДЖЕТЫ САЙДБАРА
================================================== */
.sidebar-widget{
  background:var(--bg-card);
  border-radius:15px;
  padding:20px;
  margin-top:20px;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-widget-title{
  font-size:16px;
  font-weight:700;
  margin:0 0 14px;
  color:var(--text-primary);
}

.sidebar-widget-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.sidebar-widget-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text-primary);
  transition:background 0.15s;
}

.sidebar-widget-item:hover{
  background:#f0f8ff;
}

.sidebar-widget-thumb{
  width:44px;
  height:44px;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
}

.sidebar-widget-text{
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.sidebar-widget-item-content{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.sidebar-widget-expiry{
  font-size:12px;
  color:#e67e22;
  font-weight:600;
}

.sidebar-widget-empty{
  font-size:13px;
  color:#999;
  text-align:center;
  padding:10px 0;
  margin:0;
}

/* ==================================================
   🏷 ТАБЫ ФИЛЬТРОВ — МОБИЛЕ
================================================== */
@media (max-width:767px){
  #filter-tabs-bar{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    flex-wrap:nowrap;
    padding:0 5px;
  }

  #filter-tabs-bar::-webkit-scrollbar{
    display:none;
  }

  .filter-tab{
    flex-shrink:0;
  }

  .filter-tab-link{
    padding:8px 10px;
    font-size:13px;
  }
}

/* Кликабельные заголовки виджетов */
.sidebar-filter-trigger {
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.sidebar-filter-trigger:hover {
    color: #0088CC !important;
}
.sidebar-widget-title-all {
    font-size: 13px;
    font-weight: 400;
    color: #0088CC;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.sidebar-filter-trigger:hover .sidebar-widget-title-all {
    opacity: 1;
}

/* ===== CTA-блок внизу страницы поста ===== */
.post-footer-cta {
    margin-top: 30px;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    text-align: center;
}
.post-footer-cta-text {
    display: none;
}
.post-footer-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.post-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}
.post-footer-btn svg {
    flex-shrink: 0;
}
.post-footer-btn-home {
    background: #0088CC;
    color: #fff !important;
}
.post-footer-btn-home:hover {
    background: #006da3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}
.post-footer-btn-tg {
    background: #0088cc;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff !important;
}
.post-footer-btn-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4);
}
.post-footer-btn-max {
    background: #7B68EE;
    background: linear-gradient(135deg, #9B59B6, #7B68EE);
    color: #fff !important;
}
.post-footer-btn-max:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.4);
}

/* ==================================================
   🌙 ТЁМНАЯ / СВЕТЛАЯ ТЕМА
================================================== */
body{
  background:var(--bg-page) !important;
  color:var(--text-primary);
  transition:background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .elementor-section,
[data-theme="dark"] .elementor-element,
[data-theme="dark"] .e-con{
  --e-global-color-primary:var(--text-primary);
  --e-global-color-text:var(--text-primary);
}

[data-theme="dark"] .elementor-widget-text-editor,
[data-theme="dark"] .elementor-heading-title,
[data-theme="dark"] .elementor-heading-title a,
[data-theme="dark"] .elementor-widget-heading .elementor-heading-title{
  color:var(--text-primary) !important;
}

[data-theme="dark"] .e-con,
[data-theme="dark"] .elementor-section{
  background-color:transparent !important;
}

[data-theme="dark"] .elementor-element-cf05f94{
  background:var(--bg-header) !important;
}

/* Кнопка переключения темы */
.theme-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:var(--bg-secondary);
  cursor:pointer;
  transition:background 0.3s, transform 0.2s;
  padding:0;
  margin-left:8px;
  flex-shrink:0;
}

.theme-toggle:hover{
  transform:scale(1.1);
}

.theme-toggle svg{
  width:20px;
  height:20px;
  fill:var(--text-primary);
  transition:fill 0.3s;
}

.theme-toggle .icon-moon{ display:block; }
.theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }

/* Скрыть Elementor bg в тёмной теме */
[data-theme="dark"] .elementor-background-overlay{
  opacity:0.1 !important;
}

/* Табы фильтров */
[data-theme="dark"] #filter-tabs-bar{
  background:var(--bg-header) !important;
}

/* Сайдбар */
[data-theme="dark"] .sidebar-widget{
  background:var(--bg-sidebar) !important;
}

/* Поиск */
[data-theme="dark"] #mobile-search-box input,
[data-theme="dark"] .search-form input{
  background:var(--bg-secondary);
  color:var(--text-primary);
  border-color:var(--border-color);
}

/* Ссылки */
[data-theme="dark"] a{
  color:var(--main-color);
}

[data-theme="dark"] .post-card-title a{
  color:var(--main-color);
}

