/* BONS: проверка подключения custom.css */
html {
    --bons-css-test: connected;
}



/* BONS: RU homepage — remove empty Joomla component */

body.itemid-240 #sp-main-body {
    display: none !important;
}

/* === /BONS: RU homepage === */


/* BONS: название и слоган внутри закреплённой шапки */

body.sticky-header #sp-header .bons-brand-ru {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    height: 50px !important;
    box-sizing: border-box;
    transform: translateY(-7px) !important;
}

body.sticky-header #sp-header .bons-brand-ru .bons-site-slogan {
    margin: 0 !important;
    line-height: 15px !important;
    transform: none !important;
}





/* Все статьи Joomla — полная ширина области материала */

body.com_content.view-article
.article-details > .sppb-row > .col-md-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}



/* BONS — ширина статей как у шапки сайта */

@media (min-width: 1200px) {

  body.com_content.view-article
  #sp-main-body > .container {
    width: 100% !important;
    max-width: 1320px !important;
  }

  body.com_content.view-article
  #sp-main-body .sppb-row-container {
    width: 100% !important;
    max-width: 100% !important;
  }

}



/* =========================================
   BONS — METHOD + VIDEO — 13 LANGUAGES
   ========================================= */

/* Общий блок */
.bons-method-feature {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 42px 0 48px;
    box-sizing: border-box;
}

/* Две колонки: текст 7/12, видео 5/12 */
.bons-mf-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: start;
}

.bons-mf-copy,
.bons-mf-media {
    min-width: 0;
}

/* =========================================
   LANGUAGE SWITCHING
   ========================================= */

/* Все языки по умолчанию скрыты */
.bons-method-feature .bons-mf-lang {
    display: none;
}

/* Русский — резервный язык */
.bons-method-feature .bons-mf-lang[data-lang="ru"] {
    display: block;
}

html:not(:lang(ru))
.bons-method-feature .bons-mf-lang[data-lang="ru"] {
    display: none;
}

/* Отображение выбранного языка сайта */
html:lang(ru) .bons-mf-lang[data-lang="ru"],
html:lang(en) .bons-mf-lang[data-lang="en"],
html:lang(de) .bons-mf-lang[data-lang="de"],
html:lang(fr) .bons-mf-lang[data-lang="fr"],
html:lang(es) .bons-mf-lang[data-lang="es"],
html:lang(it) .bons-mf-lang[data-lang="it"],
html:lang(pt) .bons-mf-lang[data-lang="pt-br"],
html:lang(pl) .bons-mf-lang[data-lang="pl"],
html:lang(he) .bons-mf-lang[data-lang="he"],
html:lang(zh) .bons-mf-lang[data-lang="zh-cn"],
html:lang(ja) .bons-mf-lang[data-lang="ja"],
html:lang(nl) .bons-mf-lang[data-lang="nl"],
html:lang(ar) .bons-mf-lang[data-lang="ar"] {
    display: block;
}

/* =========================================
   TEXT
   ========================================= */

.bons-method-feature h2 {
    font-size: clamp(25px, 2.3vw, 32px);
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 22px;
}

.bons-method-feature p {
    font-size: 17px;
    line-height: 1.72;
    margin: 0 0 19px;
}

.bons-method-feature strong {
    font-weight: 700;
}

/* Кнопка Подробнее */
.bons-method-feature .bons-mf-button {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 27px;

    border: 1px solid #174b96;
    border-radius: 5px;

    background: transparent;
    color: #174b96;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;

    transition: background-color .2s ease,
                color .2s ease;
}

.bons-method-feature .bons-mf-button:hover,
.bons-method-feature .bons-mf-button:focus {
    background: #174b96;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   YOUTUBE
   ========================================= */

.bons-mf-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #111111;
}

.bons-mf-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   ARABIC + HEBREW
   ========================================= */

.bons-mf-lang[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* =========================================
   TABLETS AND PHONES
   ========================================= */

@media (max-width: 900px) {

    .bons-method-feature {
        padding: 28px 16px 36px;
    }

    .bons-mf-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .bons-method-feature h2 {
        font-size: 25px;
    }

    .bons-method-feature p {
        font-size: 16px;
        line-height: 1.65;
    }

    .bons-mf-video-frame {
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {

    .bons-method-feature {
        padding: 24px 12px 32px;
    }

    .bons-method-feature h2 {
        font-size: 23px;
    }

    .bons-method-feature .bons-mf-button {
        padding: 11px 23px;
        font-size: 15px;
    }
}

