/* ============================================================
   ЖНИВ-АГРО — кастомизация шаблона Trustbook
   ============================================================
   Подключается ПОСЛЕ style.css на всех страницах сайта.
   Содержит:
     1) цвета бренда (переопределение --main-color)
     2) шрифт заголовков с кириллицей (Oswald → заменяет Teko)
     3) контрастные правки (белые тексты/иконки на синем фоне)
     4) стили партнёрского блока (partners-block*)
     5) мелкие правки под макет zhnivagro.html
   ============================================================ */

/* Gilroy — локальний шрифт з /public/fonts/gilroy/ */
@font-face {
    font-family: 'Gilroy';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Light.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Light.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Regular.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Medium.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Semibold.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Semibold.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Bold.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Extrabold.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Extrabold.woff') format('woff');
}
@font-face {
    font-family: 'Gilroy';
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/gilroy/Gilroy-Black.woff2') format('woff2'),
         url('/fonts/gilroy/Gilroy-Black.woff') format('woff');
}

:root {
    --main-color: #014d94 !important;
    --main-font: "Gilroy", sans-serif !important;
    --secondary-font: "Gilroy", sans-serif !important;
}

/* Gilroy для всього сайту (стиль geringhoff.com) */
body, p, a, button, input, textarea, select, label, span, li, td, th, div {
    font-family: "Gilroy", sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.bold-text, .hero-section-title h2, .hero-section-title h1,
.title-2, .title-3, .title-4, .title-5,
.subscribe-button, .header_btn, .commentssubmit, .callback-submit,
.menu-link a, .nav-inner a {
    font-family: "Gilroy", sans-serif !important;
    font-weight: 700;
}
.bold-text, .hero-section-title h2, .hero-section-title h1, h1, h2 {
    font-weight: 700;
}

/* Hero-слайдер h2 — зменшуємо з 120px до 72px на десктопі */
.fs-slider-item h2,
.hero_align_title-container h2 {
    font-size: 72px !important;
    line-height: 1.05 !important;
}
@media (max-width: 1200px) {
    .fs-slider-item h2,
    .hero_align_title-container h2 {
        font-size: 56px !important;
    }
}

/* Збільшуємо параграфи на всіх розмірах (trustbook ставив 12px — занадто дрібно) */
body {
    font-size: 15px !important;
}
p,
.about-wrap_sin p,
.cf-inner p,
.content-front p,
.half-carousel-content p,
.footer_text p,
.accordian__body-box_content p,
.testimonilas-text-item p,
.testimonilas-text-item-wrap p,
.accordion-inner p,
.post-item_content p,
.single-box-content p,
.det-box-ietm_single p,
.ab-text p,
.faq-inner p,
.main-section_text-block p {
    font-size: 15px !important;
    line-height: 1.6;
}

/* === Hero-слайд "Компенсація вартості сільгосптехніки" (komp-hero) === */
.komp-hero .overlay.komp-hero__overlay {
    background: linear-gradient(110deg,
        rgba(1, 30, 60, 0.88) 0%,
        rgba(1, 50, 100, 0.72) 45%,
        rgba(0, 0, 0, 0.35) 100%) !important;
}
.komp-hero .hero_align_title {
    padding: 60px 0;
}
.komp-hero__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 380px);
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
}
.komp-hero__panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10px;
    bottom: -10px;
    width: 3px;
    background: linear-gradient(180deg, #ffd700 0%, #ffd700 50%, #014d94 50%, #014d94 100%);
}
.komp-hero__main {
    padding-left: 24px;
}
.komp-hero__main .hhw_header {
    display: inline-block;
    padding: 6px 14px;
    background: #ffd700;
    color: #014d94 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.komp-hero__main h2 {
    margin: 0 0 14px;
    line-height: 1.02;
    font-size: 58px;
    font-weight: 700;
    text-transform: none;
}
.komp-hero__main h2 a {
    color: #fff;
    background: linear-gradient(120deg, #fff 0%, #fff 85%, #ffd700 85%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.komp-hero__lead {
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px;
    max-width: 560px;
    margin: 0 0 26px;
    font-weight: 500;
}
.komp-hero__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 32px;
    counter-reset: kh;
}
.komp-hero__step {
    position: relative;
    padding: 16px 14px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    transition: transform .2s ease, background .2s ease;
}
.komp-hero__step:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: translateY(-2px);
}
.komp-hero__step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffd700;
    color: #014d94;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 10px;
    border-radius: 50%;
}
.komp-hero .hero-btn {
    background: #ffd700 !important;
    color: #014d94 !important;
    border: none !important;
}
.komp-hero .hero-btn span,
.komp-hero .hero-btn i {
    color: #014d94 !important;
}
.komp-hero .hero-btn i {
    background: rgba(1, 77, 148, 0.15) !important;
}
.komp-hero__side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, rgba(1, 77, 148, 0.85) 0%, rgba(0, 35, 75, 0.9) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 34px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.komp-hero__side::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
}
.komp-hero__pct-box {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    position: relative;
    z-index: 2;
}
.komp-hero__pct-big {
    font-size: 96px;
    font-weight: 900;
    line-height: 0.95;
    color: #ffd700;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
}
.komp-hero__pct-cap {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.komp-hero__side-flag {
    display: none;
}
.komp-hero__side-title {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.8);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.komp-hero__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.komp-hero__logos img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}
.komp-hero__logos-div {
    width: 1px;
    height: 44px;
    background: rgba(255, 215, 0, 0.35);
}
@media (max-width: 1200px) {
    .komp-hero__main h2 {
        font-size: 46px;
    }
    .komp-hero__pct-big {
        font-size: 80px;
    }
}
@media (max-width: 900px) {
    /* Повторюємо десктопну композицію (панель із 2 блоками) компактно */
    .komp-hero .hero_align_title {
        padding: 12px 10px !important;
    }
    .komp-hero__panel {
        grid-template-columns: minmax(0, 1.4fr) minmax(125px, 145px) !important;
        gap: 10px !important;
        max-width: 100% !important;
    }
    .komp-hero__panel::before {
        width: 2px;
        top: 0;
        bottom: 0;
    }
    .komp-hero__main {
        padding-left: 12px !important;
    }
    .komp-hero__main h2 {
        font-size: 17px !important;
        line-height: 1.05 !important;
        margin-bottom: 6px !important;
        word-break: break-word;
    }
    .komp-hero__main h2 br { display: none; }
    .komp-hero__main .hhw_header {
        font-size: 9px !important;
        padding: 3px 7px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 8px !important;
    }
    .komp-hero__lead {
        font-size: 10px !important;
        margin: 0 0 8px !important;
        line-height: 1.3 !important;
    }
    .komp-hero__steps {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }
    .komp-hero__step {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
        padding: 6px 8px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .komp-hero__step > span {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        margin-bottom: 0 !important;
        flex: 0 0 18px !important;
    }
    .komp-hero .btn.hero-btn {
        display: inline-flex !important;
        align-items: center;
        font-size: 10px !important;
        margin-top: 2px !important;
    }
    .komp-hero .btn.hero-btn span {
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 46px 0 14px !important;
        white-space: nowrap;
    }
    .komp-hero .btn.hero-btn i {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
    }
    .komp-hero__side {
        padding: 10px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    .komp-hero__side::before {
        display: none !important;
    }
    .komp-hero__pct-box {
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    .komp-hero__pct-big {
        font-size: 26px !important;
    }
    .komp-hero__pct-cap {
        font-size: 7.5px !important;
        letter-spacing: 0.3px !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }
    .komp-hero__side-title {
        font-size: 7.5px !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 6px !important;
    }
    .komp-hero__logos {
        flex-direction: column !important;
        gap: 4px !important;
    }
    .komp-hero__logos img {
        max-height: 22px !important;
    }
    .komp-hero__logos-div {
        display: none !important;
    }
    .komp-hero .hero_align_title_dec {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .komp-hero__panel {
        grid-template-columns: 1fr !important;
    }
    .komp-hero__main h2 {
        font-size: 19px !important;
    }
    .komp-hero__side {
        flex-direction: row !important;
        gap: 12px;
        align-items: center !important;
    }
    .komp-hero__pct-box {
        flex: 0 0 45%;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        border-right: 1px solid rgba(255, 215, 0, 0.25);
        padding-right: 10px !important;
    }
    .komp-hero__logos {
        flex: 1 1 auto;
        flex-direction: row !important;
        justify-content: center;
    }
    .komp-hero__pct-big {
        font-size: 30px !important;
    }
}

/* === бренд-фон / кнопки === */
.color-bg {
    background: #014d94 !important;
}

.header_btn {
    background: #014d94 !important;
    color: #fff !important;
}
.header_btn span {
    color: #fff !important;
}
.header_btn:hover {
    background: #013a70 !important;
}

.half-hero-wrap_link {
    background: #014d94 !important;
    color: #fff !important;
}
.half-hero-wrap_link:hover {
    background: #013a70 !important;
}

/* === белый текст на синем фоне (кнопки CTA) === */
.btn.hero-btn,
.btn.hero-btn span,
.btn.float-btn,
.btn.float-btn span,
.btn.cf_btn,
.btn.cf_btn span {
    color: #fff !important;
}

.cf-inner_title.color-bg {
    color: #fff !important;
}

.serv-dec-btn-wrap a:hover {
    background: #013a70 !important;
}

.hcw_btn {
    color: #fff !important;
}

.fc_button,
.fc_button i {
    color: #fff !important;
}
.fc_button:hover,
.fc_button:hover i {
    color: #fff !important;
}

.to-top-btn,
.to-top-btn i {
    color: #fff !important;
}

.subscribe-button {
    background: #014d94 !important;
    color: #fff !important;
}

.acc-heading-number {
    color: #fff !important;
}

/* === иконки-декорации (белые) === */
.dec-icon {
    color: #fff !important;
}

.btn i,
.hcw_btn i,
.serv-dec-btn-wrap a i {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.serv-dec-btn-wrap a {
    color: #fff !important;
}
.serv-dec-btn-wrap a:hover i {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* === аккордеон === */
.accordian__heading_item h4 span {
    color: #fff !important;
    white-space: nowrap;
}
.accordian__heading_item i {
    color: #fff !important;
}

.pdcw_list li {
    color: #fff !important;
}
.accordian__body-box_content h5 span {
    color: #014d94 !important;
}

/* === блок партнёров (кастомная сетка) === */
.partners-block {
    position: relative;
    margin-top: 30px;
}
.partners-block__title {
    color: #fff;
    font-family: var(--secondary-font);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.partners-block__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.partners-block__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: calc(33.333% - 7px);
    height: 110px;
    padding: 12px 18px;
    transition: all 0.2s ease-in-out;
}
.partners-block__item:hover {
    background: #f0f0f0;
}
.partners-block__item img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.2s ease-in-out;
}
.partners-block__item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
@media only screen and (max-width: 768px) {
    .partners-block__item {
        width: calc(50% - 5px);
        padding: 8px 10px;
        height: 90px;
    }
    .partners-block__item img {
        max-width: 100%;
        max-height: 60px;
    }
}
@media only screen and (max-width: 360px) {
    .partners-block__item {
        height: 80px;
        padding: 6px 8px;
    }
    .partners-block__item img {
        max-height: 52px;
    }
}

/* === post_header_cat: ховати плашку будь-якої довжини за межі картки ===
   Оригінальний style.css ховає через left: -100px (фіксоване).
   Для довгих моделей (УХП.14.02.ДБ1000.02-01 тощо) хвіст лишається видимим.
   Перевизначаємо через transform — ховає будь-яку ширину.                     */
.grid-item-holder .post_header_cat {
    left: 30px !important;
    transform: translateX(calc(-100% - 60px));
    transition: transform .2s ease-in-out !important;
}
.grid-item-holder:hover .post_header_cat {
    transform: translateX(0);
    transition-delay: .4s;
}

/* === карусель товаров — фото по высоте, без растяжения === */
.half-carousel-item .bg-wrap .bg {
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #1a1a1a;
}

/* === хедер: язык, поиск, share, соцсети — белые === */
.show-lang,
.show-lang span,
.show-lang strong,
.show-lang i {
    color: #fff !important;
}

.search-submit,
.search-submit i {
    color: #fff !important;
}

/* Іконки шапки білі — пошук, бургер */
.header-search_btn,
.header-search_btn i {
    color: #fff !important;
}

/* ========= Dropdown результатів пошуку ========= */
.site-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    color: #111;
    box-shadow: 0 24px 60px rgba(0, 30, 80, 0.25);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    z-index: 120;
    display: none;
    padding: 10px 0;
}
.site-search-results.is-visible {
    display: block;
}
.ssr-empty,
.ssr-loading {
    padding: 22px 24px;
    text-align: center;
    color: #5c6a7c;
    font-size: 14px;
}
.ssr-group {
    padding: 8px 0;
    border-top: 1px solid #eef1f4;
}
.ssr-group:first-child { border-top: none; }
.ssr-group-title {
    padding: 8px 24px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #014d94;
}
.ssr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background .15s;
}
.ssr-item:hover {
    background: #f5f8fb;
    color: #014d94;
}
.ssr-item > i {
    color: #014d94;
    font-size: 18px;
    flex: 0 0 24px;
}
.ssr-item--prod {
    padding: 10px 24px;
}
.ssr-thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    background: #f4f6f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ssr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ssr-img-ph {
    color: #aab4c0;
    font-size: 20px;
}
.ssr-info {
    flex: 1 1 auto;
    min-width: 0;
}
.ssr-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f1b2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ssr-meta {
    font-size: 12px;
    color: #6a7a8f;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ssr-price {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: #014d94;
    white-space: nowrap;
    padding-left: 10px;
}
.ssr-item--cat span,
.ssr-item--post span {
    font-size: 14px;
    font-weight: 500;
}

/* Форма в шапці: розтягуємо на всю ширину виджета */
.header-search-wrap .widget-inner {
    position: relative;
}
#site-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
#se {
    flex: 1 1 auto;
}
#submit_btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .ssr-group-title { padding: 6px 16px 4px; font-size: 10px; letter-spacing: 1.5px; }
    .ssr-item { padding: 10px 16px; gap: 10px; }
    .ssr-thumb { flex: 0 0 44px; width: 44px; height: 44px; }
    .ssr-name { font-size: 13px; }
    .ssr-meta { font-size: 11px; }
    .ssr-price { font-size: 13px; }
    .site-search-results { max-height: calc(100vh - 120px); }
}
.nav-button span,
.nav-button::before,
.nav-button::after,
.nav-button span::before,
.nav-button span::after {
    background: #fff !important;
    color: #fff !important;
}
/* Крестик закриття меню (trustbook рендерить через .nav-button-wrap::before з FA-гліфом) */
.nav-button-wrap::before {
    color: #fff !important;
}
/* Крестик при відкритому меню */
.vis-main .nav-button span,
.vis-main .nav-button::before,
.vis-main .nav-button::after,
body.vis-main .nav-button span,
.nav-button.cross span,
.nav-button.menu-opened span,
.nav-button.act span {
    background: #fff !important;
}

