/* #557750 */

a.link.js-modal-toggler {
  color: #f7f9fa;
  position: relative;
  min-width: 300px;
}

a.link.js-modal-toggler:before {
  content: "Уже есть учетная запись? Войдите на сайт";
  color: black;
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
}
/* #557750 */

/* Стили для заголовка */
.pub-accordion-container h2 {
  font-size: 18px;
  color: #222;
  margin-bottom: 16px;
}

/* Контейнер для вопросов */
.pub-accordion-container {
  width: 100%;
  max-width: 800px;
  padding: 0;
}

/* Стили для каждого вопроса */
.pub-accordion-container details {
  border-bottom: 1px solid #ddd;
  margin-bottom: 12px;
}

.pub-accordion-container summary {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  cursor: pointer;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  outline: none;
  /* Убираем обводку при клике */
}

.pub-accordion-container summary:hover {
  color: #007acc;
  /* Современный акцентный цвет */
  border-bottom-color: #007acc;
}

/* Стили для значка раскрытия */
.pub-accordion-container summary i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Стили для изменяющегося значка (вращение вниз при открытии) */
.pub-accordion-container details[open] summary i {
  transform: rotate(180deg);
}

/* Скрытые ответы, которые появляются при открытии */
.pub-accordion-container details div[itemprop="text"] {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 0;
  color: #444;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  margin-left: 1rem;
}

/* Видимые ответы при открытом блоке */
.pub-accordion-container details[open] div[itemprop="text"] {
  max-height: 500px;
  /* Ограничиваем высоту для плавного раскрытия */
  opacity: 1;
}

/* Адаптивные стили для небольших экранов */
@media (max-width: 600px) {
  .pub-accordion-container summary {
    font-size: 16px;
  }

  .pub-accordion-container details div[itemprop="text"] {
    font-size: 14px;
  }
}

.product__area-reviews {
  display: grid;
  grid-template-areas: 
    "reviews"
    "faq";
}

.pub-accordion-container.product__area-faq {
  grid-area: faq;
  margin-top: 30px; /* Для небольшого отступа между отзывами и FAQ */
}
.widget-type_system_widget_v4_article_products_2 .special-products__title {
  font-size: 1.5rem;
    font-weight: bold;
}
.layout.widget-type_system_widget_v4_article_previews_2 .article-list__title.heading {
  font-size: 1.5rem;
    font-weight: bold;
}
.special-article__slider-arrow.special-article__slider-arrow-prev {
    background-color: #B9D4EB;
    color: #333;
    border-radius: 30px;
        font-size: 1rem;
    padding: 0 30px;
    height: 35px;
}
.special-article__slider-arrow.special-article__slider-arrow-next {
    background-color: #B9D4EB;
    color: #333;
    border-radius: 30px;
        font-size: 1rem;
    padding: 0 30px;
    height: 35px;
}


/* Базовые стили для десктопа для облака тегов в blog */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Расстояние между кнопками */
}

.tagcloud a.button {
  border: 1px solid #b9d4eb!important;
  border-radius: 20px!important;
  transition: all 0.3s ease!important;
}

.tags-block a.list-item {
  border: 1px solid #b9d4eb!important;
  border-radius: 20px!important;
  transition: all 0.3s ease!important;
}

/* Мобильная версия для облака тегов в blog */
@media screen and (max-width: 767px) {
  .tagcloud-block {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
  }

  .tagcloud {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    // scrollbar-width: none;
    padding-bottom: 15px;
  }

  // .tagcloud::-webkit-scrollbar {
  //   display: none; /* Скрываем скроллбар для WebKit */
  // }

  .tagcloud a.button {
    flex: 0 0 auto; /* Запрещаем сжатие элементов */
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #b9d4eb;
    border-radius: 20px;
  }
}



/* --- Раскладка блока directions --- */
.directions{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  align-items:stretch;
}

.directions__video{
  flex:0 0 360px;
  display:flex; 
}

.directions__video iframe{
  width:100%;
  height:100%;
  object-fit:cover;
}

.directions__picture{
  flex:1 1 0;
  margin:0;
}

.directions__img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* Мобильный брейк-пойнт */
@media (max-width:767px){
  .directions{ flex-direction:column; }
  .directions__video,
  .directions__picture{ flex:1 1 100%; }
  .directions__video iframe{
    width:100%;
    height: 646px;
  }
}