.share-button,
.share-button span,
.share-button i {
    color: #fff !important;
}

.header-social ul li a i {
    color: #fff !important;
}

/* === hero === */
.hhw_header {
    color: #fff !important;
}

.hc_counter .current_c,
.hc_counter .total_c {
    color: #fff !important;
}
.hs-slider-button {
    color: #fff !important;
}
.about-img-logo {
    color: #fff !important;
}
.hero_align_title_dec span {
    color: #fff !important;
}

/* === отзывы (testimonials) === */
.testi-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #014d94;
    color: #fff;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.testi-link {
    color: #fff !important;
}

/* === промо-плеер === */
.big_prom span i {
    color: #fff !important;
}

/* === список опций === */
.column-section-opions ul li i {
    color: #fff !important;
}

/* === facts === */
.inline-facts h6 {
    color: #fff !important;
}

/* === карта Leaflet === */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    color: #fff !important;
}

/* === футер: соцсети крупнее, белые === */
.footer-solcial ul li a i {
    color: #fff !important;
    font-size: 1.4em !important;
}
/* Іконки соцмереж: центрування в квадратних кнопках (trustbook 46x46) */
.footer-solcial ul li a,
.contacts-opt-social .footer-solcial ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    line-height: 1 !important;
}
.footer-solcial ul li {
    float: none !important;
    display: inline-block;
}
.footer-solcial ul li a i {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* === контактные карточки (DESKTOP) === */
.card-item-wrap > i {
    color: #fff !important;
    font-size: 26px !important;
}
.card-item_num {
    color: #014d94 !important;
    text-align: center;
    font-size: 16px;
}
.card-link {
    color: #014d94 !important;
    font-size: 14px !important;
}
.card-item-content p {
    font-size: 15px !important;
}

/* === футер-контакти: трохи збільшити дрібний шрифт (Anton) === */
.footer-contacts li {
    font-size: 12px !important;
}
.footer-contacts li a {
    font-size: 13px !important;
}

/* === слайдер-превью: не менять цвет на hover === */
.hs_btn_wrap_preview_title:hover {
    color: #fff !important;
}

/* === wide section title h5 — белый === */
.wide_section-title h5 {
    color: #fff !important;
}

/* === логотип === */
.logo-holder img {
    position: relative;
    height: 18px;
    width: auto;
    top: 30%;
    z-index: 2;
    float: left;
    margin-left: 20px;
}

/* === карусель партнёров — отступы === */
.clients-carousel .swiper-slide {
    padding: 0 12px !important;
}
.cc-controls-wrap {
    position: relative;
}

/* scripts.js клонує .logo-holder img у .top-header-logo — приховуємо клон */
.top-header-logo > img.logo-icon {
    display: none !important;
}

/* === Callback modal === */
.callback-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.callback-modal.is-open {
    display: flex;
}
.callback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.78);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.callback-dialog {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: callbackIn 0.18s ease-out;
}
.callback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.callback-left {
    padding: 38px 34px 30px;
}
.callback-right {
    position: relative;
    color: #fff;
    background: linear-gradient(rgba(1, 30, 57, 0.85), rgba(1, 30, 57, 0.92)),
        url('/images/zhnivagro/combine-harvester-field-wheat-perfect-summer-view-from-flying-drone-harvesting-wheat-sunset.jpg') center/cover;
    padding: 38px 32px 30px;
    display: flex;
    align-items: stretch;
}
.callback-right-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.callback-right-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}
.callback-right-title {
    font-family: var(--secondary-font, 'Oswald', sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 22px;
    color: #fff;
}
.callback-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.callback-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}
.callback-benefits li > div {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.callback-benefits li i {
    flex: 0 0 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    border-radius: 50%;
    margin-top: 1px;
}
.callback-benefits li strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.callback-benefits li span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
}
.callback-direct {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.callback-direct-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}
.callback-direct-phone {
    display: block;
    font-family: var(--secondary-font, 'Oswald', sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.callback-direct-phone:hover {
    color: #8bbce8 !important;
}
.callback-direct-soc {
    display: flex;
    gap: 10px;
}
.callback-direct-soc a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-size: 16px;
    transition: background 0.15s;
}
.callback-direct-soc a:hover {
    background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 768px) {
    .callback-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .callback-right {
        display: none;
    }
}
@keyframes callbackIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.callback-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    transition: background 0.15s;
}
.callback-close:hover {
    background: rgba(255, 255, 255, 0.35);
}
@media (max-width: 768px) {
    .callback-close {
        background: rgba(0, 0, 0, 0.08);
        color: #555;
    }
    .callback-close:hover {
        background: rgba(0, 0, 0, 0.15);
    }
}
.callback-head {
    text-align: center;
    margin-bottom: 22px;
}
.callback-head-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #014d94;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.callback-head h3 {
    font-family: var(--secondary-font, 'Oswald', sans-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: #111;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.callback-head p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.callback-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}
.callback-row input,
.callback-row textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 14px;
    color: #111;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.callback-row input:focus,
.callback-row textarea:focus {
    border-color: #014d94;
    background: #fff;
}
.callback-row textarea {
    resize: vertical;
    min-height: 70px;
}
.callback-source-hint {
    font-size: 11px;
    color: #999;
    margin: 2px 0 4px;
}
.callback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #014d94;
    color: #fff !important;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;
}
.callback-submit:hover:not(:disabled) {
    background: #013a70;
}
.callback-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}
.callback-submit i {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.callback-status {
    min-height: 18px;
    font-size: 14px;
    text-align: center;
    padding: 4px 0;
}
.callback-status.is-pending {
    color: #666;
}
.callback-status.is-success {
    color: #107c1c;
    font-weight: 600;
}
.callback-status.is-error {
    color: #c21d1d;
    font-weight: 600;
}
@media (max-width: 768px) {
    .callback-modal {
        padding: 10px !important;
    }
    .callback-dialog {
        max-width: 100% !important;
        width: 100%;
    }
    .callback-left {
        padding: 28px 20px 22px !important;
    }
    .callback-head h3 {
        font-size: 22px;
    }
    .callback-row input,
    .callback-row textarea {
        padding: 11px 12px;
    }
}
@media (max-width: 400px) {
    .callback-modal {
        padding: 6px !important;
    }
    .callback-left {
        padding: 24px 16px 20px !important;
    }
    .callback-head h3 {
        font-size: 19px !important;
    }
}

/* === Про нас: декоративна плашка "N років на ринку" — білий текст === */
.dc_dec-item_right h4,
.dc_dec-item_right h4 span {
    color: #fff !important;
}

/* === Фільтри категорії: білий текст/іконки/цифри === */
.gallery-filters-wrap .fixed-filters_title,
.gallery-filters-wrap .fixed-filters_title i,
.gallery-filters-wrap .gallery-filter,
.gallery-filters-wrap .gallery-filter span,
.gallery-filters-wrap .count-folio,
.gallery-filters-wrap .count-folio .num-album,
.gallery-filters-wrap .count-folio .all-album {
    color: #fff !important;
}

/* === Sidebar recent-post-widget: стабільна сітка фото + текст === */
.recent-post-widget ul li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow: hidden;
}
.recent-post-widget ul li .recent-post-img {
    flex: 0 0 140px;
    width: 140px;
    float: none;
}
.recent-post-widget ul li .recent-post-content {
    flex: 1 1 auto;
    width: auto;
    float: none;
    min-width: 0;
}

/* === Sidebar social-widget (blog): білі іконки === */
.social-widget a,
.social-widget a i {
    color: #fff !important;
}

/* === Sidebar serv-nav: активний пункт — білий текст/іконка === */
.serv-nav a.act-ser,
.serv-nav a.act-ser i,
.serv-nav a.act-ser span {
    color: #fff !important;
}

/* === Картка товару: цифри з підписами (світлий фон) === */
.single-box-content .inline-facts h6 {
    color: #111 !important;
}
.single-box-content .inline-facts .facts-desc {
    color: rgba(0, 0, 0, 0.55);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 6px;
    max-width: 110px;
}

/* === Білий текст на синіх CTA-кнопках === */
a.btn,
a.btn span,
.det-box .btn,
.det-box .btn span,
.post-banner-widget_content a {
    color: #fff !important;
}

/* Підпис під слайдом в картці товару */
.swiper-slide .slide-caption {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* === Картки відео/каталогу: біла іконка play/пошук + курсор === */
.gallery-items-container .box-media-zoom,
.gallery-items-container .box-media-zoom i,
.swiper-slide .box-media-zoom,
.swiper-slide .box-media-zoom i {
    color: #fff !important;
}
.gallery-items-container .grid-item-holder {
    cursor: pointer;
}

/* === адаптив (<=1500px): логотип в top-header, скрытие share и боковой logo-holder === */
/* work-hours в шапці: іконка перед текстом, gap */
.share-button.work-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}
.share-button.work-hours i {
    margin: 0;
}