.attention{
  /* Базовые переменные можно переопределять в модификаторах */
  --accent:#3b82f6;           /* основной цвет */
  --bg: rgba(59,130,246,.08); /* фон (осветлённый accent) */
  --icon:"💡";                /* иконка по умолчанию */

  position: relative;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1px solid var(--accent);
  border-left: .45rem solid var(--accent);
  background: var(--bg);
  border-radius: .6rem;
  font-size: .95rem;
  line-height: 1.5;
  color: #111;
}

.attention::before{
  content: var(--icon);
  position: absolute;
  left: .9rem;
  top: 1rem;
  font-size: 1.25rem;
  line-height: 1;
}

.attention__label{
  display: inline-block;
  margin: 0 0 .4rem 0;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: .3rem;
}

/* ============================
   ВАРИАНТЫ
   ============================ */

/* Совет */
.attention--tip{
  --accent:#3b82f6;
  --bg:rgba(59,130,246,.08);
  --icon:"💡";
}

/* Лайфхак */
.attention--hack{
  --accent:#16a34a;
  --bg:rgba(22,163,74,.08);
  --icon:"⚡";
}

/* Предупреждение / Осторожно */
.attention--warn{
  --accent:#f97316;
  --bg:rgba(249,115,22,.1);
  --icon:"⚠️";
}

/* Важно */
.attention--important{
  --accent:#ef4444;
  --bg:rgba(239,68,68,.1);
  --icon:"❗";
}

/* Информация */
.attention--info{
  --accent:#0ea5e9;
  --bg:rgba(14,165,233,.1);
  --icon:"ℹ️";
}

/* Успех / Готово */
.attention--success{
  --accent:#10b981;
  --bg:rgba(16,185,129,.1);
  --icon:"✅";
}

/* ============================
   ДОП. МЕЛОЧИ (по желанию)
   ============================ */

/* Компактная версия */
.attention--sm{
  padding: .75rem .9rem .75rem 2.5rem;
  font-size: .85rem;
}
.attention--sm::before{
  top: .8rem;
  left: .7rem;
  font-size: 1.1rem;
}

/* Центрирование текста */
.attention--center{
  text-align: center;
  padding-left: 1.25rem;
}
.attention--center::before{
  left: 50%;
  transform: translateX(-50%);
}

/* Тёмная тема (если у темы есть класс .dark на html/body) */
.dark .attention{
  color:#e5e5e5;
  background: color-mix(in srgb, var(--accent) 12%, #111); /* можно удалить, если нет поддержки color-mix */
  border-color: var(--accent);
}
.dark .attention__label{
  color:#111;
}


/* ============================
   LINK BOX (без картинок)
   ============================ */
.linkbox{
  --accent:#8b5cf6;            /* фиолетовый по умолчанию */
  --bg:rgba(139,92,246,.08);
  --icon:"🔗";

  position:relative;
  margin:1.5rem 0;
  padding:1rem 1.25rem 1rem 3rem;
  border:1px solid var(--accent);
  border-left:.45rem solid var(--accent);
  background:var(--bg);
  border-radius:.6rem;
  font-size:.95rem;
  line-height:1.45;
  color:#111;
}

.linkbox::before{
  content:var(--icon);
  position:absolute;
  left:.9rem; top:1rem;
  font-size:1.25rem; line-height:1;
}

.linkbox__label{
  display:inline-block;
  margin:0 0 .35rem 0;
  padding:.15rem .5rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--accent);
  color:#fff;
  border-radius:.3rem;
}

.linkbox__link{
  display:inline-block;
  font-weight:600;
  text-decoration:none;
  color:var(--accent);
  border-bottom:1px dashed currentColor;
  transition:opacity .15s;
}
.linkbox__link:hover,
.linkbox__link:focus{
  opacity:.75;
}

/* Варианты */
.linkbox--category{
  --accent:#0ea5e9;            /* голубой */
  --bg:rgba(14,165,233,.08);
  --icon:"🛒";
}
.linkbox--article{
  --accent:#8b5cf6;            /* фиолетовый */
  --bg:rgba(139,92,246,.08);
  --icon:"📖";
}

/* Компактный вариант */
.linkbox--sm{
  padding:.75rem .9rem .75rem 2.5rem;
  font-size:.85rem;
}
.linkbox--sm::before{
  top:.8rem; left:.7rem; font-size:1.1rem;
}

/* Если ::before режется — используйте <span class="linkbox__icon">... */
.linkbox__icon{
  position:absolute;
  left:.9rem; top:1rem;
  font-size:1.25rem; line-height:1;
}
.linkbox--sm .linkbox__icon{ top:.8rem; left:.7rem; font-size:1.1rem; }