/* Мобілка: прибираємо trustbook inset-рамку 10px (виглядає як чорна смуга зверху/знизу).
   ⚠ .main-header сюди НЕ входить — він має лишитись за екраном (right:-350px),
      щоб меню відкривалось/закривалось по бургеру. */
@media only screen and (max-width: 1024px) {
    .header-top,
    .wrapper,
    .main-footer,
    .subbfooter {
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
    }
    .wrapper {
        left: 0 !important;
    }
    body {
        background: #111;
    }
}

@media only screen and (max-width: 1500px) {
    .share-button.work-hours {
        display: none !important;
    }
    .main-header .logo-holder {
        display: none !important;
    }
    .top-header-logo {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 0 20px !important;
        border-right: none !important;
        height: 80px;
        line-height: 1;
    }
    .top-header-logo img {
        position: static !important;
        float: none !important;
        height: 44px !important;
        width: auto !important;
        margin: 0 !important;
    }
    .top-header-logo .tho-logo-text {
        line-height: 1.2;
    }
    .top-header-logo .tho-logo-brand {
        font-size: 18px;
        font-weight: 800;
        color: #fff;
        letter-spacing: 2px;
    }
    .top-header-logo .tho-logo-tag {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.7);
        letter-spacing: 1px;
    }
}
@media only screen and (max-width: 480px) {
    .top-header-logo {
        padding: 0 14px !important;
        gap: 10px;
    }
    .top-header-logo img {
        height: 36px !important;
    }
    .top-header-logo .tho-logo-brand {
        font-size: 16px;
    }
    .top-header-logo .tho-logo-tag {
        font-size: 9px;
    }
}

/* Subbfooter horizontal links (заміна 4-ї колонки "Інформація") */
.subbfooter .subb-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    padding: 0 20px;
    flex: 1;
}
.subbfooter .subb-links a.subb-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 120ms;
    white-space: nowrap;
}
.subbfooter .subb-links a.subb-link:hover {
    color: var(--main-color, #014d94);
}
@media (max-width: 900px) {
    .subbfooter .subb-links {
        display: none;
    }
}

/* === Білі іконки в навігації сайдбара === */
.sliding-menu a i {
    color: #fff;
}
.sliding-menu a:hover i,
.sliding-menu a.act-link i,
.sliding-menu a.actscr-link i {
    color: var(--main-color);
}

.header-contact li i {
    color: #fff;
}
/* Sidebar контакти: забираємо uppercase та зменшуємо шрифт, довгі email/адреса
   нехай переносяться замість обрізання */
.header-contact li {
    padding-left: 14px !important;
    padding-right: 14px !important;
}
.header-contact li a {
    text-transform: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    word-break: break-word;
    display: inline-block;
    padding: 8px 0;
    white-space: normal;
}
.header-contact li i {
    margin-right: 8px !important;
    vertical-align: middle;
}

/* === Опис товару на картці (/<slug>) === */
.det-box-ietm_single > p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
    color: #2a2a2a;
}
.det-box-ietm_single > p.pd-heading {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 26px;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}
.det-box-ietm_single .pd-list {
    text-align: left;
    list-style: none;
    margin: 4px 0 28px;
    padding: 0;
    counter-reset: pd;
}
.det-box-ietm_single .pd-list > li {
    position: relative;
    padding: 14px 0 14px 52px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #2a2a2a;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    counter-increment: pd;
}
.det-box-ietm_single .pd-list > li:last-child {
    border-bottom: 0;
}
.det-box-ietm_single .pd-list > li::before {
    content: counter(pd, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--main-color, #014d94);
    letter-spacing: 0.5px;
}

/* ============================================================
   Mobile typography — мінімум, не чіпає іконок/спанів.
   ============================================================ */
@media (max-width: 768px) {
    body, p, td, th, .text-block {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .swiper-slide .hero_align_title-container h2,
    .fs-slider-item h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    /* Паддінги товстих контейнерів */
    .single-box-content,
    .contact-form-container-box,
    .callback-dialog {
        padding: 18px !important;
    }
    .partners-item img {
        max-width: 100% !important;
        height: auto !important;
    }
}
@media (max-width: 480px) {
    .swiper-slide .hero_align_title-container h2,
    .fs-slider-item h2 {
        font-size: 24px !important;
    }
}

/* === Mobile typography: зменшення заголовків по всій головній === */
@media (max-width: 900px) {
    /* Секційні заголовки (section-title h2) */
    .section-title h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
    .section-title h4 {
        font-size: 14px !important;
        letter-spacing: 2px !important;
    }
    .section-title h5 {
        font-size: 14px !important;
    }
    /* Картки категорій (каруселі) */
    .half-carousel-content h3,
    .half-carousel-item h3 {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
    .half-carousel-content p {
        font-size: 14px !important;
    }
    /* Переваги (3 карточки) */
    .cf-inner h2,
    .content-front h2 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
    .cf-inner p,
    .content-front p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    /* Info-line (Факти про нас) */
    .about-img-logo,
    .single-box-content h3 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }
    .single-box-content h5 {
        font-size: 14px !important;
    }
    /* Accordion (Чому обирають нас) */
    .accordian__heading h4 {
        font-size: 16px !important;
    }
    .accordian__body-box_content h5 {
        font-size: 16px !important;
    }
    .accordian__body-box_content p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    .acc-heading-number {
        font-size: 14px !important;
    }
    .pdcw_list li {
        font-size: 14px !important;
    }
    /* Testimonials / reviews */
    .testi-item h3 {
        font-size: 17px !important;
    }
    .testimonilas-text-item p,
    .testimonilas-text-item-wrap p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    /* About section */
    .ab-hero h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
    .ab-hero h4 {
        font-size: 14px !important;
    }
    .about-wrap_sin p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    /* FAQ */
    .accordion a.toggle {
        font-size: 14px !important;
    }
    .accordion-inner p {
        font-size: 14px !important;
    }
    /* Footer */
    .footer-widget h3 {
        font-size: 16px !important;
    }
    .footer-header {
        font-size: 15px !important;
    }
    .footer_text p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    /* Video section */
    .video_section-title h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }
    .video_section-title h4 {
        font-size: 14px !important;
    }
}
/* Footer: нижній відступ форми підписки, коли колонки складаються (адаптив).
   .subscribe-message спозиціонована absolute bottom:-34px — без відступу форма прилипає до блоку "Інформація". */
@media (max-width: 1063px) {
    .footer-widget .subcribe-form {
        margin-bottom: 40px;
    }
}
/* Заголовок секції відео ("Наше відео") — білий замість --main-color */
.video_section-title h4 {
    color: #fff;
}
@media (max-width: 520px) {
    .section-title h2 {
        font-size: 22px !important;
    }
    .half-carousel-content h3,
    .half-carousel-item h3 {
        font-size: 16px !important;
    }
    .cf-inner h2,
    .content-front h2 {
        font-size: 18px !important;
    }
    .ab-hero h2 {
        font-size: 22px !important;
    }
    .accordian__heading h4 {
        font-size: 15px !important;
    }
    .accordian__body-box_content h5 {
        font-size: 15px !important;
    }
    .testi-item h3 {
        font-size: 16px !important;
    }
    .video_section-title h2 {
        font-size: 19px !important;
    }
}

/* ============================================================
   Mobile hero/internal typography — адаптив заголовків
   (.hero-section-title h2 за замовчуванням 4.4em = 66px на <768px,
    що не влазить на телефоні — зменшуємо поетапно)
   ============================================================ */
@media (max-width: 900px) {
    .hero-section-title h2 {
        font-size: 40px !important;
        line-height: 1.1 !important;
    }
    .hero-section-title h5 {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    .hero-section-title p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    /* Великі декоративні заголовки секцій */
    .wide_section-title h3,
    .wide_section-title h2 {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }
    .half-carousel-title-item h2,
    .half-carousel-title h2 {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }
    .main-section_text-block h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
    .post-banner-widget_content h5,
    .post-banner-widget_content h4 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    .post-banner-widget_content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    /* Accordion heading (John Greaves / Якість): рядок з 01 + назва + іконка.
       На вузьких екранах ховаємо декоративну праву іконку, щоб заголовок не обрізався */
    .accordian__heading_item i {
        display: none !important;
    }
    .accordian__heading_item h4 {
        font-size: 14px !important;
        padding-right: 10px;
    }
    .accordian__heading_item h4 span {
        font-size: 14px !important;
        white-space: normal !important;
        min-width: 0 !important;
        left: 0 !important;
        line-height: 1.2 !important;
    }
    /* Блог — картки постів */
    .post-item_content h3,
    .post-item_wrap h3 {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
    /* Унівepсальний safety — довгі заголовки переносяться */
    h1, h2, h3, h4, h5, h6, .bold-text {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    /* Картка товару — внутрішні заголовки */
    .det-box-ietm_single h3.bold-text,
    .single-box-content h3.bold-text,
    .boxed-content h3.bold-text,
    .sb-container h3.bold-text {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }
    .det-box-ietm_single h4,
    .boxed-content h4,
    .sb-container h4,
    .piechart-container-title h4 {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
    .det-box-ietm_single > p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    .det-box-ietm_single > p.pd-heading {
        font-size: 15px !important;
    }
    .det-box-ietm_single .pd-list > li {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    /* Inline facts (цифри 24/200/100/3) */
    .inline-facts h3 {
        font-size: 28px !important;
        line-height: 1.1 !important;
    }
    /* Inline-facts (24/200/100/3): на мобилі текст стиснений колонковим
       padding 30px. Прибираємо max-width і зменшуємо padding. */
    .single-box-content .inline-facts .facts-desc {
        max-width: none !important;
    }
    .single-box-content .inline-facts h6 {
        max-width: none !important;
    }
    .inline-facts-holder .inline-facts {
        padding: 16px 12px !important;
    }
    .inline-facts-holder .inline-facts:before {
        right: 10px !important;
        top: 30px !important;
        width: 20px !important;
    }
    /* Testimonials header: довгі назви компаній ("ТОВ «Полтава-Зерно»")
       обрізаються через маленький бейдж номера справа. Урізаємо бейдж
       і ставимо ellipsis на h3. */
    .testi-header {
        height: auto !important;
        min-height: 60px;
        padding: 10px 50px 10px 70px !important;
        display: flex;
        align-items: center;
    }
    .testi-header h3 {
        line-height: 1.2 !important;
        font-size: 15px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        margin: 0;
    }
    .testi-avatar {
        left: 12px !important;
        width: 44px !important;
        height: 44px !important;
        margin-top: -22px !important;
    }
    .testi-initials {
        font-size: 15px !important;
    }
    .testi-number {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        right: 10px !important;
        top: 50% !important;
        margin-top: -17px !important;
        font-size: 14px !important;
        text-align: center;
    }
    /* Піечарт "Сумісність з John Greaves": на вузькому екрані
       title займає всю ширину, піечарт центрується під ним.
       .chart має бути 150x150 щоб відповідати inline canvas. */
    .piechart-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px !important;
    }
    .piechart-container-title {
        float: none !important;
        width: 100% !important;
        top: 0 !important;
        text-align: center !important;
        margin-bottom: 14px;
    }
    .piechart {
        float: none !important;
        display: flex;
        justify-content: center;
    }
    .chart {
        float: none !important;
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto;
    }
    .percent {
        line-height: 150px !important;
        font-size: 20px !important;
    }
    .single-box-content .inline-facts h6 {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
    /* Контактні картки — мобілка: зберігаємо декор-квадрат і лінію,
       але зменшуємо їх та резервуємо місце справа щоб адреса не перетиналась */
    .card-item-wrap {
        padding: 24px 60px 32px 80px !important;
    }
    .card-item-wrap h4 {
        font-size: 17px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px;
        text-align: center !important;
    }
    .card-item-wrap > i,
    .card-item i {
        font-size: 20px !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%);
    }
    .card-item_num {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
    }
    .card-item:before {
        height: 50px !important;
        left: 30px !important;
    }
    .card-item .card-link {
        font-size: 14px !important;
        float: none !important;
        display: inline-block;
        word-break: break-word;
    }
    /* Cтраница /contact: email/телефон h4 24px → менше */
    .contacts-boxs h4,
    .contacts-boxs h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    /* Callback modal */
    .callback-right-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
    .callback-head h3 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
}
@media (max-width: 600px) {
    .hero-section-title h2 {
        font-size: 30px !important;
    }
    .hero-section-title h5 {
        font-size: 14px !important;
    }
    .det-box-ietm_single h3.bold-text,
    .single-box-content h3.bold-text,
    .boxed-content h3.bold-text,
    .sb-container h3.bold-text {
        font-size: 18px !important;
    }
    .det-box-ietm_single h4,
    .boxed-content h4,
    .sb-container h4,
    .piechart-container-title h4 {
        font-size: 16px !important;
    }
    .inline-facts h3 {
        font-size: 24px !important;
    }
}
@media (max-width: 400px) {
    .hero-section-title h2 {
        font-size: 26px !important;
    }
    .hero-section-title h5 {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }
    .wide_section-title h3,
    .wide_section-title h2 {
        font-size: 24px !important;
    }
    .half-carousel-title-item h2,
    .half-carousel-title h2 {
        font-size: 22px !important;
    }
    .main-section_text-block h2 {
        font-size: 22px !important;
    }
    .post-item_content h3,
    .post-item_wrap h3 {
        font-size: 17px !important;
    }
}
/* 320px — найвужчі телефони (iPhone SE 1gen, старі Android) */
@media (max-width: 360px) {
    .hero-section-title h2 {
        font-size: 22px !important;
    }
    .hero-section-title h5 {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
    }
    .hero-section-title p {
        font-size: 14px !important;
    }
    .wide_section-title h3,
    .wide_section-title h2 {
        font-size: 20px !important;
    }
    .half-carousel-title-item h2,
    .half-carousel-title h2 {
        font-size: 20px !important;
    }
    .main-section_text-block h2 {
        font-size: 20px !important;
    }
    .section-title h2 {
        font-size: 20px !important;
    }
    .ab-hero h2 {
        font-size: 20px !important;
    }
    .det-box-ietm_single h3.bold-text,
    .single-box-content h3.bold-text,
    .boxed-content h3.bold-text,
    .sb-container h3.bold-text {
        font-size: 17px !important;
    }
    .det-box-ietm_single h4,
    .boxed-content h4,
    .sb-container h4,
    .piechart-container-title h4 {
        font-size: 15px !important;
    }
    .inline-facts h3 {
        font-size: 22px !important;
    }
    .callback-head h3,
    .callback-right-title {
        font-size: 18px !important;
    }
    /* Контейнери — менший padding, щоб виграти ширину */
    .single-box-content,
    .contact-form-container-box,
    .callback-dialog {
        padding: 14px !important;
    }
    body {
        font-size: 14px !important;
    }
}

/* Фикс: шапка налазила на картинки товара и каталога на мобильном */
@media (max-width: 1068px) {
    .wrapper {
        padding-top: 80px !important;
    }
    .hero-section {
        padding-top: 0 !important;
    }
}

/* Скрыть блок фильтров каталога на мобильном */
@media (max-width: 1068px) {
    .fs-gallery-filters-container.gfc-fs {
        display: none !important;
    }
}

/* Дополнительный отступ сверху для hero-section на мобильном, чтобы заголовок не прилипал к шапке */
@media (max-width: 1068px) {
    .hero-section .hero-section-title {
        padding-top: 30px !important;
    }
    .hero-section {
        min-height: 230px !important;
    }
}

/* Название товара в карточке — чтобы не обрезалось длинное имя */
.vis_det-wrap .grid-item-holder .grid-item-det a,
.grid-item-det a {
    height: auto !important;
    min-height: 64px;
    line-height: 1.3 !important;
    padding: 14px 80px 14px 20px !important;
    display: flex !important;
    align-items: center;
    overflow: visible !important;
    white-space: normal !important;
    font-size: 13px !important;
    letter-spacing: .02em;
}
.grid-item-det a span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}
.grid-item-det a i {
    height: 100% !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px !important;
}

/* Интерактивная подсказка кликабельности для карточек half-carousel */
.half-carousel-item[data-href] {
    overflow: hidden;
    position: relative;
    transition: box-shadow .35s ease;
}
.half-carousel-item[data-href] .bg {
    transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .35s ease;
    transform: scale(1.01);
}
.half-carousel-item[data-href]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(40,120,207,.15) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 1;
}
.half-carousel-item[data-href]:hover .bg {
    transform: scale(1.06);
    filter: brightness(.85);
}
.half-carousel-item[data-href]:hover::after {
    opacity: 1;
}
.half-carousel-item[data-href] .half-carousel-content h3 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
}
.half-carousel-item[data-href] .half-carousel-content h3 a::after {
    content: "\2192";
    display: inline-block;
    width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-8px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), width .3s ease, margin-left .3s ease;
    color: var(--main-color, #2878cf);
    font-weight: 400;
}
.half-carousel-item[data-href]:hover .half-carousel-content h3 a {
    color: var(--main-color, #2878cf);
    transform: translateX(4px);
}
.half-carousel-item[data-href]:hover .half-carousel-content h3 a::after {
    opacity: 1;
    width: 1em;
    margin-left: 4px;
    transform: translateX(0);
}
.half-carousel-item[data-href]:hover {
    box-shadow: inset 0 0 0 2px rgba(40,120,207,.5);
}
@media (prefers-reduced-motion: reduce) {
    .half-carousel-item[data-href] .bg,
    .half-carousel-item[data-href]::after,
    .half-carousel-item[data-href] .half-carousel-content h3 a,
    .half-carousel-item[data-href] .half-carousel-content h3 a::after { transition: none !important; }
}

/* Принудительный перенос длинных строк в описаниях карусели и карточек */
.half-carousel-content p,
.half-carousel-content h3,
.half-carousel-content h3 a {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.half-carousel-content p {
    max-width: 100%;
    line-height: 1.45;
}

/* Исправление растянутой/обрезанной картинки на мобильных для half-carousel */
@media (max-width: 1068px) {
    .half-carousel-item {
        height: 420px !important;
    }
    .half-carousel-item[data-href] .bg {
        background-size: contain !important;
        background-position: center 40% !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a1a;
    }
    .half-carousel-item[data-href]:hover .bg {
        transform: scale(1.04);
    }
    .half-carousel-content {
        bottom: 16px !important;
        padding: 0 24px !important;
    }
    .half-carousel-content h3 {
        font-size: 22px !important;
        padding-bottom: 4px !important;
    }
    .half-carousel-content p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}
@media (max-width: 600px) {
    .half-carousel-item {
        height: 340px !important;
    }
}


/* Главная: кнопка "Замовити дзвінок" в блоке "Господарства..." — сбросить float и развести от текста, иначе серая рамка .btn:before залезает на текст */
.contacts-opt_container .col-lg-7 > .contacts-opt-wrap {
    overflow: visible;
}
.contacts-opt_container .col-lg-7 > .contacts-opt-wrap::after {
    content: "";
    display: block;
    clear: both;
}
.contacts-opt_container .col-lg-7 > .contacts-opt-wrap .contact-notifer {
    float: none;
    display: block;
    margin: 0 0 24px 0;
        text-align: left;
}
.contacts-opt_container .col-lg-7 > .contacts-opt-wrap .btn.float-btn {
    margin-top: 0;
    clear: both;
}

/* ============================================================
   LCP: показать сторінку, не чекаючи Trustbook firstload() (JS).
   Узгоджено 2026-06-02. Відкат — видалити весь блок нижче.
   ============================================================ */
/* LCP: show the page without waiting for Trustbook firstload(). */
/* БЕЗ opacity-анімації на #main: Chrome не реєструє LCP для контенту, що проявляється через
   opacity-анімацію предка → NO_LCP. Показуємо #main миттєво (перекриваємо #main{opacity:0} зі style.css). */
#main {
    opacity: 1 !important;
}

/* CSS fallback for the intro loader; JS fadeOut may still run later.
   will-change:opacity + opacity-only keyframe → анімація на COMPOSITOR (окремий потік),
   НЕ блокується важким JS на main-thread під CPU-throttle Lighthouse → лоадер зникає за ~0.6с
   незалежно від JS → hero відкривається рано → LCP не чекає кінця JS-ланцюга. */
.loader-wrap {
    pointer-events: none;
    will-change: opacity;
    animation: zhniva-loader-hide .6s ease forwards;
}

/* Keep the first hero frame stable before Swiper JS initializes. */
.fs-slider .swiper-container,
.fs-slider .swiper-wrapper,
.fs-slider .swiper-slide,
.fs-slider .fs-slider-item {
    height: 100%;
}

.fs-slider .swiper-container {
    width: 100%;
    overflow: hidden;
}

/* Before Swiper adds its direction class, keep only the first hero slide visible. */
.fs-slider .swiper-container:not(.swiper-container-horizontal):not(.swiper-container-vertical) .swiper-wrapper > .swiper-slide:not(:first-child) {
    visibility: hidden;
}

@keyframes zhniva-main-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Тільки opacity (compositable) — без visibility, щоб анімація йшла на compositor і не блокувалась JS.
   pointer-events:none на .loader-wrap прибирає перехоплення кліків; JS пізніше ставить display:none. */
@keyframes zhniva-loader-hide {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #main,
    .loader-wrap {
        animation-duration: 1ms;
    }
}
